configure 836 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. SET_MAKE
  643. INSTALL_DATA
  644. INSTALL_SCRIPT
  645. INSTALL_PROGRAM
  646. CXXCPP
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. LT_AGE
  651. LT_REVISION
  652. LT_CURRENT
  653. LT_RELEASE
  654. RC
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. runstatedir
  721. localstatedir
  722. sharedstatedir
  723. sysconfdir
  724. datadir
  725. datarootdir
  726. libexecdir
  727. sbindir
  728. bindir
  729. program_transform_name
  730. prefix
  731. exec_prefix
  732. PACKAGE_URL
  733. PACKAGE_BUGREPORT
  734. PACKAGE_STRING
  735. PACKAGE_VERSION
  736. PACKAGE_TARNAME
  737. PACKAGE_NAME
  738. PATH_SEPARATOR
  739. SHELL'
  740. ac_subst_files=''
  741. ac_user_opts='
  742. enable_option_checking
  743. enable_shared
  744. enable_static
  745. with_pic
  746. enable_fast_install
  747. with_gnu_ld
  748. with_sysroot
  749. enable_libtool_lock
  750. enable_assertions
  751. enable_dependency_tracking
  752. enable_libc
  753. enable_gcc_atomics
  754. enable_atomic
  755. enable_audio
  756. enable_video
  757. enable_render
  758. enable_events
  759. enable_joystick
  760. enable_haptic
  761. enable_sensor
  762. enable_power
  763. enable_filesystem
  764. enable_threads
  765. enable_timers
  766. enable_file
  767. enable_loadso
  768. enable_cpuinfo
  769. enable_assembly
  770. enable_ssemath
  771. enable_mmx
  772. enable_3dnow
  773. enable_sse
  774. enable_sse2
  775. enable_sse3
  776. enable_altivec
  777. enable_oss
  778. enable_alsa
  779. with_alsa_prefix
  780. with_alsa_inc_prefix
  781. enable_alsatest
  782. enable_alsa_shared
  783. enable_jack
  784. enable_jack_shared
  785. enable_esd
  786. with_esd_prefix
  787. with_esd_exec_prefix
  788. enable_esdtest
  789. enable_esd_shared
  790. enable_pulseaudio
  791. enable_pulseaudio_shared
  792. enable_arts
  793. enable_arts_shared
  794. enable_nas
  795. enable_nas_shared
  796. enable_sndio
  797. enable_sndio_shared
  798. enable_fusionsound
  799. enable_fusionsound_shared
  800. enable_diskaudio
  801. enable_dummyaudio
  802. enable_libsamplerate
  803. enable_libsamplerate_shared
  804. enable_arm_simd
  805. enable_arm_neon
  806. enable_video_wayland
  807. enable_video_wayland_qt_touch
  808. enable_wayland_shared
  809. enable_video_rpi
  810. enable_video_x11
  811. with_x
  812. enable_x11_shared
  813. enable_video_x11_xcursor
  814. enable_video_x11_xdbe
  815. enable_video_x11_xinerama
  816. enable_video_x11_xinput
  817. enable_video_x11_xrandr
  818. enable_video_x11_scrnsaver
  819. enable_video_x11_xshape
  820. enable_video_x11_vm
  821. enable_video_vivante
  822. enable_video_cocoa
  823. enable_video_metal
  824. enable_render_metal
  825. enable_video_directfb
  826. enable_directfb_shared
  827. enable_video_kmsdrm
  828. enable_kmsdrm_shared
  829. enable_video_dummy
  830. enable_video_opengl
  831. enable_video_opengles
  832. enable_video_opengles1
  833. enable_video_opengles2
  834. enable_video_vulkan
  835. enable_libudev
  836. enable_dbus
  837. enable_ime
  838. enable_ibus
  839. enable_fcitx
  840. enable_input_tslib
  841. enable_pthreads
  842. enable_pthread_sem
  843. enable_directx
  844. enable_wasapi
  845. enable_sdl_dlopen
  846. enable_hidapi
  847. enable_clock_gettime
  848. enable_rpath
  849. enable_backgrounding_signal
  850. enable_foregrounding_signal
  851. enable_joystick_virtual
  852. enable_render_d3d
  853. enable_sdl2_config
  854. '
  855. ac_precious_vars='build_alias
  856. host_alias
  857. target_alias
  858. CC
  859. CFLAGS
  860. LDFLAGS
  861. LIBS
  862. CPPFLAGS
  863. CPP
  864. CXX
  865. CXXFLAGS
  866. CCC
  867. CXXCPP
  868. PKG_CONFIG
  869. PKG_CONFIG_PATH
  870. PKG_CONFIG_LIBDIR
  871. JACK_CFLAGS
  872. JACK_LIBS
  873. PULSEAUDIO_CFLAGS
  874. PULSEAUDIO_LIBS
  875. FUSIONSOUND_CFLAGS
  876. FUSIONSOUND_LIBS
  877. RPI_CFLAGS
  878. RPI_LIBS
  879. XMKMF
  880. DIRECTFB_CFLAGS
  881. DIRECTFB_LIBS
  882. LIBDRM_CFLAGS
  883. LIBDRM_LIBS
  884. LIBGBM_CFLAGS
  885. LIBGBM_LIBS
  886. DBUS_CFLAGS
  887. DBUS_LIBS
  888. IBUS_CFLAGS
  889. IBUS_LIBS
  890. FCITX_CFLAGS
  891. FCITX_LIBS
  892. LIBUSB_CFLAGS
  893. LIBUSB_LIBS'
  894. # Initialize some variables set by options.
  895. ac_init_help=
  896. ac_init_version=false
  897. ac_unrecognized_opts=
  898. ac_unrecognized_sep=
  899. # The variables have the same names as the options, with
  900. # dashes changed to underlines.
  901. cache_file=/dev/null
  902. exec_prefix=NONE
  903. no_create=
  904. no_recursion=
  905. prefix=NONE
  906. program_prefix=NONE
  907. program_suffix=NONE
  908. program_transform_name=s,x,x,
  909. silent=
  910. site=
  911. srcdir=
  912. verbose=
  913. x_includes=NONE
  914. x_libraries=NONE
  915. # Installation directory options.
  916. # These are left unexpanded so users can "make install exec_prefix=/foo"
  917. # and all the variables that are supposed to be based on exec_prefix
  918. # by default will actually change.
  919. # Use braces instead of parens because sh, perl, etc. also accept them.
  920. # (The list follows the same order as the GNU Coding Standards.)
  921. bindir='${exec_prefix}/bin'
  922. sbindir='${exec_prefix}/sbin'
  923. libexecdir='${exec_prefix}/libexec'
  924. datarootdir='${prefix}/share'
  925. datadir='${datarootdir}'
  926. sysconfdir='${prefix}/etc'
  927. sharedstatedir='${prefix}/com'
  928. localstatedir='${prefix}/var'
  929. runstatedir='${localstatedir}/run'
  930. includedir='${prefix}/include'
  931. oldincludedir='/usr/include'
  932. docdir='${datarootdir}/doc/${PACKAGE}'
  933. infodir='${datarootdir}/info'
  934. htmldir='${docdir}'
  935. dvidir='${docdir}'
  936. pdfdir='${docdir}'
  937. psdir='${docdir}'
  938. libdir='${exec_prefix}/lib'
  939. localedir='${datarootdir}/locale'
  940. mandir='${datarootdir}/man'
  941. ac_prev=
  942. ac_dashdash=
  943. for ac_option
  944. do
  945. # If the previous option needs an argument, assign it.
  946. if test -n "$ac_prev"; then
  947. eval $ac_prev=\$ac_option
  948. ac_prev=
  949. continue
  950. fi
  951. case $ac_option in
  952. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  953. *=) ac_optarg= ;;
  954. *) ac_optarg=yes ;;
  955. esac
  956. # Accept the important Cygnus configure options, so we can diagnose typos.
  957. case $ac_dashdash$ac_option in
  958. --)
  959. ac_dashdash=yes ;;
  960. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  961. ac_prev=bindir ;;
  962. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  963. bindir=$ac_optarg ;;
  964. -build | --build | --buil | --bui | --bu)
  965. ac_prev=build_alias ;;
  966. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  967. build_alias=$ac_optarg ;;
  968. -cache-file | --cache-file | --cache-fil | --cache-fi \
  969. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  970. ac_prev=cache_file ;;
  971. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  972. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  973. cache_file=$ac_optarg ;;
  974. --config-cache | -C)
  975. cache_file=config.cache ;;
  976. -datadir | --datadir | --datadi | --datad)
  977. ac_prev=datadir ;;
  978. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  979. datadir=$ac_optarg ;;
  980. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  981. | --dataroo | --dataro | --datar)
  982. ac_prev=datarootdir ;;
  983. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  984. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  985. datarootdir=$ac_optarg ;;
  986. -disable-* | --disable-*)
  987. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  990. as_fn_error $? "invalid feature name: $ac_useropt"
  991. ac_useropt_orig=$ac_useropt
  992. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  993. case $ac_user_opts in
  994. *"
  995. "enable_$ac_useropt"
  996. "*) ;;
  997. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  998. ac_unrecognized_sep=', ';;
  999. esac
  1000. eval enable_$ac_useropt=no ;;
  1001. -docdir | --docdir | --docdi | --doc | --do)
  1002. ac_prev=docdir ;;
  1003. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1004. docdir=$ac_optarg ;;
  1005. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1006. ac_prev=dvidir ;;
  1007. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1008. dvidir=$ac_optarg ;;
  1009. -enable-* | --enable-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid feature name: $ac_useropt"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "enable_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval enable_$ac_useropt=\$ac_optarg ;;
  1024. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1025. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1026. | --exec | --exe | --ex)
  1027. ac_prev=exec_prefix ;;
  1028. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1029. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1030. | --exec=* | --exe=* | --ex=*)
  1031. exec_prefix=$ac_optarg ;;
  1032. -gas | --gas | --ga | --g)
  1033. # Obsolete; use --with-gas.
  1034. with_gas=yes ;;
  1035. -help | --help | --hel | --he | -h)
  1036. ac_init_help=long ;;
  1037. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1038. ac_init_help=recursive ;;
  1039. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1040. ac_init_help=short ;;
  1041. -host | --host | --hos | --ho)
  1042. ac_prev=host_alias ;;
  1043. -host=* | --host=* | --hos=* | --ho=*)
  1044. host_alias=$ac_optarg ;;
  1045. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1046. ac_prev=htmldir ;;
  1047. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1048. | --ht=*)
  1049. htmldir=$ac_optarg ;;
  1050. -includedir | --includedir | --includedi | --included | --include \
  1051. | --includ | --inclu | --incl | --inc)
  1052. ac_prev=includedir ;;
  1053. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1054. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1055. includedir=$ac_optarg ;;
  1056. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1057. ac_prev=infodir ;;
  1058. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1059. infodir=$ac_optarg ;;
  1060. -libdir | --libdir | --libdi | --libd)
  1061. ac_prev=libdir ;;
  1062. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1063. libdir=$ac_optarg ;;
  1064. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1065. | --libexe | --libex | --libe)
  1066. ac_prev=libexecdir ;;
  1067. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1068. | --libexe=* | --libex=* | --libe=*)
  1069. libexecdir=$ac_optarg ;;
  1070. -localedir | --localedir | --localedi | --localed | --locale)
  1071. ac_prev=localedir ;;
  1072. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1073. localedir=$ac_optarg ;;
  1074. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1075. | --localstate | --localstat | --localsta | --localst | --locals)
  1076. ac_prev=localstatedir ;;
  1077. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1078. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1079. localstatedir=$ac_optarg ;;
  1080. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1081. ac_prev=mandir ;;
  1082. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1083. mandir=$ac_optarg ;;
  1084. -nfp | --nfp | --nf)
  1085. # Obsolete; use --without-fp.
  1086. with_fp=no ;;
  1087. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1088. | --no-cr | --no-c | -n)
  1089. no_create=yes ;;
  1090. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1091. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1092. no_recursion=yes ;;
  1093. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1094. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1095. | --oldin | --oldi | --old | --ol | --o)
  1096. ac_prev=oldincludedir ;;
  1097. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1098. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1099. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1100. oldincludedir=$ac_optarg ;;
  1101. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1102. ac_prev=prefix ;;
  1103. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1104. prefix=$ac_optarg ;;
  1105. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1106. | --program-pre | --program-pr | --program-p)
  1107. ac_prev=program_prefix ;;
  1108. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1109. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1110. program_prefix=$ac_optarg ;;
  1111. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1112. | --program-suf | --program-su | --program-s)
  1113. ac_prev=program_suffix ;;
  1114. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1115. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1116. program_suffix=$ac_optarg ;;
  1117. -program-transform-name | --program-transform-name \
  1118. | --program-transform-nam | --program-transform-na \
  1119. | --program-transform-n | --program-transform- \
  1120. | --program-transform | --program-transfor \
  1121. | --program-transfo | --program-transf \
  1122. | --program-trans | --program-tran \
  1123. | --progr-tra | --program-tr | --program-t)
  1124. ac_prev=program_transform_name ;;
  1125. -program-transform-name=* | --program-transform-name=* \
  1126. | --program-transform-nam=* | --program-transform-na=* \
  1127. | --program-transform-n=* | --program-transform-=* \
  1128. | --program-transform=* | --program-transfor=* \
  1129. | --program-transfo=* | --program-transf=* \
  1130. | --program-trans=* | --program-tran=* \
  1131. | --progr-tra=* | --program-tr=* | --program-t=*)
  1132. program_transform_name=$ac_optarg ;;
  1133. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1134. ac_prev=pdfdir ;;
  1135. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1136. pdfdir=$ac_optarg ;;
  1137. -psdir | --psdir | --psdi | --psd | --ps)
  1138. ac_prev=psdir ;;
  1139. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1140. psdir=$ac_optarg ;;
  1141. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1142. | -silent | --silent | --silen | --sile | --sil)
  1143. silent=yes ;;
  1144. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1145. | --runstate | --runstat | --runsta | --runst | --runs \
  1146. | --run | --ru | --r)
  1147. ac_prev=runstatedir ;;
  1148. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1149. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1150. | --run=* | --ru=* | --r=*)
  1151. runstatedir=$ac_optarg ;;
  1152. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1153. ac_prev=sbindir ;;
  1154. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1155. | --sbi=* | --sb=*)
  1156. sbindir=$ac_optarg ;;
  1157. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1158. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1159. | --sharedst | --shareds | --shared | --share | --shar \
  1160. | --sha | --sh)
  1161. ac_prev=sharedstatedir ;;
  1162. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1163. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1164. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1165. | --sha=* | --sh=*)
  1166. sharedstatedir=$ac_optarg ;;
  1167. -site | --site | --sit)
  1168. ac_prev=site ;;
  1169. -site=* | --site=* | --sit=*)
  1170. site=$ac_optarg ;;
  1171. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1172. ac_prev=srcdir ;;
  1173. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1174. srcdir=$ac_optarg ;;
  1175. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1176. | --syscon | --sysco | --sysc | --sys | --sy)
  1177. ac_prev=sysconfdir ;;
  1178. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1179. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1180. sysconfdir=$ac_optarg ;;
  1181. -target | --target | --targe | --targ | --tar | --ta | --t)
  1182. ac_prev=target_alias ;;
  1183. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1184. target_alias=$ac_optarg ;;
  1185. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1186. verbose=yes ;;
  1187. -version | --version | --versio | --versi | --vers | -V)
  1188. ac_init_version=: ;;
  1189. -with-* | --with-*)
  1190. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1191. # Reject names that are not valid shell variable names.
  1192. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1193. as_fn_error $? "invalid package name: $ac_useropt"
  1194. ac_useropt_orig=$ac_useropt
  1195. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1196. case $ac_user_opts in
  1197. *"
  1198. "with_$ac_useropt"
  1199. "*) ;;
  1200. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1201. ac_unrecognized_sep=', ';;
  1202. esac
  1203. eval with_$ac_useropt=\$ac_optarg ;;
  1204. -without-* | --without-*)
  1205. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1206. # Reject names that are not valid shell variable names.
  1207. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1208. as_fn_error $? "invalid package name: $ac_useropt"
  1209. ac_useropt_orig=$ac_useropt
  1210. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211. case $ac_user_opts in
  1212. *"
  1213. "with_$ac_useropt"
  1214. "*) ;;
  1215. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1216. ac_unrecognized_sep=', ';;
  1217. esac
  1218. eval with_$ac_useropt=no ;;
  1219. --x)
  1220. # Obsolete; use --with-x.
  1221. with_x=yes ;;
  1222. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1223. | --x-incl | --x-inc | --x-in | --x-i)
  1224. ac_prev=x_includes ;;
  1225. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1226. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1227. x_includes=$ac_optarg ;;
  1228. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1229. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1230. ac_prev=x_libraries ;;
  1231. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1232. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1233. x_libraries=$ac_optarg ;;
  1234. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1235. Try \`$0 --help' for more information"
  1236. ;;
  1237. *=*)
  1238. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1239. # Reject names that are not valid shell variable names.
  1240. case $ac_envvar in #(
  1241. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1242. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1243. esac
  1244. eval $ac_envvar=\$ac_optarg
  1245. export $ac_envvar ;;
  1246. *)
  1247. # FIXME: should be removed in autoconf 3.0.
  1248. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1249. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1250. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1251. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1252. ;;
  1253. esac
  1254. done
  1255. if test -n "$ac_prev"; then
  1256. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1257. as_fn_error $? "missing argument to $ac_option"
  1258. fi
  1259. if test -n "$ac_unrecognized_opts"; then
  1260. case $enable_option_checking in
  1261. no) ;;
  1262. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1263. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1264. esac
  1265. fi
  1266. # Check all directory arguments for consistency.
  1267. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1268. datadir sysconfdir sharedstatedir localstatedir includedir \
  1269. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1270. libdir localedir mandir runstatedir
  1271. do
  1272. eval ac_val=\$$ac_var
  1273. # Remove trailing slashes.
  1274. case $ac_val in
  1275. */ )
  1276. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1277. eval $ac_var=\$ac_val;;
  1278. esac
  1279. # Be sure to have absolute directory names.
  1280. case $ac_val in
  1281. [\\/$]* | ?:[\\/]* ) continue;;
  1282. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1283. esac
  1284. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1285. done
  1286. # There might be people who depend on the old broken behavior: `$host'
  1287. # used to hold the argument of --host etc.
  1288. # FIXME: To remove some day.
  1289. build=$build_alias
  1290. host=$host_alias
  1291. target=$target_alias
  1292. # FIXME: To remove some day.
  1293. if test "x$host_alias" != x; then
  1294. if test "x$build_alias" = x; then
  1295. cross_compiling=maybe
  1296. elif test "x$build_alias" != "x$host_alias"; then
  1297. cross_compiling=yes
  1298. fi
  1299. fi
  1300. ac_tool_prefix=
  1301. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1302. test "$silent" = yes && exec 6>/dev/null
  1303. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1304. ac_ls_di=`ls -di .` &&
  1305. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1306. as_fn_error $? "working directory cannot be determined"
  1307. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1308. as_fn_error $? "pwd does not report name of working directory"
  1309. # Find the source files, if location was not specified.
  1310. if test -z "$srcdir"; then
  1311. ac_srcdir_defaulted=yes
  1312. # Try the directory containing this script, then the parent directory.
  1313. ac_confdir=`$as_dirname -- "$as_myself" ||
  1314. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1315. X"$as_myself" : 'X\(//\)[^/]' \| \
  1316. X"$as_myself" : 'X\(//\)$' \| \
  1317. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1318. $as_echo X"$as_myself" |
  1319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\/\)[^/].*/{
  1324. s//\1/
  1325. q
  1326. }
  1327. /^X\(\/\/\)$/{
  1328. s//\1/
  1329. q
  1330. }
  1331. /^X\(\/\).*/{
  1332. s//\1/
  1333. q
  1334. }
  1335. s/.*/./; q'`
  1336. srcdir=$ac_confdir
  1337. if test ! -r "$srcdir/$ac_unique_file"; then
  1338. srcdir=..
  1339. fi
  1340. else
  1341. ac_srcdir_defaulted=no
  1342. fi
  1343. if test ! -r "$srcdir/$ac_unique_file"; then
  1344. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1345. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1346. fi
  1347. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1348. ac_abs_confdir=`(
  1349. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1350. pwd)`
  1351. # When building in place, set srcdir=.
  1352. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1353. srcdir=.
  1354. fi
  1355. # Remove unnecessary trailing slashes from srcdir.
  1356. # Double slashes in file names in object file debugging info
  1357. # mess up M-x gdb in Emacs.
  1358. case $srcdir in
  1359. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1360. esac
  1361. for ac_var in $ac_precious_vars; do
  1362. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1363. eval ac_env_${ac_var}_value=\$${ac_var}
  1364. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1365. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1366. done
  1367. #
  1368. # Report the --help message.
  1369. #
  1370. if test "$ac_init_help" = "long"; then
  1371. # Omit some internal or obsolete options to make the list less imposing.
  1372. # This message is too long to be a string in the A/UX 3.1 sh.
  1373. cat <<_ACEOF
  1374. \`configure' configures this package to adapt to many kinds of systems.
  1375. Usage: $0 [OPTION]... [VAR=VALUE]...
  1376. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1377. VAR=VALUE. See below for descriptions of some of the useful variables.
  1378. Defaults for the options are specified in brackets.
  1379. Configuration:
  1380. -h, --help display this help and exit
  1381. --help=short display options specific to this package
  1382. --help=recursive display the short help of all the included packages
  1383. -V, --version display version information and exit
  1384. -q, --quiet, --silent do not print \`checking ...' messages
  1385. --cache-file=FILE cache test results in FILE [disabled]
  1386. -C, --config-cache alias for \`--cache-file=config.cache'
  1387. -n, --no-create do not create output files
  1388. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1389. Installation directories:
  1390. --prefix=PREFIX install architecture-independent files in PREFIX
  1391. [$ac_default_prefix]
  1392. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1393. [PREFIX]
  1394. By default, \`make install' will install all the files in
  1395. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1396. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1397. for instance \`--prefix=\$HOME'.
  1398. For better control, use the options below.
  1399. Fine tuning of the installation directories:
  1400. --bindir=DIR user executables [EPREFIX/bin]
  1401. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1402. --libexecdir=DIR program executables [EPREFIX/libexec]
  1403. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1404. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1405. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1406. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1407. --libdir=DIR object code libraries [EPREFIX/lib]
  1408. --includedir=DIR C header files [PREFIX/include]
  1409. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1410. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1411. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1412. --infodir=DIR info documentation [DATAROOTDIR/info]
  1413. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1414. --mandir=DIR man documentation [DATAROOTDIR/man]
  1415. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1416. --htmldir=DIR html documentation [DOCDIR]
  1417. --dvidir=DIR dvi documentation [DOCDIR]
  1418. --pdfdir=DIR pdf documentation [DOCDIR]
  1419. --psdir=DIR ps documentation [DOCDIR]
  1420. _ACEOF
  1421. cat <<\_ACEOF
  1422. X features:
  1423. --x-includes=DIR X include files are in DIR
  1424. --x-libraries=DIR X library files are in DIR
  1425. System types:
  1426. --build=BUILD configure for building on BUILD [guessed]
  1427. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1428. _ACEOF
  1429. fi
  1430. if test -n "$ac_init_help"; then
  1431. cat <<\_ACEOF
  1432. Optional Features:
  1433. --disable-option-checking ignore unrecognized --enable/--with options
  1434. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1435. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1436. --enable-shared[=PKGS] build shared libraries [default=yes]
  1437. --enable-static[=PKGS] build static libraries [default=yes]
  1438. --enable-fast-install[=PKGS]
  1439. optimize for fast installation [default=yes]
  1440. --disable-libtool-lock avoid locking (might break parallel builds)
  1441. --enable-assertions Enable internal sanity checks
  1442. (auto/disabled/release/enabled/paranoid)
  1443. [[default=auto]]
  1444. --enable-dependency-tracking
  1445. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1446. --enable-libc Use the system C library [[default=yes]]
  1447. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1448. --enable-atomic Enable the atomic operations subsystem
  1449. [[default=yes]]
  1450. --enable-audio Enable the audio subsystem [[default=yes]]
  1451. --enable-video Enable the video subsystem [[default=yes]]
  1452. --enable-render Enable the render subsystem [[default=yes]]
  1453. --enable-events Enable the events subsystem [[default=yes]]
  1454. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1455. --enable-haptic Enable the haptic (force feedback) subsystem
  1456. [[default=yes]]
  1457. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1458. --enable-power Enable the power subsystem [[default=yes]]
  1459. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1460. --enable-threads Enable the threading subsystem [[default=yes]]
  1461. --enable-timers Enable the timer subsystem [[default=yes]]
  1462. --enable-file Enable the file subsystem [[default=yes]]
  1463. --enable-loadso Enable the shared object loading subsystem
  1464. [[default=yes]]
  1465. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1466. --enable-assembly Enable assembly routines [[default=yes]]
  1467. --enable-ssemath Allow GCC to use SSE floating point math
  1468. [[default=maybe]]
  1469. --enable-mmx use MMX assembly routines [[default=yes]]
  1470. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1471. --enable-sse use SSE assembly routines [[default=yes]]
  1472. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1473. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1474. --enable-altivec use Altivec assembly routines [[default=yes]]
  1475. --enable-oss support the OSS audio API [[default=maybe]]
  1476. --enable-alsa support the ALSA audio API [[default=yes]]
  1477. --disable-alsatest Do not try to compile and run a test Alsa program
  1478. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1479. --enable-jack use JACK audio [[default=yes]]
  1480. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1481. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1482. --disable-esdtest Do not try to compile and run a test ESD program
  1483. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1484. --enable-pulseaudio use PulseAudio [[default=yes]]
  1485. --enable-pulseaudio-shared
  1486. dynamically load PulseAudio support [[default=yes]]
  1487. --enable-arts support the Analog Real Time Synthesizer
  1488. [[default=yes]]
  1489. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1490. --enable-nas support the NAS audio API [[default=yes]]
  1491. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1492. --enable-sndio support the sndio audio API [[default=yes]]
  1493. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1494. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1495. --enable-fusionsound-shared
  1496. dynamically load fusionsound audio support
  1497. [[default=yes]]
  1498. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1499. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1500. --enable-libsamplerate use libsamplerate for audio rate conversion
  1501. [[default=yes]]
  1502. --enable-libsamplerate-shared
  1503. dynamically load libsamplerate [[default=yes]]
  1504. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1505. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1506. --enable-video-wayland use Wayland video driver [[default=yes]]
  1507. --enable-video-wayland-qt-touch
  1508. QtWayland server support for Wayland video driver
  1509. [[default=yes]]
  1510. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1511. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1512. --enable-video-x11 use X11 video driver [[default=yes]]
  1513. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1514. --enable-video-x11-xcursor
  1515. enable X11 Xcursor support [[default=yes]]
  1516. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1517. --enable-video-x11-xinerama
  1518. enable X11 Xinerama support [[default=yes]]
  1519. --enable-video-x11-xinput
  1520. enable X11 XInput extension for manymouse, tablets,
  1521. etc [[default=yes]]
  1522. --enable-video-x11-xrandr
  1523. enable X11 Xrandr extension for fullscreen
  1524. [[default=yes]]
  1525. --enable-video-x11-scrnsaver
  1526. enable X11 screensaver extension [[default=yes]]
  1527. --enable-video-x11-xshape
  1528. enable X11 XShape support [[default=yes]]
  1529. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1530. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1531. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1532. --enable-video-metal include Metal support [[default=yes]]
  1533. --enable-render-metal enable the Metal render driver [[default=yes]]
  1534. --enable-video-directfb use DirectFB video driver [[default=no]]
  1535. --enable-directfb-shared
  1536. dynamically load directfb support [[default=yes]]
  1537. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1538. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1539. --enable-video-dummy use dummy video driver [[default=yes]]
  1540. --enable-video-opengl include OpenGL support [[default=yes]]
  1541. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1542. --enable-video-opengles1
  1543. include OpenGL ES 1.1 support [[default=yes]]
  1544. --enable-video-opengles2
  1545. include OpenGL ES 2.0 support [[default=yes]]
  1546. --enable-video-vulkan include Vulkan support [[default=yes]]
  1547. --enable-libudev enable libudev support [[default=yes]]
  1548. --enable-dbus enable D-Bus support [[default=yes]]
  1549. --enable-ime enable IME support [[default=yes]]
  1550. --enable-ibus enable IBus support [[default=yes]]
  1551. --enable-fcitx enable fcitx support [[default=yes]]
  1552. --enable-input-tslib use the Touchscreen library for input
  1553. [[default=yes]]
  1554. --enable-pthreads use POSIX threads for multi-threading
  1555. [[default=yes]]
  1556. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1557. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1558. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1559. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1560. --enable-hidapi use HIDAPI for low level joystick drivers
  1561. [[default=no]]
  1562. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1563. UNIX [[default=yes]]
  1564. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1565. --enable-backgrounding-signal
  1566. number to use for magic backgrounding signal or 'no'
  1567. [[default=no]]
  1568. --enable-foregrounding-signal
  1569. number to use for magic foregrounding signal or 'no'
  1570. [[default=no]]
  1571. --enable-joystick-virtual
  1572. enable virtual joystick APIs [[default=no]]
  1573. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1574. --enable-sdl2-config Install sdl2-config [default=yes]
  1575. Optional Packages:
  1576. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1577. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1578. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1579. both]
  1580. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1581. --with-sysroot=DIR Search for dependent libraries within DIR
  1582. (or the compiler's sysroot if not specified).
  1583. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1584. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1585. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1586. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1587. --with-x use the X Window System
  1588. Some influential environment variables:
  1589. CC C compiler command
  1590. CFLAGS C compiler flags
  1591. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1592. nonstandard directory <lib dir>
  1593. LIBS libraries to pass to the linker, e.g. -l<library>
  1594. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1595. you have headers in a nonstandard directory <include dir>
  1596. CPP C preprocessor
  1597. CXX C++ compiler command
  1598. CXXFLAGS C++ compiler flags
  1599. CXXCPP C++ preprocessor
  1600. PKG_CONFIG path to pkg-config utility
  1601. PKG_CONFIG_PATH
  1602. directories to add to pkg-config's search path
  1603. PKG_CONFIG_LIBDIR
  1604. path overriding pkg-config's built-in search path
  1605. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1606. JACK_LIBS linker flags for JACK, overriding pkg-config
  1607. PULSEAUDIO_CFLAGS
  1608. C compiler flags for PULSEAUDIO, overriding pkg-config
  1609. PULSEAUDIO_LIBS
  1610. linker flags for PULSEAUDIO, overriding pkg-config
  1611. FUSIONSOUND_CFLAGS
  1612. C compiler flags for FUSIONSOUND, overriding pkg-config
  1613. FUSIONSOUND_LIBS
  1614. linker flags for FUSIONSOUND, overriding pkg-config
  1615. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1616. RPI_LIBS linker flags for RPI, overriding pkg-config
  1617. XMKMF Path to xmkmf, Makefile generator for X Window System
  1618. DIRECTFB_CFLAGS
  1619. C compiler flags for DIRECTFB, overriding pkg-config
  1620. DIRECTFB_LIBS
  1621. linker flags for DIRECTFB, overriding pkg-config
  1622. LIBDRM_CFLAGS
  1623. C compiler flags for LIBDRM, overriding pkg-config
  1624. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1625. LIBGBM_CFLAGS
  1626. C compiler flags for LIBGBM, overriding pkg-config
  1627. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1628. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1629. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1630. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1631. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1632. FCITX_CFLAGS
  1633. C compiler flags for FCITX, overriding pkg-config
  1634. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1635. LIBUSB_CFLAGS
  1636. C compiler flags for LIBUSB, overriding pkg-config
  1637. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1638. Use these variables to override the choices made by `configure' or to help
  1639. it to find libraries and programs with nonstandard names/locations.
  1640. Report bugs to the package provider.
  1641. _ACEOF
  1642. ac_status=$?
  1643. fi
  1644. if test "$ac_init_help" = "recursive"; then
  1645. # If there are subdirs, report their specific --help.
  1646. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1647. test -d "$ac_dir" ||
  1648. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1649. continue
  1650. ac_builddir=.
  1651. case "$ac_dir" in
  1652. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1653. *)
  1654. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1655. # A ".." for each directory in $ac_dir_suffix.
  1656. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1657. case $ac_top_builddir_sub in
  1658. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1659. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1660. esac ;;
  1661. esac
  1662. ac_abs_top_builddir=$ac_pwd
  1663. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1664. # for backward compatibility:
  1665. ac_top_builddir=$ac_top_build_prefix
  1666. case $srcdir in
  1667. .) # We are building in place.
  1668. ac_srcdir=.
  1669. ac_top_srcdir=$ac_top_builddir_sub
  1670. ac_abs_top_srcdir=$ac_pwd ;;
  1671. [\\/]* | ?:[\\/]* ) # Absolute name.
  1672. ac_srcdir=$srcdir$ac_dir_suffix;
  1673. ac_top_srcdir=$srcdir
  1674. ac_abs_top_srcdir=$srcdir ;;
  1675. *) # Relative name.
  1676. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1677. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1678. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1679. esac
  1680. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1681. cd "$ac_dir" || { ac_status=$?; continue; }
  1682. # Check for guested configure.
  1683. if test -f "$ac_srcdir/configure.gnu"; then
  1684. echo &&
  1685. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1686. elif test -f "$ac_srcdir/configure"; then
  1687. echo &&
  1688. $SHELL "$ac_srcdir/configure" --help=recursive
  1689. else
  1690. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1691. fi || ac_status=$?
  1692. cd "$ac_pwd" || { ac_status=$?; break; }
  1693. done
  1694. fi
  1695. test -n "$ac_init_help" && exit $ac_status
  1696. if $ac_init_version; then
  1697. cat <<\_ACEOF
  1698. configure
  1699. generated by GNU Autoconf 2.69
  1700. Copyright (C) 2012 Free Software Foundation, Inc.
  1701. This configure script is free software; the Free Software Foundation
  1702. gives unlimited permission to copy, distribute and modify it.
  1703. _ACEOF
  1704. exit
  1705. fi
  1706. ## ------------------------ ##
  1707. ## Autoconf initialization. ##
  1708. ## ------------------------ ##
  1709. # ac_fn_c_try_compile LINENO
  1710. # --------------------------
  1711. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1712. ac_fn_c_try_compile ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. rm -f conftest.$ac_objext
  1716. if { { ac_try="$ac_compile"
  1717. case "(($ac_try" in
  1718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1719. *) ac_try_echo=$ac_try;;
  1720. esac
  1721. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1722. $as_echo "$ac_try_echo"; } >&5
  1723. (eval "$ac_compile") 2>conftest.err
  1724. ac_status=$?
  1725. if test -s conftest.err; then
  1726. grep -v '^ *+' conftest.err >conftest.er1
  1727. cat conftest.er1 >&5
  1728. mv -f conftest.er1 conftest.err
  1729. fi
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; } && {
  1732. test -z "$ac_c_werror_flag" ||
  1733. test ! -s conftest.err
  1734. } && test -s conftest.$ac_objext; then :
  1735. ac_retval=0
  1736. else
  1737. $as_echo "$as_me: failed program was:" >&5
  1738. sed 's/^/| /' conftest.$ac_ext >&5
  1739. ac_retval=1
  1740. fi
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. as_fn_set_status $ac_retval
  1743. } # ac_fn_c_try_compile
  1744. # ac_fn_c_try_link LINENO
  1745. # -----------------------
  1746. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1747. ac_fn_c_try_link ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. rm -f conftest.$ac_objext conftest$ac_exeext
  1751. if { { ac_try="$ac_link"
  1752. case "(($ac_try" in
  1753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1754. *) ac_try_echo=$ac_try;;
  1755. esac
  1756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1757. $as_echo "$ac_try_echo"; } >&5
  1758. (eval "$ac_link") 2>conftest.err
  1759. ac_status=$?
  1760. if test -s conftest.err; then
  1761. grep -v '^ *+' conftest.err >conftest.er1
  1762. cat conftest.er1 >&5
  1763. mv -f conftest.er1 conftest.err
  1764. fi
  1765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1766. test $ac_status = 0; } && {
  1767. test -z "$ac_c_werror_flag" ||
  1768. test ! -s conftest.err
  1769. } && test -s conftest$ac_exeext && {
  1770. test "$cross_compiling" = yes ||
  1771. test -x conftest$ac_exeext
  1772. }; then :
  1773. ac_retval=0
  1774. else
  1775. $as_echo "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777. ac_retval=1
  1778. fi
  1779. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1780. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1781. # interfere with the next link command; also delete a directory that is
  1782. # left behind by Apple's compiler. We do this before executing the actions.
  1783. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1784. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1785. as_fn_set_status $ac_retval
  1786. } # ac_fn_c_try_link
  1787. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1788. # -------------------------------------------------------
  1789. # Tests whether HEADER exists and can be compiled using the include files in
  1790. # INCLUDES, setting the cache variable VAR accordingly.
  1791. ac_fn_c_check_header_compile ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1800. /* end confdefs.h. */
  1801. $4
  1802. #include <$2>
  1803. _ACEOF
  1804. if ac_fn_c_try_compile "$LINENO"; then :
  1805. eval "$3=yes"
  1806. else
  1807. eval "$3=no"
  1808. fi
  1809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1810. fi
  1811. eval ac_res=\$$3
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1813. $as_echo "$ac_res" >&6; }
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. } # ac_fn_c_check_header_compile
  1816. # ac_fn_c_try_cpp LINENO
  1817. # ----------------------
  1818. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1819. ac_fn_c_try_cpp ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1823. case "(($ac_try" in
  1824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1825. *) ac_try_echo=$ac_try;;
  1826. esac
  1827. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1828. $as_echo "$ac_try_echo"; } >&5
  1829. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1830. ac_status=$?
  1831. if test -s conftest.err; then
  1832. grep -v '^ *+' conftest.err >conftest.er1
  1833. cat conftest.er1 >&5
  1834. mv -f conftest.er1 conftest.err
  1835. fi
  1836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1837. test $ac_status = 0; } > conftest.i && {
  1838. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1839. test ! -s conftest.err
  1840. }; then :
  1841. ac_retval=0
  1842. else
  1843. $as_echo "$as_me: failed program was:" >&5
  1844. sed 's/^/| /' conftest.$ac_ext >&5
  1845. ac_retval=1
  1846. fi
  1847. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1848. as_fn_set_status $ac_retval
  1849. } # ac_fn_c_try_cpp
  1850. # ac_fn_c_try_run LINENO
  1851. # ----------------------
  1852. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1853. # that executables *can* be run.
  1854. ac_fn_c_try_run ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. if { { ac_try="$ac_link"
  1858. case "(($ac_try" in
  1859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1860. *) ac_try_echo=$ac_try;;
  1861. esac
  1862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1863. $as_echo "$ac_try_echo"; } >&5
  1864. (eval "$ac_link") 2>&5
  1865. ac_status=$?
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1868. { { case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_try") 2>&5
  1875. ac_status=$?
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; }; }; then :
  1878. ac_retval=0
  1879. else
  1880. $as_echo "$as_me: program exited with status $ac_status" >&5
  1881. $as_echo "$as_me: failed program was:" >&5
  1882. sed 's/^/| /' conftest.$ac_ext >&5
  1883. ac_retval=$ac_status
  1884. fi
  1885. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1886. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1887. as_fn_set_status $ac_retval
  1888. } # ac_fn_c_try_run
  1889. # ac_fn_c_check_func LINENO FUNC VAR
  1890. # ----------------------------------
  1891. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1892. ac_fn_c_check_func ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1896. $as_echo_n "checking for $2... " >&6; }
  1897. if eval \${$3+:} false; then :
  1898. $as_echo_n "(cached) " >&6
  1899. else
  1900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1901. /* end confdefs.h. */
  1902. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1904. #define $2 innocuous_$2
  1905. /* System header to define __stub macros and hopefully few prototypes,
  1906. which can conflict with char $2 (); below.
  1907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1908. <limits.h> exists even on freestanding compilers. */
  1909. #ifdef __STDC__
  1910. # include <limits.h>
  1911. #else
  1912. # include <assert.h>
  1913. #endif
  1914. #undef $2
  1915. /* Override any GCC internal prototype to avoid an error.
  1916. Use char because int might match the return type of a GCC
  1917. builtin and then its argument prototype would still apply. */
  1918. #ifdef __cplusplus
  1919. extern "C"
  1920. #endif
  1921. char $2 ();
  1922. /* The GNU C library defines this for functions which it implements
  1923. to always fail with ENOSYS. Some functions are actually named
  1924. something starting with __ and the normal name is an alias. */
  1925. #if defined __stub_$2 || defined __stub___$2
  1926. choke me
  1927. #endif
  1928. int
  1929. main ()
  1930. {
  1931. return $2 ();
  1932. ;
  1933. return 0;
  1934. }
  1935. _ACEOF
  1936. if ac_fn_c_try_link "$LINENO"; then :
  1937. eval "$3=yes"
  1938. else
  1939. eval "$3=no"
  1940. fi
  1941. rm -f core conftest.err conftest.$ac_objext \
  1942. conftest$ac_exeext conftest.$ac_ext
  1943. fi
  1944. eval ac_res=\$$3
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1946. $as_echo "$ac_res" >&6; }
  1947. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1948. } # ac_fn_c_check_func
  1949. # ac_fn_cxx_try_compile LINENO
  1950. # ----------------------------
  1951. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1952. ac_fn_cxx_try_compile ()
  1953. {
  1954. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1955. rm -f conftest.$ac_objext
  1956. if { { ac_try="$ac_compile"
  1957. case "(($ac_try" in
  1958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1959. *) ac_try_echo=$ac_try;;
  1960. esac
  1961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1962. $as_echo "$ac_try_echo"; } >&5
  1963. (eval "$ac_compile") 2>conftest.err
  1964. ac_status=$?
  1965. if test -s conftest.err; then
  1966. grep -v '^ *+' conftest.err >conftest.er1
  1967. cat conftest.er1 >&5
  1968. mv -f conftest.er1 conftest.err
  1969. fi
  1970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1971. test $ac_status = 0; } && {
  1972. test -z "$ac_cxx_werror_flag" ||
  1973. test ! -s conftest.err
  1974. } && test -s conftest.$ac_objext; then :
  1975. ac_retval=0
  1976. else
  1977. $as_echo "$as_me: failed program was:" >&5
  1978. sed 's/^/| /' conftest.$ac_ext >&5
  1979. ac_retval=1
  1980. fi
  1981. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1982. as_fn_set_status $ac_retval
  1983. } # ac_fn_cxx_try_compile
  1984. # ac_fn_cxx_try_cpp LINENO
  1985. # ------------------------
  1986. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1987. ac_fn_cxx_try_cpp ()
  1988. {
  1989. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1990. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1991. case "(($ac_try" in
  1992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1993. *) ac_try_echo=$ac_try;;
  1994. esac
  1995. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1996. $as_echo "$ac_try_echo"; } >&5
  1997. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1998. ac_status=$?
  1999. if test -s conftest.err; then
  2000. grep -v '^ *+' conftest.err >conftest.er1
  2001. cat conftest.er1 >&5
  2002. mv -f conftest.er1 conftest.err
  2003. fi
  2004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2005. test $ac_status = 0; } > conftest.i && {
  2006. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2007. test ! -s conftest.err
  2008. }; then :
  2009. ac_retval=0
  2010. else
  2011. $as_echo "$as_me: failed program was:" >&5
  2012. sed 's/^/| /' conftest.$ac_ext >&5
  2013. ac_retval=1
  2014. fi
  2015. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2016. as_fn_set_status $ac_retval
  2017. } # ac_fn_cxx_try_cpp
  2018. # ac_fn_cxx_try_link LINENO
  2019. # -------------------------
  2020. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2021. ac_fn_cxx_try_link ()
  2022. {
  2023. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { { ac_try="$ac_link"
  2026. case "(($ac_try" in
  2027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2028. *) ac_try_echo=$ac_try;;
  2029. esac
  2030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2031. $as_echo "$ac_try_echo"; } >&5
  2032. (eval "$ac_link") 2>conftest.err
  2033. ac_status=$?
  2034. if test -s conftest.err; then
  2035. grep -v '^ *+' conftest.err >conftest.er1
  2036. cat conftest.er1 >&5
  2037. mv -f conftest.er1 conftest.err
  2038. fi
  2039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2040. test $ac_status = 0; } && {
  2041. test -z "$ac_cxx_werror_flag" ||
  2042. test ! -s conftest.err
  2043. } && test -s conftest$ac_exeext && {
  2044. test "$cross_compiling" = yes ||
  2045. test -x conftest$ac_exeext
  2046. }; then :
  2047. ac_retval=0
  2048. else
  2049. $as_echo "$as_me: failed program was:" >&5
  2050. sed 's/^/| /' conftest.$ac_ext >&5
  2051. ac_retval=1
  2052. fi
  2053. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2054. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2055. # interfere with the next link command; also delete a directory that is
  2056. # left behind by Apple's compiler. We do this before executing the actions.
  2057. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2058. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2059. as_fn_set_status $ac_retval
  2060. } # ac_fn_cxx_try_link
  2061. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2062. # -------------------------------------------------------
  2063. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2064. # the include files in INCLUDES and setting the cache variable VAR
  2065. # accordingly.
  2066. ac_fn_c_check_header_mongrel ()
  2067. {
  2068. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2069. if eval \${$3+:} false; then :
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2071. $as_echo_n "checking for $2... " >&6; }
  2072. if eval \${$3+:} false; then :
  2073. $as_echo_n "(cached) " >&6
  2074. fi
  2075. eval ac_res=\$$3
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2077. $as_echo "$ac_res" >&6; }
  2078. else
  2079. # Is the header compilable?
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2081. $as_echo_n "checking $2 usability... " >&6; }
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $4
  2085. #include <$2>
  2086. _ACEOF
  2087. if ac_fn_c_try_compile "$LINENO"; then :
  2088. ac_header_compiler=yes
  2089. else
  2090. ac_header_compiler=no
  2091. fi
  2092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2094. $as_echo "$ac_header_compiler" >&6; }
  2095. # Is the header present?
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2097. $as_echo_n "checking $2 presence... " >&6; }
  2098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2099. /* end confdefs.h. */
  2100. #include <$2>
  2101. _ACEOF
  2102. if ac_fn_c_try_cpp "$LINENO"; then :
  2103. ac_header_preproc=yes
  2104. else
  2105. ac_header_preproc=no
  2106. fi
  2107. rm -f conftest.err conftest.i conftest.$ac_ext
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2109. $as_echo "$ac_header_preproc" >&6; }
  2110. # So? What about this header?
  2111. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2112. yes:no: )
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2114. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2116. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2117. ;;
  2118. no:yes:* )
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2120. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2122. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2124. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2126. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2128. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2129. ;;
  2130. esac
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2132. $as_echo_n "checking for $2... " >&6; }
  2133. if eval \${$3+:} false; then :
  2134. $as_echo_n "(cached) " >&6
  2135. else
  2136. eval "$3=\$ac_header_compiler"
  2137. fi
  2138. eval ac_res=\$$3
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2140. $as_echo "$ac_res" >&6; }
  2141. fi
  2142. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2143. } # ac_fn_c_check_header_mongrel
  2144. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2145. # -------------------------------------------
  2146. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2147. # variable VAR accordingly.
  2148. ac_fn_c_check_type ()
  2149. {
  2150. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2152. $as_echo_n "checking for $2... " >&6; }
  2153. if eval \${$3+:} false; then :
  2154. $as_echo_n "(cached) " >&6
  2155. else
  2156. eval "$3=no"
  2157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2158. /* end confdefs.h. */
  2159. $4
  2160. int
  2161. main ()
  2162. {
  2163. if (sizeof ($2))
  2164. return 0;
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. if ac_fn_c_try_compile "$LINENO"; then :
  2170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2171. /* end confdefs.h. */
  2172. $4
  2173. int
  2174. main ()
  2175. {
  2176. if (sizeof (($2)))
  2177. return 0;
  2178. ;
  2179. return 0;
  2180. }
  2181. _ACEOF
  2182. if ac_fn_c_try_compile "$LINENO"; then :
  2183. else
  2184. eval "$3=yes"
  2185. fi
  2186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2187. fi
  2188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2189. fi
  2190. eval ac_res=\$$3
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2192. $as_echo "$ac_res" >&6; }
  2193. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2194. } # ac_fn_c_check_type
  2195. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2196. # ----------------------------------------------------
  2197. # Tries to find if the field MEMBER exists in type AGGR, after including
  2198. # INCLUDES, setting cache variable VAR accordingly.
  2199. ac_fn_c_check_member ()
  2200. {
  2201. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2203. $as_echo_n "checking for $2.$3... " >&6; }
  2204. if eval \${$4+:} false; then :
  2205. $as_echo_n "(cached) " >&6
  2206. else
  2207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2208. /* end confdefs.h. */
  2209. $5
  2210. int
  2211. main ()
  2212. {
  2213. static $2 ac_aggr;
  2214. if (ac_aggr.$3)
  2215. return 0;
  2216. ;
  2217. return 0;
  2218. }
  2219. _ACEOF
  2220. if ac_fn_c_try_compile "$LINENO"; then :
  2221. eval "$4=yes"
  2222. else
  2223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2224. /* end confdefs.h. */
  2225. $5
  2226. int
  2227. main ()
  2228. {
  2229. static $2 ac_aggr;
  2230. if (sizeof ac_aggr.$3)
  2231. return 0;
  2232. ;
  2233. return 0;
  2234. }
  2235. _ACEOF
  2236. if ac_fn_c_try_compile "$LINENO"; then :
  2237. eval "$4=yes"
  2238. else
  2239. eval "$4=no"
  2240. fi
  2241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2242. fi
  2243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2244. fi
  2245. eval ac_res=\$$4
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2247. $as_echo "$ac_res" >&6; }
  2248. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2249. } # ac_fn_c_check_member
  2250. cat >config.log <<_ACEOF
  2251. This file contains any messages produced by compilers while
  2252. running configure, to aid debugging if configure makes a mistake.
  2253. It was created by $as_me, which was
  2254. generated by GNU Autoconf 2.69. Invocation command line was
  2255. $ $0 $@
  2256. _ACEOF
  2257. exec 5>>config.log
  2258. {
  2259. cat <<_ASUNAME
  2260. ## --------- ##
  2261. ## Platform. ##
  2262. ## --------- ##
  2263. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2264. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2265. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2266. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2267. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2268. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2269. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2270. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2271. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2272. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2273. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2274. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2275. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2276. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2277. _ASUNAME
  2278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. for as_dir in $PATH
  2280. do
  2281. IFS=$as_save_IFS
  2282. test -z "$as_dir" && as_dir=.
  2283. $as_echo "PATH: $as_dir"
  2284. done
  2285. IFS=$as_save_IFS
  2286. } >&5
  2287. cat >&5 <<_ACEOF
  2288. ## ----------- ##
  2289. ## Core tests. ##
  2290. ## ----------- ##
  2291. _ACEOF
  2292. # Keep a trace of the command line.
  2293. # Strip out --no-create and --no-recursion so they do not pile up.
  2294. # Strip out --silent because we don't want to record it for future runs.
  2295. # Also quote any args containing shell meta-characters.
  2296. # Make two passes to allow for proper duplicate-argument suppression.
  2297. ac_configure_args=
  2298. ac_configure_args0=
  2299. ac_configure_args1=
  2300. ac_must_keep_next=false
  2301. for ac_pass in 1 2
  2302. do
  2303. for ac_arg
  2304. do
  2305. case $ac_arg in
  2306. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2307. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2308. | -silent | --silent | --silen | --sile | --sil)
  2309. continue ;;
  2310. *\'*)
  2311. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2312. esac
  2313. case $ac_pass in
  2314. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2315. 2)
  2316. as_fn_append ac_configure_args1 " '$ac_arg'"
  2317. if test $ac_must_keep_next = true; then
  2318. ac_must_keep_next=false # Got value, back to normal.
  2319. else
  2320. case $ac_arg in
  2321. *=* | --config-cache | -C | -disable-* | --disable-* \
  2322. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2323. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2324. | -with-* | --with-* | -without-* | --without-* | --x)
  2325. case "$ac_configure_args0 " in
  2326. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2327. esac
  2328. ;;
  2329. -* ) ac_must_keep_next=true ;;
  2330. esac
  2331. fi
  2332. as_fn_append ac_configure_args " '$ac_arg'"
  2333. ;;
  2334. esac
  2335. done
  2336. done
  2337. { ac_configure_args0=; unset ac_configure_args0;}
  2338. { ac_configure_args1=; unset ac_configure_args1;}
  2339. # When interrupted or exit'd, cleanup temporary files, and complete
  2340. # config.log. We remove comments because anyway the quotes in there
  2341. # would cause problems or look ugly.
  2342. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2343. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2344. trap 'exit_status=$?
  2345. # Save into config.log some information that might help in debugging.
  2346. {
  2347. echo
  2348. $as_echo "## ---------------- ##
  2349. ## Cache variables. ##
  2350. ## ---------------- ##"
  2351. echo
  2352. # The following way of writing the cache mishandles newlines in values,
  2353. (
  2354. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2355. eval ac_val=\$$ac_var
  2356. case $ac_val in #(
  2357. *${as_nl}*)
  2358. case $ac_var in #(
  2359. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2360. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2361. esac
  2362. case $ac_var in #(
  2363. _ | IFS | as_nl) ;; #(
  2364. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2365. *) { eval $ac_var=; unset $ac_var;} ;;
  2366. esac ;;
  2367. esac
  2368. done
  2369. (set) 2>&1 |
  2370. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2371. *${as_nl}ac_space=\ *)
  2372. sed -n \
  2373. "s/'\''/'\''\\\\'\'''\''/g;
  2374. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2375. ;; #(
  2376. *)
  2377. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2378. ;;
  2379. esac |
  2380. sort
  2381. )
  2382. echo
  2383. $as_echo "## ----------------- ##
  2384. ## Output variables. ##
  2385. ## ----------------- ##"
  2386. echo
  2387. for ac_var in $ac_subst_vars
  2388. do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in
  2391. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2392. esac
  2393. $as_echo "$ac_var='\''$ac_val'\''"
  2394. done | sort
  2395. echo
  2396. if test -n "$ac_subst_files"; then
  2397. $as_echo "## ------------------- ##
  2398. ## File substitutions. ##
  2399. ## ------------------- ##"
  2400. echo
  2401. for ac_var in $ac_subst_files
  2402. do
  2403. eval ac_val=\$$ac_var
  2404. case $ac_val in
  2405. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2406. esac
  2407. $as_echo "$ac_var='\''$ac_val'\''"
  2408. done | sort
  2409. echo
  2410. fi
  2411. if test -s confdefs.h; then
  2412. $as_echo "## ----------- ##
  2413. ## confdefs.h. ##
  2414. ## ----------- ##"
  2415. echo
  2416. cat confdefs.h
  2417. echo
  2418. fi
  2419. test "$ac_signal" != 0 &&
  2420. $as_echo "$as_me: caught signal $ac_signal"
  2421. $as_echo "$as_me: exit $exit_status"
  2422. } >&5
  2423. rm -f core *.core core.conftest.* &&
  2424. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2425. exit $exit_status
  2426. ' 0
  2427. for ac_signal in 1 2 13 15; do
  2428. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2429. done
  2430. ac_signal=0
  2431. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2432. rm -f -r conftest* confdefs.h
  2433. $as_echo "/* confdefs.h */" > confdefs.h
  2434. # Predefined preprocessor variables.
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_NAME "$PACKAGE_NAME"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2440. _ACEOF
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_STRING "$PACKAGE_STRING"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2449. _ACEOF
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_URL "$PACKAGE_URL"
  2452. _ACEOF
  2453. # Let the site file select an alternate cache file if it wants to.
  2454. # Prefer an explicitly selected file to automatically selected ones.
  2455. ac_site_file1=NONE
  2456. ac_site_file2=NONE
  2457. if test -n "$CONFIG_SITE"; then
  2458. # We do not want a PATH search for config.site.
  2459. case $CONFIG_SITE in #((
  2460. -*) ac_site_file1=./$CONFIG_SITE;;
  2461. */*) ac_site_file1=$CONFIG_SITE;;
  2462. *) ac_site_file1=./$CONFIG_SITE;;
  2463. esac
  2464. elif test "x$prefix" != xNONE; then
  2465. ac_site_file1=$prefix/share/config.site
  2466. ac_site_file2=$prefix/etc/config.site
  2467. else
  2468. ac_site_file1=$ac_default_prefix/share/config.site
  2469. ac_site_file2=$ac_default_prefix/etc/config.site
  2470. fi
  2471. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2472. do
  2473. test "x$ac_site_file" = xNONE && continue
  2474. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2476. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2477. sed 's/^/| /' "$ac_site_file" >&5
  2478. . "$ac_site_file" \
  2479. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2481. as_fn_error $? "failed to load site script $ac_site_file
  2482. See \`config.log' for more details" "$LINENO" 5; }
  2483. fi
  2484. done
  2485. if test -r "$cache_file"; then
  2486. # Some versions of bash will fail to source /dev/null (special files
  2487. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2488. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2490. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2491. case $cache_file in
  2492. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2493. *) . "./$cache_file";;
  2494. esac
  2495. fi
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2498. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2499. >$cache_file
  2500. fi
  2501. # Check that the precious variables saved in the cache have kept the same
  2502. # value.
  2503. ac_cache_corrupted=false
  2504. for ac_var in $ac_precious_vars; do
  2505. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2506. eval ac_new_set=\$ac_env_${ac_var}_set
  2507. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2508. eval ac_new_val=\$ac_env_${ac_var}_value
  2509. case $ac_old_set,$ac_new_set in
  2510. set,)
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2512. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2513. ac_cache_corrupted=: ;;
  2514. ,set)
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2516. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2517. ac_cache_corrupted=: ;;
  2518. ,);;
  2519. *)
  2520. if test "x$ac_old_val" != "x$ac_new_val"; then
  2521. # differences in whitespace do not lead to failure.
  2522. ac_old_val_w=`echo x $ac_old_val`
  2523. ac_new_val_w=`echo x $ac_new_val`
  2524. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2526. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2527. ac_cache_corrupted=:
  2528. else
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2530. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2531. eval $ac_var=\$ac_old_val
  2532. fi
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2534. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2536. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2537. fi;;
  2538. esac
  2539. # Pass precious variables to config.status.
  2540. if test "$ac_new_set" = set; then
  2541. case $ac_new_val in
  2542. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2543. *) ac_arg=$ac_var=$ac_new_val ;;
  2544. esac
  2545. case " $ac_configure_args " in
  2546. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2547. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2548. esac
  2549. fi
  2550. done
  2551. if $ac_cache_corrupted; then
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2555. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2556. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2557. fi
  2558. ## -------------------- ##
  2559. ## Main body of script. ##
  2560. ## -------------------- ##
  2561. ac_ext=c
  2562. ac_cpp='$CPP $CPPFLAGS'
  2563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2566. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2567. ac_aux_dir=
  2568. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2569. if test -f "$ac_dir/install-sh"; then
  2570. ac_aux_dir=$ac_dir
  2571. ac_install_sh="$ac_aux_dir/install-sh -c"
  2572. break
  2573. elif test -f "$ac_dir/install.sh"; then
  2574. ac_aux_dir=$ac_dir
  2575. ac_install_sh="$ac_aux_dir/install.sh -c"
  2576. break
  2577. elif test -f "$ac_dir/shtool"; then
  2578. ac_aux_dir=$ac_dir
  2579. ac_install_sh="$ac_aux_dir/shtool install -c"
  2580. break
  2581. fi
  2582. done
  2583. if test -z "$ac_aux_dir"; then
  2584. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2585. fi
  2586. # These three variables are undocumented and unsupported,
  2587. # and are intended to be withdrawn in a future Autoconf release.
  2588. # They can cause serious problems if a builder's source tree is in a directory
  2589. # whose full name contains unusual characters.
  2590. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2591. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2592. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2593. orig_CFLAGS="$CFLAGS"
  2594. #
  2595. # Making releases:
  2596. # Edit include/SDL_version.h and change the version, then:
  2597. # SDL_MICRO_VERSION += 1;
  2598. # SDL_INTERFACE_AGE += 1;
  2599. # SDL_BINARY_AGE += 1;
  2600. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2601. # if backwards compatibility has been broken,
  2602. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2603. #
  2604. SDL_MAJOR_VERSION=2
  2605. SDL_MINOR_VERSION=0
  2606. SDL_MICRO_VERSION=13
  2607. SDL_INTERFACE_AGE=1
  2608. SDL_BINARY_AGE=13
  2609. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2610. # libtool versioning
  2611. case `pwd` in
  2612. *\ * | *\ *)
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2614. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2615. esac
  2616. macro_version='2.4.2'
  2617. macro_revision='1.3337'
  2618. ltmain="$ac_aux_dir/ltmain.sh"
  2619. # Make sure we can run config.sub.
  2620. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2621. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2623. $as_echo_n "checking build system type... " >&6; }
  2624. if ${ac_cv_build+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. ac_build_alias=$build_alias
  2628. test "x$ac_build_alias" = x &&
  2629. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2630. test "x$ac_build_alias" = x &&
  2631. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2632. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2633. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2634. fi
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2636. $as_echo "$ac_cv_build" >&6; }
  2637. case $ac_cv_build in
  2638. *-*-*) ;;
  2639. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2640. esac
  2641. build=$ac_cv_build
  2642. ac_save_IFS=$IFS; IFS='-'
  2643. set x $ac_cv_build
  2644. shift
  2645. build_cpu=$1
  2646. build_vendor=$2
  2647. shift; shift
  2648. # Remember, the first character of IFS is used to create $*,
  2649. # except with old shells:
  2650. build_os=$*
  2651. IFS=$ac_save_IFS
  2652. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2654. $as_echo_n "checking host system type... " >&6; }
  2655. if ${ac_cv_host+:} false; then :
  2656. $as_echo_n "(cached) " >&6
  2657. else
  2658. if test "x$host_alias" = x; then
  2659. ac_cv_host=$ac_cv_build
  2660. else
  2661. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2662. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2663. fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2666. $as_echo "$ac_cv_host" >&6; }
  2667. case $ac_cv_host in
  2668. *-*-*) ;;
  2669. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2670. esac
  2671. host=$ac_cv_host
  2672. ac_save_IFS=$IFS; IFS='-'
  2673. set x $ac_cv_host
  2674. shift
  2675. host_cpu=$1
  2676. host_vendor=$2
  2677. shift; shift
  2678. # Remember, the first character of IFS is used to create $*,
  2679. # except with old shells:
  2680. host_os=$*
  2681. IFS=$ac_save_IFS
  2682. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2683. # Backslashify metacharacters that are still active within
  2684. # double-quoted strings.
  2685. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2686. # Same as above, but do not quote variable references.
  2687. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2688. # Sed substitution to delay expansion of an escaped shell variable in a
  2689. # double_quote_subst'ed string.
  2690. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2691. # Sed substitution to delay expansion of an escaped single quote.
  2692. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2693. # Sed substitution to avoid accidental globbing in evaled expressions
  2694. no_glob_subst='s/\*/\\\*/g'
  2695. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2696. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2697. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2699. $as_echo_n "checking how to print strings... " >&6; }
  2700. # Test print first, because it will be a builtin if present.
  2701. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2702. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2703. ECHO='print -r --'
  2704. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2705. ECHO='printf %s\n'
  2706. else
  2707. # Use this function as a fallback that always works.
  2708. func_fallback_echo ()
  2709. {
  2710. eval 'cat <<_LTECHO_EOF
  2711. $1
  2712. _LTECHO_EOF'
  2713. }
  2714. ECHO='func_fallback_echo'
  2715. fi
  2716. # func_echo_all arg...
  2717. # Invoke $ECHO with all args, space-separated.
  2718. func_echo_all ()
  2719. {
  2720. $ECHO ""
  2721. }
  2722. case "$ECHO" in
  2723. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2724. $as_echo "printf" >&6; } ;;
  2725. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2726. $as_echo "print -r" >&6; } ;;
  2727. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2728. $as_echo "cat" >&6; } ;;
  2729. esac
  2730. ac_ext=c
  2731. ac_cpp='$CPP $CPPFLAGS'
  2732. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2733. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2734. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2735. if test -n "$ac_tool_prefix"; then
  2736. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2737. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2739. $as_echo_n "checking for $ac_word... " >&6; }
  2740. if ${ac_cv_prog_CC+:} false; then :
  2741. $as_echo_n "(cached) " >&6
  2742. else
  2743. if test -n "$CC"; then
  2744. ac_cv_prog_CC="$CC" # Let the user override the test.
  2745. else
  2746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2747. for as_dir in $PATH
  2748. do
  2749. IFS=$as_save_IFS
  2750. test -z "$as_dir" && as_dir=.
  2751. for ac_exec_ext in '' $ac_executable_extensions; do
  2752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2753. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2755. break 2
  2756. fi
  2757. done
  2758. done
  2759. IFS=$as_save_IFS
  2760. fi
  2761. fi
  2762. CC=$ac_cv_prog_CC
  2763. if test -n "$CC"; then
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2765. $as_echo "$CC" >&6; }
  2766. else
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2768. $as_echo "no" >&6; }
  2769. fi
  2770. fi
  2771. if test -z "$ac_cv_prog_CC"; then
  2772. ac_ct_CC=$CC
  2773. # Extract the first word of "gcc", so it can be a program name with args.
  2774. set dummy gcc; ac_word=$2
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2776. $as_echo_n "checking for $ac_word... " >&6; }
  2777. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2778. $as_echo_n "(cached) " >&6
  2779. else
  2780. if test -n "$ac_ct_CC"; then
  2781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2790. ac_cv_prog_ac_ct_CC="gcc"
  2791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2800. if test -n "$ac_ct_CC"; then
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2802. $as_echo "$ac_ct_CC" >&6; }
  2803. else
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2805. $as_echo "no" >&6; }
  2806. fi
  2807. if test "x$ac_ct_CC" = x; then
  2808. CC=""
  2809. else
  2810. case $cross_compiling:$ac_tool_warned in
  2811. yes:)
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2814. ac_tool_warned=yes ;;
  2815. esac
  2816. CC=$ac_ct_CC
  2817. fi
  2818. else
  2819. CC="$ac_cv_prog_CC"
  2820. fi
  2821. if test -z "$CC"; then
  2822. if test -n "$ac_tool_prefix"; then
  2823. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2824. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2826. $as_echo_n "checking for $ac_word... " >&6; }
  2827. if ${ac_cv_prog_CC+:} false; then :
  2828. $as_echo_n "(cached) " >&6
  2829. else
  2830. if test -n "$CC"; then
  2831. ac_cv_prog_CC="$CC" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. test -z "$as_dir" && as_dir=.
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2840. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. CC=$ac_cv_prog_CC
  2850. if test -n "$CC"; then
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2852. $as_echo "$CC" >&6; }
  2853. else
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. $as_echo "no" >&6; }
  2856. fi
  2857. fi
  2858. fi
  2859. if test -z "$CC"; then
  2860. # Extract the first word of "cc", so it can be a program name with args.
  2861. set dummy cc; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if ${ac_cv_prog_CC+:} false; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. ac_prog_rejected=no
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2878. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2879. ac_prog_rejected=yes
  2880. continue
  2881. fi
  2882. ac_cv_prog_CC="cc"
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. if test $ac_prog_rejected = yes; then
  2890. # We found a bogon in the path, so make sure we never use it.
  2891. set dummy $ac_cv_prog_CC
  2892. shift
  2893. if test $# != 0; then
  2894. # We chose a different compiler from the bogus one.
  2895. # However, it has the same basename, so the bogon will be chosen
  2896. # first if we set CC to just the basename; use the full file name.
  2897. shift
  2898. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2899. fi
  2900. fi
  2901. fi
  2902. fi
  2903. CC=$ac_cv_prog_CC
  2904. if test -n "$CC"; then
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2906. $as_echo "$CC" >&6; }
  2907. else
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2909. $as_echo "no" >&6; }
  2910. fi
  2911. fi
  2912. if test -z "$CC"; then
  2913. if test -n "$ac_tool_prefix"; then
  2914. for ac_prog in cl.exe
  2915. do
  2916. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2917. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if ${ac_cv_prog_CC+:} false; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$CC"; then
  2924. ac_cv_prog_CC="$CC" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2933. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. CC=$ac_cv_prog_CC
  2943. if test -n "$CC"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2945. $as_echo "$CC" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. test -n "$CC" && break
  2951. done
  2952. fi
  2953. if test -z "$CC"; then
  2954. ac_ct_CC=$CC
  2955. for ac_prog in cl.exe
  2956. do
  2957. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2958. set dummy $ac_prog; ac_word=$2
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2960. $as_echo_n "checking for $ac_word... " >&6; }
  2961. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. if test -n "$ac_ct_CC"; then
  2965. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2966. else
  2967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2968. for as_dir in $PATH
  2969. do
  2970. IFS=$as_save_IFS
  2971. test -z "$as_dir" && as_dir=.
  2972. for ac_exec_ext in '' $ac_executable_extensions; do
  2973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2974. ac_cv_prog_ac_ct_CC="$ac_prog"
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2976. break 2
  2977. fi
  2978. done
  2979. done
  2980. IFS=$as_save_IFS
  2981. fi
  2982. fi
  2983. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2984. if test -n "$ac_ct_CC"; then
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2986. $as_echo "$ac_ct_CC" >&6; }
  2987. else
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. fi
  2991. test -n "$ac_ct_CC" && break
  2992. done
  2993. if test "x$ac_ct_CC" = x; then
  2994. CC=""
  2995. else
  2996. case $cross_compiling:$ac_tool_warned in
  2997. yes:)
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3000. ac_tool_warned=yes ;;
  3001. esac
  3002. CC=$ac_ct_CC
  3003. fi
  3004. fi
  3005. fi
  3006. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3008. as_fn_error $? "no acceptable C compiler found in \$PATH
  3009. See \`config.log' for more details" "$LINENO" 5; }
  3010. # Provide some information about the compiler.
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3012. set X $ac_compile
  3013. ac_compiler=$2
  3014. for ac_option in --version -v -V -qversion; do
  3015. { { ac_try="$ac_compiler $ac_option >&5"
  3016. case "(($ac_try" in
  3017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3018. *) ac_try_echo=$ac_try;;
  3019. esac
  3020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3021. $as_echo "$ac_try_echo"; } >&5
  3022. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3023. ac_status=$?
  3024. if test -s conftest.err; then
  3025. sed '10a\
  3026. ... rest of stderr output deleted ...
  3027. 10q' conftest.err >conftest.er1
  3028. cat conftest.er1 >&5
  3029. fi
  3030. rm -f conftest.er1 conftest.err
  3031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3032. test $ac_status = 0; }
  3033. done
  3034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3035. /* end confdefs.h. */
  3036. int
  3037. main ()
  3038. {
  3039. ;
  3040. return 0;
  3041. }
  3042. _ACEOF
  3043. ac_clean_files_save=$ac_clean_files
  3044. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3045. # Try to create an executable without -o first, disregard a.out.
  3046. # It will help us diagnose broken compilers, and finding out an intuition
  3047. # of exeext.
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3049. $as_echo_n "checking whether the C compiler works... " >&6; }
  3050. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3051. # The possible output files:
  3052. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3053. ac_rmfiles=
  3054. for ac_file in $ac_files
  3055. do
  3056. case $ac_file in
  3057. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3058. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3059. esac
  3060. done
  3061. rm -f $ac_rmfiles
  3062. if { { ac_try="$ac_link_default"
  3063. case "(($ac_try" in
  3064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3065. *) ac_try_echo=$ac_try;;
  3066. esac
  3067. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3068. $as_echo "$ac_try_echo"; } >&5
  3069. (eval "$ac_link_default") 2>&5
  3070. ac_status=$?
  3071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3072. test $ac_status = 0; }; then :
  3073. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3074. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3075. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3076. # so that the user can short-circuit this test for compilers unknown to
  3077. # Autoconf.
  3078. for ac_file in $ac_files ''
  3079. do
  3080. test -f "$ac_file" || continue
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3083. ;;
  3084. [ab].out )
  3085. # We found the default executable, but exeext='' is most
  3086. # certainly right.
  3087. break;;
  3088. *.* )
  3089. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3090. then :; else
  3091. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3092. fi
  3093. # We set ac_cv_exeext here because the later test for it is not
  3094. # safe: cross compilers may not add the suffix if given an `-o'
  3095. # argument, so we may need to know it at that point already.
  3096. # Even if this section looks crufty: it has the advantage of
  3097. # actually working.
  3098. break;;
  3099. * )
  3100. break;;
  3101. esac
  3102. done
  3103. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3104. else
  3105. ac_file=''
  3106. fi
  3107. if test -z "$ac_file"; then :
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3109. $as_echo "no" >&6; }
  3110. $as_echo "$as_me: failed program was:" >&5
  3111. sed 's/^/| /' conftest.$ac_ext >&5
  3112. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3114. as_fn_error 77 "C compiler cannot create executables
  3115. See \`config.log' for more details" "$LINENO" 5; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3118. $as_echo "yes" >&6; }
  3119. fi
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3121. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3123. $as_echo "$ac_file" >&6; }
  3124. ac_exeext=$ac_cv_exeext
  3125. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3126. ac_clean_files=$ac_clean_files_save
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3128. $as_echo_n "checking for suffix of executables... " >&6; }
  3129. if { { ac_try="$ac_link"
  3130. case "(($ac_try" in
  3131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3132. *) ac_try_echo=$ac_try;;
  3133. esac
  3134. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3135. $as_echo "$ac_try_echo"; } >&5
  3136. (eval "$ac_link") 2>&5
  3137. ac_status=$?
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3139. test $ac_status = 0; }; then :
  3140. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3141. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3142. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3143. # `rm'.
  3144. for ac_file in conftest.exe conftest conftest.*; do
  3145. test -f "$ac_file" || continue
  3146. case $ac_file in
  3147. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3148. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3149. break;;
  3150. * ) break;;
  3151. esac
  3152. done
  3153. else
  3154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3156. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3157. See \`config.log' for more details" "$LINENO" 5; }
  3158. fi
  3159. rm -f conftest conftest$ac_cv_exeext
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3161. $as_echo "$ac_cv_exeext" >&6; }
  3162. rm -f conftest.$ac_ext
  3163. EXEEXT=$ac_cv_exeext
  3164. ac_exeext=$EXEEXT
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. #include <stdio.h>
  3168. int
  3169. main ()
  3170. {
  3171. FILE *f = fopen ("conftest.out", "w");
  3172. return ferror (f) || fclose (f) != 0;
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. ac_clean_files="$ac_clean_files conftest.out"
  3178. # Check that the compiler produces executables we can run. If not, either
  3179. # the compiler is broken, or we cross compile.
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3181. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3182. if test "$cross_compiling" != yes; then
  3183. { { ac_try="$ac_link"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_link") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }
  3194. if { ac_try='./conftest$ac_cv_exeext'
  3195. { { case "(($ac_try" in
  3196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3197. *) ac_try_echo=$ac_try;;
  3198. esac
  3199. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3200. $as_echo "$ac_try_echo"; } >&5
  3201. (eval "$ac_try") 2>&5
  3202. ac_status=$?
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3204. test $ac_status = 0; }; }; then
  3205. cross_compiling=no
  3206. else
  3207. if test "$cross_compiling" = maybe; then
  3208. cross_compiling=yes
  3209. else
  3210. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3212. as_fn_error $? "cannot run C compiled programs.
  3213. If you meant to cross compile, use \`--host'.
  3214. See \`config.log' for more details" "$LINENO" 5; }
  3215. fi
  3216. fi
  3217. fi
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3219. $as_echo "$cross_compiling" >&6; }
  3220. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3221. ac_clean_files=$ac_clean_files_save
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3223. $as_echo_n "checking for suffix of object files... " >&6; }
  3224. if ${ac_cv_objext+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. rm -f conftest.o conftest.obj
  3237. if { { ac_try="$ac_compile"
  3238. case "(($ac_try" in
  3239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. *) ac_try_echo=$ac_try;;
  3241. esac
  3242. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3243. $as_echo "$ac_try_echo"; } >&5
  3244. (eval "$ac_compile") 2>&5
  3245. ac_status=$?
  3246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3247. test $ac_status = 0; }; then :
  3248. for ac_file in conftest.o conftest.obj conftest.*; do
  3249. test -f "$ac_file" || continue;
  3250. case $ac_file in
  3251. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3252. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3253. break;;
  3254. esac
  3255. done
  3256. else
  3257. $as_echo "$as_me: failed program was:" >&5
  3258. sed 's/^/| /' conftest.$ac_ext >&5
  3259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3261. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3262. See \`config.log' for more details" "$LINENO" 5; }
  3263. fi
  3264. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3265. fi
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3267. $as_echo "$ac_cv_objext" >&6; }
  3268. OBJEXT=$ac_cv_objext
  3269. ac_objext=$OBJEXT
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3271. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3272. if ${ac_cv_c_compiler_gnu+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3276. /* end confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. #ifndef __GNUC__
  3281. choke me
  3282. #endif
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_compiler_gnu=yes
  3289. else
  3290. ac_compiler_gnu=no
  3291. fi
  3292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3293. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3296. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3297. if test $ac_compiler_gnu = yes; then
  3298. GCC=yes
  3299. else
  3300. GCC=
  3301. fi
  3302. ac_test_CFLAGS=${CFLAGS+set}
  3303. ac_save_CFLAGS=$CFLAGS
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3305. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3306. if ${ac_cv_prog_cc_g+:} false; then :
  3307. $as_echo_n "(cached) " >&6
  3308. else
  3309. ac_save_c_werror_flag=$ac_c_werror_flag
  3310. ac_c_werror_flag=yes
  3311. ac_cv_prog_cc_g=no
  3312. CFLAGS="-g"
  3313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end confdefs.h. */
  3315. int
  3316. main ()
  3317. {
  3318. ;
  3319. return 0;
  3320. }
  3321. _ACEOF
  3322. if ac_fn_c_try_compile "$LINENO"; then :
  3323. ac_cv_prog_cc_g=yes
  3324. else
  3325. CFLAGS=""
  3326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3327. /* end confdefs.h. */
  3328. int
  3329. main ()
  3330. {
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_c_try_compile "$LINENO"; then :
  3336. else
  3337. ac_c_werror_flag=$ac_save_c_werror_flag
  3338. CFLAGS="-g"
  3339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3340. /* end confdefs.h. */
  3341. int
  3342. main ()
  3343. {
  3344. ;
  3345. return 0;
  3346. }
  3347. _ACEOF
  3348. if ac_fn_c_try_compile "$LINENO"; then :
  3349. ac_cv_prog_cc_g=yes
  3350. fi
  3351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3352. fi
  3353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. fi
  3355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. ac_c_werror_flag=$ac_save_c_werror_flag
  3357. fi
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3359. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3360. if test "$ac_test_CFLAGS" = set; then
  3361. CFLAGS=$ac_save_CFLAGS
  3362. elif test $ac_cv_prog_cc_g = yes; then
  3363. if test "$GCC" = yes; then
  3364. CFLAGS="-g -O2"
  3365. else
  3366. CFLAGS="-g"
  3367. fi
  3368. else
  3369. if test "$GCC" = yes; then
  3370. CFLAGS="-O2"
  3371. else
  3372. CFLAGS=
  3373. fi
  3374. fi
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3376. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3377. if ${ac_cv_prog_cc_c89+:} false; then :
  3378. $as_echo_n "(cached) " >&6
  3379. else
  3380. ac_cv_prog_cc_c89=no
  3381. ac_save_CC=$CC
  3382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3383. /* end confdefs.h. */
  3384. #include <stdarg.h>
  3385. #include <stdio.h>
  3386. struct stat;
  3387. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3388. struct buf { int x; };
  3389. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3390. static char *e (p, i)
  3391. char **p;
  3392. int i;
  3393. {
  3394. return p[i];
  3395. }
  3396. static char *f (char * (*g) (char **, int), char **p, ...)
  3397. {
  3398. char *s;
  3399. va_list v;
  3400. va_start (v,p);
  3401. s = g (p, va_arg (v,int));
  3402. va_end (v);
  3403. return s;
  3404. }
  3405. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3406. function prototypes and stuff, but not '\xHH' hex character constants.
  3407. These don't provoke an error unfortunately, instead are silently treated
  3408. as 'x'. The following induces an error, until -std is added to get
  3409. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3410. array size at least. It's necessary to write '\x00'==0 to get something
  3411. that's true only with -std. */
  3412. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3413. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3414. inside strings and character constants. */
  3415. #define FOO(x) 'x'
  3416. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3417. int test (int i, double x);
  3418. struct s1 {int (*f) (int a);};
  3419. struct s2 {int (*f) (double a);};
  3420. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3421. int argc;
  3422. char **argv;
  3423. int
  3424. main ()
  3425. {
  3426. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3427. ;
  3428. return 0;
  3429. }
  3430. _ACEOF
  3431. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3432. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3433. do
  3434. CC="$ac_save_CC $ac_arg"
  3435. if ac_fn_c_try_compile "$LINENO"; then :
  3436. ac_cv_prog_cc_c89=$ac_arg
  3437. fi
  3438. rm -f core conftest.err conftest.$ac_objext
  3439. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3440. done
  3441. rm -f conftest.$ac_ext
  3442. CC=$ac_save_CC
  3443. fi
  3444. # AC_CACHE_VAL
  3445. case "x$ac_cv_prog_cc_c89" in
  3446. x)
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3448. $as_echo "none needed" >&6; } ;;
  3449. xno)
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3451. $as_echo "unsupported" >&6; } ;;
  3452. *)
  3453. CC="$CC $ac_cv_prog_cc_c89"
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3455. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3456. esac
  3457. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3458. fi
  3459. ac_ext=c
  3460. ac_cpp='$CPP $CPPFLAGS'
  3461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3465. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3466. if ${ac_cv_path_SED+:} false; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3470. for ac_i in 1 2 3 4 5 6 7; do
  3471. ac_script="$ac_script$as_nl$ac_script"
  3472. done
  3473. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3474. { ac_script=; unset ac_script;}
  3475. if test -z "$SED"; then
  3476. ac_path_SED_found=false
  3477. # Loop through the user's path and test for each of PROGNAME-LIST
  3478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3479. for as_dir in $PATH
  3480. do
  3481. IFS=$as_save_IFS
  3482. test -z "$as_dir" && as_dir=.
  3483. for ac_prog in sed gsed; do
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3486. as_fn_executable_p "$ac_path_SED" || continue
  3487. # Check for GNU ac_path_SED and select it if it is found.
  3488. # Check for GNU $ac_path_SED
  3489. case `"$ac_path_SED" --version 2>&1` in
  3490. *GNU*)
  3491. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3492. *)
  3493. ac_count=0
  3494. $as_echo_n 0123456789 >"conftest.in"
  3495. while :
  3496. do
  3497. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3498. mv "conftest.tmp" "conftest.in"
  3499. cp "conftest.in" "conftest.nl"
  3500. $as_echo '' >> "conftest.nl"
  3501. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3502. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3503. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3504. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3505. # Best one so far, save it but keep looking for a better one
  3506. ac_cv_path_SED="$ac_path_SED"
  3507. ac_path_SED_max=$ac_count
  3508. fi
  3509. # 10*(2^10) chars as input seems more than enough
  3510. test $ac_count -gt 10 && break
  3511. done
  3512. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3513. esac
  3514. $ac_path_SED_found && break 3
  3515. done
  3516. done
  3517. done
  3518. IFS=$as_save_IFS
  3519. if test -z "$ac_cv_path_SED"; then
  3520. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3521. fi
  3522. else
  3523. ac_cv_path_SED=$SED
  3524. fi
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3527. $as_echo "$ac_cv_path_SED" >&6; }
  3528. SED="$ac_cv_path_SED"
  3529. rm -f conftest.sed
  3530. test -z "$SED" && SED=sed
  3531. Xsed="$SED -e 1s/^X//"
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3533. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3534. if ${ac_cv_path_GREP+:} false; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. if test -z "$GREP"; then
  3538. ac_path_GREP_found=false
  3539. # Loop through the user's path and test for each of PROGNAME-LIST
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3542. do
  3543. IFS=$as_save_IFS
  3544. test -z "$as_dir" && as_dir=.
  3545. for ac_prog in grep ggrep; do
  3546. for ac_exec_ext in '' $ac_executable_extensions; do
  3547. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3548. as_fn_executable_p "$ac_path_GREP" || continue
  3549. # Check for GNU ac_path_GREP and select it if it is found.
  3550. # Check for GNU $ac_path_GREP
  3551. case `"$ac_path_GREP" --version 2>&1` in
  3552. *GNU*)
  3553. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3554. *)
  3555. ac_count=0
  3556. $as_echo_n 0123456789 >"conftest.in"
  3557. while :
  3558. do
  3559. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3560. mv "conftest.tmp" "conftest.in"
  3561. cp "conftest.in" "conftest.nl"
  3562. $as_echo 'GREP' >> "conftest.nl"
  3563. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3564. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3565. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3566. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3567. # Best one so far, save it but keep looking for a better one
  3568. ac_cv_path_GREP="$ac_path_GREP"
  3569. ac_path_GREP_max=$ac_count
  3570. fi
  3571. # 10*(2^10) chars as input seems more than enough
  3572. test $ac_count -gt 10 && break
  3573. done
  3574. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3575. esac
  3576. $ac_path_GREP_found && break 3
  3577. done
  3578. done
  3579. done
  3580. IFS=$as_save_IFS
  3581. if test -z "$ac_cv_path_GREP"; then
  3582. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3583. fi
  3584. else
  3585. ac_cv_path_GREP=$GREP
  3586. fi
  3587. fi
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3589. $as_echo "$ac_cv_path_GREP" >&6; }
  3590. GREP="$ac_cv_path_GREP"
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3592. $as_echo_n "checking for egrep... " >&6; }
  3593. if ${ac_cv_path_EGREP+:} false; then :
  3594. $as_echo_n "(cached) " >&6
  3595. else
  3596. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3597. then ac_cv_path_EGREP="$GREP -E"
  3598. else
  3599. if test -z "$EGREP"; then
  3600. ac_path_EGREP_found=false
  3601. # Loop through the user's path and test for each of PROGNAME-LIST
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3604. do
  3605. IFS=$as_save_IFS
  3606. test -z "$as_dir" && as_dir=.
  3607. for ac_prog in egrep; do
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3610. as_fn_executable_p "$ac_path_EGREP" || continue
  3611. # Check for GNU ac_path_EGREP and select it if it is found.
  3612. # Check for GNU $ac_path_EGREP
  3613. case `"$ac_path_EGREP" --version 2>&1` in
  3614. *GNU*)
  3615. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3616. *)
  3617. ac_count=0
  3618. $as_echo_n 0123456789 >"conftest.in"
  3619. while :
  3620. do
  3621. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3622. mv "conftest.tmp" "conftest.in"
  3623. cp "conftest.in" "conftest.nl"
  3624. $as_echo 'EGREP' >> "conftest.nl"
  3625. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3626. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3627. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3628. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3629. # Best one so far, save it but keep looking for a better one
  3630. ac_cv_path_EGREP="$ac_path_EGREP"
  3631. ac_path_EGREP_max=$ac_count
  3632. fi
  3633. # 10*(2^10) chars as input seems more than enough
  3634. test $ac_count -gt 10 && break
  3635. done
  3636. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3637. esac
  3638. $ac_path_EGREP_found && break 3
  3639. done
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test -z "$ac_cv_path_EGREP"; then
  3644. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3645. fi
  3646. else
  3647. ac_cv_path_EGREP=$EGREP
  3648. fi
  3649. fi
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3652. $as_echo "$ac_cv_path_EGREP" >&6; }
  3653. EGREP="$ac_cv_path_EGREP"
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3655. $as_echo_n "checking for fgrep... " >&6; }
  3656. if ${ac_cv_path_FGREP+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3660. then ac_cv_path_FGREP="$GREP -F"
  3661. else
  3662. if test -z "$FGREP"; then
  3663. ac_path_FGREP_found=false
  3664. # Loop through the user's path and test for each of PROGNAME-LIST
  3665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3666. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3667. do
  3668. IFS=$as_save_IFS
  3669. test -z "$as_dir" && as_dir=.
  3670. for ac_prog in fgrep; do
  3671. for ac_exec_ext in '' $ac_executable_extensions; do
  3672. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3673. as_fn_executable_p "$ac_path_FGREP" || continue
  3674. # Check for GNU ac_path_FGREP and select it if it is found.
  3675. # Check for GNU $ac_path_FGREP
  3676. case `"$ac_path_FGREP" --version 2>&1` in
  3677. *GNU*)
  3678. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3679. *)
  3680. ac_count=0
  3681. $as_echo_n 0123456789 >"conftest.in"
  3682. while :
  3683. do
  3684. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3685. mv "conftest.tmp" "conftest.in"
  3686. cp "conftest.in" "conftest.nl"
  3687. $as_echo 'FGREP' >> "conftest.nl"
  3688. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3689. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3690. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3691. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3692. # Best one so far, save it but keep looking for a better one
  3693. ac_cv_path_FGREP="$ac_path_FGREP"
  3694. ac_path_FGREP_max=$ac_count
  3695. fi
  3696. # 10*(2^10) chars as input seems more than enough
  3697. test $ac_count -gt 10 && break
  3698. done
  3699. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3700. esac
  3701. $ac_path_FGREP_found && break 3
  3702. done
  3703. done
  3704. done
  3705. IFS=$as_save_IFS
  3706. if test -z "$ac_cv_path_FGREP"; then
  3707. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3708. fi
  3709. else
  3710. ac_cv_path_FGREP=$FGREP
  3711. fi
  3712. fi
  3713. fi
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3715. $as_echo "$ac_cv_path_FGREP" >&6; }
  3716. FGREP="$ac_cv_path_FGREP"
  3717. test -z "$GREP" && GREP=grep
  3718. # Check whether --with-gnu-ld was given.
  3719. if test "${with_gnu_ld+set}" = set; then :
  3720. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3721. else
  3722. with_gnu_ld=no
  3723. fi
  3724. ac_prog=ld
  3725. if test "$GCC" = yes; then
  3726. # Check if gcc -print-prog-name=ld gives a path.
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3728. $as_echo_n "checking for ld used by $CC... " >&6; }
  3729. case $host in
  3730. *-*-mingw*)
  3731. # gcc leaves a trailing carriage return which upsets mingw
  3732. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3733. *)
  3734. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3735. esac
  3736. case $ac_prog in
  3737. # Accept absolute paths.
  3738. [\\/]* | ?:[\\/]*)
  3739. re_direlt='/[^/][^/]*/\.\./'
  3740. # Canonicalize the pathname of ld
  3741. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3742. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3743. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3744. done
  3745. test -z "$LD" && LD="$ac_prog"
  3746. ;;
  3747. "")
  3748. # If it fails, then pretend we aren't using GCC.
  3749. ac_prog=ld
  3750. ;;
  3751. *)
  3752. # If it is relative, then search for the first ld in PATH.
  3753. with_gnu_ld=unknown
  3754. ;;
  3755. esac
  3756. elif test "$with_gnu_ld" = yes; then
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3758. $as_echo_n "checking for GNU ld... " >&6; }
  3759. else
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3761. $as_echo_n "checking for non-GNU ld... " >&6; }
  3762. fi
  3763. if ${lt_cv_path_LD+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. if test -z "$LD"; then
  3767. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3768. for ac_dir in $PATH; do
  3769. IFS="$lt_save_ifs"
  3770. test -z "$ac_dir" && ac_dir=.
  3771. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3772. lt_cv_path_LD="$ac_dir/$ac_prog"
  3773. # Check to see if the program is GNU ld. I'd rather use --version,
  3774. # but apparently some variants of GNU ld only accept -v.
  3775. # Break only if it was the GNU/non-GNU ld that we prefer.
  3776. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3777. *GNU* | *'with BFD'*)
  3778. test "$with_gnu_ld" != no && break
  3779. ;;
  3780. *)
  3781. test "$with_gnu_ld" != yes && break
  3782. ;;
  3783. esac
  3784. fi
  3785. done
  3786. IFS="$lt_save_ifs"
  3787. else
  3788. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3789. fi
  3790. fi
  3791. LD="$lt_cv_path_LD"
  3792. if test -n "$LD"; then
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3794. $as_echo "$LD" >&6; }
  3795. else
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3797. $as_echo "no" >&6; }
  3798. fi
  3799. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3801. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3802. if ${lt_cv_prog_gnu_ld+:} false; then :
  3803. $as_echo_n "(cached) " >&6
  3804. else
  3805. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3806. case `$LD -v 2>&1 </dev/null` in
  3807. *GNU* | *'with BFD'*)
  3808. lt_cv_prog_gnu_ld=yes
  3809. ;;
  3810. *)
  3811. lt_cv_prog_gnu_ld=no
  3812. ;;
  3813. esac
  3814. fi
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3816. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3817. with_gnu_ld=$lt_cv_prog_gnu_ld
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3819. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3820. if ${lt_cv_path_NM+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. if test -n "$NM"; then
  3824. # Let the user override the test.
  3825. lt_cv_path_NM="$NM"
  3826. else
  3827. lt_nm_to_check="${ac_tool_prefix}nm"
  3828. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3829. lt_nm_to_check="$lt_nm_to_check nm"
  3830. fi
  3831. for lt_tmp_nm in $lt_nm_to_check; do
  3832. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3833. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3834. IFS="$lt_save_ifs"
  3835. test -z "$ac_dir" && ac_dir=.
  3836. tmp_nm="$ac_dir/$lt_tmp_nm"
  3837. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3838. # Check to see if the nm accepts a BSD-compat flag.
  3839. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3840. # nm: unknown option "B" ignored
  3841. # Tru64's nm complains that /dev/null is an invalid object file
  3842. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3843. */dev/null* | *'Invalid file or object type'*)
  3844. lt_cv_path_NM="$tmp_nm -B"
  3845. break
  3846. ;;
  3847. *)
  3848. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3849. */dev/null*)
  3850. lt_cv_path_NM="$tmp_nm -p"
  3851. break
  3852. ;;
  3853. *)
  3854. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3855. continue # so that we can try to find one that supports BSD flags
  3856. ;;
  3857. esac
  3858. ;;
  3859. esac
  3860. fi
  3861. done
  3862. IFS="$lt_save_ifs"
  3863. done
  3864. : ${lt_cv_path_NM=no}
  3865. fi
  3866. fi
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3868. $as_echo "$lt_cv_path_NM" >&6; }
  3869. if test "$lt_cv_path_NM" != "no"; then
  3870. NM="$lt_cv_path_NM"
  3871. else
  3872. # Didn't find any BSD compatible name lister, look for dumpbin.
  3873. if test -n "$DUMPBIN"; then :
  3874. # Let the user override the test.
  3875. else
  3876. if test -n "$ac_tool_prefix"; then
  3877. for ac_prog in dumpbin "link -dump"
  3878. do
  3879. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3880. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3882. $as_echo_n "checking for $ac_word... " >&6; }
  3883. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3884. $as_echo_n "(cached) " >&6
  3885. else
  3886. if test -n "$DUMPBIN"; then
  3887. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3888. else
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3896. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3898. break 2
  3899. fi
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. fi
  3905. DUMPBIN=$ac_cv_prog_DUMPBIN
  3906. if test -n "$DUMPBIN"; then
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3908. $as_echo "$DUMPBIN" >&6; }
  3909. else
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3911. $as_echo "no" >&6; }
  3912. fi
  3913. test -n "$DUMPBIN" && break
  3914. done
  3915. fi
  3916. if test -z "$DUMPBIN"; then
  3917. ac_ct_DUMPBIN=$DUMPBIN
  3918. for ac_prog in dumpbin "link -dump"
  3919. do
  3920. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3921. set dummy $ac_prog; ac_word=$2
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3923. $as_echo_n "checking for $ac_word... " >&6; }
  3924. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3925. $as_echo_n "(cached) " >&6
  3926. else
  3927. if test -n "$ac_ct_DUMPBIN"; then
  3928. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3937. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939. break 2
  3940. fi
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. fi
  3945. fi
  3946. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3947. if test -n "$ac_ct_DUMPBIN"; then
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3949. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3950. else
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3952. $as_echo "no" >&6; }
  3953. fi
  3954. test -n "$ac_ct_DUMPBIN" && break
  3955. done
  3956. if test "x$ac_ct_DUMPBIN" = x; then
  3957. DUMPBIN=":"
  3958. else
  3959. case $cross_compiling:$ac_tool_warned in
  3960. yes:)
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3962. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3963. ac_tool_warned=yes ;;
  3964. esac
  3965. DUMPBIN=$ac_ct_DUMPBIN
  3966. fi
  3967. fi
  3968. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3969. *COFF*)
  3970. DUMPBIN="$DUMPBIN -symbols"
  3971. ;;
  3972. *)
  3973. DUMPBIN=:
  3974. ;;
  3975. esac
  3976. fi
  3977. if test "$DUMPBIN" != ":"; then
  3978. NM="$DUMPBIN"
  3979. fi
  3980. fi
  3981. test -z "$NM" && NM=nm
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3983. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3984. if ${lt_cv_nm_interface+:} false; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. lt_cv_nm_interface="BSD nm"
  3988. echo "int some_variable = 0;" > conftest.$ac_ext
  3989. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3990. (eval "$ac_compile" 2>conftest.err)
  3991. cat conftest.err >&5
  3992. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3993. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3994. cat conftest.err >&5
  3995. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3996. cat conftest.out >&5
  3997. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3998. lt_cv_nm_interface="MS dumpbin"
  3999. fi
  4000. rm -f conftest*
  4001. fi
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4003. $as_echo "$lt_cv_nm_interface" >&6; }
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4005. $as_echo_n "checking whether ln -s works... " >&6; }
  4006. LN_S=$as_ln_s
  4007. if test "$LN_S" = "ln -s"; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4009. $as_echo "yes" >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4012. $as_echo "no, using $LN_S" >&6; }
  4013. fi
  4014. # find the maximum length of command line arguments
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4016. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4017. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. i=0
  4021. teststring="ABCD"
  4022. case $build_os in
  4023. msdosdjgpp*)
  4024. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4025. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4026. # during glob expansion). Even if it were fixed, the result of this
  4027. # check would be larger than it should be.
  4028. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4029. ;;
  4030. gnu*)
  4031. # Under GNU Hurd, this test is not required because there is
  4032. # no limit to the length of command line arguments.
  4033. # Libtool will interpret -1 as no limit whatsoever
  4034. lt_cv_sys_max_cmd_len=-1;
  4035. ;;
  4036. cygwin* | mingw* | cegcc*)
  4037. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4038. # about 5 minutes as the teststring grows exponentially.
  4039. # Worse, since 9x/ME are not pre-emptively multitasking,
  4040. # you end up with a "frozen" computer, even though with patience
  4041. # the test eventually succeeds (with a max line length of 256k).
  4042. # Instead, let's just punt: use the minimum linelength reported by
  4043. # all of the supported platforms: 8192 (on NT/2K/XP).
  4044. lt_cv_sys_max_cmd_len=8192;
  4045. ;;
  4046. mint*)
  4047. # On MiNT this can take a long time and run out of memory.
  4048. lt_cv_sys_max_cmd_len=8192;
  4049. ;;
  4050. amigaos*)
  4051. # On AmigaOS with pdksh, this test takes hours, literally.
  4052. # So we just punt and use a minimum line length of 8192.
  4053. lt_cv_sys_max_cmd_len=8192;
  4054. ;;
  4055. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4056. # This has been around since 386BSD, at least. Likely further.
  4057. if test -x /sbin/sysctl; then
  4058. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4059. elif test -x /usr/sbin/sysctl; then
  4060. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4061. else
  4062. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4063. fi
  4064. # And add a safety zone
  4065. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4067. ;;
  4068. interix*)
  4069. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4070. lt_cv_sys_max_cmd_len=196608
  4071. ;;
  4072. os2*)
  4073. # The test takes a long time on OS/2.
  4074. lt_cv_sys_max_cmd_len=8192
  4075. ;;
  4076. osf*)
  4077. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4078. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4079. # nice to cause kernel panics so lets avoid the loop below.
  4080. # First set a reasonable default.
  4081. lt_cv_sys_max_cmd_len=16384
  4082. #
  4083. if test -x /sbin/sysconfig; then
  4084. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4085. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4086. esac
  4087. fi
  4088. ;;
  4089. sco3.2v5*)
  4090. lt_cv_sys_max_cmd_len=102400
  4091. ;;
  4092. sysv5* | sco5v6* | sysv4.2uw2*)
  4093. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4094. if test -n "$kargmax"; then
  4095. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4096. else
  4097. lt_cv_sys_max_cmd_len=32768
  4098. fi
  4099. ;;
  4100. *)
  4101. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4102. if test -n "$lt_cv_sys_max_cmd_len"; then
  4103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4105. else
  4106. # Make teststring a little bigger before we do anything with it.
  4107. # a 1K string should be a reasonable start.
  4108. for i in 1 2 3 4 5 6 7 8 ; do
  4109. teststring=$teststring$teststring
  4110. done
  4111. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4112. # If test is not a shell built-in, we'll probably end up computing a
  4113. # maximum length that is only half of the actual maximum length, but
  4114. # we can't tell.
  4115. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4116. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4117. test $i != 17 # 1/2 MB should be enough
  4118. do
  4119. i=`expr $i + 1`
  4120. teststring=$teststring$teststring
  4121. done
  4122. # Only check the string length outside the loop.
  4123. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4124. teststring=
  4125. # Add a significant safety factor because C++ compilers can tack on
  4126. # massive amounts of additional arguments before passing them to the
  4127. # linker. It appears as though 1/2 is a usable value.
  4128. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4129. fi
  4130. ;;
  4131. esac
  4132. fi
  4133. if test -n $lt_cv_sys_max_cmd_len ; then
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4135. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4136. else
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4138. $as_echo "none" >&6; }
  4139. fi
  4140. max_cmd_len=$lt_cv_sys_max_cmd_len
  4141. : ${CP="cp -f"}
  4142. : ${MV="mv -f"}
  4143. : ${RM="rm -f"}
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4145. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4146. # Try some XSI features
  4147. xsi_shell=no
  4148. ( _lt_dummy="a/b/c"
  4149. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4150. = c,a/b,b/c, \
  4151. && eval 'test $(( 1 + 1 )) -eq 2 \
  4152. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4153. && xsi_shell=yes
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4155. $as_echo "$xsi_shell" >&6; }
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4157. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4158. lt_shell_append=no
  4159. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4160. >/dev/null 2>&1 \
  4161. && lt_shell_append=yes
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4163. $as_echo "$lt_shell_append" >&6; }
  4164. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4165. lt_unset=unset
  4166. else
  4167. lt_unset=false
  4168. fi
  4169. # test EBCDIC or ASCII
  4170. case `echo X|tr X '\101'` in
  4171. A) # ASCII based system
  4172. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4173. lt_SP2NL='tr \040 \012'
  4174. lt_NL2SP='tr \015\012 \040\040'
  4175. ;;
  4176. *) # EBCDIC based system
  4177. lt_SP2NL='tr \100 \n'
  4178. lt_NL2SP='tr \r\n \100\100'
  4179. ;;
  4180. esac
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4182. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4183. if ${lt_cv_to_host_file_cmd+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. case $host in
  4187. *-*-mingw* )
  4188. case $build in
  4189. *-*-mingw* ) # actually msys
  4190. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4191. ;;
  4192. *-*-cygwin* )
  4193. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4194. ;;
  4195. * ) # otherwise, assume *nix
  4196. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4197. ;;
  4198. esac
  4199. ;;
  4200. *-*-cygwin* )
  4201. case $build in
  4202. *-*-mingw* ) # actually msys
  4203. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4204. ;;
  4205. *-*-cygwin* )
  4206. lt_cv_to_host_file_cmd=func_convert_file_noop
  4207. ;;
  4208. * ) # otherwise, assume *nix
  4209. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4210. ;;
  4211. esac
  4212. ;;
  4213. * ) # unhandled hosts (and "normal" native builds)
  4214. lt_cv_to_host_file_cmd=func_convert_file_noop
  4215. ;;
  4216. esac
  4217. fi
  4218. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4220. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4222. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4223. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. #assume ordinary cross tools, or native build.
  4227. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4228. case $host in
  4229. *-*-mingw* )
  4230. case $build in
  4231. *-*-mingw* ) # actually msys
  4232. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4233. ;;
  4234. esac
  4235. ;;
  4236. esac
  4237. fi
  4238. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4240. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4242. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4243. if ${lt_cv_ld_reload_flag+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. lt_cv_ld_reload_flag='-r'
  4247. fi
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4249. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4250. reload_flag=$lt_cv_ld_reload_flag
  4251. case $reload_flag in
  4252. "" | " "*) ;;
  4253. *) reload_flag=" $reload_flag" ;;
  4254. esac
  4255. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4256. case $host_os in
  4257. cygwin* | mingw* | pw32* | cegcc*)
  4258. if test "$GCC" != yes; then
  4259. reload_cmds=false
  4260. fi
  4261. ;;
  4262. darwin*)
  4263. if test "$GCC" = yes; then
  4264. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4265. else
  4266. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4267. fi
  4268. ;;
  4269. esac
  4270. if test -n "$ac_tool_prefix"; then
  4271. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4272. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4274. $as_echo_n "checking for $ac_word... " >&6; }
  4275. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. if test -n "$OBJDUMP"; then
  4279. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4280. else
  4281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4282. for as_dir in $PATH
  4283. do
  4284. IFS=$as_save_IFS
  4285. test -z "$as_dir" && as_dir=.
  4286. for ac_exec_ext in '' $ac_executable_extensions; do
  4287. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4288. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4290. break 2
  4291. fi
  4292. done
  4293. done
  4294. IFS=$as_save_IFS
  4295. fi
  4296. fi
  4297. OBJDUMP=$ac_cv_prog_OBJDUMP
  4298. if test -n "$OBJDUMP"; then
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4300. $as_echo "$OBJDUMP" >&6; }
  4301. else
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4303. $as_echo "no" >&6; }
  4304. fi
  4305. fi
  4306. if test -z "$ac_cv_prog_OBJDUMP"; then
  4307. ac_ct_OBJDUMP=$OBJDUMP
  4308. # Extract the first word of "objdump", so it can be a program name with args.
  4309. set dummy objdump; ac_word=$2
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4311. $as_echo_n "checking for $ac_word... " >&6; }
  4312. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. if test -n "$ac_ct_OBJDUMP"; then
  4316. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4317. else
  4318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4319. for as_dir in $PATH
  4320. do
  4321. IFS=$as_save_IFS
  4322. test -z "$as_dir" && as_dir=.
  4323. for ac_exec_ext in '' $ac_executable_extensions; do
  4324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4325. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4327. break 2
  4328. fi
  4329. done
  4330. done
  4331. IFS=$as_save_IFS
  4332. fi
  4333. fi
  4334. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4335. if test -n "$ac_ct_OBJDUMP"; then
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4337. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4338. else
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4340. $as_echo "no" >&6; }
  4341. fi
  4342. if test "x$ac_ct_OBJDUMP" = x; then
  4343. OBJDUMP="false"
  4344. else
  4345. case $cross_compiling:$ac_tool_warned in
  4346. yes:)
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4348. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4349. ac_tool_warned=yes ;;
  4350. esac
  4351. OBJDUMP=$ac_ct_OBJDUMP
  4352. fi
  4353. else
  4354. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4355. fi
  4356. test -z "$OBJDUMP" && OBJDUMP=objdump
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4358. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4359. if ${lt_cv_deplibs_check_method+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4363. lt_cv_file_magic_test_file=
  4364. lt_cv_deplibs_check_method='unknown'
  4365. # Need to set the preceding variable on all platforms that support
  4366. # interlibrary dependencies.
  4367. # 'none' -- dependencies not supported.
  4368. # `unknown' -- same as none, but documents that we really don't know.
  4369. # 'pass_all' -- all dependencies passed with no checks.
  4370. # 'test_compile' -- check by making test program.
  4371. # 'file_magic [[regex]]' -- check by looking for files in library path
  4372. # which responds to the $file_magic_cmd with a given extended regex.
  4373. # If you have `file' or equivalent on your system and you're not sure
  4374. # whether `pass_all' will *always* work, you probably want this one.
  4375. case $host_os in
  4376. aix[4-9]*)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. beos*)
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. bsdi[45]*)
  4383. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4384. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4385. lt_cv_file_magic_test_file=/shlib/libc.so
  4386. ;;
  4387. cygwin*)
  4388. # func_win32_libid is a shell function defined in ltmain.sh
  4389. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4390. lt_cv_file_magic_cmd='func_win32_libid'
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. mingw* | pw32*)
  4394. # Base MSYS/MinGW do not provide the 'file' command needed by
  4395. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4396. # unless we find 'file', for example because we are cross-compiling.
  4397. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4398. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4399. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4400. lt_cv_file_magic_cmd='func_win32_libid'
  4401. else
  4402. # Keep this pattern in sync with the one in func_win32_libid.
  4403. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4404. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4405. fi
  4406. lt_cv_deplibs_check_method=pass_all
  4407. ;;
  4408. cegcc*)
  4409. # use the weaker test based on 'objdump'. See mingw*.
  4410. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4411. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4412. ;;
  4413. darwin* | rhapsody*)
  4414. lt_cv_deplibs_check_method=pass_all
  4415. ;;
  4416. freebsd* | dragonfly*)
  4417. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4418. case $host_cpu in
  4419. i*86 )
  4420. # Not sure whether the presence of OpenBSD here was a mistake.
  4421. # Let's accept both of them until this is cleared up.
  4422. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4423. lt_cv_file_magic_cmd=/usr/bin/file
  4424. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4425. ;;
  4426. esac
  4427. else
  4428. lt_cv_deplibs_check_method=pass_all
  4429. fi
  4430. ;;
  4431. gnu*)
  4432. lt_cv_deplibs_check_method=pass_all
  4433. ;;
  4434. haiku*)
  4435. lt_cv_deplibs_check_method=pass_all
  4436. ;;
  4437. hpux10.20* | hpux11*)
  4438. lt_cv_file_magic_cmd=/usr/bin/file
  4439. case $host_cpu in
  4440. ia64*)
  4441. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4442. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4443. ;;
  4444. hppa*64*)
  4445. 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]'
  4446. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4447. ;;
  4448. *)
  4449. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4450. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4451. ;;
  4452. esac
  4453. ;;
  4454. interix[3-9]*)
  4455. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4456. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4457. ;;
  4458. irix5* | irix6* | nonstopux*)
  4459. case $LD in
  4460. *-32|*"-32 ") libmagic=32-bit;;
  4461. *-n32|*"-n32 ") libmagic=N32;;
  4462. *-64|*"-64 ") libmagic=64-bit;;
  4463. *) libmagic=never-match;;
  4464. esac
  4465. lt_cv_deplibs_check_method=pass_all
  4466. ;;
  4467. # This must be glibc/ELF.
  4468. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4469. lt_cv_deplibs_check_method=pass_all
  4470. ;;
  4471. netbsd*)
  4472. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4474. else
  4475. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4476. fi
  4477. ;;
  4478. newos6*)
  4479. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4480. lt_cv_file_magic_cmd=/usr/bin/file
  4481. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4482. ;;
  4483. *nto* | *qnx*)
  4484. lt_cv_deplibs_check_method=pass_all
  4485. ;;
  4486. openbsd*)
  4487. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4488. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4489. else
  4490. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4491. fi
  4492. ;;
  4493. osf3* | osf4* | osf5*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. rdos*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. solaris*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. sysv4 | sysv4.3*)
  4506. case $host_vendor in
  4507. motorola)
  4508. 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]'
  4509. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4510. ;;
  4511. ncr)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. sequent)
  4515. lt_cv_file_magic_cmd='/bin/file'
  4516. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4517. ;;
  4518. sni)
  4519. lt_cv_file_magic_cmd='/bin/file'
  4520. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4521. lt_cv_file_magic_test_file=/lib/libc.so
  4522. ;;
  4523. siemens)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. pc)
  4527. lt_cv_deplibs_check_method=pass_all
  4528. ;;
  4529. esac
  4530. ;;
  4531. tpf*)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. esac
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4537. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4538. file_magic_glob=
  4539. want_nocaseglob=no
  4540. if test "$build" = "$host"; then
  4541. case $host_os in
  4542. mingw* | pw32*)
  4543. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4544. want_nocaseglob=yes
  4545. else
  4546. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4547. fi
  4548. ;;
  4549. esac
  4550. fi
  4551. file_magic_cmd=$lt_cv_file_magic_cmd
  4552. deplibs_check_method=$lt_cv_deplibs_check_method
  4553. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4554. if test -n "$ac_tool_prefix"; then
  4555. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4556. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$DLLTOOL"; then
  4563. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4572. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. DLLTOOL=$ac_cv_prog_DLLTOOL
  4582. if test -n "$DLLTOOL"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4584. $as_echo "$DLLTOOL" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. fi
  4590. if test -z "$ac_cv_prog_DLLTOOL"; then
  4591. ac_ct_DLLTOOL=$DLLTOOL
  4592. # Extract the first word of "dlltool", so it can be a program name with args.
  4593. set dummy dlltool; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$ac_ct_DLLTOOL"; then
  4600. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4619. if test -n "$ac_ct_DLLTOOL"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4621. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. if test "x$ac_ct_DLLTOOL" = x; then
  4627. DLLTOOL="false"
  4628. else
  4629. case $cross_compiling:$ac_tool_warned in
  4630. yes:)
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4633. ac_tool_warned=yes ;;
  4634. esac
  4635. DLLTOOL=$ac_ct_DLLTOOL
  4636. fi
  4637. else
  4638. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4639. fi
  4640. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4642. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4643. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4647. case $host_os in
  4648. cygwin* | mingw* | pw32* | cegcc*)
  4649. # two different shell functions defined in ltmain.sh
  4650. # decide which to use based on capabilities of $DLLTOOL
  4651. case `$DLLTOOL --help 2>&1` in
  4652. *--identify-strict*)
  4653. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4654. ;;
  4655. *)
  4656. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4657. ;;
  4658. esac
  4659. ;;
  4660. *)
  4661. # fallback: assume linklib IS sharedlib
  4662. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4663. ;;
  4664. esac
  4665. fi
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4667. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4668. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4669. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4670. if test -n "$ac_tool_prefix"; then
  4671. for ac_prog in ar
  4672. do
  4673. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4674. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4676. $as_echo_n "checking for $ac_word... " >&6; }
  4677. if ${ac_cv_prog_AR+:} false; then :
  4678. $as_echo_n "(cached) " >&6
  4679. else
  4680. if test -n "$AR"; then
  4681. ac_cv_prog_AR="$AR" # Let the user override the test.
  4682. else
  4683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4684. for as_dir in $PATH
  4685. do
  4686. IFS=$as_save_IFS
  4687. test -z "$as_dir" && as_dir=.
  4688. for ac_exec_ext in '' $ac_executable_extensions; do
  4689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4690. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4692. break 2
  4693. fi
  4694. done
  4695. done
  4696. IFS=$as_save_IFS
  4697. fi
  4698. fi
  4699. AR=$ac_cv_prog_AR
  4700. if test -n "$AR"; then
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4702. $as_echo "$AR" >&6; }
  4703. else
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4705. $as_echo "no" >&6; }
  4706. fi
  4707. test -n "$AR" && break
  4708. done
  4709. fi
  4710. if test -z "$AR"; then
  4711. ac_ct_AR=$AR
  4712. for ac_prog in ar
  4713. do
  4714. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4715. set dummy $ac_prog; ac_word=$2
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4717. $as_echo_n "checking for $ac_word... " >&6; }
  4718. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4719. $as_echo_n "(cached) " >&6
  4720. else
  4721. if test -n "$ac_ct_AR"; then
  4722. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4723. else
  4724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4725. for as_dir in $PATH
  4726. do
  4727. IFS=$as_save_IFS
  4728. test -z "$as_dir" && as_dir=.
  4729. for ac_exec_ext in '' $ac_executable_extensions; do
  4730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4731. ac_cv_prog_ac_ct_AR="$ac_prog"
  4732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4733. break 2
  4734. fi
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. fi
  4739. fi
  4740. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4741. if test -n "$ac_ct_AR"; then
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4743. $as_echo "$ac_ct_AR" >&6; }
  4744. else
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4746. $as_echo "no" >&6; }
  4747. fi
  4748. test -n "$ac_ct_AR" && break
  4749. done
  4750. if test "x$ac_ct_AR" = x; then
  4751. AR="false"
  4752. else
  4753. case $cross_compiling:$ac_tool_warned in
  4754. yes:)
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4757. ac_tool_warned=yes ;;
  4758. esac
  4759. AR=$ac_ct_AR
  4760. fi
  4761. fi
  4762. : ${AR=ar}
  4763. : ${AR_FLAGS=cru}
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4765. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4766. if ${lt_cv_ar_at_file+:} false; then :
  4767. $as_echo_n "(cached) " >&6
  4768. else
  4769. lt_cv_ar_at_file=no
  4770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4771. /* end confdefs.h. */
  4772. int
  4773. main ()
  4774. {
  4775. ;
  4776. return 0;
  4777. }
  4778. _ACEOF
  4779. if ac_fn_c_try_compile "$LINENO"; then :
  4780. echo conftest.$ac_objext > conftest.lst
  4781. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4782. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4783. (eval $lt_ar_try) 2>&5
  4784. ac_status=$?
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4786. test $ac_status = 0; }
  4787. if test "$ac_status" -eq 0; then
  4788. # Ensure the archiver fails upon bogus file names.
  4789. rm -f conftest.$ac_objext libconftest.a
  4790. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4791. (eval $lt_ar_try) 2>&5
  4792. ac_status=$?
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4794. test $ac_status = 0; }
  4795. if test "$ac_status" -ne 0; then
  4796. lt_cv_ar_at_file=@
  4797. fi
  4798. fi
  4799. rm -f conftest.* libconftest.a
  4800. fi
  4801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4802. fi
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4804. $as_echo "$lt_cv_ar_at_file" >&6; }
  4805. if test "x$lt_cv_ar_at_file" = xno; then
  4806. archiver_list_spec=
  4807. else
  4808. archiver_list_spec=$lt_cv_ar_at_file
  4809. fi
  4810. if test -n "$ac_tool_prefix"; then
  4811. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4812. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4814. $as_echo_n "checking for $ac_word... " >&6; }
  4815. if ${ac_cv_prog_STRIP+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. if test -n "$STRIP"; then
  4819. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4820. else
  4821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4822. for as_dir in $PATH
  4823. do
  4824. IFS=$as_save_IFS
  4825. test -z "$as_dir" && as_dir=.
  4826. for ac_exec_ext in '' $ac_executable_extensions; do
  4827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4828. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4830. break 2
  4831. fi
  4832. done
  4833. done
  4834. IFS=$as_save_IFS
  4835. fi
  4836. fi
  4837. STRIP=$ac_cv_prog_STRIP
  4838. if test -n "$STRIP"; then
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4840. $as_echo "$STRIP" >&6; }
  4841. else
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4843. $as_echo "no" >&6; }
  4844. fi
  4845. fi
  4846. if test -z "$ac_cv_prog_STRIP"; then
  4847. ac_ct_STRIP=$STRIP
  4848. # Extract the first word of "strip", so it can be a program name with args.
  4849. set dummy strip; ac_word=$2
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4851. $as_echo_n "checking for $ac_word... " >&6; }
  4852. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. if test -n "$ac_ct_STRIP"; then
  4856. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4857. else
  4858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4859. for as_dir in $PATH
  4860. do
  4861. IFS=$as_save_IFS
  4862. test -z "$as_dir" && as_dir=.
  4863. for ac_exec_ext in '' $ac_executable_extensions; do
  4864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4865. ac_cv_prog_ac_ct_STRIP="strip"
  4866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4867. break 2
  4868. fi
  4869. done
  4870. done
  4871. IFS=$as_save_IFS
  4872. fi
  4873. fi
  4874. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4875. if test -n "$ac_ct_STRIP"; then
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4877. $as_echo "$ac_ct_STRIP" >&6; }
  4878. else
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4880. $as_echo "no" >&6; }
  4881. fi
  4882. if test "x$ac_ct_STRIP" = x; then
  4883. STRIP=":"
  4884. else
  4885. case $cross_compiling:$ac_tool_warned in
  4886. yes:)
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4888. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4889. ac_tool_warned=yes ;;
  4890. esac
  4891. STRIP=$ac_ct_STRIP
  4892. fi
  4893. else
  4894. STRIP="$ac_cv_prog_STRIP"
  4895. fi
  4896. test -z "$STRIP" && STRIP=:
  4897. if test -n "$ac_tool_prefix"; then
  4898. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4899. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4901. $as_echo_n "checking for $ac_word... " >&6; }
  4902. if ${ac_cv_prog_RANLIB+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -n "$RANLIB"; then
  4906. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4907. else
  4908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4909. for as_dir in $PATH
  4910. do
  4911. IFS=$as_save_IFS
  4912. test -z "$as_dir" && as_dir=.
  4913. for ac_exec_ext in '' $ac_executable_extensions; do
  4914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4915. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4917. break 2
  4918. fi
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. fi
  4923. fi
  4924. RANLIB=$ac_cv_prog_RANLIB
  4925. if test -n "$RANLIB"; then
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4927. $as_echo "$RANLIB" >&6; }
  4928. else
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4930. $as_echo "no" >&6; }
  4931. fi
  4932. fi
  4933. if test -z "$ac_cv_prog_RANLIB"; then
  4934. ac_ct_RANLIB=$RANLIB
  4935. # Extract the first word of "ranlib", so it can be a program name with args.
  4936. set dummy ranlib; ac_word=$2
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4938. $as_echo_n "checking for $ac_word... " >&6; }
  4939. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. if test -n "$ac_ct_RANLIB"; then
  4943. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_exec_ext in '' $ac_executable_extensions; do
  4951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4952. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4954. break 2
  4955. fi
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. fi
  4960. fi
  4961. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4962. if test -n "$ac_ct_RANLIB"; then
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4964. $as_echo "$ac_ct_RANLIB" >&6; }
  4965. else
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4967. $as_echo "no" >&6; }
  4968. fi
  4969. if test "x$ac_ct_RANLIB" = x; then
  4970. RANLIB=":"
  4971. else
  4972. case $cross_compiling:$ac_tool_warned in
  4973. yes:)
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4976. ac_tool_warned=yes ;;
  4977. esac
  4978. RANLIB=$ac_ct_RANLIB
  4979. fi
  4980. else
  4981. RANLIB="$ac_cv_prog_RANLIB"
  4982. fi
  4983. test -z "$RANLIB" && RANLIB=:
  4984. # Determine commands to create old-style static archives.
  4985. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4986. old_postinstall_cmds='chmod 644 $oldlib'
  4987. old_postuninstall_cmds=
  4988. if test -n "$RANLIB"; then
  4989. case $host_os in
  4990. openbsd*)
  4991. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4992. ;;
  4993. *)
  4994. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4995. ;;
  4996. esac
  4997. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4998. fi
  4999. case $host_os in
  5000. darwin*)
  5001. lock_old_archive_extraction=yes ;;
  5002. *)
  5003. lock_old_archive_extraction=no ;;
  5004. esac
  5005. for ac_prog in gawk mawk nawk awk
  5006. do
  5007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5008. set dummy $ac_prog; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if ${ac_cv_prog_AWK+:} false; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$AWK"; then
  5015. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5024. ac_cv_prog_AWK="$ac_prog"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. AWK=$ac_cv_prog_AWK
  5034. if test -n "$AWK"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5036. $as_echo "$AWK" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. test -n "$AWK" && break
  5042. done
  5043. # If no C compiler was specified, use CC.
  5044. LTCC=${LTCC-"$CC"}
  5045. # If no C compiler flags were specified, use CFLAGS.
  5046. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5047. # Allow CC to be a program name with arguments.
  5048. compiler=$CC
  5049. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5051. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5052. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. # These are sane defaults that work on at least a few old systems.
  5056. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5057. # Character class describing NM global symbol codes.
  5058. symcode='[BCDEGRST]'
  5059. # Regexp to match symbols that can be accessed directly from C.
  5060. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5061. # Define system-specific variables.
  5062. case $host_os in
  5063. aix*)
  5064. symcode='[BCDT]'
  5065. ;;
  5066. cygwin* | mingw* | pw32* | cegcc*)
  5067. symcode='[ABCDGISTW]'
  5068. ;;
  5069. hpux*)
  5070. if test "$host_cpu" = ia64; then
  5071. symcode='[ABCDEGRST]'
  5072. fi
  5073. ;;
  5074. irix* | nonstopux*)
  5075. symcode='[BCDEGRST]'
  5076. ;;
  5077. osf*)
  5078. symcode='[BCDEGQRST]'
  5079. ;;
  5080. solaris*)
  5081. symcode='[BDRT]'
  5082. ;;
  5083. sco3.2v5*)
  5084. symcode='[DT]'
  5085. ;;
  5086. sysv4.2uw2*)
  5087. symcode='[DT]'
  5088. ;;
  5089. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5090. symcode='[ABDT]'
  5091. ;;
  5092. sysv4)
  5093. symcode='[DFNSTU]'
  5094. ;;
  5095. esac
  5096. # If we're using GNU nm, then use its standard symbol codes.
  5097. case `$NM -V 2>&1` in
  5098. *GNU* | *'with BFD'*)
  5099. symcode='[ABCDGIRSTW]' ;;
  5100. esac
  5101. # Transform an extracted symbol line into a proper C declaration.
  5102. # Some systems (esp. on ia64) link data and code symbols differently,
  5103. # so use this general approach.
  5104. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5105. # Transform an extracted symbol line into symbol name and symbol address
  5106. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5107. 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'"
  5108. # Handle CRLF in mingw tool chain
  5109. opt_cr=
  5110. case $build_os in
  5111. mingw*)
  5112. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5113. ;;
  5114. esac
  5115. # Try without a prefix underscore, then with it.
  5116. for ac_symprfx in "" "_"; do
  5117. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5118. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5119. # Write the raw and C identifiers.
  5120. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5121. # Fake it for dumpbin and say T for any non-static function
  5122. # and D for any global variable.
  5123. # Also find C++ and __fastcall symbols from MSVC++,
  5124. # which start with @ or ?.
  5125. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5126. " {last_section=section; section=\$ 3};"\
  5127. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5128. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5129. " \$ 0!~/External *\|/{next};"\
  5130. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5131. " {if(hide[section]) next};"\
  5132. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5133. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5134. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5135. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5136. " ' prfx=^$ac_symprfx"
  5137. else
  5138. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5139. fi
  5140. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5141. # Check to see that the pipe works correctly.
  5142. pipe_works=no
  5143. rm -f conftest*
  5144. cat > conftest.$ac_ext <<_LT_EOF
  5145. #ifdef __cplusplus
  5146. extern "C" {
  5147. #endif
  5148. char nm_test_var;
  5149. void nm_test_func(void);
  5150. void nm_test_func(void){}
  5151. #ifdef __cplusplus
  5152. }
  5153. #endif
  5154. int main(){nm_test_var='a';nm_test_func();return(0);}
  5155. _LT_EOF
  5156. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5157. (eval $ac_compile) 2>&5
  5158. ac_status=$?
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5160. test $ac_status = 0; }; then
  5161. # Now try to grab the symbols.
  5162. nlist=conftest.nm
  5163. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5164. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; } && test -s "$nlist"; then
  5168. # Try sorting and uniquifying the output.
  5169. if sort "$nlist" | uniq > "$nlist"T; then
  5170. mv -f "$nlist"T "$nlist"
  5171. else
  5172. rm -f "$nlist"T
  5173. fi
  5174. # Make sure that we snagged all the symbols we need.
  5175. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5176. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5177. cat <<_LT_EOF > conftest.$ac_ext
  5178. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5179. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5180. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5181. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5182. # define LT_DLSYM_CONST
  5183. #elif defined(__osf__)
  5184. /* This system does not cope well with relocations in const data. */
  5185. # define LT_DLSYM_CONST
  5186. #else
  5187. # define LT_DLSYM_CONST const
  5188. #endif
  5189. #ifdef __cplusplus
  5190. extern "C" {
  5191. #endif
  5192. _LT_EOF
  5193. # Now generate the symbol file.
  5194. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5195. cat <<_LT_EOF >> conftest.$ac_ext
  5196. /* The mapping between symbol names and symbols. */
  5197. LT_DLSYM_CONST struct {
  5198. const char *name;
  5199. void *address;
  5200. }
  5201. lt__PROGRAM__LTX_preloaded_symbols[] =
  5202. {
  5203. { "@PROGRAM@", (void *) 0 },
  5204. _LT_EOF
  5205. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5206. cat <<\_LT_EOF >> conftest.$ac_ext
  5207. {0, (void *) 0}
  5208. };
  5209. /* This works around a problem in FreeBSD linker */
  5210. #ifdef FREEBSD_WORKAROUND
  5211. static const void *lt_preloaded_setup() {
  5212. return lt__PROGRAM__LTX_preloaded_symbols;
  5213. }
  5214. #endif
  5215. #ifdef __cplusplus
  5216. }
  5217. #endif
  5218. _LT_EOF
  5219. # Now try linking the two files.
  5220. mv conftest.$ac_objext conftstm.$ac_objext
  5221. lt_globsym_save_LIBS=$LIBS
  5222. lt_globsym_save_CFLAGS=$CFLAGS
  5223. LIBS="conftstm.$ac_objext"
  5224. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5225. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5226. (eval $ac_link) 2>&5
  5227. ac_status=$?
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5229. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5230. pipe_works=yes
  5231. fi
  5232. LIBS=$lt_globsym_save_LIBS
  5233. CFLAGS=$lt_globsym_save_CFLAGS
  5234. else
  5235. echo "cannot find nm_test_func in $nlist" >&5
  5236. fi
  5237. else
  5238. echo "cannot find nm_test_var in $nlist" >&5
  5239. fi
  5240. else
  5241. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5242. fi
  5243. else
  5244. echo "$progname: failed program was:" >&5
  5245. cat conftest.$ac_ext >&5
  5246. fi
  5247. rm -rf conftest* conftst*
  5248. # Do not use the global_symbol_pipe unless it works.
  5249. if test "$pipe_works" = yes; then
  5250. break
  5251. else
  5252. lt_cv_sys_global_symbol_pipe=
  5253. fi
  5254. done
  5255. fi
  5256. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5257. lt_cv_sys_global_symbol_to_cdecl=
  5258. fi
  5259. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5261. $as_echo "failed" >&6; }
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5264. $as_echo "ok" >&6; }
  5265. fi
  5266. # Response file support.
  5267. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5268. nm_file_list_spec='@'
  5269. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5270. nm_file_list_spec='@'
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5273. $as_echo_n "checking for sysroot... " >&6; }
  5274. # Check whether --with-sysroot was given.
  5275. if test "${with_sysroot+set}" = set; then :
  5276. withval=$with_sysroot;
  5277. else
  5278. with_sysroot=no
  5279. fi
  5280. lt_sysroot=
  5281. case ${with_sysroot} in #(
  5282. yes)
  5283. if test "$GCC" = yes; then
  5284. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5285. fi
  5286. ;; #(
  5287. /*)
  5288. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5289. ;; #(
  5290. no|'')
  5291. ;; #(
  5292. *)
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5294. $as_echo "${with_sysroot}" >&6; }
  5295. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5296. ;;
  5297. esac
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5299. $as_echo "${lt_sysroot:-no}" >&6; }
  5300. # Check whether --enable-libtool-lock was given.
  5301. if test "${enable_libtool_lock+set}" = set; then :
  5302. enableval=$enable_libtool_lock;
  5303. fi
  5304. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5305. # Some flags need to be propagated to the compiler or linker for good
  5306. # libtool support.
  5307. case $host in
  5308. ia64-*-hpux*)
  5309. # Find out which ABI we are using.
  5310. echo 'int i;' > conftest.$ac_ext
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5312. (eval $ac_compile) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; }; then
  5316. case `/usr/bin/file conftest.$ac_objext` in
  5317. *ELF-32*)
  5318. HPUX_IA64_MODE="32"
  5319. ;;
  5320. *ELF-64*)
  5321. HPUX_IA64_MODE="64"
  5322. ;;
  5323. esac
  5324. fi
  5325. rm -rf conftest*
  5326. ;;
  5327. *-*-irix6*)
  5328. # Find out which ABI we are using.
  5329. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5330. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5331. (eval $ac_compile) 2>&5
  5332. ac_status=$?
  5333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5334. test $ac_status = 0; }; then
  5335. if test "$lt_cv_prog_gnu_ld" = yes; then
  5336. case `/usr/bin/file conftest.$ac_objext` in
  5337. *32-bit*)
  5338. LD="${LD-ld} -melf32bsmip"
  5339. ;;
  5340. *N32*)
  5341. LD="${LD-ld} -melf32bmipn32"
  5342. ;;
  5343. *64-bit*)
  5344. LD="${LD-ld} -melf64bmip"
  5345. ;;
  5346. esac
  5347. else
  5348. case `/usr/bin/file conftest.$ac_objext` in
  5349. *32-bit*)
  5350. LD="${LD-ld} -32"
  5351. ;;
  5352. *N32*)
  5353. LD="${LD-ld} -n32"
  5354. ;;
  5355. *64-bit*)
  5356. LD="${LD-ld} -64"
  5357. ;;
  5358. esac
  5359. fi
  5360. fi
  5361. rm -rf conftest*
  5362. ;;
  5363. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5364. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5365. # Find out which ABI we are using.
  5366. echo 'int i;' > conftest.$ac_ext
  5367. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5368. (eval $ac_compile) 2>&5
  5369. ac_status=$?
  5370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5371. test $ac_status = 0; }; then
  5372. case `/usr/bin/file conftest.o` in
  5373. *32-bit*)
  5374. case $host in
  5375. x86_64-*kfreebsd*-gnu)
  5376. LD="${LD-ld} -m elf_i386_fbsd"
  5377. ;;
  5378. x86_64-*linux*)
  5379. LD="${LD-ld} -m elf_i386"
  5380. ;;
  5381. ppc64-*linux*|powerpc64-*linux*)
  5382. LD="${LD-ld} -m elf32ppclinux"
  5383. ;;
  5384. s390x-*linux*)
  5385. LD="${LD-ld} -m elf_s390"
  5386. ;;
  5387. sparc64-*linux*)
  5388. LD="${LD-ld} -m elf32_sparc"
  5389. ;;
  5390. esac
  5391. ;;
  5392. *64-bit*)
  5393. case $host in
  5394. x86_64-*kfreebsd*-gnu)
  5395. LD="${LD-ld} -m elf_x86_64_fbsd"
  5396. ;;
  5397. x86_64-*linux*)
  5398. LD="${LD-ld} -m elf_x86_64"
  5399. ;;
  5400. powerpc64le-*linux*)
  5401. LD="${LD-ld} -m elf64lppc"
  5402. ;;
  5403. powerpc64-*linux*)
  5404. LD="${LD-ld} -m elf64ppc"
  5405. ;;
  5406. s390*-*linux*|s390*-*tpf*)
  5407. LD="${LD-ld} -m elf64_s390"
  5408. ;;
  5409. sparc*-*linux*)
  5410. LD="${LD-ld} -m elf64_sparc"
  5411. ;;
  5412. esac
  5413. ;;
  5414. esac
  5415. fi
  5416. rm -rf conftest*
  5417. ;;
  5418. *-*-sco3.2v5*)
  5419. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5420. SAVE_CFLAGS="$CFLAGS"
  5421. CFLAGS="$CFLAGS -belf"
  5422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5423. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5424. if ${lt_cv_cc_needs_belf+:} false; then :
  5425. $as_echo_n "(cached) " >&6
  5426. else
  5427. ac_ext=c
  5428. ac_cpp='$CPP $CPPFLAGS'
  5429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. int
  5435. main ()
  5436. {
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. if ac_fn_c_try_link "$LINENO"; then :
  5442. lt_cv_cc_needs_belf=yes
  5443. else
  5444. lt_cv_cc_needs_belf=no
  5445. fi
  5446. rm -f core conftest.err conftest.$ac_objext \
  5447. conftest$ac_exeext conftest.$ac_ext
  5448. ac_ext=c
  5449. ac_cpp='$CPP $CPPFLAGS'
  5450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5453. fi
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5455. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5456. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5457. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5458. CFLAGS="$SAVE_CFLAGS"
  5459. fi
  5460. ;;
  5461. *-*solaris*)
  5462. # Find out which ABI we are using.
  5463. echo 'int i;' > conftest.$ac_ext
  5464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5465. (eval $ac_compile) 2>&5
  5466. ac_status=$?
  5467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5468. test $ac_status = 0; }; then
  5469. case `/usr/bin/file conftest.o` in
  5470. *64-bit*)
  5471. case $lt_cv_prog_gnu_ld in
  5472. yes*)
  5473. case $host in
  5474. i?86-*-solaris*)
  5475. LD="${LD-ld} -m elf_x86_64"
  5476. ;;
  5477. sparc*-*-solaris*)
  5478. LD="${LD-ld} -m elf64_sparc"
  5479. ;;
  5480. esac
  5481. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5482. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5483. LD="${LD-ld}_sol2"
  5484. fi
  5485. ;;
  5486. *)
  5487. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5488. LD="${LD-ld} -64"
  5489. fi
  5490. ;;
  5491. esac
  5492. ;;
  5493. esac
  5494. fi
  5495. rm -rf conftest*
  5496. ;;
  5497. esac
  5498. need_locks="$enable_libtool_lock"
  5499. if test -n "$ac_tool_prefix"; then
  5500. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5501. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$MANIFEST_TOOL"; then
  5508. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5527. if test -n "$MANIFEST_TOOL"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5529. $as_echo "$MANIFEST_TOOL" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. fi
  5535. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5536. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5537. # Extract the first word of "mt", so it can be a program name with args.
  5538. set dummy mt; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5545. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5564. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5566. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5572. MANIFEST_TOOL=":"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5581. fi
  5582. else
  5583. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5584. fi
  5585. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5587. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5588. if ${lt_cv_path_mainfest_tool+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. lt_cv_path_mainfest_tool=no
  5592. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5593. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5594. cat conftest.err >&5
  5595. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5596. lt_cv_path_mainfest_tool=yes
  5597. fi
  5598. rm -f conftest*
  5599. fi
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5601. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5602. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5603. MANIFEST_TOOL=:
  5604. fi
  5605. case $host_os in
  5606. rhapsody* | darwin*)
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$DSYMUTIL"; then
  5616. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5635. if test -n "$DSYMUTIL"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5637. $as_echo "$DSYMUTIL" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5644. ac_ct_DSYMUTIL=$DSYMUTIL
  5645. # Extract the first word of "dsymutil", so it can be a program name with args.
  5646. set dummy dsymutil; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_DSYMUTIL"; then
  5653. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5672. if test -n "$ac_ct_DSYMUTIL"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5674. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_DSYMUTIL" = x; then
  5680. DSYMUTIL=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. DSYMUTIL=$ac_ct_DSYMUTIL
  5689. fi
  5690. else
  5691. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5692. fi
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_NMEDIT+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$NMEDIT"; then
  5702. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. NMEDIT=$ac_cv_prog_NMEDIT
  5721. if test -n "$NMEDIT"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5723. $as_echo "$NMEDIT" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_NMEDIT"; then
  5730. ac_ct_NMEDIT=$NMEDIT
  5731. # Extract the first word of "nmedit", so it can be a program name with args.
  5732. set dummy nmedit; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_NMEDIT"; then
  5739. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5758. if test -n "$ac_ct_NMEDIT"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5760. $as_echo "$ac_ct_NMEDIT" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_NMEDIT" = x; then
  5766. NMEDIT=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. NMEDIT=$ac_ct_NMEDIT
  5775. fi
  5776. else
  5777. NMEDIT="$ac_cv_prog_NMEDIT"
  5778. fi
  5779. if test -n "$ac_tool_prefix"; then
  5780. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5781. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_LIPO+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$LIPO"; then
  5788. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. LIPO=$ac_cv_prog_LIPO
  5807. if test -n "$LIPO"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5809. $as_echo "$LIPO" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. fi
  5815. if test -z "$ac_cv_prog_LIPO"; then
  5816. ac_ct_LIPO=$LIPO
  5817. # Extract the first word of "lipo", so it can be a program name with args.
  5818. set dummy lipo; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$ac_ct_LIPO"; then
  5825. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_ac_ct_LIPO="lipo"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5844. if test -n "$ac_ct_LIPO"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5846. $as_echo "$ac_ct_LIPO" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. if test "x$ac_ct_LIPO" = x; then
  5852. LIPO=":"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. LIPO=$ac_ct_LIPO
  5861. fi
  5862. else
  5863. LIPO="$ac_cv_prog_LIPO"
  5864. fi
  5865. if test -n "$ac_tool_prefix"; then
  5866. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5867. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5869. $as_echo_n "checking for $ac_word... " >&6; }
  5870. if ${ac_cv_prog_OTOOL+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if test -n "$OTOOL"; then
  5874. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_exec_ext in '' $ac_executable_extensions; do
  5882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5883. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5885. break 2
  5886. fi
  5887. done
  5888. done
  5889. IFS=$as_save_IFS
  5890. fi
  5891. fi
  5892. OTOOL=$ac_cv_prog_OTOOL
  5893. if test -n "$OTOOL"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5895. $as_echo "$OTOOL" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. fi
  5901. if test -z "$ac_cv_prog_OTOOL"; then
  5902. ac_ct_OTOOL=$OTOOL
  5903. # Extract the first word of "otool", so it can be a program name with args.
  5904. set dummy otool; ac_word=$2
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5906. $as_echo_n "checking for $ac_word... " >&6; }
  5907. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. if test -n "$ac_ct_OTOOL"; then
  5911. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_prog_ac_ct_OTOOL="otool"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. fi
  5928. fi
  5929. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5930. if test -n "$ac_ct_OTOOL"; then
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5932. $as_echo "$ac_ct_OTOOL" >&6; }
  5933. else
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5935. $as_echo "no" >&6; }
  5936. fi
  5937. if test "x$ac_ct_OTOOL" = x; then
  5938. OTOOL=":"
  5939. else
  5940. case $cross_compiling:$ac_tool_warned in
  5941. yes:)
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5944. ac_tool_warned=yes ;;
  5945. esac
  5946. OTOOL=$ac_ct_OTOOL
  5947. fi
  5948. else
  5949. OTOOL="$ac_cv_prog_OTOOL"
  5950. fi
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_OTOOL64+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$OTOOL64"; then
  5960. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. OTOOL64=$ac_cv_prog_OTOOL64
  5979. if test -n "$OTOOL64"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5981. $as_echo "$OTOOL64" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_OTOOL64"; then
  5988. ac_ct_OTOOL64=$OTOOL64
  5989. # Extract the first word of "otool64", so it can be a program name with args.
  5990. set dummy otool64; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_OTOOL64"; then
  5997. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6016. if test -n "$ac_ct_OTOOL64"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6018. $as_echo "$ac_ct_OTOOL64" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_OTOOL64" = x; then
  6024. OTOOL64=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. OTOOL64=$ac_ct_OTOOL64
  6033. fi
  6034. else
  6035. OTOOL64="$ac_cv_prog_OTOOL64"
  6036. fi
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6038. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6039. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. lt_cv_apple_cc_single_mod=no
  6043. if test -z "${LT_MULTI_MODULE}"; then
  6044. # By default we will add the -single_module flag. You can override
  6045. # by either setting the environment variable LT_MULTI_MODULE
  6046. # non-empty at configure time, or by adding -multi_module to the
  6047. # link flags.
  6048. rm -rf libconftest.dylib*
  6049. echo "int foo(void){return 1;}" > conftest.c
  6050. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6051. -dynamiclib -Wl,-single_module conftest.c" >&5
  6052. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6053. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6054. _lt_result=$?
  6055. # If there is a non-empty error log, and "single_module"
  6056. # appears in it, assume the flag caused a linker warning
  6057. if test -s conftest.err && $GREP single_module conftest.err; then
  6058. cat conftest.err >&5
  6059. # Otherwise, if the output was created with a 0 exit code from
  6060. # the compiler, it worked.
  6061. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6062. lt_cv_apple_cc_single_mod=yes
  6063. else
  6064. cat conftest.err >&5
  6065. fi
  6066. rm -rf libconftest.dylib*
  6067. rm -f conftest.*
  6068. fi
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6071. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6073. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6074. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. lt_cv_ld_exported_symbols_list=no
  6078. save_LDFLAGS=$LDFLAGS
  6079. echo "_main" > conftest.sym
  6080. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. int
  6084. main ()
  6085. {
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. if ac_fn_c_try_link "$LINENO"; then :
  6091. lt_cv_ld_exported_symbols_list=yes
  6092. else
  6093. lt_cv_ld_exported_symbols_list=no
  6094. fi
  6095. rm -f core conftest.err conftest.$ac_objext \
  6096. conftest$ac_exeext conftest.$ac_ext
  6097. LDFLAGS="$save_LDFLAGS"
  6098. fi
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6100. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6102. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6103. if ${lt_cv_ld_force_load+:} false; then :
  6104. $as_echo_n "(cached) " >&6
  6105. else
  6106. lt_cv_ld_force_load=no
  6107. cat > conftest.c << _LT_EOF
  6108. int forced_loaded() { return 2;}
  6109. _LT_EOF
  6110. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6111. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6112. echo "$AR cru libconftest.a conftest.o" >&5
  6113. $AR cru libconftest.a conftest.o 2>&5
  6114. echo "$RANLIB libconftest.a" >&5
  6115. $RANLIB libconftest.a 2>&5
  6116. cat > conftest.c << _LT_EOF
  6117. int main() { return 0;}
  6118. _LT_EOF
  6119. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6120. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6121. _lt_result=$?
  6122. if test -s conftest.err && $GREP force_load conftest.err; then
  6123. cat conftest.err >&5
  6124. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6125. lt_cv_ld_force_load=yes
  6126. else
  6127. cat conftest.err >&5
  6128. fi
  6129. rm -f conftest.err libconftest.a conftest conftest.c
  6130. rm -rf conftest.dSYM
  6131. fi
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6133. $as_echo "$lt_cv_ld_force_load" >&6; }
  6134. case $host_os in
  6135. rhapsody* | darwin1.[012])
  6136. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6137. darwin1.*)
  6138. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6139. darwin*) # darwin 5.x on
  6140. # if running on 10.5 or later, the deployment target defaults
  6141. # to the OS version, if on x86, and 10.4, the deployment
  6142. # target defaults to 10.4. Don't you love it?
  6143. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6144. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6145. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6146. 10.[012]*)
  6147. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6148. 10.*)
  6149. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6150. esac
  6151. ;;
  6152. esac
  6153. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6154. _lt_dar_single_mod='$single_module'
  6155. fi
  6156. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6157. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6158. else
  6159. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6160. fi
  6161. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6162. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6163. else
  6164. _lt_dsymutil=
  6165. fi
  6166. ;;
  6167. esac
  6168. ac_ext=c
  6169. ac_cpp='$CPP $CPPFLAGS'
  6170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6174. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6175. # On Suns, sometimes $CPP names a directory.
  6176. if test -n "$CPP" && test -d "$CPP"; then
  6177. CPP=
  6178. fi
  6179. if test -z "$CPP"; then
  6180. if ${ac_cv_prog_CPP+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. # Double quotes because CPP needs to be expanded
  6184. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6185. do
  6186. ac_preproc_ok=false
  6187. for ac_c_preproc_warn_flag in '' yes
  6188. do
  6189. # Use a header file that comes with gcc, so configuring glibc
  6190. # with a fresh cross-compiler works.
  6191. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6192. # <limits.h> exists even on freestanding compilers.
  6193. # On the NeXT, cc -E runs the code through the compiler's parser,
  6194. # not just through cpp. "Syntax error" is here to catch this case.
  6195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6196. /* end confdefs.h. */
  6197. #ifdef __STDC__
  6198. # include <limits.h>
  6199. #else
  6200. # include <assert.h>
  6201. #endif
  6202. Syntax error
  6203. _ACEOF
  6204. if ac_fn_c_try_cpp "$LINENO"; then :
  6205. else
  6206. # Broken: fails on valid input.
  6207. continue
  6208. fi
  6209. rm -f conftest.err conftest.i conftest.$ac_ext
  6210. # OK, works on sane cases. Now check whether nonexistent headers
  6211. # can be detected and how.
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #include <ac_nonexistent.h>
  6215. _ACEOF
  6216. if ac_fn_c_try_cpp "$LINENO"; then :
  6217. # Broken: success on invalid input.
  6218. continue
  6219. else
  6220. # Passes both tests.
  6221. ac_preproc_ok=:
  6222. break
  6223. fi
  6224. rm -f conftest.err conftest.i conftest.$ac_ext
  6225. done
  6226. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6227. rm -f conftest.i conftest.err conftest.$ac_ext
  6228. if $ac_preproc_ok; then :
  6229. break
  6230. fi
  6231. done
  6232. ac_cv_prog_CPP=$CPP
  6233. fi
  6234. CPP=$ac_cv_prog_CPP
  6235. else
  6236. ac_cv_prog_CPP=$CPP
  6237. fi
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6239. $as_echo "$CPP" >&6; }
  6240. ac_preproc_ok=false
  6241. for ac_c_preproc_warn_flag in '' yes
  6242. do
  6243. # Use a header file that comes with gcc, so configuring glibc
  6244. # with a fresh cross-compiler works.
  6245. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6246. # <limits.h> exists even on freestanding compilers.
  6247. # On the NeXT, cc -E runs the code through the compiler's parser,
  6248. # not just through cpp. "Syntax error" is here to catch this case.
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. #ifdef __STDC__
  6252. # include <limits.h>
  6253. #else
  6254. # include <assert.h>
  6255. #endif
  6256. Syntax error
  6257. _ACEOF
  6258. if ac_fn_c_try_cpp "$LINENO"; then :
  6259. else
  6260. # Broken: fails on valid input.
  6261. continue
  6262. fi
  6263. rm -f conftest.err conftest.i conftest.$ac_ext
  6264. # OK, works on sane cases. Now check whether nonexistent headers
  6265. # can be detected and how.
  6266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6267. /* end confdefs.h. */
  6268. #include <ac_nonexistent.h>
  6269. _ACEOF
  6270. if ac_fn_c_try_cpp "$LINENO"; then :
  6271. # Broken: success on invalid input.
  6272. continue
  6273. else
  6274. # Passes both tests.
  6275. ac_preproc_ok=:
  6276. break
  6277. fi
  6278. rm -f conftest.err conftest.i conftest.$ac_ext
  6279. done
  6280. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6281. rm -f conftest.i conftest.err conftest.$ac_ext
  6282. if $ac_preproc_ok; then :
  6283. else
  6284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6286. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6287. See \`config.log' for more details" "$LINENO" 5; }
  6288. fi
  6289. ac_ext=c
  6290. ac_cpp='$CPP $CPPFLAGS'
  6291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6295. $as_echo_n "checking for ANSI C header files... " >&6; }
  6296. if ${ac_cv_header_stdc+:} false; then :
  6297. $as_echo_n "(cached) " >&6
  6298. else
  6299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6300. /* end confdefs.h. */
  6301. #include <stdlib.h>
  6302. #include <stdarg.h>
  6303. #include <string.h>
  6304. #include <float.h>
  6305. int
  6306. main ()
  6307. {
  6308. ;
  6309. return 0;
  6310. }
  6311. _ACEOF
  6312. if ac_fn_c_try_compile "$LINENO"; then :
  6313. ac_cv_header_stdc=yes
  6314. else
  6315. ac_cv_header_stdc=no
  6316. fi
  6317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6318. if test $ac_cv_header_stdc = yes; then
  6319. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6321. /* end confdefs.h. */
  6322. #include <string.h>
  6323. _ACEOF
  6324. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6325. $EGREP "memchr" >/dev/null 2>&1; then :
  6326. else
  6327. ac_cv_header_stdc=no
  6328. fi
  6329. rm -f conftest*
  6330. fi
  6331. if test $ac_cv_header_stdc = yes; then
  6332. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6334. /* end confdefs.h. */
  6335. #include <stdlib.h>
  6336. _ACEOF
  6337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6338. $EGREP "free" >/dev/null 2>&1; then :
  6339. else
  6340. ac_cv_header_stdc=no
  6341. fi
  6342. rm -f conftest*
  6343. fi
  6344. if test $ac_cv_header_stdc = yes; then
  6345. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6346. if test "$cross_compiling" = yes; then :
  6347. :
  6348. else
  6349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6350. /* end confdefs.h. */
  6351. #include <ctype.h>
  6352. #include <stdlib.h>
  6353. #if ((' ' & 0x0FF) == 0x020)
  6354. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6355. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6356. #else
  6357. # define ISLOWER(c) \
  6358. (('a' <= (c) && (c) <= 'i') \
  6359. || ('j' <= (c) && (c) <= 'r') \
  6360. || ('s' <= (c) && (c) <= 'z'))
  6361. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6362. #endif
  6363. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6364. int
  6365. main ()
  6366. {
  6367. int i;
  6368. for (i = 0; i < 256; i++)
  6369. if (XOR (islower (i), ISLOWER (i))
  6370. || toupper (i) != TOUPPER (i))
  6371. return 2;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. if ac_fn_c_try_run "$LINENO"; then :
  6376. else
  6377. ac_cv_header_stdc=no
  6378. fi
  6379. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6380. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6381. fi
  6382. fi
  6383. fi
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6385. $as_echo "$ac_cv_header_stdc" >&6; }
  6386. if test $ac_cv_header_stdc = yes; then
  6387. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6388. fi
  6389. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6390. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6391. inttypes.h stdint.h unistd.h
  6392. do :
  6393. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6394. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6395. "
  6396. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6397. cat >>confdefs.h <<_ACEOF
  6398. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6399. _ACEOF
  6400. fi
  6401. done
  6402. for ac_header in dlfcn.h
  6403. do :
  6404. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6405. "
  6406. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6407. cat >>confdefs.h <<_ACEOF
  6408. #define HAVE_DLFCN_H 1
  6409. _ACEOF
  6410. fi
  6411. done
  6412. # Set options
  6413. enable_win32_dll=yes
  6414. case $host in
  6415. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6416. if test -n "$ac_tool_prefix"; then
  6417. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6418. set dummy ${ac_tool_prefix}as; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if ${ac_cv_prog_AS+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$AS"; then
  6425. ac_cv_prog_AS="$AS" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6434. ac_cv_prog_AS="${ac_tool_prefix}as"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. AS=$ac_cv_prog_AS
  6444. if test -n "$AS"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6446. $as_echo "$AS" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. fi
  6452. if test -z "$ac_cv_prog_AS"; then
  6453. ac_ct_AS=$AS
  6454. # Extract the first word of "as", so it can be a program name with args.
  6455. set dummy as; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$ac_ct_AS"; then
  6462. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6471. ac_cv_prog_ac_ct_AS="as"
  6472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478. fi
  6479. fi
  6480. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6481. if test -n "$ac_ct_AS"; then
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6483. $as_echo "$ac_ct_AS" >&6; }
  6484. else
  6485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6486. $as_echo "no" >&6; }
  6487. fi
  6488. if test "x$ac_ct_AS" = x; then
  6489. AS="false"
  6490. else
  6491. case $cross_compiling:$ac_tool_warned in
  6492. yes:)
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6495. ac_tool_warned=yes ;;
  6496. esac
  6497. AS=$ac_ct_AS
  6498. fi
  6499. else
  6500. AS="$ac_cv_prog_AS"
  6501. fi
  6502. if test -n "$ac_tool_prefix"; then
  6503. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6504. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. if test -n "$DLLTOOL"; then
  6511. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. test -z "$as_dir" && as_dir=.
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6520. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. DLLTOOL=$ac_cv_prog_DLLTOOL
  6530. if test -n "$DLLTOOL"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6532. $as_echo "$DLLTOOL" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. fi
  6538. if test -z "$ac_cv_prog_DLLTOOL"; then
  6539. ac_ct_DLLTOOL=$DLLTOOL
  6540. # Extract the first word of "dlltool", so it can be a program name with args.
  6541. set dummy dlltool; ac_word=$2
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6543. $as_echo_n "checking for $ac_word... " >&6; }
  6544. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6545. $as_echo_n "(cached) " >&6
  6546. else
  6547. if test -n "$ac_ct_DLLTOOL"; then
  6548. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. test -z "$as_dir" && as_dir=.
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6557. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564. fi
  6565. fi
  6566. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6567. if test -n "$ac_ct_DLLTOOL"; then
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6569. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6570. else
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6572. $as_echo "no" >&6; }
  6573. fi
  6574. if test "x$ac_ct_DLLTOOL" = x; then
  6575. DLLTOOL="false"
  6576. else
  6577. case $cross_compiling:$ac_tool_warned in
  6578. yes:)
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6581. ac_tool_warned=yes ;;
  6582. esac
  6583. DLLTOOL=$ac_ct_DLLTOOL
  6584. fi
  6585. else
  6586. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6587. fi
  6588. if test -n "$ac_tool_prefix"; then
  6589. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6590. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$OBJDUMP"; then
  6597. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6606. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. OBJDUMP=$ac_cv_prog_OBJDUMP
  6616. if test -n "$OBJDUMP"; then
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6618. $as_echo "$OBJDUMP" >&6; }
  6619. else
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. fi
  6624. if test -z "$ac_cv_prog_OBJDUMP"; then
  6625. ac_ct_OBJDUMP=$OBJDUMP
  6626. # Extract the first word of "objdump", so it can be a program name with args.
  6627. set dummy objdump; ac_word=$2
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6629. $as_echo_n "checking for $ac_word... " >&6; }
  6630. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6631. $as_echo_n "(cached) " >&6
  6632. else
  6633. if test -n "$ac_ct_OBJDUMP"; then
  6634. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6635. else
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6643. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. fi
  6651. fi
  6652. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6653. if test -n "$ac_ct_OBJDUMP"; then
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6655. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6656. else
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6658. $as_echo "no" >&6; }
  6659. fi
  6660. if test "x$ac_ct_OBJDUMP" = x; then
  6661. OBJDUMP="false"
  6662. else
  6663. case $cross_compiling:$ac_tool_warned in
  6664. yes:)
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6667. ac_tool_warned=yes ;;
  6668. esac
  6669. OBJDUMP=$ac_ct_OBJDUMP
  6670. fi
  6671. else
  6672. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6673. fi
  6674. ;;
  6675. esac
  6676. test -z "$AS" && AS=as
  6677. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6678. test -z "$OBJDUMP" && OBJDUMP=objdump
  6679. enable_dlopen=no
  6680. # Check whether --enable-shared was given.
  6681. if test "${enable_shared+set}" = set; then :
  6682. enableval=$enable_shared; p=${PACKAGE-default}
  6683. case $enableval in
  6684. yes) enable_shared=yes ;;
  6685. no) enable_shared=no ;;
  6686. *)
  6687. enable_shared=no
  6688. # Look at the argument we got. We use all the common list separators.
  6689. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6690. for pkg in $enableval; do
  6691. IFS="$lt_save_ifs"
  6692. if test "X$pkg" = "X$p"; then
  6693. enable_shared=yes
  6694. fi
  6695. done
  6696. IFS="$lt_save_ifs"
  6697. ;;
  6698. esac
  6699. else
  6700. enable_shared=yes
  6701. fi
  6702. # Check whether --enable-static was given.
  6703. if test "${enable_static+set}" = set; then :
  6704. enableval=$enable_static; p=${PACKAGE-default}
  6705. case $enableval in
  6706. yes) enable_static=yes ;;
  6707. no) enable_static=no ;;
  6708. *)
  6709. enable_static=no
  6710. # Look at the argument we got. We use all the common list separators.
  6711. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6712. for pkg in $enableval; do
  6713. IFS="$lt_save_ifs"
  6714. if test "X$pkg" = "X$p"; then
  6715. enable_static=yes
  6716. fi
  6717. done
  6718. IFS="$lt_save_ifs"
  6719. ;;
  6720. esac
  6721. else
  6722. enable_static=yes
  6723. fi
  6724. # Check whether --with-pic was given.
  6725. if test "${with_pic+set}" = set; then :
  6726. withval=$with_pic; lt_p=${PACKAGE-default}
  6727. case $withval in
  6728. yes|no) pic_mode=$withval ;;
  6729. *)
  6730. pic_mode=default
  6731. # Look at the argument we got. We use all the common list separators.
  6732. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6733. for lt_pkg in $withval; do
  6734. IFS="$lt_save_ifs"
  6735. if test "X$lt_pkg" = "X$lt_p"; then
  6736. pic_mode=yes
  6737. fi
  6738. done
  6739. IFS="$lt_save_ifs"
  6740. ;;
  6741. esac
  6742. else
  6743. pic_mode=default
  6744. fi
  6745. test -z "$pic_mode" && pic_mode=default
  6746. # Check whether --enable-fast-install was given.
  6747. if test "${enable_fast_install+set}" = set; then :
  6748. enableval=$enable_fast_install; p=${PACKAGE-default}
  6749. case $enableval in
  6750. yes) enable_fast_install=yes ;;
  6751. no) enable_fast_install=no ;;
  6752. *)
  6753. enable_fast_install=no
  6754. # Look at the argument we got. We use all the common list separators.
  6755. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6756. for pkg in $enableval; do
  6757. IFS="$lt_save_ifs"
  6758. if test "X$pkg" = "X$p"; then
  6759. enable_fast_install=yes
  6760. fi
  6761. done
  6762. IFS="$lt_save_ifs"
  6763. ;;
  6764. esac
  6765. else
  6766. enable_fast_install=yes
  6767. fi
  6768. # This can be used to rebuild libtool when needed
  6769. LIBTOOL_DEPS="$ltmain"
  6770. # Always use our own libtool.
  6771. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6772. test -z "$LN_S" && LN_S="ln -s"
  6773. if test -n "${ZSH_VERSION+set}" ; then
  6774. setopt NO_GLOB_SUBST
  6775. fi
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6777. $as_echo_n "checking for objdir... " >&6; }
  6778. if ${lt_cv_objdir+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. rm -f .libs 2>/dev/null
  6782. mkdir .libs 2>/dev/null
  6783. if test -d .libs; then
  6784. lt_cv_objdir=.libs
  6785. else
  6786. # MS-DOS does not allow filenames that begin with a dot.
  6787. lt_cv_objdir=_libs
  6788. fi
  6789. rmdir .libs 2>/dev/null
  6790. fi
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6792. $as_echo "$lt_cv_objdir" >&6; }
  6793. objdir=$lt_cv_objdir
  6794. cat >>confdefs.h <<_ACEOF
  6795. #define LT_OBJDIR "$lt_cv_objdir/"
  6796. _ACEOF
  6797. case $host_os in
  6798. aix3*)
  6799. # AIX sometimes has problems with the GCC collect2 program. For some
  6800. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6801. # vanish in a puff of smoke.
  6802. if test "X${COLLECT_NAMES+set}" != Xset; then
  6803. COLLECT_NAMES=
  6804. export COLLECT_NAMES
  6805. fi
  6806. ;;
  6807. esac
  6808. # Global variables:
  6809. ofile=libtool
  6810. can_build_shared=yes
  6811. # All known linkers require a `.a' archive for static linking (except MSVC,
  6812. # which needs '.lib').
  6813. libext=a
  6814. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6815. old_CC="$CC"
  6816. old_CFLAGS="$CFLAGS"
  6817. # Set sane defaults for various variables
  6818. test -z "$CC" && CC=cc
  6819. test -z "$LTCC" && LTCC=$CC
  6820. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6821. test -z "$LD" && LD=ld
  6822. test -z "$ac_objext" && ac_objext=o
  6823. for cc_temp in $compiler""; do
  6824. case $cc_temp in
  6825. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6826. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6827. \-*) ;;
  6828. *) break;;
  6829. esac
  6830. done
  6831. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6832. # Only perform the check for file, if the check method requires it
  6833. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6834. case $deplibs_check_method in
  6835. file_magic*)
  6836. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6838. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6839. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6840. $as_echo_n "(cached) " >&6
  6841. else
  6842. case $MAGIC_CMD in
  6843. [\\/*] | ?:[\\/]*)
  6844. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6845. ;;
  6846. *)
  6847. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6848. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6849. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6850. for ac_dir in $ac_dummy; do
  6851. IFS="$lt_save_ifs"
  6852. test -z "$ac_dir" && ac_dir=.
  6853. if test -f $ac_dir/${ac_tool_prefix}file; then
  6854. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6855. if test -n "$file_magic_test_file"; then
  6856. case $deplibs_check_method in
  6857. "file_magic "*)
  6858. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6859. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6860. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6861. $EGREP "$file_magic_regex" > /dev/null; then
  6862. :
  6863. else
  6864. cat <<_LT_EOF 1>&2
  6865. *** Warning: the command libtool uses to detect shared libraries,
  6866. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6867. *** The result is that libtool may fail to recognize shared libraries
  6868. *** as such. This will affect the creation of libtool libraries that
  6869. *** depend on shared libraries, but programs linked with such libtool
  6870. *** libraries will work regardless of this problem. Nevertheless, you
  6871. *** may want to report the problem to your system manager and/or to
  6872. *** bug-libtool@gnu.org
  6873. _LT_EOF
  6874. fi ;;
  6875. esac
  6876. fi
  6877. break
  6878. fi
  6879. done
  6880. IFS="$lt_save_ifs"
  6881. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6882. ;;
  6883. esac
  6884. fi
  6885. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6886. if test -n "$MAGIC_CMD"; then
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6888. $as_echo "$MAGIC_CMD" >&6; }
  6889. else
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6891. $as_echo "no" >&6; }
  6892. fi
  6893. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6894. if test -n "$ac_tool_prefix"; then
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6896. $as_echo_n "checking for file... " >&6; }
  6897. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. case $MAGIC_CMD in
  6901. [\\/*] | ?:[\\/]*)
  6902. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6903. ;;
  6904. *)
  6905. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6906. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6907. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6908. for ac_dir in $ac_dummy; do
  6909. IFS="$lt_save_ifs"
  6910. test -z "$ac_dir" && ac_dir=.
  6911. if test -f $ac_dir/file; then
  6912. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6913. if test -n "$file_magic_test_file"; then
  6914. case $deplibs_check_method in
  6915. "file_magic "*)
  6916. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6917. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6918. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6919. $EGREP "$file_magic_regex" > /dev/null; then
  6920. :
  6921. else
  6922. cat <<_LT_EOF 1>&2
  6923. *** Warning: the command libtool uses to detect shared libraries,
  6924. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6925. *** The result is that libtool may fail to recognize shared libraries
  6926. *** as such. This will affect the creation of libtool libraries that
  6927. *** depend on shared libraries, but programs linked with such libtool
  6928. *** libraries will work regardless of this problem. Nevertheless, you
  6929. *** may want to report the problem to your system manager and/or to
  6930. *** bug-libtool@gnu.org
  6931. _LT_EOF
  6932. fi ;;
  6933. esac
  6934. fi
  6935. break
  6936. fi
  6937. done
  6938. IFS="$lt_save_ifs"
  6939. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6940. ;;
  6941. esac
  6942. fi
  6943. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6944. if test -n "$MAGIC_CMD"; then
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6946. $as_echo "$MAGIC_CMD" >&6; }
  6947. else
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6949. $as_echo "no" >&6; }
  6950. fi
  6951. else
  6952. MAGIC_CMD=:
  6953. fi
  6954. fi
  6955. fi
  6956. ;;
  6957. esac
  6958. # Use C for the default configuration in the libtool script
  6959. lt_save_CC="$CC"
  6960. ac_ext=c
  6961. ac_cpp='$CPP $CPPFLAGS'
  6962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6965. # Source file extension for C test sources.
  6966. ac_ext=c
  6967. # Object file extension for compiled C test sources.
  6968. objext=o
  6969. objext=$objext
  6970. # Code to be used in simple compile tests
  6971. lt_simple_compile_test_code="int some_variable = 0;"
  6972. # Code to be used in simple link tests
  6973. lt_simple_link_test_code='int main(){return(0);}'
  6974. # If no C compiler was specified, use CC.
  6975. LTCC=${LTCC-"$CC"}
  6976. # If no C compiler flags were specified, use CFLAGS.
  6977. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6978. # Allow CC to be a program name with arguments.
  6979. compiler=$CC
  6980. # Save the default compiler, since it gets overwritten when the other
  6981. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6982. compiler_DEFAULT=$CC
  6983. # save warnings/boilerplate of simple test code
  6984. ac_outfile=conftest.$ac_objext
  6985. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6986. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6987. _lt_compiler_boilerplate=`cat conftest.err`
  6988. $RM conftest*
  6989. ac_outfile=conftest.$ac_objext
  6990. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6991. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6992. _lt_linker_boilerplate=`cat conftest.err`
  6993. $RM -r conftest*
  6994. ## CAVEAT EMPTOR:
  6995. ## There is no encapsulation within the following macros, do not change
  6996. ## the running order or otherwise move them around unless you know exactly
  6997. ## what you are doing...
  6998. if test -n "$compiler"; then
  6999. lt_prog_compiler_no_builtin_flag=
  7000. if test "$GCC" = yes; then
  7001. case $cc_basename in
  7002. nvcc*)
  7003. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7004. *)
  7005. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7006. esac
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7008. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7009. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. lt_cv_prog_compiler_rtti_exceptions=no
  7013. ac_outfile=conftest.$ac_objext
  7014. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7015. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7016. # Insert the option either (1) after the last *FLAGS variable, or
  7017. # (2) before a word containing "conftest.", or (3) at the end.
  7018. # Note that $ac_compile itself does not contain backslashes and begins
  7019. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7020. # The option is referenced via a variable to avoid confusing sed.
  7021. lt_compile=`echo "$ac_compile" | $SED \
  7022. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7023. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7024. -e 's:$: $lt_compiler_flag:'`
  7025. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7026. (eval "$lt_compile" 2>conftest.err)
  7027. ac_status=$?
  7028. cat conftest.err >&5
  7029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7030. if (exit $ac_status) && test -s "$ac_outfile"; then
  7031. # The compiler can only warn and ignore the option if not recognized
  7032. # So say no if there are warnings other than the usual output.
  7033. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7034. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7035. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7036. lt_cv_prog_compiler_rtti_exceptions=yes
  7037. fi
  7038. fi
  7039. $RM conftest*
  7040. fi
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7042. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7043. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7044. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7045. else
  7046. :
  7047. fi
  7048. fi
  7049. lt_prog_compiler_wl=
  7050. lt_prog_compiler_pic=
  7051. lt_prog_compiler_static=
  7052. if test "$GCC" = yes; then
  7053. lt_prog_compiler_wl='-Wl,'
  7054. lt_prog_compiler_static='-static'
  7055. case $host_os in
  7056. aix*)
  7057. # All AIX code is PIC.
  7058. if test "$host_cpu" = ia64; then
  7059. # AIX 5 now supports IA64 processor
  7060. lt_prog_compiler_static='-Bstatic'
  7061. fi
  7062. ;;
  7063. amigaos*)
  7064. case $host_cpu in
  7065. powerpc)
  7066. # see comment about AmigaOS4 .so support
  7067. lt_prog_compiler_pic='-fPIC'
  7068. ;;
  7069. m68k)
  7070. # FIXME: we need at least 68020 code to build shared libraries, but
  7071. # adding the `-m68020' flag to GCC prevents building anything better,
  7072. # like `-m68040'.
  7073. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7074. ;;
  7075. esac
  7076. ;;
  7077. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7078. # PIC is the default for these OSes.
  7079. ;;
  7080. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7081. # This hack is so that the source file can tell whether it is being
  7082. # built for inclusion in a dll (and should export symbols for example).
  7083. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7084. # (--disable-auto-import) libraries
  7085. lt_prog_compiler_pic='-DDLL_EXPORT'
  7086. ;;
  7087. darwin* | rhapsody*)
  7088. # PIC is the default on this platform
  7089. # Common symbols not allowed in MH_DYLIB files
  7090. lt_prog_compiler_pic='-fno-common'
  7091. ;;
  7092. haiku*)
  7093. # PIC is the default for Haiku.
  7094. # The "-static" flag exists, but is broken.
  7095. lt_prog_compiler_static=
  7096. ;;
  7097. hpux*)
  7098. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7099. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7100. # sets the default TLS model and affects inlining.
  7101. case $host_cpu in
  7102. hppa*64*)
  7103. # +Z the default
  7104. ;;
  7105. *)
  7106. lt_prog_compiler_pic='-fPIC'
  7107. ;;
  7108. esac
  7109. ;;
  7110. interix[3-9]*)
  7111. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7112. # Instead, we relocate shared libraries at runtime.
  7113. ;;
  7114. msdosdjgpp*)
  7115. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7116. # on systems that don't support them.
  7117. lt_prog_compiler_can_build_shared=no
  7118. enable_shared=no
  7119. ;;
  7120. *nto* | *qnx*)
  7121. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7122. # it will coredump.
  7123. lt_prog_compiler_pic='-fPIC -shared'
  7124. ;;
  7125. sysv4*MP*)
  7126. if test -d /usr/nec; then
  7127. lt_prog_compiler_pic=-Kconform_pic
  7128. fi
  7129. ;;
  7130. *)
  7131. lt_prog_compiler_pic='-fPIC'
  7132. ;;
  7133. esac
  7134. case $cc_basename in
  7135. nvcc*) # Cuda Compiler Driver 2.2
  7136. lt_prog_compiler_wl='-Xlinker '
  7137. if test -n "$lt_prog_compiler_pic"; then
  7138. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7139. fi
  7140. ;;
  7141. esac
  7142. else
  7143. # PORTME Check for flag to pass linker flags through the system compiler.
  7144. case $host_os in
  7145. aix*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. if test "$host_cpu" = ia64; then
  7148. # AIX 5 now supports IA64 processor
  7149. lt_prog_compiler_static='-Bstatic'
  7150. else
  7151. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7152. fi
  7153. ;;
  7154. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7155. # This hack is so that the source file can tell whether it is being
  7156. # built for inclusion in a dll (and should export symbols for example).
  7157. lt_prog_compiler_pic='-DDLL_EXPORT'
  7158. ;;
  7159. hpux9* | hpux10* | hpux11*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7162. # not for PA HP-UX.
  7163. case $host_cpu in
  7164. hppa*64*|ia64*)
  7165. # +Z the default
  7166. ;;
  7167. *)
  7168. lt_prog_compiler_pic='+Z'
  7169. ;;
  7170. esac
  7171. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7172. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7173. ;;
  7174. irix5* | irix6* | nonstopux*)
  7175. lt_prog_compiler_wl='-Wl,'
  7176. # PIC (with -KPIC) is the default.
  7177. lt_prog_compiler_static='-non_shared'
  7178. ;;
  7179. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7180. case $cc_basename in
  7181. # old Intel for x86_64 which still supported -KPIC.
  7182. ecc*)
  7183. lt_prog_compiler_wl='-Wl,'
  7184. lt_prog_compiler_pic='-KPIC'
  7185. lt_prog_compiler_static='-static'
  7186. ;;
  7187. # icc used to be incompatible with GCC.
  7188. # ICC 10 doesn't accept -KPIC any more.
  7189. icc* | ifort*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_pic='-fPIC'
  7192. lt_prog_compiler_static='-static'
  7193. ;;
  7194. # Lahey Fortran 8.1.
  7195. lf95*)
  7196. lt_prog_compiler_wl='-Wl,'
  7197. lt_prog_compiler_pic='--shared'
  7198. lt_prog_compiler_static='--static'
  7199. ;;
  7200. nagfor*)
  7201. # NAG Fortran compiler
  7202. lt_prog_compiler_wl='-Wl,-Wl,,'
  7203. lt_prog_compiler_pic='-PIC'
  7204. lt_prog_compiler_static='-Bstatic'
  7205. ;;
  7206. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7207. # Portland Group compilers (*not* the Pentium gcc compiler,
  7208. # which looks to be a dead project)
  7209. lt_prog_compiler_wl='-Wl,'
  7210. lt_prog_compiler_pic='-fpic'
  7211. lt_prog_compiler_static='-Bstatic'
  7212. ;;
  7213. ccc*)
  7214. lt_prog_compiler_wl='-Wl,'
  7215. # All Alpha code is PIC.
  7216. lt_prog_compiler_static='-non_shared'
  7217. ;;
  7218. xl* | bgxl* | bgf* | mpixl*)
  7219. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7220. lt_prog_compiler_wl='-Wl,'
  7221. lt_prog_compiler_pic='-qpic'
  7222. lt_prog_compiler_static='-qstaticlink'
  7223. ;;
  7224. *)
  7225. case `$CC -V 2>&1 | sed 5q` in
  7226. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7227. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7228. lt_prog_compiler_pic='-KPIC'
  7229. lt_prog_compiler_static='-Bstatic'
  7230. lt_prog_compiler_wl=''
  7231. ;;
  7232. *Sun\ F* | *Sun*Fortran*)
  7233. lt_prog_compiler_pic='-KPIC'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. lt_prog_compiler_wl='-Qoption ld '
  7236. ;;
  7237. *Sun\ C*)
  7238. # Sun C 5.9
  7239. lt_prog_compiler_pic='-KPIC'
  7240. lt_prog_compiler_static='-Bstatic'
  7241. lt_prog_compiler_wl='-Wl,'
  7242. ;;
  7243. *Intel*\ [CF]*Compiler*)
  7244. lt_prog_compiler_wl='-Wl,'
  7245. lt_prog_compiler_pic='-fPIC'
  7246. lt_prog_compiler_static='-static'
  7247. ;;
  7248. *Portland\ Group*)
  7249. lt_prog_compiler_wl='-Wl,'
  7250. lt_prog_compiler_pic='-fpic'
  7251. lt_prog_compiler_static='-Bstatic'
  7252. ;;
  7253. esac
  7254. ;;
  7255. esac
  7256. ;;
  7257. newsos6)
  7258. lt_prog_compiler_pic='-KPIC'
  7259. lt_prog_compiler_static='-Bstatic'
  7260. ;;
  7261. *nto* | *qnx*)
  7262. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7263. # it will coredump.
  7264. lt_prog_compiler_pic='-fPIC -shared'
  7265. ;;
  7266. osf3* | osf4* | osf5*)
  7267. lt_prog_compiler_wl='-Wl,'
  7268. # All OSF/1 code is PIC.
  7269. lt_prog_compiler_static='-non_shared'
  7270. ;;
  7271. rdos*)
  7272. lt_prog_compiler_static='-non_shared'
  7273. ;;
  7274. solaris*)
  7275. lt_prog_compiler_pic='-KPIC'
  7276. lt_prog_compiler_static='-Bstatic'
  7277. case $cc_basename in
  7278. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7279. lt_prog_compiler_wl='-Qoption ld ';;
  7280. *)
  7281. lt_prog_compiler_wl='-Wl,';;
  7282. esac
  7283. ;;
  7284. sunos4*)
  7285. lt_prog_compiler_wl='-Qoption ld '
  7286. lt_prog_compiler_pic='-PIC'
  7287. lt_prog_compiler_static='-Bstatic'
  7288. ;;
  7289. sysv4 | sysv4.2uw2* | sysv4.3*)
  7290. lt_prog_compiler_wl='-Wl,'
  7291. lt_prog_compiler_pic='-KPIC'
  7292. lt_prog_compiler_static='-Bstatic'
  7293. ;;
  7294. sysv4*MP*)
  7295. if test -d /usr/nec ;then
  7296. lt_prog_compiler_pic='-Kconform_pic'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. fi
  7299. ;;
  7300. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7301. lt_prog_compiler_wl='-Wl,'
  7302. lt_prog_compiler_pic='-KPIC'
  7303. lt_prog_compiler_static='-Bstatic'
  7304. ;;
  7305. unicos*)
  7306. lt_prog_compiler_wl='-Wl,'
  7307. lt_prog_compiler_can_build_shared=no
  7308. ;;
  7309. uts4*)
  7310. lt_prog_compiler_pic='-pic'
  7311. lt_prog_compiler_static='-Bstatic'
  7312. ;;
  7313. *)
  7314. lt_prog_compiler_can_build_shared=no
  7315. ;;
  7316. esac
  7317. fi
  7318. case $host_os in
  7319. # For platforms which do not support PIC, -DPIC is meaningless:
  7320. *djgpp*)
  7321. lt_prog_compiler_pic=
  7322. ;;
  7323. *)
  7324. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7325. ;;
  7326. esac
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7328. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7329. if ${lt_cv_prog_compiler_pic+:} false; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7333. fi
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7335. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7336. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7337. #
  7338. # Check to make sure the PIC flag actually works.
  7339. #
  7340. if test -n "$lt_prog_compiler_pic"; then
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7342. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7343. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7344. $as_echo_n "(cached) " >&6
  7345. else
  7346. lt_cv_prog_compiler_pic_works=no
  7347. ac_outfile=conftest.$ac_objext
  7348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7349. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7350. # Insert the option either (1) after the last *FLAGS variable, or
  7351. # (2) before a word containing "conftest.", or (3) at the end.
  7352. # Note that $ac_compile itself does not contain backslashes and begins
  7353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7354. # The option is referenced via a variable to avoid confusing sed.
  7355. lt_compile=`echo "$ac_compile" | $SED \
  7356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7358. -e 's:$: $lt_compiler_flag:'`
  7359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7360. (eval "$lt_compile" 2>conftest.err)
  7361. ac_status=$?
  7362. cat conftest.err >&5
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. if (exit $ac_status) && test -s "$ac_outfile"; then
  7365. # The compiler can only warn and ignore the option if not recognized
  7366. # So say no if there are warnings other than the usual output.
  7367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7368. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7369. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7370. lt_cv_prog_compiler_pic_works=yes
  7371. fi
  7372. fi
  7373. $RM conftest*
  7374. fi
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7376. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7377. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7378. case $lt_prog_compiler_pic in
  7379. "" | " "*) ;;
  7380. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7381. esac
  7382. else
  7383. lt_prog_compiler_pic=
  7384. lt_prog_compiler_can_build_shared=no
  7385. fi
  7386. fi
  7387. #
  7388. # Check to make sure the static flag actually works.
  7389. #
  7390. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7392. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7393. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. lt_cv_prog_compiler_static_works=no
  7397. save_LDFLAGS="$LDFLAGS"
  7398. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7399. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7400. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7401. # The linker can only warn and ignore the option if not recognized
  7402. # So say no if there are warnings
  7403. if test -s conftest.err; then
  7404. # Append any errors to the config.log.
  7405. cat conftest.err 1>&5
  7406. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7408. if diff conftest.exp conftest.er2 >/dev/null; then
  7409. lt_cv_prog_compiler_static_works=yes
  7410. fi
  7411. else
  7412. lt_cv_prog_compiler_static_works=yes
  7413. fi
  7414. fi
  7415. $RM -r conftest*
  7416. LDFLAGS="$save_LDFLAGS"
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7419. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7420. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7421. :
  7422. else
  7423. lt_prog_compiler_static=
  7424. fi
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7426. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7427. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7428. $as_echo_n "(cached) " >&6
  7429. else
  7430. lt_cv_prog_compiler_c_o=no
  7431. $RM -r conftest 2>/dev/null
  7432. mkdir conftest
  7433. cd conftest
  7434. mkdir out
  7435. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7436. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7437. # Insert the option either (1) after the last *FLAGS variable, or
  7438. # (2) before a word containing "conftest.", or (3) at the end.
  7439. # Note that $ac_compile itself does not contain backslashes and begins
  7440. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7441. lt_compile=`echo "$ac_compile" | $SED \
  7442. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7443. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7444. -e 's:$: $lt_compiler_flag:'`
  7445. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7446. (eval "$lt_compile" 2>out/conftest.err)
  7447. ac_status=$?
  7448. cat out/conftest.err >&5
  7449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7451. then
  7452. # The compiler can only warn and ignore the option if not recognized
  7453. # So say no if there are warnings
  7454. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7455. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7456. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7457. lt_cv_prog_compiler_c_o=yes
  7458. fi
  7459. fi
  7460. chmod u+w . 2>&5
  7461. $RM conftest*
  7462. # SGI C++ compiler will create directory out/ii_files/ for
  7463. # template instantiation
  7464. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7465. $RM out/* && rmdir out
  7466. cd ..
  7467. $RM -r conftest
  7468. $RM conftest*
  7469. fi
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7471. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7473. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7474. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7475. $as_echo_n "(cached) " >&6
  7476. else
  7477. lt_cv_prog_compiler_c_o=no
  7478. $RM -r conftest 2>/dev/null
  7479. mkdir conftest
  7480. cd conftest
  7481. mkdir out
  7482. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7483. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7484. # Insert the option either (1) after the last *FLAGS variable, or
  7485. # (2) before a word containing "conftest.", or (3) at the end.
  7486. # Note that $ac_compile itself does not contain backslashes and begins
  7487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7488. lt_compile=`echo "$ac_compile" | $SED \
  7489. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7490. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7491. -e 's:$: $lt_compiler_flag:'`
  7492. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7493. (eval "$lt_compile" 2>out/conftest.err)
  7494. ac_status=$?
  7495. cat out/conftest.err >&5
  7496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7497. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7498. then
  7499. # The compiler can only warn and ignore the option if not recognized
  7500. # So say no if there are warnings
  7501. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7502. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7503. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7504. lt_cv_prog_compiler_c_o=yes
  7505. fi
  7506. fi
  7507. chmod u+w . 2>&5
  7508. $RM conftest*
  7509. # SGI C++ compiler will create directory out/ii_files/ for
  7510. # template instantiation
  7511. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7512. $RM out/* && rmdir out
  7513. cd ..
  7514. $RM -r conftest
  7515. $RM conftest*
  7516. fi
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7518. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7519. hard_links="nottested"
  7520. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7521. # do not overwrite the value of need_locks provided by the user
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7523. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7524. hard_links=yes
  7525. $RM conftest*
  7526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7527. touch conftest.a
  7528. ln conftest.a conftest.b 2>&5 || hard_links=no
  7529. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7531. $as_echo "$hard_links" >&6; }
  7532. if test "$hard_links" = no; then
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7534. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7535. need_locks=warn
  7536. fi
  7537. else
  7538. need_locks=no
  7539. fi
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7541. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7542. runpath_var=
  7543. allow_undefined_flag=
  7544. always_export_symbols=no
  7545. archive_cmds=
  7546. archive_expsym_cmds=
  7547. compiler_needs_object=no
  7548. enable_shared_with_static_runtimes=no
  7549. export_dynamic_flag_spec=
  7550. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7551. hardcode_automatic=no
  7552. hardcode_direct=no
  7553. hardcode_direct_absolute=no
  7554. hardcode_libdir_flag_spec=
  7555. hardcode_libdir_separator=
  7556. hardcode_minus_L=no
  7557. hardcode_shlibpath_var=unsupported
  7558. inherit_rpath=no
  7559. link_all_deplibs=unknown
  7560. module_cmds=
  7561. module_expsym_cmds=
  7562. old_archive_from_new_cmds=
  7563. old_archive_from_expsyms_cmds=
  7564. thread_safe_flag_spec=
  7565. whole_archive_flag_spec=
  7566. # include_expsyms should be a list of space-separated symbols to be *always*
  7567. # included in the symbol list
  7568. include_expsyms=
  7569. # exclude_expsyms can be an extended regexp of symbols to exclude
  7570. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7571. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7572. # as well as any symbol that contains `d'.
  7573. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7574. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7575. # platforms (ab)use it in PIC code, but their linkers get confused if
  7576. # the symbol is explicitly referenced. Since portable code cannot
  7577. # rely on this symbol name, it's probably fine to never include it in
  7578. # preloaded symbol tables.
  7579. # Exclude shared library initialization/finalization symbols.
  7580. extract_expsyms_cmds=
  7581. case $host_os in
  7582. cygwin* | mingw* | pw32* | cegcc*)
  7583. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7584. # When not using gcc, we currently assume that we are using
  7585. # Microsoft Visual C++.
  7586. if test "$GCC" != yes; then
  7587. with_gnu_ld=no
  7588. fi
  7589. ;;
  7590. interix*)
  7591. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7592. with_gnu_ld=yes
  7593. ;;
  7594. openbsd*)
  7595. with_gnu_ld=no
  7596. ;;
  7597. esac
  7598. ld_shlibs=yes
  7599. # On some targets, GNU ld is compatible enough with the native linker
  7600. # that we're better off using the native interface for both.
  7601. lt_use_gnu_ld_interface=no
  7602. if test "$with_gnu_ld" = yes; then
  7603. case $host_os in
  7604. aix*)
  7605. # The AIX port of GNU ld has always aspired to compatibility
  7606. # with the native linker. However, as the warning in the GNU ld
  7607. # block says, versions before 2.19.5* couldn't really create working
  7608. # shared libraries, regardless of the interface used.
  7609. case `$LD -v 2>&1` in
  7610. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7611. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7612. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7613. *)
  7614. lt_use_gnu_ld_interface=yes
  7615. ;;
  7616. esac
  7617. ;;
  7618. *)
  7619. lt_use_gnu_ld_interface=yes
  7620. ;;
  7621. esac
  7622. fi
  7623. if test "$lt_use_gnu_ld_interface" = yes; then
  7624. # If archive_cmds runs LD, not CC, wlarc should be empty
  7625. wlarc='${wl}'
  7626. # Set some defaults for GNU ld with shared library support. These
  7627. # are reset later if shared libraries are not supported. Putting them
  7628. # here allows them to be overridden if necessary.
  7629. runpath_var=LD_RUN_PATH
  7630. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7631. export_dynamic_flag_spec='${wl}--export-dynamic'
  7632. # ancient GNU ld didn't support --whole-archive et. al.
  7633. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7634. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7635. else
  7636. whole_archive_flag_spec=
  7637. fi
  7638. supports_anon_versioning=no
  7639. case `$LD -v 2>&1` in
  7640. *GNU\ gold*) supports_anon_versioning=yes ;;
  7641. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7642. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7643. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7644. *\ 2.11.*) ;; # other 2.11 versions
  7645. *) supports_anon_versioning=yes ;;
  7646. esac
  7647. # See if GNU ld supports shared libraries.
  7648. case $host_os in
  7649. aix[3-9]*)
  7650. # On AIX/PPC, the GNU linker is very broken
  7651. if test "$host_cpu" != ia64; then
  7652. ld_shlibs=no
  7653. cat <<_LT_EOF 1>&2
  7654. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7655. *** to be unable to reliably create shared libraries on AIX.
  7656. *** Therefore, libtool is disabling shared libraries support. If you
  7657. *** really care for shared libraries, you may want to install binutils
  7658. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7659. *** You will then need to restart the configuration process.
  7660. _LT_EOF
  7661. fi
  7662. ;;
  7663. amigaos*)
  7664. case $host_cpu in
  7665. powerpc)
  7666. # see comment about AmigaOS4 .so support
  7667. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7668. archive_expsym_cmds=''
  7669. ;;
  7670. m68k)
  7671. 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)'
  7672. hardcode_libdir_flag_spec='-L$libdir'
  7673. hardcode_minus_L=yes
  7674. ;;
  7675. esac
  7676. ;;
  7677. beos*)
  7678. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7679. allow_undefined_flag=unsupported
  7680. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7681. # support --undefined. This deserves some investigation. FIXME
  7682. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7683. else
  7684. ld_shlibs=no
  7685. fi
  7686. ;;
  7687. cygwin* | mingw* | pw32* | cegcc*)
  7688. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7689. # as there is no search path for DLLs.
  7690. hardcode_libdir_flag_spec='-L$libdir'
  7691. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7692. allow_undefined_flag=unsupported
  7693. always_export_symbols=no
  7694. enable_shared_with_static_runtimes=yes
  7695. 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'
  7696. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7697. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7698. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7699. # If the export-symbols file already is a .def file (1st line
  7700. # is EXPORTS), use it as is; otherwise, prepend...
  7701. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7702. cp $export_symbols $output_objdir/$soname.def;
  7703. else
  7704. echo EXPORTS > $output_objdir/$soname.def;
  7705. cat $export_symbols >> $output_objdir/$soname.def;
  7706. fi~
  7707. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7708. else
  7709. ld_shlibs=no
  7710. fi
  7711. ;;
  7712. haiku*)
  7713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7714. link_all_deplibs=yes
  7715. ;;
  7716. interix[3-9]*)
  7717. hardcode_direct=no
  7718. hardcode_shlibpath_var=no
  7719. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7720. export_dynamic_flag_spec='${wl}-E'
  7721. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7722. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7723. # default) and relocated if they conflict, which is a slow very memory
  7724. # consuming and fragmenting process. To avoid this, we pick a random,
  7725. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7726. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7727. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7728. 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'
  7729. ;;
  7730. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7731. tmp_diet=no
  7732. if test "$host_os" = linux-dietlibc; then
  7733. case $cc_basename in
  7734. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7735. esac
  7736. fi
  7737. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7738. && test "$tmp_diet" = no
  7739. then
  7740. tmp_addflag=' $pic_flag'
  7741. tmp_sharedflag='-shared'
  7742. case $cc_basename,$host_cpu in
  7743. pgcc*) # Portland Group C compiler
  7744. 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'
  7745. tmp_addflag=' $pic_flag'
  7746. ;;
  7747. pgf77* | pgf90* | pgf95* | pgfortran*)
  7748. # Portland Group f77 and f90 compilers
  7749. 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'
  7750. tmp_addflag=' $pic_flag -Mnomain' ;;
  7751. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7752. tmp_addflag=' -i_dynamic' ;;
  7753. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7754. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7755. ifc* | ifort*) # Intel Fortran compiler
  7756. tmp_addflag=' -nofor_main' ;;
  7757. lf95*) # Lahey Fortran 8.1
  7758. whole_archive_flag_spec=
  7759. tmp_sharedflag='--shared' ;;
  7760. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7761. tmp_sharedflag='-qmkshrobj'
  7762. tmp_addflag= ;;
  7763. nvcc*) # Cuda Compiler Driver 2.2
  7764. 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'
  7765. compiler_needs_object=yes
  7766. ;;
  7767. esac
  7768. case `$CC -V 2>&1 | sed 5q` in
  7769. *Sun\ C*) # Sun C 5.9
  7770. 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'
  7771. compiler_needs_object=yes
  7772. tmp_sharedflag='-G' ;;
  7773. *Sun\ F*) # Sun Fortran 8.3
  7774. tmp_sharedflag='-G' ;;
  7775. esac
  7776. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7777. if test "x$supports_anon_versioning" = xyes; then
  7778. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7779. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7780. echo "local: *; };" >> $output_objdir/$libname.ver~
  7781. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7782. fi
  7783. case $cc_basename in
  7784. xlf* | bgf* | bgxlf* | mpixlf*)
  7785. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7786. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7787. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7788. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7789. if test "x$supports_anon_versioning" = xyes; then
  7790. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7791. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7792. echo "local: *; };" >> $output_objdir/$libname.ver~
  7793. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7794. fi
  7795. ;;
  7796. esac
  7797. else
  7798. ld_shlibs=no
  7799. fi
  7800. ;;
  7801. netbsd*)
  7802. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7803. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7804. wlarc=
  7805. else
  7806. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7807. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7808. fi
  7809. ;;
  7810. solaris*)
  7811. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7812. ld_shlibs=no
  7813. cat <<_LT_EOF 1>&2
  7814. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7815. *** create shared libraries on Solaris systems. Therefore, libtool
  7816. *** is disabling shared libraries support. We urge you to upgrade GNU
  7817. *** binutils to release 2.9.1 or newer. Another option is to modify
  7818. *** your PATH or compiler configuration so that the native linker is
  7819. *** used, and then restart.
  7820. _LT_EOF
  7821. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7822. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7823. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7824. else
  7825. ld_shlibs=no
  7826. fi
  7827. ;;
  7828. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7829. case `$LD -v 2>&1` in
  7830. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7831. ld_shlibs=no
  7832. cat <<_LT_EOF 1>&2
  7833. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7834. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7835. *** is disabling shared libraries support. We urge you to upgrade GNU
  7836. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7837. *** your PATH or compiler configuration so that the native linker is
  7838. *** used, and then restart.
  7839. _LT_EOF
  7840. ;;
  7841. *)
  7842. # For security reasons, it is highly recommended that you always
  7843. # use absolute paths for naming shared libraries, and exclude the
  7844. # DT_RUNPATH tag from executables and libraries. But doing so
  7845. # requires that you compile everything twice, which is a pain.
  7846. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7847. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7848. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7849. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7850. else
  7851. ld_shlibs=no
  7852. fi
  7853. ;;
  7854. esac
  7855. ;;
  7856. sunos4*)
  7857. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7858. wlarc=
  7859. hardcode_direct=yes
  7860. hardcode_shlibpath_var=no
  7861. ;;
  7862. *)
  7863. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7864. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7865. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7866. else
  7867. ld_shlibs=no
  7868. fi
  7869. ;;
  7870. esac
  7871. if test "$ld_shlibs" = no; then
  7872. runpath_var=
  7873. hardcode_libdir_flag_spec=
  7874. export_dynamic_flag_spec=
  7875. whole_archive_flag_spec=
  7876. fi
  7877. else
  7878. # PORTME fill in a description of your system's linker (not GNU ld)
  7879. case $host_os in
  7880. aix3*)
  7881. allow_undefined_flag=unsupported
  7882. always_export_symbols=yes
  7883. 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'
  7884. # Note: this linker hardcodes the directories in LIBPATH if there
  7885. # are no directories specified by -L.
  7886. hardcode_minus_L=yes
  7887. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7888. # Neither direct hardcoding nor static linking is supported with a
  7889. # broken collect2.
  7890. hardcode_direct=unsupported
  7891. fi
  7892. ;;
  7893. aix[4-9]*)
  7894. if test "$host_cpu" = ia64; then
  7895. # On IA64, the linker does run time linking by default, so we don't
  7896. # have to do anything special.
  7897. aix_use_runtimelinking=no
  7898. exp_sym_flag='-Bexport'
  7899. no_entry_flag=""
  7900. else
  7901. # If we're using GNU nm, then we don't want the "-C" option.
  7902. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7903. # Also, AIX nm treats weak defined symbols like other global
  7904. # defined symbols, whereas GNU nm marks them as "W".
  7905. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7906. 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'
  7907. else
  7908. 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'
  7909. fi
  7910. aix_use_runtimelinking=no
  7911. # Test if we are trying to use run time linking or normal
  7912. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7913. # need to do runtime linking.
  7914. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7915. for ld_flag in $LDFLAGS; do
  7916. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7917. aix_use_runtimelinking=yes
  7918. break
  7919. fi
  7920. done
  7921. ;;
  7922. esac
  7923. exp_sym_flag='-bexport'
  7924. no_entry_flag='-bnoentry'
  7925. fi
  7926. # When large executables or shared objects are built, AIX ld can
  7927. # have problems creating the table of contents. If linking a library
  7928. # or program results in "error TOC overflow" add -mminimal-toc to
  7929. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7930. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7931. archive_cmds=''
  7932. hardcode_direct=yes
  7933. hardcode_direct_absolute=yes
  7934. hardcode_libdir_separator=':'
  7935. link_all_deplibs=yes
  7936. file_list_spec='${wl}-f,'
  7937. if test "$GCC" = yes; then
  7938. case $host_os in aix4.[012]|aix4.[012].*)
  7939. # We only want to do this on AIX 4.2 and lower, the check
  7940. # below for broken collect2 doesn't work under 4.3+
  7941. collect2name=`${CC} -print-prog-name=collect2`
  7942. if test -f "$collect2name" &&
  7943. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7944. then
  7945. # We have reworked collect2
  7946. :
  7947. else
  7948. # We have old collect2
  7949. hardcode_direct=unsupported
  7950. # It fails to find uninstalled libraries when the uninstalled
  7951. # path is not listed in the libpath. Setting hardcode_minus_L
  7952. # to unsupported forces relinking
  7953. hardcode_minus_L=yes
  7954. hardcode_libdir_flag_spec='-L$libdir'
  7955. hardcode_libdir_separator=
  7956. fi
  7957. ;;
  7958. esac
  7959. shared_flag='-shared'
  7960. if test "$aix_use_runtimelinking" = yes; then
  7961. shared_flag="$shared_flag "'${wl}-G'
  7962. fi
  7963. else
  7964. # not using gcc
  7965. if test "$host_cpu" = ia64; then
  7966. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7967. # chokes on -Wl,-G. The following line is correct:
  7968. shared_flag='-G'
  7969. else
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. shared_flag='${wl}-G'
  7972. else
  7973. shared_flag='${wl}-bM:SRE'
  7974. fi
  7975. fi
  7976. fi
  7977. export_dynamic_flag_spec='${wl}-bexpall'
  7978. # It seems that -bexpall does not export symbols beginning with
  7979. # underscore (_), so it is better to generate a list of symbols to export.
  7980. always_export_symbols=yes
  7981. if test "$aix_use_runtimelinking" = yes; then
  7982. # Warning - without using the other runtime loading flags (-brtl),
  7983. # -berok will link without error, but may produce a broken library.
  7984. allow_undefined_flag='-berok'
  7985. # Determine the default libpath from the value encoded in an
  7986. # empty executable.
  7987. if test "${lt_cv_aix_libpath+set}" = set; then
  7988. aix_libpath=$lt_cv_aix_libpath
  7989. else
  7990. if ${lt_cv_aix_libpath_+:} false; then :
  7991. $as_echo_n "(cached) " >&6
  7992. else
  7993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7994. /* end confdefs.h. */
  7995. int
  7996. main ()
  7997. {
  7998. ;
  7999. return 0;
  8000. }
  8001. _ACEOF
  8002. if ac_fn_c_try_link "$LINENO"; then :
  8003. lt_aix_libpath_sed='
  8004. /Import File Strings/,/^$/ {
  8005. /^0/ {
  8006. s/^0 *\([^ ]*\) *$/\1/
  8007. p
  8008. }
  8009. }'
  8010. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8011. # Check for a 64-bit object if we didn't find anything.
  8012. if test -z "$lt_cv_aix_libpath_"; then
  8013. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8014. fi
  8015. fi
  8016. rm -f core conftest.err conftest.$ac_objext \
  8017. conftest$ac_exeext conftest.$ac_ext
  8018. if test -z "$lt_cv_aix_libpath_"; then
  8019. lt_cv_aix_libpath_="/usr/lib:/lib"
  8020. fi
  8021. fi
  8022. aix_libpath=$lt_cv_aix_libpath_
  8023. fi
  8024. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8025. 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"
  8026. else
  8027. if test "$host_cpu" = ia64; then
  8028. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8029. allow_undefined_flag="-z nodefs"
  8030. 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"
  8031. else
  8032. # Determine the default libpath from the value encoded in an
  8033. # empty executable.
  8034. if test "${lt_cv_aix_libpath+set}" = set; then
  8035. aix_libpath=$lt_cv_aix_libpath
  8036. else
  8037. if ${lt_cv_aix_libpath_+:} false; then :
  8038. $as_echo_n "(cached) " >&6
  8039. else
  8040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8041. /* end confdefs.h. */
  8042. int
  8043. main ()
  8044. {
  8045. ;
  8046. return 0;
  8047. }
  8048. _ACEOF
  8049. if ac_fn_c_try_link "$LINENO"; then :
  8050. lt_aix_libpath_sed='
  8051. /Import File Strings/,/^$/ {
  8052. /^0/ {
  8053. s/^0 *\([^ ]*\) *$/\1/
  8054. p
  8055. }
  8056. }'
  8057. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8058. # Check for a 64-bit object if we didn't find anything.
  8059. if test -z "$lt_cv_aix_libpath_"; then
  8060. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8061. fi
  8062. fi
  8063. rm -f core conftest.err conftest.$ac_objext \
  8064. conftest$ac_exeext conftest.$ac_ext
  8065. if test -z "$lt_cv_aix_libpath_"; then
  8066. lt_cv_aix_libpath_="/usr/lib:/lib"
  8067. fi
  8068. fi
  8069. aix_libpath=$lt_cv_aix_libpath_
  8070. fi
  8071. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8072. # Warning - without using the other run time loading flags,
  8073. # -berok will link without error, but may produce a broken library.
  8074. no_undefined_flag=' ${wl}-bernotok'
  8075. allow_undefined_flag=' ${wl}-berok'
  8076. if test "$with_gnu_ld" = yes; then
  8077. # We only use this code for GNU lds that support --whole-archive.
  8078. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8079. else
  8080. # Exported symbols can be pulled into shared objects from archives
  8081. whole_archive_flag_spec='$convenience'
  8082. fi
  8083. archive_cmds_need_lc=yes
  8084. # This is similar to how AIX traditionally builds its shared libraries.
  8085. 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'
  8086. fi
  8087. fi
  8088. ;;
  8089. amigaos*)
  8090. case $host_cpu in
  8091. powerpc)
  8092. # see comment about AmigaOS4 .so support
  8093. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds=''
  8095. ;;
  8096. m68k)
  8097. 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)'
  8098. hardcode_libdir_flag_spec='-L$libdir'
  8099. hardcode_minus_L=yes
  8100. ;;
  8101. esac
  8102. ;;
  8103. bsdi[45]*)
  8104. export_dynamic_flag_spec=-rdynamic
  8105. ;;
  8106. cygwin* | mingw* | pw32* | cegcc*)
  8107. # When not using gcc, we currently assume that we are using
  8108. # Microsoft Visual C++.
  8109. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8110. # no search path for DLLs.
  8111. case $cc_basename in
  8112. cl*)
  8113. # Native MSVC
  8114. hardcode_libdir_flag_spec=' '
  8115. allow_undefined_flag=unsupported
  8116. always_export_symbols=yes
  8117. file_list_spec='@'
  8118. # Tell ltmain to make .lib files, not .a files.
  8119. libext=lib
  8120. # Tell ltmain to make .dll files, not .so files.
  8121. shrext_cmds=".dll"
  8122. # FIXME: Setting linknames here is a bad hack.
  8123. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8124. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8125. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8126. else
  8127. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8128. fi~
  8129. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8130. linknames='
  8131. # The linker will not automatically build a static lib if we build a DLL.
  8132. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8133. enable_shared_with_static_runtimes=yes
  8134. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8135. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8136. # Don't use ranlib
  8137. old_postinstall_cmds='chmod 644 $oldlib'
  8138. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8139. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8140. case $lt_outputfile in
  8141. *.exe|*.EXE) ;;
  8142. *)
  8143. lt_outputfile="$lt_outputfile.exe"
  8144. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8145. ;;
  8146. esac~
  8147. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8148. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8149. $RM "$lt_outputfile.manifest";
  8150. fi'
  8151. ;;
  8152. *)
  8153. # Assume MSVC wrapper
  8154. hardcode_libdir_flag_spec=' '
  8155. allow_undefined_flag=unsupported
  8156. # Tell ltmain to make .lib files, not .a files.
  8157. libext=lib
  8158. # Tell ltmain to make .dll files, not .so files.
  8159. shrext_cmds=".dll"
  8160. # FIXME: Setting linknames here is a bad hack.
  8161. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8162. # The linker will automatically build a .lib file if we build a DLL.
  8163. old_archive_from_new_cmds='true'
  8164. # FIXME: Should let the user specify the lib program.
  8165. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8166. enable_shared_with_static_runtimes=yes
  8167. ;;
  8168. esac
  8169. ;;
  8170. darwin* | rhapsody*)
  8171. archive_cmds_need_lc=no
  8172. hardcode_direct=no
  8173. hardcode_automatic=yes
  8174. hardcode_shlibpath_var=unsupported
  8175. if test "$lt_cv_ld_force_load" = "yes"; then
  8176. 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\"`'
  8177. else
  8178. whole_archive_flag_spec=''
  8179. fi
  8180. link_all_deplibs=yes
  8181. allow_undefined_flag="$_lt_dar_allow_undefined"
  8182. case $cc_basename in
  8183. ifort*) _lt_dar_can_shared=yes ;;
  8184. *) _lt_dar_can_shared=$GCC ;;
  8185. esac
  8186. if test "$_lt_dar_can_shared" = "yes"; then
  8187. output_verbose_link_cmd=func_echo_all
  8188. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8189. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8190. 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}"
  8191. 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}"
  8192. else
  8193. ld_shlibs=no
  8194. fi
  8195. ;;
  8196. dgux*)
  8197. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8198. hardcode_libdir_flag_spec='-L$libdir'
  8199. hardcode_shlibpath_var=no
  8200. ;;
  8201. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8202. # support. Future versions do this automatically, but an explicit c++rt0.o
  8203. # does not break anything, and helps significantly (at the cost of a little
  8204. # extra space).
  8205. freebsd2.2*)
  8206. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8207. hardcode_libdir_flag_spec='-R$libdir'
  8208. hardcode_direct=yes
  8209. hardcode_shlibpath_var=no
  8210. ;;
  8211. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8212. freebsd2.*)
  8213. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8214. hardcode_direct=yes
  8215. hardcode_minus_L=yes
  8216. hardcode_shlibpath_var=no
  8217. ;;
  8218. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8219. freebsd* | dragonfly*)
  8220. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8221. hardcode_libdir_flag_spec='-R$libdir'
  8222. hardcode_direct=yes
  8223. hardcode_shlibpath_var=no
  8224. ;;
  8225. hpux9*)
  8226. if test "$GCC" = yes; then
  8227. 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'
  8228. else
  8229. 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'
  8230. fi
  8231. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8232. hardcode_libdir_separator=:
  8233. hardcode_direct=yes
  8234. # hardcode_minus_L: Not really in the search PATH,
  8235. # but as the default location of the library.
  8236. hardcode_minus_L=yes
  8237. export_dynamic_flag_spec='${wl}-E'
  8238. ;;
  8239. hpux10*)
  8240. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8241. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8242. else
  8243. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8244. fi
  8245. if test "$with_gnu_ld" = no; then
  8246. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8247. hardcode_libdir_separator=:
  8248. hardcode_direct=yes
  8249. hardcode_direct_absolute=yes
  8250. export_dynamic_flag_spec='${wl}-E'
  8251. # hardcode_minus_L: Not really in the search PATH,
  8252. # but as the default location of the library.
  8253. hardcode_minus_L=yes
  8254. fi
  8255. ;;
  8256. hpux11*)
  8257. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8258. case $host_cpu in
  8259. hppa*64*)
  8260. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. ia64*)
  8263. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8264. ;;
  8265. *)
  8266. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8267. ;;
  8268. esac
  8269. else
  8270. case $host_cpu in
  8271. hppa*64*)
  8272. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8273. ;;
  8274. ia64*)
  8275. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8276. ;;
  8277. *)
  8278. # Older versions of the 11.00 compiler do not understand -b yet
  8279. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8281. $as_echo_n "checking if $CC understands -b... " >&6; }
  8282. if ${lt_cv_prog_compiler__b+:} false; then :
  8283. $as_echo_n "(cached) " >&6
  8284. else
  8285. lt_cv_prog_compiler__b=no
  8286. save_LDFLAGS="$LDFLAGS"
  8287. LDFLAGS="$LDFLAGS -b"
  8288. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8289. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8290. # The linker can only warn and ignore the option if not recognized
  8291. # So say no if there are warnings
  8292. if test -s conftest.err; then
  8293. # Append any errors to the config.log.
  8294. cat conftest.err 1>&5
  8295. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8296. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8297. if diff conftest.exp conftest.er2 >/dev/null; then
  8298. lt_cv_prog_compiler__b=yes
  8299. fi
  8300. else
  8301. lt_cv_prog_compiler__b=yes
  8302. fi
  8303. fi
  8304. $RM -r conftest*
  8305. LDFLAGS="$save_LDFLAGS"
  8306. fi
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8308. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8309. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8310. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8311. else
  8312. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8313. fi
  8314. ;;
  8315. esac
  8316. fi
  8317. if test "$with_gnu_ld" = no; then
  8318. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8319. hardcode_libdir_separator=:
  8320. case $host_cpu in
  8321. hppa*64*|ia64*)
  8322. hardcode_direct=no
  8323. hardcode_shlibpath_var=no
  8324. ;;
  8325. *)
  8326. hardcode_direct=yes
  8327. hardcode_direct_absolute=yes
  8328. export_dynamic_flag_spec='${wl}-E'
  8329. # hardcode_minus_L: Not really in the search PATH,
  8330. # but as the default location of the library.
  8331. hardcode_minus_L=yes
  8332. ;;
  8333. esac
  8334. fi
  8335. ;;
  8336. irix5* | irix6* | nonstopux*)
  8337. if test "$GCC" = yes; then
  8338. 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'
  8339. # Try to use the -exported_symbol ld option, if it does not
  8340. # work, assume that -exports_file does not work either and
  8341. # implicitly export all symbols.
  8342. # This should be the same for all languages, so no per-tag cache variable.
  8343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8344. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8345. if ${lt_cv_irix_exported_symbol+:} false; then :
  8346. $as_echo_n "(cached) " >&6
  8347. else
  8348. save_LDFLAGS="$LDFLAGS"
  8349. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8351. /* end confdefs.h. */
  8352. int foo (void) { return 0; }
  8353. _ACEOF
  8354. if ac_fn_c_try_link "$LINENO"; then :
  8355. lt_cv_irix_exported_symbol=yes
  8356. else
  8357. lt_cv_irix_exported_symbol=no
  8358. fi
  8359. rm -f core conftest.err conftest.$ac_objext \
  8360. conftest$ac_exeext conftest.$ac_ext
  8361. LDFLAGS="$save_LDFLAGS"
  8362. fi
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8364. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8365. if test "$lt_cv_irix_exported_symbol" = yes; then
  8366. 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'
  8367. fi
  8368. else
  8369. 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'
  8370. 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'
  8371. fi
  8372. archive_cmds_need_lc='no'
  8373. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8374. hardcode_libdir_separator=:
  8375. inherit_rpath=yes
  8376. link_all_deplibs=yes
  8377. ;;
  8378. netbsd*)
  8379. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8380. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8381. else
  8382. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8383. fi
  8384. hardcode_libdir_flag_spec='-R$libdir'
  8385. hardcode_direct=yes
  8386. hardcode_shlibpath_var=no
  8387. ;;
  8388. newsos6)
  8389. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8390. hardcode_direct=yes
  8391. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8392. hardcode_libdir_separator=:
  8393. hardcode_shlibpath_var=no
  8394. ;;
  8395. *nto* | *qnx*)
  8396. ;;
  8397. openbsd*)
  8398. if test -f /usr/libexec/ld.so; then
  8399. hardcode_direct=yes
  8400. hardcode_shlibpath_var=no
  8401. hardcode_direct_absolute=yes
  8402. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8403. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8404. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8405. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8406. export_dynamic_flag_spec='${wl}-E'
  8407. else
  8408. case $host_os in
  8409. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8410. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_libdir_flag_spec='-R$libdir'
  8412. ;;
  8413. *)
  8414. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8415. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8416. ;;
  8417. esac
  8418. fi
  8419. else
  8420. ld_shlibs=no
  8421. fi
  8422. ;;
  8423. os2*)
  8424. hardcode_libdir_flag_spec='-L$libdir'
  8425. hardcode_minus_L=yes
  8426. allow_undefined_flag=unsupported
  8427. 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'
  8428. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8429. ;;
  8430. osf3*)
  8431. if test "$GCC" = yes; then
  8432. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8433. 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'
  8434. else
  8435. allow_undefined_flag=' -expect_unresolved \*'
  8436. 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'
  8437. fi
  8438. archive_cmds_need_lc='no'
  8439. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8440. hardcode_libdir_separator=:
  8441. ;;
  8442. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8443. if test "$GCC" = yes; then
  8444. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8445. 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'
  8446. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8447. else
  8448. allow_undefined_flag=' -expect_unresolved \*'
  8449. 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'
  8450. 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~
  8451. $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'
  8452. # Both c and cxx compiler support -rpath directly
  8453. hardcode_libdir_flag_spec='-rpath $libdir'
  8454. fi
  8455. archive_cmds_need_lc='no'
  8456. hardcode_libdir_separator=:
  8457. ;;
  8458. solaris*)
  8459. no_undefined_flag=' -z defs'
  8460. if test "$GCC" = yes; then
  8461. wlarc='${wl}'
  8462. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8464. $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'
  8465. else
  8466. case `$CC -V 2>&1` in
  8467. *"Compilers 5.0"*)
  8468. wlarc=''
  8469. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8470. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8471. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8472. ;;
  8473. *)
  8474. wlarc='${wl}'
  8475. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8476. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8477. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8478. ;;
  8479. esac
  8480. fi
  8481. hardcode_libdir_flag_spec='-R$libdir'
  8482. hardcode_shlibpath_var=no
  8483. case $host_os in
  8484. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8485. *)
  8486. # The compiler driver will combine and reorder linker options,
  8487. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8488. # but is careful enough not to reorder.
  8489. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8490. if test "$GCC" = yes; then
  8491. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8492. else
  8493. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8494. fi
  8495. ;;
  8496. esac
  8497. link_all_deplibs=yes
  8498. ;;
  8499. sunos4*)
  8500. if test "x$host_vendor" = xsequent; then
  8501. # Use $CC to link under sequent, because it throws in some extra .o
  8502. # files that make .init and .fini sections work.
  8503. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8504. else
  8505. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8506. fi
  8507. hardcode_libdir_flag_spec='-L$libdir'
  8508. hardcode_direct=yes
  8509. hardcode_minus_L=yes
  8510. hardcode_shlibpath_var=no
  8511. ;;
  8512. sysv4)
  8513. case $host_vendor in
  8514. sni)
  8515. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8516. hardcode_direct=yes # is this really true???
  8517. ;;
  8518. siemens)
  8519. ## LD is ld it makes a PLAMLIB
  8520. ## CC just makes a GrossModule.
  8521. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8522. reload_cmds='$CC -r -o $output$reload_objs'
  8523. hardcode_direct=no
  8524. ;;
  8525. motorola)
  8526. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8527. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8528. ;;
  8529. esac
  8530. runpath_var='LD_RUN_PATH'
  8531. hardcode_shlibpath_var=no
  8532. ;;
  8533. sysv4.3*)
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_shlibpath_var=no
  8536. export_dynamic_flag_spec='-Bexport'
  8537. ;;
  8538. sysv4*MP*)
  8539. if test -d /usr/nec; then
  8540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. hardcode_shlibpath_var=no
  8542. runpath_var=LD_RUN_PATH
  8543. hardcode_runpath_var=yes
  8544. ld_shlibs=yes
  8545. fi
  8546. ;;
  8547. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8548. no_undefined_flag='${wl}-z,text'
  8549. archive_cmds_need_lc=no
  8550. hardcode_shlibpath_var=no
  8551. runpath_var='LD_RUN_PATH'
  8552. if test "$GCC" = yes; then
  8553. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. else
  8556. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8557. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. fi
  8559. ;;
  8560. sysv5* | sco3.2v5* | sco5v6*)
  8561. # Note: We can NOT use -z defs as we might desire, because we do not
  8562. # link with -lc, and that would cause any symbols used from libc to
  8563. # always be unresolved, which means just about no library would
  8564. # ever link correctly. If we're not using GNU ld we use -z text
  8565. # though, which does catch some bad symbols but isn't as heavy-handed
  8566. # as -z defs.
  8567. no_undefined_flag='${wl}-z,text'
  8568. allow_undefined_flag='${wl}-z,nodefs'
  8569. archive_cmds_need_lc=no
  8570. hardcode_shlibpath_var=no
  8571. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8572. hardcode_libdir_separator=':'
  8573. link_all_deplibs=yes
  8574. export_dynamic_flag_spec='${wl}-Bexport'
  8575. runpath_var='LD_RUN_PATH'
  8576. if test "$GCC" = yes; then
  8577. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. else
  8580. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8581. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8582. fi
  8583. ;;
  8584. uts4*)
  8585. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8586. hardcode_libdir_flag_spec='-L$libdir'
  8587. hardcode_shlibpath_var=no
  8588. ;;
  8589. *)
  8590. ld_shlibs=no
  8591. ;;
  8592. esac
  8593. if test x$host_vendor = xsni; then
  8594. case $host in
  8595. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8596. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8597. ;;
  8598. esac
  8599. fi
  8600. fi
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8602. $as_echo "$ld_shlibs" >&6; }
  8603. test "$ld_shlibs" = no && can_build_shared=no
  8604. with_gnu_ld=$with_gnu_ld
  8605. #
  8606. # Do we need to explicitly link libc?
  8607. #
  8608. case "x$archive_cmds_need_lc" in
  8609. x|xyes)
  8610. # Assume -lc should be added
  8611. archive_cmds_need_lc=yes
  8612. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8613. case $archive_cmds in
  8614. *'~'*)
  8615. # FIXME: we may have to deal with multi-command sequences.
  8616. ;;
  8617. '$CC '*)
  8618. # Test whether the compiler implicitly links with -lc since on some
  8619. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8620. # to ld, don't add -lc before -lgcc.
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8622. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8623. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8624. $as_echo_n "(cached) " >&6
  8625. else
  8626. $RM conftest*
  8627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8628. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8629. (eval $ac_compile) 2>&5
  8630. ac_status=$?
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8632. test $ac_status = 0; } 2>conftest.err; then
  8633. soname=conftest
  8634. lib=conftest
  8635. libobjs=conftest.$ac_objext
  8636. deplibs=
  8637. wl=$lt_prog_compiler_wl
  8638. pic_flag=$lt_prog_compiler_pic
  8639. compiler_flags=-v
  8640. linker_flags=-v
  8641. verstring=
  8642. output_objdir=.
  8643. libname=conftest
  8644. lt_save_allow_undefined_flag=$allow_undefined_flag
  8645. allow_undefined_flag=
  8646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8647. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8648. ac_status=$?
  8649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8650. test $ac_status = 0; }
  8651. then
  8652. lt_cv_archive_cmds_need_lc=no
  8653. else
  8654. lt_cv_archive_cmds_need_lc=yes
  8655. fi
  8656. allow_undefined_flag=$lt_save_allow_undefined_flag
  8657. else
  8658. cat conftest.err 1>&5
  8659. fi
  8660. $RM conftest*
  8661. fi
  8662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8663. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8664. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8665. ;;
  8666. esac
  8667. fi
  8668. ;;
  8669. esac
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8671. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8672. if test "$GCC" = yes; then
  8673. case $host_os in
  8674. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8675. *) lt_awk_arg="/^libraries:/" ;;
  8676. esac
  8677. case $host_os in
  8678. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8679. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8680. esac
  8681. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8682. case $lt_search_path_spec in
  8683. *\;*)
  8684. # if the path contains ";" then we assume it to be the separator
  8685. # otherwise default to the standard path separator (i.e. ":") - it is
  8686. # assumed that no part of a normal pathname contains ";" but that should
  8687. # okay in the real world where ";" in dirpaths is itself problematic.
  8688. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8689. ;;
  8690. *)
  8691. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8692. ;;
  8693. esac
  8694. # Ok, now we have the path, separated by spaces, we can step through it
  8695. # and add multilib dir if necessary...
  8696. lt_tmp_lt_search_path_spec=
  8697. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8698. # ...but if some path already ends with the multilib dir we assume
  8699. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8700. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8701. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8702. lt_multi_os_dir=
  8703. ;;
  8704. esac
  8705. for lt_sys_path in $lt_search_path_spec; do
  8706. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8707. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8708. elif test -n "$lt_multi_os_dir"; then
  8709. test -d "$lt_sys_path" && \
  8710. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8711. fi
  8712. done
  8713. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8714. BEGIN {RS=" "; FS="/|\n";} {
  8715. lt_foo="";
  8716. lt_count=0;
  8717. for (lt_i = NF; lt_i > 0; lt_i--) {
  8718. if ($lt_i != "" && $lt_i != ".") {
  8719. if ($lt_i == "..") {
  8720. lt_count++;
  8721. } else {
  8722. if (lt_count == 0) {
  8723. lt_foo="/" $lt_i lt_foo;
  8724. } else {
  8725. lt_count--;
  8726. }
  8727. }
  8728. }
  8729. }
  8730. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8731. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8732. }'`
  8733. # AWK program above erroneously prepends '/' to C:/dos/paths
  8734. # for these hosts.
  8735. case $host_os in
  8736. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8737. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8738. esac
  8739. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8740. else
  8741. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8742. fi
  8743. library_names_spec=
  8744. libname_spec='lib$name'
  8745. soname_spec=
  8746. shrext_cmds=".so"
  8747. postinstall_cmds=
  8748. postuninstall_cmds=
  8749. finish_cmds=
  8750. finish_eval=
  8751. shlibpath_var=
  8752. shlibpath_overrides_runpath=unknown
  8753. version_type=none
  8754. dynamic_linker="$host_os ld.so"
  8755. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8756. need_lib_prefix=unknown
  8757. hardcode_into_libs=no
  8758. # when you set need_version to no, make sure it does not cause -set_version
  8759. # flags to be left without arguments
  8760. need_version=unknown
  8761. case $host_os in
  8762. aix3*)
  8763. version_type=linux # correct to gnu/linux during the next big refactor
  8764. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8765. shlibpath_var=LIBPATH
  8766. # AIX 3 has no versioning support, so we append a major version to the name.
  8767. soname_spec='${libname}${release}${shared_ext}$major'
  8768. ;;
  8769. aix[4-9]*)
  8770. version_type=linux # correct to gnu/linux during the next big refactor
  8771. need_lib_prefix=no
  8772. need_version=no
  8773. hardcode_into_libs=yes
  8774. if test "$host_cpu" = ia64; then
  8775. # AIX 5 supports IA64
  8776. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8777. shlibpath_var=LD_LIBRARY_PATH
  8778. else
  8779. # With GCC up to 2.95.x, collect2 would create an import file
  8780. # for dependence libraries. The import file would start with
  8781. # the line `#! .'. This would cause the generated library to
  8782. # depend on `.', always an invalid library. This was fixed in
  8783. # development snapshots of GCC prior to 3.0.
  8784. case $host_os in
  8785. aix4 | aix4.[01] | aix4.[01].*)
  8786. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8787. echo ' yes '
  8788. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8789. :
  8790. else
  8791. can_build_shared=no
  8792. fi
  8793. ;;
  8794. esac
  8795. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8796. # soname into executable. Probably we can add versioning support to
  8797. # collect2, so additional links can be useful in future.
  8798. if test "$aix_use_runtimelinking" = yes; then
  8799. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8800. # instead of lib<name>.a to let people know that these are not
  8801. # typical AIX shared libraries.
  8802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8803. else
  8804. # We preserve .a as extension for shared libraries through AIX4.2
  8805. # and later when we are not doing run time linking.
  8806. library_names_spec='${libname}${release}.a $libname.a'
  8807. soname_spec='${libname}${release}${shared_ext}$major'
  8808. fi
  8809. shlibpath_var=LIBPATH
  8810. fi
  8811. ;;
  8812. amigaos*)
  8813. case $host_cpu in
  8814. powerpc)
  8815. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8816. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8818. ;;
  8819. m68k)
  8820. library_names_spec='$libname.ixlibrary $libname.a'
  8821. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8822. 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'
  8823. ;;
  8824. esac
  8825. ;;
  8826. beos*)
  8827. library_names_spec='${libname}${shared_ext}'
  8828. dynamic_linker="$host_os ld.so"
  8829. shlibpath_var=LIBRARY_PATH
  8830. ;;
  8831. bsdi[45]*)
  8832. version_type=linux # correct to gnu/linux during the next big refactor
  8833. need_version=no
  8834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8835. soname_spec='${libname}${release}${shared_ext}$major'
  8836. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8837. shlibpath_var=LD_LIBRARY_PATH
  8838. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8839. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8840. # the default ld.so.conf also contains /usr/contrib/lib and
  8841. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8842. # libtool to hard-code these into programs
  8843. ;;
  8844. cygwin* | mingw* | pw32* | cegcc*)
  8845. version_type=windows
  8846. shrext_cmds=".dll"
  8847. need_version=no
  8848. need_lib_prefix=no
  8849. case $GCC,$cc_basename in
  8850. yes,*)
  8851. # gcc
  8852. library_names_spec='$libname.dll.a'
  8853. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8854. postinstall_cmds='base_file=`basename \${file}`~
  8855. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8856. dldir=$destdir/`dirname \$dlpath`~
  8857. test -d \$dldir || mkdir -p \$dldir~
  8858. $install_prog $dir/$dlname \$dldir/$dlname~
  8859. chmod a+x \$dldir/$dlname~
  8860. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8861. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8862. fi'
  8863. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8864. dlpath=$dir/\$dldll~
  8865. $RM \$dlpath'
  8866. shlibpath_overrides_runpath=yes
  8867. case $host_os in
  8868. cygwin*)
  8869. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8870. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8871. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8872. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8873. ;;
  8874. mingw* | cegcc*)
  8875. # MinGW DLLs use traditional 'lib' prefix
  8876. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8877. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8878. ;;
  8879. pw32*)
  8880. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8881. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8882. ;;
  8883. esac
  8884. dynamic_linker='Win32 ld.exe'
  8885. ;;
  8886. *,cl*)
  8887. # Native MSVC
  8888. libname_spec='$name'
  8889. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8890. library_names_spec='${libname}.dll.lib'
  8891. case $build_os in
  8892. mingw*)
  8893. sys_lib_search_path_spec=
  8894. lt_save_ifs=$IFS
  8895. IFS=';'
  8896. for lt_path in $LIB
  8897. do
  8898. IFS=$lt_save_ifs
  8899. # Let DOS variable expansion print the short 8.3 style file name.
  8900. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8901. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8902. done
  8903. IFS=$lt_save_ifs
  8904. # Convert to MSYS style.
  8905. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8906. ;;
  8907. cygwin*)
  8908. # Convert to unix form, then to dos form, then back to unix form
  8909. # but this time dos style (no spaces!) so that the unix form looks
  8910. # like /cygdrive/c/PROGRA~1:/cygdr...
  8911. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8912. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8913. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8914. ;;
  8915. *)
  8916. sys_lib_search_path_spec="$LIB"
  8917. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8918. # It is most probably a Windows format PATH.
  8919. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8920. else
  8921. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8922. fi
  8923. # FIXME: find the short name or the path components, as spaces are
  8924. # common. (e.g. "Program Files" -> "PROGRA~1")
  8925. ;;
  8926. esac
  8927. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8928. postinstall_cmds='base_file=`basename \${file}`~
  8929. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8930. dldir=$destdir/`dirname \$dlpath`~
  8931. test -d \$dldir || mkdir -p \$dldir~
  8932. $install_prog $dir/$dlname \$dldir/$dlname'
  8933. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8934. dlpath=$dir/\$dldll~
  8935. $RM \$dlpath'
  8936. shlibpath_overrides_runpath=yes
  8937. dynamic_linker='Win32 link.exe'
  8938. ;;
  8939. *)
  8940. # Assume MSVC wrapper
  8941. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8942. dynamic_linker='Win32 ld.exe'
  8943. ;;
  8944. esac
  8945. # FIXME: first we should search . and the directory the executable is in
  8946. shlibpath_var=PATH
  8947. ;;
  8948. darwin* | rhapsody*)
  8949. dynamic_linker="$host_os dyld"
  8950. version_type=darwin
  8951. need_lib_prefix=no
  8952. need_version=no
  8953. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8954. soname_spec='${libname}${release}${major}$shared_ext'
  8955. shlibpath_overrides_runpath=yes
  8956. shlibpath_var=DYLD_LIBRARY_PATH
  8957. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8958. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8959. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8960. ;;
  8961. dgux*)
  8962. version_type=linux # correct to gnu/linux during the next big refactor
  8963. need_lib_prefix=no
  8964. need_version=no
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8966. soname_spec='${libname}${release}${shared_ext}$major'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. ;;
  8969. freebsd* | dragonfly*)
  8970. # DragonFly does not have aout. When/if they implement a new
  8971. # versioning mechanism, adjust this.
  8972. if test -x /usr/bin/objformat; then
  8973. objformat=`/usr/bin/objformat`
  8974. else
  8975. case $host_os in
  8976. freebsd[23].*) objformat=aout ;;
  8977. *) objformat=elf ;;
  8978. esac
  8979. fi
  8980. version_type=freebsd-$objformat
  8981. case $version_type in
  8982. freebsd-elf*)
  8983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8984. need_version=no
  8985. need_lib_prefix=no
  8986. ;;
  8987. freebsd-*)
  8988. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8989. need_version=yes
  8990. ;;
  8991. esac
  8992. shlibpath_var=LD_LIBRARY_PATH
  8993. case $host_os in
  8994. freebsd2.*)
  8995. shlibpath_overrides_runpath=yes
  8996. ;;
  8997. freebsd3.[01]* | freebsdelf3.[01]*)
  8998. shlibpath_overrides_runpath=yes
  8999. hardcode_into_libs=yes
  9000. ;;
  9001. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9002. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9003. shlibpath_overrides_runpath=no
  9004. hardcode_into_libs=yes
  9005. ;;
  9006. *) # from 4.6 on, and DragonFly
  9007. shlibpath_overrides_runpath=yes
  9008. hardcode_into_libs=yes
  9009. ;;
  9010. esac
  9011. ;;
  9012. gnu*)
  9013. version_type=linux # correct to gnu/linux during the next big refactor
  9014. need_lib_prefix=no
  9015. need_version=no
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. shlibpath_var=LD_LIBRARY_PATH
  9019. shlibpath_overrides_runpath=no
  9020. hardcode_into_libs=yes
  9021. ;;
  9022. haiku*)
  9023. version_type=linux # correct to gnu/linux during the next big refactor
  9024. need_lib_prefix=no
  9025. need_version=no
  9026. dynamic_linker="$host_os runtime_loader"
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. shlibpath_var=LIBRARY_PATH
  9030. shlibpath_overrides_runpath=yes
  9031. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9032. hardcode_into_libs=yes
  9033. ;;
  9034. hpux9* | hpux10* | hpux11*)
  9035. # Give a soname corresponding to the major version so that dld.sl refuses to
  9036. # link against other versions.
  9037. version_type=sunos
  9038. need_lib_prefix=no
  9039. need_version=no
  9040. case $host_cpu in
  9041. ia64*)
  9042. shrext_cmds='.so'
  9043. hardcode_into_libs=yes
  9044. dynamic_linker="$host_os dld.so"
  9045. shlibpath_var=LD_LIBRARY_PATH
  9046. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. if test "X$HPUX_IA64_MODE" = X32; then
  9050. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9051. else
  9052. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9053. fi
  9054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9055. ;;
  9056. hppa*64*)
  9057. shrext_cmds='.sl'
  9058. hardcode_into_libs=yes
  9059. dynamic_linker="$host_os dld.sl"
  9060. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9061. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9065. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9066. ;;
  9067. *)
  9068. shrext_cmds='.sl'
  9069. dynamic_linker="$host_os dld.sl"
  9070. shlibpath_var=SHLIB_PATH
  9071. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. ;;
  9075. esac
  9076. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9077. postinstall_cmds='chmod 555 $lib'
  9078. # or fails outright, so override atomically:
  9079. install_override_mode=555
  9080. ;;
  9081. interix[3-9]*)
  9082. version_type=linux # correct to gnu/linux during the next big refactor
  9083. need_lib_prefix=no
  9084. need_version=no
  9085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9086. soname_spec='${libname}${release}${shared_ext}$major'
  9087. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9088. shlibpath_var=LD_LIBRARY_PATH
  9089. shlibpath_overrides_runpath=no
  9090. hardcode_into_libs=yes
  9091. ;;
  9092. irix5* | irix6* | nonstopux*)
  9093. case $host_os in
  9094. nonstopux*) version_type=nonstopux ;;
  9095. *)
  9096. if test "$lt_cv_prog_gnu_ld" = yes; then
  9097. version_type=linux # correct to gnu/linux during the next big refactor
  9098. else
  9099. version_type=irix
  9100. fi ;;
  9101. esac
  9102. need_lib_prefix=no
  9103. need_version=no
  9104. soname_spec='${libname}${release}${shared_ext}$major'
  9105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9106. case $host_os in
  9107. irix5* | nonstopux*)
  9108. libsuff= shlibsuff=
  9109. ;;
  9110. *)
  9111. case $LD in # libtool.m4 will add one of these switches to LD
  9112. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9113. libsuff= shlibsuff= libmagic=32-bit;;
  9114. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9115. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9116. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9117. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9118. *) libsuff= shlibsuff= libmagic=never-match;;
  9119. esac
  9120. ;;
  9121. esac
  9122. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9123. shlibpath_overrides_runpath=no
  9124. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9125. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9126. hardcode_into_libs=yes
  9127. ;;
  9128. # No shared lib support for Linux oldld, aout, or coff.
  9129. linux*oldld* | linux*aout* | linux*coff*)
  9130. dynamic_linker=no
  9131. ;;
  9132. # This must be glibc/ELF.
  9133. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9134. version_type=linux # correct to gnu/linux during the next big refactor
  9135. need_lib_prefix=no
  9136. need_version=no
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. soname_spec='${libname}${release}${shared_ext}$major'
  9139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9140. shlibpath_var=LD_LIBRARY_PATH
  9141. shlibpath_overrides_runpath=no
  9142. # Some binutils ld are patched to set DT_RUNPATH
  9143. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9144. $as_echo_n "(cached) " >&6
  9145. else
  9146. lt_cv_shlibpath_overrides_runpath=no
  9147. save_LDFLAGS=$LDFLAGS
  9148. save_libdir=$libdir
  9149. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9150. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9152. /* end confdefs.h. */
  9153. int
  9154. main ()
  9155. {
  9156. ;
  9157. return 0;
  9158. }
  9159. _ACEOF
  9160. if ac_fn_c_try_link "$LINENO"; then :
  9161. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9162. lt_cv_shlibpath_overrides_runpath=yes
  9163. fi
  9164. fi
  9165. rm -f core conftest.err conftest.$ac_objext \
  9166. conftest$ac_exeext conftest.$ac_ext
  9167. LDFLAGS=$save_LDFLAGS
  9168. libdir=$save_libdir
  9169. fi
  9170. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9171. # This implies no fast_install, which is unacceptable.
  9172. # Some rework will be needed to allow for fast_install
  9173. # before this can be enabled.
  9174. hardcode_into_libs=yes
  9175. # Append ld.so.conf contents to the search path
  9176. if test -f /etc/ld.so.conf; then
  9177. 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' ' '`
  9178. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9179. fi
  9180. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9181. # powerpc, because MkLinux only supported shared libraries with the
  9182. # GNU dynamic linker. Since this was broken with cross compilers,
  9183. # most powerpc-linux boxes support dynamic linking these days and
  9184. # people can always --disable-shared, the test was removed, and we
  9185. # assume the GNU/Linux dynamic linker is in use.
  9186. dynamic_linker='GNU/Linux ld.so'
  9187. ;;
  9188. netbsd*)
  9189. version_type=sunos
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9194. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9195. dynamic_linker='NetBSD (a.out) ld.so'
  9196. else
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9198. soname_spec='${libname}${release}${shared_ext}$major'
  9199. dynamic_linker='NetBSD ld.elf_so'
  9200. fi
  9201. shlibpath_var=LD_LIBRARY_PATH
  9202. shlibpath_overrides_runpath=yes
  9203. hardcode_into_libs=yes
  9204. ;;
  9205. newsos6)
  9206. version_type=linux # correct to gnu/linux during the next big refactor
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=yes
  9210. ;;
  9211. *nto* | *qnx*)
  9212. version_type=qnx
  9213. need_lib_prefix=no
  9214. need_version=no
  9215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9216. soname_spec='${libname}${release}${shared_ext}$major'
  9217. shlibpath_var=LD_LIBRARY_PATH
  9218. shlibpath_overrides_runpath=no
  9219. hardcode_into_libs=yes
  9220. dynamic_linker='ldqnx.so'
  9221. ;;
  9222. openbsd*)
  9223. version_type=sunos
  9224. sys_lib_dlsearch_path_spec="/usr/lib"
  9225. need_lib_prefix=no
  9226. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9227. case $host_os in
  9228. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9229. *) need_version=no ;;
  9230. esac
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9232. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9235. case $host_os in
  9236. openbsd2.[89] | openbsd2.[89].*)
  9237. shlibpath_overrides_runpath=no
  9238. ;;
  9239. *)
  9240. shlibpath_overrides_runpath=yes
  9241. ;;
  9242. esac
  9243. else
  9244. shlibpath_overrides_runpath=yes
  9245. fi
  9246. ;;
  9247. os2*)
  9248. libname_spec='$name'
  9249. shrext_cmds=".dll"
  9250. need_lib_prefix=no
  9251. library_names_spec='$libname${shared_ext} $libname.a'
  9252. dynamic_linker='OS/2 ld.exe'
  9253. shlibpath_var=LIBPATH
  9254. ;;
  9255. osf3* | osf4* | osf5*)
  9256. version_type=osf
  9257. need_lib_prefix=no
  9258. need_version=no
  9259. soname_spec='${libname}${release}${shared_ext}$major'
  9260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9261. shlibpath_var=LD_LIBRARY_PATH
  9262. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9263. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9264. ;;
  9265. rdos*)
  9266. dynamic_linker=no
  9267. ;;
  9268. solaris*)
  9269. version_type=linux # correct to gnu/linux during the next big refactor
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=yes
  9276. hardcode_into_libs=yes
  9277. # ldd complains unless libraries are executable
  9278. postinstall_cmds='chmod +x $lib'
  9279. ;;
  9280. sunos4*)
  9281. version_type=sunos
  9282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9283. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. shlibpath_overrides_runpath=yes
  9286. if test "$with_gnu_ld" = yes; then
  9287. need_lib_prefix=no
  9288. fi
  9289. need_version=yes
  9290. ;;
  9291. sysv4 | sysv4.3*)
  9292. version_type=linux # correct to gnu/linux during the next big refactor
  9293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9294. soname_spec='${libname}${release}${shared_ext}$major'
  9295. shlibpath_var=LD_LIBRARY_PATH
  9296. case $host_vendor in
  9297. sni)
  9298. shlibpath_overrides_runpath=no
  9299. need_lib_prefix=no
  9300. runpath_var=LD_RUN_PATH
  9301. ;;
  9302. siemens)
  9303. need_lib_prefix=no
  9304. ;;
  9305. motorola)
  9306. need_lib_prefix=no
  9307. need_version=no
  9308. shlibpath_overrides_runpath=no
  9309. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9310. ;;
  9311. esac
  9312. ;;
  9313. sysv4*MP*)
  9314. if test -d /usr/nec ;then
  9315. version_type=linux # correct to gnu/linux during the next big refactor
  9316. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9317. soname_spec='$libname${shared_ext}.$major'
  9318. shlibpath_var=LD_LIBRARY_PATH
  9319. fi
  9320. ;;
  9321. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9322. version_type=freebsd-elf
  9323. need_lib_prefix=no
  9324. need_version=no
  9325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9326. soname_spec='${libname}${release}${shared_ext}$major'
  9327. shlibpath_var=LD_LIBRARY_PATH
  9328. shlibpath_overrides_runpath=yes
  9329. hardcode_into_libs=yes
  9330. if test "$with_gnu_ld" = yes; then
  9331. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9332. else
  9333. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9334. case $host_os in
  9335. sco3.2v5*)
  9336. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9337. ;;
  9338. esac
  9339. fi
  9340. sys_lib_dlsearch_path_spec='/usr/lib'
  9341. ;;
  9342. tpf*)
  9343. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9344. version_type=linux # correct to gnu/linux during the next big refactor
  9345. need_lib_prefix=no
  9346. need_version=no
  9347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9348. shlibpath_var=LD_LIBRARY_PATH
  9349. shlibpath_overrides_runpath=no
  9350. hardcode_into_libs=yes
  9351. ;;
  9352. uts4*)
  9353. version_type=linux # correct to gnu/linux during the next big refactor
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9355. soname_spec='${libname}${release}${shared_ext}$major'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. ;;
  9358. *)
  9359. dynamic_linker=no
  9360. ;;
  9361. esac
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9363. $as_echo "$dynamic_linker" >&6; }
  9364. test "$dynamic_linker" = no && can_build_shared=no
  9365. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9366. if test "$GCC" = yes; then
  9367. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9368. fi
  9369. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9370. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9371. fi
  9372. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9373. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9374. fi
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9376. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9377. hardcode_action=
  9378. if test -n "$hardcode_libdir_flag_spec" ||
  9379. test -n "$runpath_var" ||
  9380. test "X$hardcode_automatic" = "Xyes" ; then
  9381. # We can hardcode non-existent directories.
  9382. if test "$hardcode_direct" != no &&
  9383. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9384. # have to relink, otherwise we might link with an installed library
  9385. # when we should be linking with a yet-to-be-installed one
  9386. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9387. test "$hardcode_minus_L" != no; then
  9388. # Linking always hardcodes the temporary library directory.
  9389. hardcode_action=relink
  9390. else
  9391. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9392. hardcode_action=immediate
  9393. fi
  9394. else
  9395. # We cannot hardcode anything, or else we can only hardcode existing
  9396. # directories.
  9397. hardcode_action=unsupported
  9398. fi
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9400. $as_echo "$hardcode_action" >&6; }
  9401. if test "$hardcode_action" = relink ||
  9402. test "$inherit_rpath" = yes; then
  9403. # Fast installation is not supported
  9404. enable_fast_install=no
  9405. elif test "$shlibpath_overrides_runpath" = yes ||
  9406. test "$enable_shared" = no; then
  9407. # Fast installation is not necessary
  9408. enable_fast_install=needless
  9409. fi
  9410. if test "x$enable_dlopen" != xyes; then
  9411. enable_dlopen=unknown
  9412. enable_dlopen_self=unknown
  9413. enable_dlopen_self_static=unknown
  9414. else
  9415. lt_cv_dlopen=no
  9416. lt_cv_dlopen_libs=
  9417. case $host_os in
  9418. beos*)
  9419. lt_cv_dlopen="load_add_on"
  9420. lt_cv_dlopen_libs=
  9421. lt_cv_dlopen_self=yes
  9422. ;;
  9423. mingw* | pw32* | cegcc*)
  9424. lt_cv_dlopen="LoadLibrary"
  9425. lt_cv_dlopen_libs=
  9426. ;;
  9427. cygwin*)
  9428. lt_cv_dlopen="dlopen"
  9429. lt_cv_dlopen_libs=
  9430. ;;
  9431. darwin*)
  9432. # if libdl is installed we need to link against it
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9434. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9435. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9436. $as_echo_n "(cached) " >&6
  9437. else
  9438. ac_check_lib_save_LIBS=$LIBS
  9439. LIBS="-ldl $LIBS"
  9440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9441. /* end confdefs.h. */
  9442. /* Override any GCC internal prototype to avoid an error.
  9443. Use char because int might match the return type of a GCC
  9444. builtin and then its argument prototype would still apply. */
  9445. #ifdef __cplusplus
  9446. extern "C"
  9447. #endif
  9448. char dlopen ();
  9449. int
  9450. main ()
  9451. {
  9452. return dlopen ();
  9453. ;
  9454. return 0;
  9455. }
  9456. _ACEOF
  9457. if ac_fn_c_try_link "$LINENO"; then :
  9458. ac_cv_lib_dl_dlopen=yes
  9459. else
  9460. ac_cv_lib_dl_dlopen=no
  9461. fi
  9462. rm -f core conftest.err conftest.$ac_objext \
  9463. conftest$ac_exeext conftest.$ac_ext
  9464. LIBS=$ac_check_lib_save_LIBS
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9467. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9468. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9469. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9470. else
  9471. lt_cv_dlopen="dyld"
  9472. lt_cv_dlopen_libs=
  9473. lt_cv_dlopen_self=yes
  9474. fi
  9475. ;;
  9476. *)
  9477. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9478. if test "x$ac_cv_func_shl_load" = xyes; then :
  9479. lt_cv_dlopen="shl_load"
  9480. else
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9482. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9483. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9484. $as_echo_n "(cached) " >&6
  9485. else
  9486. ac_check_lib_save_LIBS=$LIBS
  9487. LIBS="-ldld $LIBS"
  9488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9489. /* end confdefs.h. */
  9490. /* Override any GCC internal prototype to avoid an error.
  9491. Use char because int might match the return type of a GCC
  9492. builtin and then its argument prototype would still apply. */
  9493. #ifdef __cplusplus
  9494. extern "C"
  9495. #endif
  9496. char shl_load ();
  9497. int
  9498. main ()
  9499. {
  9500. return shl_load ();
  9501. ;
  9502. return 0;
  9503. }
  9504. _ACEOF
  9505. if ac_fn_c_try_link "$LINENO"; then :
  9506. ac_cv_lib_dld_shl_load=yes
  9507. else
  9508. ac_cv_lib_dld_shl_load=no
  9509. fi
  9510. rm -f core conftest.err conftest.$ac_objext \
  9511. conftest$ac_exeext conftest.$ac_ext
  9512. LIBS=$ac_check_lib_save_LIBS
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9515. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9516. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9517. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9518. else
  9519. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9520. if test "x$ac_cv_func_dlopen" = xyes; then :
  9521. lt_cv_dlopen="dlopen"
  9522. else
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9524. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9525. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9526. $as_echo_n "(cached) " >&6
  9527. else
  9528. ac_check_lib_save_LIBS=$LIBS
  9529. LIBS="-ldl $LIBS"
  9530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9531. /* end confdefs.h. */
  9532. /* Override any GCC internal prototype to avoid an error.
  9533. Use char because int might match the return type of a GCC
  9534. builtin and then its argument prototype would still apply. */
  9535. #ifdef __cplusplus
  9536. extern "C"
  9537. #endif
  9538. char dlopen ();
  9539. int
  9540. main ()
  9541. {
  9542. return dlopen ();
  9543. ;
  9544. return 0;
  9545. }
  9546. _ACEOF
  9547. if ac_fn_c_try_link "$LINENO"; then :
  9548. ac_cv_lib_dl_dlopen=yes
  9549. else
  9550. ac_cv_lib_dl_dlopen=no
  9551. fi
  9552. rm -f core conftest.err conftest.$ac_objext \
  9553. conftest$ac_exeext conftest.$ac_ext
  9554. LIBS=$ac_check_lib_save_LIBS
  9555. fi
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9557. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9558. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9559. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9560. else
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9562. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9563. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9564. $as_echo_n "(cached) " >&6
  9565. else
  9566. ac_check_lib_save_LIBS=$LIBS
  9567. LIBS="-lsvld $LIBS"
  9568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9569. /* end confdefs.h. */
  9570. /* Override any GCC internal prototype to avoid an error.
  9571. Use char because int might match the return type of a GCC
  9572. builtin and then its argument prototype would still apply. */
  9573. #ifdef __cplusplus
  9574. extern "C"
  9575. #endif
  9576. char dlopen ();
  9577. int
  9578. main ()
  9579. {
  9580. return dlopen ();
  9581. ;
  9582. return 0;
  9583. }
  9584. _ACEOF
  9585. if ac_fn_c_try_link "$LINENO"; then :
  9586. ac_cv_lib_svld_dlopen=yes
  9587. else
  9588. ac_cv_lib_svld_dlopen=no
  9589. fi
  9590. rm -f core conftest.err conftest.$ac_objext \
  9591. conftest$ac_exeext conftest.$ac_ext
  9592. LIBS=$ac_check_lib_save_LIBS
  9593. fi
  9594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9595. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9596. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9597. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9598. else
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9600. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9601. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9602. $as_echo_n "(cached) " >&6
  9603. else
  9604. ac_check_lib_save_LIBS=$LIBS
  9605. LIBS="-ldld $LIBS"
  9606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9607. /* end confdefs.h. */
  9608. /* Override any GCC internal prototype to avoid an error.
  9609. Use char because int might match the return type of a GCC
  9610. builtin and then its argument prototype would still apply. */
  9611. #ifdef __cplusplus
  9612. extern "C"
  9613. #endif
  9614. char dld_link ();
  9615. int
  9616. main ()
  9617. {
  9618. return dld_link ();
  9619. ;
  9620. return 0;
  9621. }
  9622. _ACEOF
  9623. if ac_fn_c_try_link "$LINENO"; then :
  9624. ac_cv_lib_dld_dld_link=yes
  9625. else
  9626. ac_cv_lib_dld_dld_link=no
  9627. fi
  9628. rm -f core conftest.err conftest.$ac_objext \
  9629. conftest$ac_exeext conftest.$ac_ext
  9630. LIBS=$ac_check_lib_save_LIBS
  9631. fi
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9633. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9634. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9635. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9636. fi
  9637. fi
  9638. fi
  9639. fi
  9640. fi
  9641. fi
  9642. ;;
  9643. esac
  9644. if test "x$lt_cv_dlopen" != xno; then
  9645. enable_dlopen=yes
  9646. else
  9647. enable_dlopen=no
  9648. fi
  9649. case $lt_cv_dlopen in
  9650. dlopen)
  9651. save_CPPFLAGS="$CPPFLAGS"
  9652. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9653. save_LDFLAGS="$LDFLAGS"
  9654. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9655. save_LIBS="$LIBS"
  9656. LIBS="$lt_cv_dlopen_libs $LIBS"
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9658. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9659. if ${lt_cv_dlopen_self+:} false; then :
  9660. $as_echo_n "(cached) " >&6
  9661. else
  9662. if test "$cross_compiling" = yes; then :
  9663. lt_cv_dlopen_self=cross
  9664. else
  9665. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9666. lt_status=$lt_dlunknown
  9667. cat > conftest.$ac_ext <<_LT_EOF
  9668. #line $LINENO "configure"
  9669. #include "confdefs.h"
  9670. #if HAVE_DLFCN_H
  9671. #include <dlfcn.h>
  9672. #endif
  9673. #include <stdio.h>
  9674. #ifdef RTLD_GLOBAL
  9675. # define LT_DLGLOBAL RTLD_GLOBAL
  9676. #else
  9677. # ifdef DL_GLOBAL
  9678. # define LT_DLGLOBAL DL_GLOBAL
  9679. # else
  9680. # define LT_DLGLOBAL 0
  9681. # endif
  9682. #endif
  9683. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9684. find out it does not work in some platform. */
  9685. #ifndef LT_DLLAZY_OR_NOW
  9686. # ifdef RTLD_LAZY
  9687. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9688. # else
  9689. # ifdef DL_LAZY
  9690. # define LT_DLLAZY_OR_NOW DL_LAZY
  9691. # else
  9692. # ifdef RTLD_NOW
  9693. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9694. # else
  9695. # ifdef DL_NOW
  9696. # define LT_DLLAZY_OR_NOW DL_NOW
  9697. # else
  9698. # define LT_DLLAZY_OR_NOW 0
  9699. # endif
  9700. # endif
  9701. # endif
  9702. # endif
  9703. #endif
  9704. /* When -fvisbility=hidden is used, assume the code has been annotated
  9705. correspondingly for the symbols needed. */
  9706. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9707. int fnord () __attribute__((visibility("default")));
  9708. #endif
  9709. int fnord () { return 42; }
  9710. int main ()
  9711. {
  9712. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9713. int status = $lt_dlunknown;
  9714. if (self)
  9715. {
  9716. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9717. else
  9718. {
  9719. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9720. else puts (dlerror ());
  9721. }
  9722. /* dlclose (self); */
  9723. }
  9724. else
  9725. puts (dlerror ());
  9726. return status;
  9727. }
  9728. _LT_EOF
  9729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9730. (eval $ac_link) 2>&5
  9731. ac_status=$?
  9732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9733. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9734. (./conftest; exit; ) >&5 2>/dev/null
  9735. lt_status=$?
  9736. case x$lt_status in
  9737. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9738. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9739. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9740. esac
  9741. else :
  9742. # compilation failed
  9743. lt_cv_dlopen_self=no
  9744. fi
  9745. fi
  9746. rm -fr conftest*
  9747. fi
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9749. $as_echo "$lt_cv_dlopen_self" >&6; }
  9750. if test "x$lt_cv_dlopen_self" = xyes; then
  9751. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9753. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9754. if ${lt_cv_dlopen_self_static+:} false; then :
  9755. $as_echo_n "(cached) " >&6
  9756. else
  9757. if test "$cross_compiling" = yes; then :
  9758. lt_cv_dlopen_self_static=cross
  9759. else
  9760. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9761. lt_status=$lt_dlunknown
  9762. cat > conftest.$ac_ext <<_LT_EOF
  9763. #line $LINENO "configure"
  9764. #include "confdefs.h"
  9765. #if HAVE_DLFCN_H
  9766. #include <dlfcn.h>
  9767. #endif
  9768. #include <stdio.h>
  9769. #ifdef RTLD_GLOBAL
  9770. # define LT_DLGLOBAL RTLD_GLOBAL
  9771. #else
  9772. # ifdef DL_GLOBAL
  9773. # define LT_DLGLOBAL DL_GLOBAL
  9774. # else
  9775. # define LT_DLGLOBAL 0
  9776. # endif
  9777. #endif
  9778. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9779. find out it does not work in some platform. */
  9780. #ifndef LT_DLLAZY_OR_NOW
  9781. # ifdef RTLD_LAZY
  9782. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9783. # else
  9784. # ifdef DL_LAZY
  9785. # define LT_DLLAZY_OR_NOW DL_LAZY
  9786. # else
  9787. # ifdef RTLD_NOW
  9788. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9789. # else
  9790. # ifdef DL_NOW
  9791. # define LT_DLLAZY_OR_NOW DL_NOW
  9792. # else
  9793. # define LT_DLLAZY_OR_NOW 0
  9794. # endif
  9795. # endif
  9796. # endif
  9797. # endif
  9798. #endif
  9799. /* When -fvisbility=hidden is used, assume the code has been annotated
  9800. correspondingly for the symbols needed. */
  9801. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9802. int fnord () __attribute__((visibility("default")));
  9803. #endif
  9804. int fnord () { return 42; }
  9805. int main ()
  9806. {
  9807. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9808. int status = $lt_dlunknown;
  9809. if (self)
  9810. {
  9811. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9812. else
  9813. {
  9814. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9815. else puts (dlerror ());
  9816. }
  9817. /* dlclose (self); */
  9818. }
  9819. else
  9820. puts (dlerror ());
  9821. return status;
  9822. }
  9823. _LT_EOF
  9824. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9825. (eval $ac_link) 2>&5
  9826. ac_status=$?
  9827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9828. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9829. (./conftest; exit; ) >&5 2>/dev/null
  9830. lt_status=$?
  9831. case x$lt_status in
  9832. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9833. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9834. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9835. esac
  9836. else :
  9837. # compilation failed
  9838. lt_cv_dlopen_self_static=no
  9839. fi
  9840. fi
  9841. rm -fr conftest*
  9842. fi
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9844. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9845. fi
  9846. CPPFLAGS="$save_CPPFLAGS"
  9847. LDFLAGS="$save_LDFLAGS"
  9848. LIBS="$save_LIBS"
  9849. ;;
  9850. esac
  9851. case $lt_cv_dlopen_self in
  9852. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9853. *) enable_dlopen_self=unknown ;;
  9854. esac
  9855. case $lt_cv_dlopen_self_static in
  9856. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9857. *) enable_dlopen_self_static=unknown ;;
  9858. esac
  9859. fi
  9860. striplib=
  9861. old_striplib=
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9863. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9864. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9865. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9866. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9868. $as_echo "yes" >&6; }
  9869. else
  9870. # FIXME - insert some real tests, host_os isn't really good enough
  9871. case $host_os in
  9872. darwin*)
  9873. if test -n "$STRIP" ; then
  9874. striplib="$STRIP -x"
  9875. old_striplib="$STRIP -S"
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9877. $as_echo "yes" >&6; }
  9878. else
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9880. $as_echo "no" >&6; }
  9881. fi
  9882. ;;
  9883. *)
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9885. $as_echo "no" >&6; }
  9886. ;;
  9887. esac
  9888. fi
  9889. # Report which library types will actually be built
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9891. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9893. $as_echo "$can_build_shared" >&6; }
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9895. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9896. test "$can_build_shared" = "no" && enable_shared=no
  9897. # On AIX, shared libraries and static libraries use the same namespace, and
  9898. # are all built from PIC.
  9899. case $host_os in
  9900. aix3*)
  9901. test "$enable_shared" = yes && enable_static=no
  9902. if test -n "$RANLIB"; then
  9903. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9904. postinstall_cmds='$RANLIB $lib'
  9905. fi
  9906. ;;
  9907. aix[4-9]*)
  9908. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9909. test "$enable_shared" = yes && enable_static=no
  9910. fi
  9911. ;;
  9912. esac
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9914. $as_echo "$enable_shared" >&6; }
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9916. $as_echo_n "checking whether to build static libraries... " >&6; }
  9917. # Make sure either enable_shared or enable_static is yes.
  9918. test "$enable_shared" = yes || enable_static=yes
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9920. $as_echo "$enable_static" >&6; }
  9921. fi
  9922. ac_ext=c
  9923. ac_cpp='$CPP $CPPFLAGS'
  9924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9927. CC="$lt_save_CC"
  9928. ac_config_commands="$ac_config_commands libtool"
  9929. # Only expand once:
  9930. if test -n "$ac_tool_prefix"; then
  9931. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9932. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9934. $as_echo_n "checking for $ac_word... " >&6; }
  9935. if ${ac_cv_prog_RC+:} false; then :
  9936. $as_echo_n "(cached) " >&6
  9937. else
  9938. if test -n "$RC"; then
  9939. ac_cv_prog_RC="$RC" # Let the user override the test.
  9940. else
  9941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9942. for as_dir in $PATH
  9943. do
  9944. IFS=$as_save_IFS
  9945. test -z "$as_dir" && as_dir=.
  9946. for ac_exec_ext in '' $ac_executable_extensions; do
  9947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9948. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9950. break 2
  9951. fi
  9952. done
  9953. done
  9954. IFS=$as_save_IFS
  9955. fi
  9956. fi
  9957. RC=$ac_cv_prog_RC
  9958. if test -n "$RC"; then
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9960. $as_echo "$RC" >&6; }
  9961. else
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9963. $as_echo "no" >&6; }
  9964. fi
  9965. fi
  9966. if test -z "$ac_cv_prog_RC"; then
  9967. ac_ct_RC=$RC
  9968. # Extract the first word of "windres", so it can be a program name with args.
  9969. set dummy windres; ac_word=$2
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9971. $as_echo_n "checking for $ac_word... " >&6; }
  9972. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. if test -n "$ac_ct_RC"; then
  9976. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9977. else
  9978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9979. for as_dir in $PATH
  9980. do
  9981. IFS=$as_save_IFS
  9982. test -z "$as_dir" && as_dir=.
  9983. for ac_exec_ext in '' $ac_executable_extensions; do
  9984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9985. ac_cv_prog_ac_ct_RC="windres"
  9986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9987. break 2
  9988. fi
  9989. done
  9990. done
  9991. IFS=$as_save_IFS
  9992. fi
  9993. fi
  9994. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9995. if test -n "$ac_ct_RC"; then
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9997. $as_echo "$ac_ct_RC" >&6; }
  9998. else
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10000. $as_echo "no" >&6; }
  10001. fi
  10002. if test "x$ac_ct_RC" = x; then
  10003. RC=""
  10004. else
  10005. case $cross_compiling:$ac_tool_warned in
  10006. yes:)
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10009. ac_tool_warned=yes ;;
  10010. esac
  10011. RC=$ac_ct_RC
  10012. fi
  10013. else
  10014. RC="$ac_cv_prog_RC"
  10015. fi
  10016. # Source file extension for RC test sources.
  10017. ac_ext=rc
  10018. # Object file extension for compiled RC test sources.
  10019. objext=o
  10020. objext_RC=$objext
  10021. # Code to be used in simple compile tests
  10022. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10023. # Code to be used in simple link tests
  10024. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10025. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10026. # If no C compiler was specified, use CC.
  10027. LTCC=${LTCC-"$CC"}
  10028. # If no C compiler flags were specified, use CFLAGS.
  10029. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10030. # Allow CC to be a program name with arguments.
  10031. compiler=$CC
  10032. # save warnings/boilerplate of simple test code
  10033. ac_outfile=conftest.$ac_objext
  10034. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10035. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10036. _lt_compiler_boilerplate=`cat conftest.err`
  10037. $RM conftest*
  10038. ac_outfile=conftest.$ac_objext
  10039. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10040. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10041. _lt_linker_boilerplate=`cat conftest.err`
  10042. $RM -r conftest*
  10043. # Allow CC to be a program name with arguments.
  10044. lt_save_CC="$CC"
  10045. lt_save_CFLAGS=$CFLAGS
  10046. lt_save_GCC=$GCC
  10047. GCC=
  10048. CC=${RC-"windres"}
  10049. CFLAGS=
  10050. compiler=$CC
  10051. compiler_RC=$CC
  10052. for cc_temp in $compiler""; do
  10053. case $cc_temp in
  10054. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10055. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10056. \-*) ;;
  10057. *) break;;
  10058. esac
  10059. done
  10060. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10061. lt_cv_prog_compiler_c_o_RC=yes
  10062. if test -n "$compiler"; then
  10063. :
  10064. fi
  10065. GCC=$lt_save_GCC
  10066. ac_ext=c
  10067. ac_cpp='$CPP $CPPFLAGS'
  10068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10071. CC=$lt_save_CC
  10072. CFLAGS=$lt_save_CFLAGS
  10073. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10074. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10075. LT_REVISION=$SDL_INTERFACE_AGE
  10076. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10077. ac_ext=c
  10078. ac_cpp='$CPP $CPPFLAGS'
  10079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10082. if test -n "$ac_tool_prefix"; then
  10083. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10084. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10086. $as_echo_n "checking for $ac_word... " >&6; }
  10087. if ${ac_cv_prog_CC+:} false; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. if test -n "$CC"; then
  10091. ac_cv_prog_CC="$CC" # Let the user override the test.
  10092. else
  10093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10094. for as_dir in $PATH
  10095. do
  10096. IFS=$as_save_IFS
  10097. test -z "$as_dir" && as_dir=.
  10098. for ac_exec_ext in '' $ac_executable_extensions; do
  10099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10100. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10102. break 2
  10103. fi
  10104. done
  10105. done
  10106. IFS=$as_save_IFS
  10107. fi
  10108. fi
  10109. CC=$ac_cv_prog_CC
  10110. if test -n "$CC"; then
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10112. $as_echo "$CC" >&6; }
  10113. else
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10115. $as_echo "no" >&6; }
  10116. fi
  10117. fi
  10118. if test -z "$ac_cv_prog_CC"; then
  10119. ac_ct_CC=$CC
  10120. # Extract the first word of "gcc", so it can be a program name with args.
  10121. set dummy gcc; ac_word=$2
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10123. $as_echo_n "checking for $ac_word... " >&6; }
  10124. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. if test -n "$ac_ct_CC"; then
  10128. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10129. else
  10130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10131. for as_dir in $PATH
  10132. do
  10133. IFS=$as_save_IFS
  10134. test -z "$as_dir" && as_dir=.
  10135. for ac_exec_ext in '' $ac_executable_extensions; do
  10136. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10137. ac_cv_prog_ac_ct_CC="gcc"
  10138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10139. break 2
  10140. fi
  10141. done
  10142. done
  10143. IFS=$as_save_IFS
  10144. fi
  10145. fi
  10146. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10147. if test -n "$ac_ct_CC"; then
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10149. $as_echo "$ac_ct_CC" >&6; }
  10150. else
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10152. $as_echo "no" >&6; }
  10153. fi
  10154. if test "x$ac_ct_CC" = x; then
  10155. CC=""
  10156. else
  10157. case $cross_compiling:$ac_tool_warned in
  10158. yes:)
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10160. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10161. ac_tool_warned=yes ;;
  10162. esac
  10163. CC=$ac_ct_CC
  10164. fi
  10165. else
  10166. CC="$ac_cv_prog_CC"
  10167. fi
  10168. if test -z "$CC"; then
  10169. if test -n "$ac_tool_prefix"; then
  10170. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10171. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10173. $as_echo_n "checking for $ac_word... " >&6; }
  10174. if ${ac_cv_prog_CC+:} false; then :
  10175. $as_echo_n "(cached) " >&6
  10176. else
  10177. if test -n "$CC"; then
  10178. ac_cv_prog_CC="$CC" # Let the user override the test.
  10179. else
  10180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10181. for as_dir in $PATH
  10182. do
  10183. IFS=$as_save_IFS
  10184. test -z "$as_dir" && as_dir=.
  10185. for ac_exec_ext in '' $ac_executable_extensions; do
  10186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10187. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10189. break 2
  10190. fi
  10191. done
  10192. done
  10193. IFS=$as_save_IFS
  10194. fi
  10195. fi
  10196. CC=$ac_cv_prog_CC
  10197. if test -n "$CC"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10199. $as_echo "$CC" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. fi
  10205. fi
  10206. if test -z "$CC"; then
  10207. # Extract the first word of "cc", so it can be a program name with args.
  10208. set dummy cc; ac_word=$2
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10210. $as_echo_n "checking for $ac_word... " >&6; }
  10211. if ${ac_cv_prog_CC+:} false; then :
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. if test -n "$CC"; then
  10215. ac_cv_prog_CC="$CC" # Let the user override the test.
  10216. else
  10217. ac_prog_rejected=no
  10218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10219. for as_dir in $PATH
  10220. do
  10221. IFS=$as_save_IFS
  10222. test -z "$as_dir" && as_dir=.
  10223. for ac_exec_ext in '' $ac_executable_extensions; do
  10224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10225. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10226. ac_prog_rejected=yes
  10227. continue
  10228. fi
  10229. ac_cv_prog_CC="cc"
  10230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10231. break 2
  10232. fi
  10233. done
  10234. done
  10235. IFS=$as_save_IFS
  10236. if test $ac_prog_rejected = yes; then
  10237. # We found a bogon in the path, so make sure we never use it.
  10238. set dummy $ac_cv_prog_CC
  10239. shift
  10240. if test $# != 0; then
  10241. # We chose a different compiler from the bogus one.
  10242. # However, it has the same basename, so the bogon will be chosen
  10243. # first if we set CC to just the basename; use the full file name.
  10244. shift
  10245. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10246. fi
  10247. fi
  10248. fi
  10249. fi
  10250. CC=$ac_cv_prog_CC
  10251. if test -n "$CC"; then
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10253. $as_echo "$CC" >&6; }
  10254. else
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10256. $as_echo "no" >&6; }
  10257. fi
  10258. fi
  10259. if test -z "$CC"; then
  10260. if test -n "$ac_tool_prefix"; then
  10261. for ac_prog in cl.exe
  10262. do
  10263. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10264. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10266. $as_echo_n "checking for $ac_word... " >&6; }
  10267. if ${ac_cv_prog_CC+:} false; then :
  10268. $as_echo_n "(cached) " >&6
  10269. else
  10270. if test -n "$CC"; then
  10271. ac_cv_prog_CC="$CC" # Let the user override the test.
  10272. else
  10273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10274. for as_dir in $PATH
  10275. do
  10276. IFS=$as_save_IFS
  10277. test -z "$as_dir" && as_dir=.
  10278. for ac_exec_ext in '' $ac_executable_extensions; do
  10279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10280. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10282. break 2
  10283. fi
  10284. done
  10285. done
  10286. IFS=$as_save_IFS
  10287. fi
  10288. fi
  10289. CC=$ac_cv_prog_CC
  10290. if test -n "$CC"; then
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10292. $as_echo "$CC" >&6; }
  10293. else
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10295. $as_echo "no" >&6; }
  10296. fi
  10297. test -n "$CC" && break
  10298. done
  10299. fi
  10300. if test -z "$CC"; then
  10301. ac_ct_CC=$CC
  10302. for ac_prog in cl.exe
  10303. do
  10304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10305. set dummy $ac_prog; ac_word=$2
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10307. $as_echo_n "checking for $ac_word... " >&6; }
  10308. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. if test -n "$ac_ct_CC"; then
  10312. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10313. else
  10314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10315. for as_dir in $PATH
  10316. do
  10317. IFS=$as_save_IFS
  10318. test -z "$as_dir" && as_dir=.
  10319. for ac_exec_ext in '' $ac_executable_extensions; do
  10320. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10321. ac_cv_prog_ac_ct_CC="$ac_prog"
  10322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10323. break 2
  10324. fi
  10325. done
  10326. done
  10327. IFS=$as_save_IFS
  10328. fi
  10329. fi
  10330. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10331. if test -n "$ac_ct_CC"; then
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10333. $as_echo "$ac_ct_CC" >&6; }
  10334. else
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10336. $as_echo "no" >&6; }
  10337. fi
  10338. test -n "$ac_ct_CC" && break
  10339. done
  10340. if test "x$ac_ct_CC" = x; then
  10341. CC=""
  10342. else
  10343. case $cross_compiling:$ac_tool_warned in
  10344. yes:)
  10345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10347. ac_tool_warned=yes ;;
  10348. esac
  10349. CC=$ac_ct_CC
  10350. fi
  10351. fi
  10352. fi
  10353. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10354. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10355. as_fn_error $? "no acceptable C compiler found in \$PATH
  10356. See \`config.log' for more details" "$LINENO" 5; }
  10357. # Provide some information about the compiler.
  10358. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10359. set X $ac_compile
  10360. ac_compiler=$2
  10361. for ac_option in --version -v -V -qversion; do
  10362. { { ac_try="$ac_compiler $ac_option >&5"
  10363. case "(($ac_try" in
  10364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10365. *) ac_try_echo=$ac_try;;
  10366. esac
  10367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10368. $as_echo "$ac_try_echo"; } >&5
  10369. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10370. ac_status=$?
  10371. if test -s conftest.err; then
  10372. sed '10a\
  10373. ... rest of stderr output deleted ...
  10374. 10q' conftest.err >conftest.er1
  10375. cat conftest.er1 >&5
  10376. fi
  10377. rm -f conftest.er1 conftest.err
  10378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10379. test $ac_status = 0; }
  10380. done
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10382. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10383. if ${ac_cv_c_compiler_gnu+:} false; then :
  10384. $as_echo_n "(cached) " >&6
  10385. else
  10386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10387. /* end confdefs.h. */
  10388. int
  10389. main ()
  10390. {
  10391. #ifndef __GNUC__
  10392. choke me
  10393. #endif
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. if ac_fn_c_try_compile "$LINENO"; then :
  10399. ac_compiler_gnu=yes
  10400. else
  10401. ac_compiler_gnu=no
  10402. fi
  10403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10404. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10405. fi
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10407. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10408. if test $ac_compiler_gnu = yes; then
  10409. GCC=yes
  10410. else
  10411. GCC=
  10412. fi
  10413. ac_test_CFLAGS=${CFLAGS+set}
  10414. ac_save_CFLAGS=$CFLAGS
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10416. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10417. if ${ac_cv_prog_cc_g+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. ac_save_c_werror_flag=$ac_c_werror_flag
  10421. ac_c_werror_flag=yes
  10422. ac_cv_prog_cc_g=no
  10423. CFLAGS="-g"
  10424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10425. /* end confdefs.h. */
  10426. int
  10427. main ()
  10428. {
  10429. ;
  10430. return 0;
  10431. }
  10432. _ACEOF
  10433. if ac_fn_c_try_compile "$LINENO"; then :
  10434. ac_cv_prog_cc_g=yes
  10435. else
  10436. CFLAGS=""
  10437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10438. /* end confdefs.h. */
  10439. int
  10440. main ()
  10441. {
  10442. ;
  10443. return 0;
  10444. }
  10445. _ACEOF
  10446. if ac_fn_c_try_compile "$LINENO"; then :
  10447. else
  10448. ac_c_werror_flag=$ac_save_c_werror_flag
  10449. CFLAGS="-g"
  10450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10451. /* end confdefs.h. */
  10452. int
  10453. main ()
  10454. {
  10455. ;
  10456. return 0;
  10457. }
  10458. _ACEOF
  10459. if ac_fn_c_try_compile "$LINENO"; then :
  10460. ac_cv_prog_cc_g=yes
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. fi
  10464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10467. ac_c_werror_flag=$ac_save_c_werror_flag
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10470. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10471. if test "$ac_test_CFLAGS" = set; then
  10472. CFLAGS=$ac_save_CFLAGS
  10473. elif test $ac_cv_prog_cc_g = yes; then
  10474. if test "$GCC" = yes; then
  10475. CFLAGS="-g -O2"
  10476. else
  10477. CFLAGS="-g"
  10478. fi
  10479. else
  10480. if test "$GCC" = yes; then
  10481. CFLAGS="-O2"
  10482. else
  10483. CFLAGS=
  10484. fi
  10485. fi
  10486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10487. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10488. if ${ac_cv_prog_cc_c89+:} false; then :
  10489. $as_echo_n "(cached) " >&6
  10490. else
  10491. ac_cv_prog_cc_c89=no
  10492. ac_save_CC=$CC
  10493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10494. /* end confdefs.h. */
  10495. #include <stdarg.h>
  10496. #include <stdio.h>
  10497. struct stat;
  10498. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10499. struct buf { int x; };
  10500. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10501. static char *e (p, i)
  10502. char **p;
  10503. int i;
  10504. {
  10505. return p[i];
  10506. }
  10507. static char *f (char * (*g) (char **, int), char **p, ...)
  10508. {
  10509. char *s;
  10510. va_list v;
  10511. va_start (v,p);
  10512. s = g (p, va_arg (v,int));
  10513. va_end (v);
  10514. return s;
  10515. }
  10516. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10517. function prototypes and stuff, but not '\xHH' hex character constants.
  10518. These don't provoke an error unfortunately, instead are silently treated
  10519. as 'x'. The following induces an error, until -std is added to get
  10520. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10521. array size at least. It's necessary to write '\x00'==0 to get something
  10522. that's true only with -std. */
  10523. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10524. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10525. inside strings and character constants. */
  10526. #define FOO(x) 'x'
  10527. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10528. int test (int i, double x);
  10529. struct s1 {int (*f) (int a);};
  10530. struct s2 {int (*f) (double a);};
  10531. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10532. int argc;
  10533. char **argv;
  10534. int
  10535. main ()
  10536. {
  10537. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10538. ;
  10539. return 0;
  10540. }
  10541. _ACEOF
  10542. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10543. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10544. do
  10545. CC="$ac_save_CC $ac_arg"
  10546. if ac_fn_c_try_compile "$LINENO"; then :
  10547. ac_cv_prog_cc_c89=$ac_arg
  10548. fi
  10549. rm -f core conftest.err conftest.$ac_objext
  10550. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10551. done
  10552. rm -f conftest.$ac_ext
  10553. CC=$ac_save_CC
  10554. fi
  10555. # AC_CACHE_VAL
  10556. case "x$ac_cv_prog_cc_c89" in
  10557. x)
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10559. $as_echo "none needed" >&6; } ;;
  10560. xno)
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10562. $as_echo "unsupported" >&6; } ;;
  10563. *)
  10564. CC="$CC $ac_cv_prog_cc_c89"
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10566. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10567. esac
  10568. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10569. fi
  10570. ac_ext=c
  10571. ac_cpp='$CPP $CPPFLAGS'
  10572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10575. ac_ext=cpp
  10576. ac_cpp='$CXXCPP $CPPFLAGS'
  10577. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10578. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10580. if test -z "$CXX"; then
  10581. if test -n "$CCC"; then
  10582. CXX=$CCC
  10583. else
  10584. if test -n "$ac_tool_prefix"; then
  10585. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10586. do
  10587. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10588. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10590. $as_echo_n "checking for $ac_word... " >&6; }
  10591. if ${ac_cv_prog_CXX+:} false; then :
  10592. $as_echo_n "(cached) " >&6
  10593. else
  10594. if test -n "$CXX"; then
  10595. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10596. else
  10597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10598. for as_dir in $PATH
  10599. do
  10600. IFS=$as_save_IFS
  10601. test -z "$as_dir" && as_dir=.
  10602. for ac_exec_ext in '' $ac_executable_extensions; do
  10603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10604. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10606. break 2
  10607. fi
  10608. done
  10609. done
  10610. IFS=$as_save_IFS
  10611. fi
  10612. fi
  10613. CXX=$ac_cv_prog_CXX
  10614. if test -n "$CXX"; then
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10616. $as_echo "$CXX" >&6; }
  10617. else
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10619. $as_echo "no" >&6; }
  10620. fi
  10621. test -n "$CXX" && break
  10622. done
  10623. fi
  10624. if test -z "$CXX"; then
  10625. ac_ct_CXX=$CXX
  10626. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10627. do
  10628. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10629. set dummy $ac_prog; ac_word=$2
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10631. $as_echo_n "checking for $ac_word... " >&6; }
  10632. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10633. $as_echo_n "(cached) " >&6
  10634. else
  10635. if test -n "$ac_ct_CXX"; then
  10636. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10637. else
  10638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10639. for as_dir in $PATH
  10640. do
  10641. IFS=$as_save_IFS
  10642. test -z "$as_dir" && as_dir=.
  10643. for ac_exec_ext in '' $ac_executable_extensions; do
  10644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10645. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10647. break 2
  10648. fi
  10649. done
  10650. done
  10651. IFS=$as_save_IFS
  10652. fi
  10653. fi
  10654. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10655. if test -n "$ac_ct_CXX"; then
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10657. $as_echo "$ac_ct_CXX" >&6; }
  10658. else
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10660. $as_echo "no" >&6; }
  10661. fi
  10662. test -n "$ac_ct_CXX" && break
  10663. done
  10664. if test "x$ac_ct_CXX" = x; then
  10665. CXX="g++"
  10666. else
  10667. case $cross_compiling:$ac_tool_warned in
  10668. yes:)
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10671. ac_tool_warned=yes ;;
  10672. esac
  10673. CXX=$ac_ct_CXX
  10674. fi
  10675. fi
  10676. fi
  10677. fi
  10678. # Provide some information about the compiler.
  10679. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10680. set X $ac_compile
  10681. ac_compiler=$2
  10682. for ac_option in --version -v -V -qversion; do
  10683. { { ac_try="$ac_compiler $ac_option >&5"
  10684. case "(($ac_try" in
  10685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10686. *) ac_try_echo=$ac_try;;
  10687. esac
  10688. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10689. $as_echo "$ac_try_echo"; } >&5
  10690. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10691. ac_status=$?
  10692. if test -s conftest.err; then
  10693. sed '10a\
  10694. ... rest of stderr output deleted ...
  10695. 10q' conftest.err >conftest.er1
  10696. cat conftest.er1 >&5
  10697. fi
  10698. rm -f conftest.er1 conftest.err
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10700. test $ac_status = 0; }
  10701. done
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10703. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10704. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10705. $as_echo_n "(cached) " >&6
  10706. else
  10707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10708. /* end confdefs.h. */
  10709. int
  10710. main ()
  10711. {
  10712. #ifndef __GNUC__
  10713. choke me
  10714. #endif
  10715. ;
  10716. return 0;
  10717. }
  10718. _ACEOF
  10719. if ac_fn_cxx_try_compile "$LINENO"; then :
  10720. ac_compiler_gnu=yes
  10721. else
  10722. ac_compiler_gnu=no
  10723. fi
  10724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10725. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10726. fi
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10728. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10729. if test $ac_compiler_gnu = yes; then
  10730. GXX=yes
  10731. else
  10732. GXX=
  10733. fi
  10734. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10735. ac_save_CXXFLAGS=$CXXFLAGS
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10737. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10738. if ${ac_cv_prog_cxx_g+:} false; then :
  10739. $as_echo_n "(cached) " >&6
  10740. else
  10741. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10742. ac_cxx_werror_flag=yes
  10743. ac_cv_prog_cxx_g=no
  10744. CXXFLAGS="-g"
  10745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10746. /* end confdefs.h. */
  10747. int
  10748. main ()
  10749. {
  10750. ;
  10751. return 0;
  10752. }
  10753. _ACEOF
  10754. if ac_fn_cxx_try_compile "$LINENO"; then :
  10755. ac_cv_prog_cxx_g=yes
  10756. else
  10757. CXXFLAGS=""
  10758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10759. /* end confdefs.h. */
  10760. int
  10761. main ()
  10762. {
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_cxx_try_compile "$LINENO"; then :
  10768. else
  10769. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10770. CXXFLAGS="-g"
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. int
  10774. main ()
  10775. {
  10776. ;
  10777. return 0;
  10778. }
  10779. _ACEOF
  10780. if ac_fn_cxx_try_compile "$LINENO"; then :
  10781. ac_cv_prog_cxx_g=yes
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10784. fi
  10785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10786. fi
  10787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10788. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10789. fi
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10791. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10792. if test "$ac_test_CXXFLAGS" = set; then
  10793. CXXFLAGS=$ac_save_CXXFLAGS
  10794. elif test $ac_cv_prog_cxx_g = yes; then
  10795. if test "$GXX" = yes; then
  10796. CXXFLAGS="-g -O2"
  10797. else
  10798. CXXFLAGS="-g"
  10799. fi
  10800. else
  10801. if test "$GXX" = yes; then
  10802. CXXFLAGS="-O2"
  10803. else
  10804. CXXFLAGS=
  10805. fi
  10806. fi
  10807. ac_ext=c
  10808. ac_cpp='$CPP $CPPFLAGS'
  10809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10812. func_stripname_cnf ()
  10813. {
  10814. case ${2} in
  10815. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10816. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10817. esac
  10818. } # func_stripname_cnf
  10819. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10820. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10821. (test "X$CXX" != "Xg++"))) ; then
  10822. ac_ext=cpp
  10823. ac_cpp='$CXXCPP $CPPFLAGS'
  10824. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10825. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10826. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10828. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10829. if test -z "$CXXCPP"; then
  10830. if ${ac_cv_prog_CXXCPP+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. # Double quotes because CXXCPP needs to be expanded
  10834. for CXXCPP in "$CXX -E" "/lib/cpp"
  10835. do
  10836. ac_preproc_ok=false
  10837. for ac_cxx_preproc_warn_flag in '' yes
  10838. do
  10839. # Use a header file that comes with gcc, so configuring glibc
  10840. # with a fresh cross-compiler works.
  10841. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10842. # <limits.h> exists even on freestanding compilers.
  10843. # On the NeXT, cc -E runs the code through the compiler's parser,
  10844. # not just through cpp. "Syntax error" is here to catch this case.
  10845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10846. /* end confdefs.h. */
  10847. #ifdef __STDC__
  10848. # include <limits.h>
  10849. #else
  10850. # include <assert.h>
  10851. #endif
  10852. Syntax error
  10853. _ACEOF
  10854. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10855. else
  10856. # Broken: fails on valid input.
  10857. continue
  10858. fi
  10859. rm -f conftest.err conftest.i conftest.$ac_ext
  10860. # OK, works on sane cases. Now check whether nonexistent headers
  10861. # can be detected and how.
  10862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10863. /* end confdefs.h. */
  10864. #include <ac_nonexistent.h>
  10865. _ACEOF
  10866. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10867. # Broken: success on invalid input.
  10868. continue
  10869. else
  10870. # Passes both tests.
  10871. ac_preproc_ok=:
  10872. break
  10873. fi
  10874. rm -f conftest.err conftest.i conftest.$ac_ext
  10875. done
  10876. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10877. rm -f conftest.i conftest.err conftest.$ac_ext
  10878. if $ac_preproc_ok; then :
  10879. break
  10880. fi
  10881. done
  10882. ac_cv_prog_CXXCPP=$CXXCPP
  10883. fi
  10884. CXXCPP=$ac_cv_prog_CXXCPP
  10885. else
  10886. ac_cv_prog_CXXCPP=$CXXCPP
  10887. fi
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10889. $as_echo "$CXXCPP" >&6; }
  10890. ac_preproc_ok=false
  10891. for ac_cxx_preproc_warn_flag in '' yes
  10892. do
  10893. # Use a header file that comes with gcc, so configuring glibc
  10894. # with a fresh cross-compiler works.
  10895. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10896. # <limits.h> exists even on freestanding compilers.
  10897. # On the NeXT, cc -E runs the code through the compiler's parser,
  10898. # not just through cpp. "Syntax error" is here to catch this case.
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. #ifdef __STDC__
  10902. # include <limits.h>
  10903. #else
  10904. # include <assert.h>
  10905. #endif
  10906. Syntax error
  10907. _ACEOF
  10908. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10909. else
  10910. # Broken: fails on valid input.
  10911. continue
  10912. fi
  10913. rm -f conftest.err conftest.i conftest.$ac_ext
  10914. # OK, works on sane cases. Now check whether nonexistent headers
  10915. # can be detected and how.
  10916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10917. /* end confdefs.h. */
  10918. #include <ac_nonexistent.h>
  10919. _ACEOF
  10920. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10921. # Broken: success on invalid input.
  10922. continue
  10923. else
  10924. # Passes both tests.
  10925. ac_preproc_ok=:
  10926. break
  10927. fi
  10928. rm -f conftest.err conftest.i conftest.$ac_ext
  10929. done
  10930. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10931. rm -f conftest.i conftest.err conftest.$ac_ext
  10932. if $ac_preproc_ok; then :
  10933. else
  10934. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10935. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10936. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10937. See \`config.log' for more details" "$LINENO" 5; }
  10938. fi
  10939. ac_ext=c
  10940. ac_cpp='$CPP $CPPFLAGS'
  10941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10944. else
  10945. _lt_caught_CXX_error=yes
  10946. fi
  10947. ac_ext=cpp
  10948. ac_cpp='$CXXCPP $CPPFLAGS'
  10949. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10950. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10951. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10952. archive_cmds_need_lc_CXX=no
  10953. allow_undefined_flag_CXX=
  10954. always_export_symbols_CXX=no
  10955. archive_expsym_cmds_CXX=
  10956. compiler_needs_object_CXX=no
  10957. export_dynamic_flag_spec_CXX=
  10958. hardcode_direct_CXX=no
  10959. hardcode_direct_absolute_CXX=no
  10960. hardcode_libdir_flag_spec_CXX=
  10961. hardcode_libdir_separator_CXX=
  10962. hardcode_minus_L_CXX=no
  10963. hardcode_shlibpath_var_CXX=unsupported
  10964. hardcode_automatic_CXX=no
  10965. inherit_rpath_CXX=no
  10966. module_cmds_CXX=
  10967. module_expsym_cmds_CXX=
  10968. link_all_deplibs_CXX=unknown
  10969. old_archive_cmds_CXX=$old_archive_cmds
  10970. reload_flag_CXX=$reload_flag
  10971. reload_cmds_CXX=$reload_cmds
  10972. no_undefined_flag_CXX=
  10973. whole_archive_flag_spec_CXX=
  10974. enable_shared_with_static_runtimes_CXX=no
  10975. # Source file extension for C++ test sources.
  10976. ac_ext=cpp
  10977. # Object file extension for compiled C++ test sources.
  10978. objext=o
  10979. objext_CXX=$objext
  10980. # No sense in running all these tests if we already determined that
  10981. # the CXX compiler isn't working. Some variables (like enable_shared)
  10982. # are currently assumed to apply to all compilers on this platform,
  10983. # and will be corrupted by setting them based on a non-working compiler.
  10984. if test "$_lt_caught_CXX_error" != yes; then
  10985. # Code to be used in simple compile tests
  10986. lt_simple_compile_test_code="int some_variable = 0;"
  10987. # Code to be used in simple link tests
  10988. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10989. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10990. # If no C compiler was specified, use CC.
  10991. LTCC=${LTCC-"$CC"}
  10992. # If no C compiler flags were specified, use CFLAGS.
  10993. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10994. # Allow CC to be a program name with arguments.
  10995. compiler=$CC
  10996. # save warnings/boilerplate of simple test code
  10997. ac_outfile=conftest.$ac_objext
  10998. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10999. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11000. _lt_compiler_boilerplate=`cat conftest.err`
  11001. $RM conftest*
  11002. ac_outfile=conftest.$ac_objext
  11003. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11004. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11005. _lt_linker_boilerplate=`cat conftest.err`
  11006. $RM -r conftest*
  11007. # Allow CC to be a program name with arguments.
  11008. lt_save_CC=$CC
  11009. lt_save_CFLAGS=$CFLAGS
  11010. lt_save_LD=$LD
  11011. lt_save_GCC=$GCC
  11012. GCC=$GXX
  11013. lt_save_with_gnu_ld=$with_gnu_ld
  11014. lt_save_path_LD=$lt_cv_path_LD
  11015. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11016. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11017. else
  11018. $as_unset lt_cv_prog_gnu_ld
  11019. fi
  11020. if test -n "${lt_cv_path_LDCXX+set}"; then
  11021. lt_cv_path_LD=$lt_cv_path_LDCXX
  11022. else
  11023. $as_unset lt_cv_path_LD
  11024. fi
  11025. test -z "${LDCXX+set}" || LD=$LDCXX
  11026. CC=${CXX-"c++"}
  11027. CFLAGS=$CXXFLAGS
  11028. compiler=$CC
  11029. compiler_CXX=$CC
  11030. for cc_temp in $compiler""; do
  11031. case $cc_temp in
  11032. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11033. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11034. \-*) ;;
  11035. *) break;;
  11036. esac
  11037. done
  11038. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11039. if test -n "$compiler"; then
  11040. # We don't want -fno-exception when compiling C++ code, so set the
  11041. # no_builtin_flag separately
  11042. if test "$GXX" = yes; then
  11043. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11044. else
  11045. lt_prog_compiler_no_builtin_flag_CXX=
  11046. fi
  11047. if test "$GXX" = yes; then
  11048. # Set up default GNU C++ configuration
  11049. # Check whether --with-gnu-ld was given.
  11050. if test "${with_gnu_ld+set}" = set; then :
  11051. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11052. else
  11053. with_gnu_ld=no
  11054. fi
  11055. ac_prog=ld
  11056. if test "$GCC" = yes; then
  11057. # Check if gcc -print-prog-name=ld gives a path.
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11059. $as_echo_n "checking for ld used by $CC... " >&6; }
  11060. case $host in
  11061. *-*-mingw*)
  11062. # gcc leaves a trailing carriage return which upsets mingw
  11063. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11064. *)
  11065. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11066. esac
  11067. case $ac_prog in
  11068. # Accept absolute paths.
  11069. [\\/]* | ?:[\\/]*)
  11070. re_direlt='/[^/][^/]*/\.\./'
  11071. # Canonicalize the pathname of ld
  11072. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11073. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11074. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11075. done
  11076. test -z "$LD" && LD="$ac_prog"
  11077. ;;
  11078. "")
  11079. # If it fails, then pretend we aren't using GCC.
  11080. ac_prog=ld
  11081. ;;
  11082. *)
  11083. # If it is relative, then search for the first ld in PATH.
  11084. with_gnu_ld=unknown
  11085. ;;
  11086. esac
  11087. elif test "$with_gnu_ld" = yes; then
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11089. $as_echo_n "checking for GNU ld... " >&6; }
  11090. else
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11092. $as_echo_n "checking for non-GNU ld... " >&6; }
  11093. fi
  11094. if ${lt_cv_path_LD+:} false; then :
  11095. $as_echo_n "(cached) " >&6
  11096. else
  11097. if test -z "$LD"; then
  11098. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11099. for ac_dir in $PATH; do
  11100. IFS="$lt_save_ifs"
  11101. test -z "$ac_dir" && ac_dir=.
  11102. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11103. lt_cv_path_LD="$ac_dir/$ac_prog"
  11104. # Check to see if the program is GNU ld. I'd rather use --version,
  11105. # but apparently some variants of GNU ld only accept -v.
  11106. # Break only if it was the GNU/non-GNU ld that we prefer.
  11107. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11108. *GNU* | *'with BFD'*)
  11109. test "$with_gnu_ld" != no && break
  11110. ;;
  11111. *)
  11112. test "$with_gnu_ld" != yes && break
  11113. ;;
  11114. esac
  11115. fi
  11116. done
  11117. IFS="$lt_save_ifs"
  11118. else
  11119. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11120. fi
  11121. fi
  11122. LD="$lt_cv_path_LD"
  11123. if test -n "$LD"; then
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11125. $as_echo "$LD" >&6; }
  11126. else
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11128. $as_echo "no" >&6; }
  11129. fi
  11130. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11132. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11133. if ${lt_cv_prog_gnu_ld+:} false; then :
  11134. $as_echo_n "(cached) " >&6
  11135. else
  11136. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11137. case `$LD -v 2>&1 </dev/null` in
  11138. *GNU* | *'with BFD'*)
  11139. lt_cv_prog_gnu_ld=yes
  11140. ;;
  11141. *)
  11142. lt_cv_prog_gnu_ld=no
  11143. ;;
  11144. esac
  11145. fi
  11146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11147. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11148. with_gnu_ld=$lt_cv_prog_gnu_ld
  11149. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11150. # archiving commands below assume that GNU ld is being used.
  11151. if test "$with_gnu_ld" = yes; then
  11152. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11153. 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'
  11154. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11155. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11156. # If archive_cmds runs LD, not CC, wlarc should be empty
  11157. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11158. # investigate it a little bit more. (MM)
  11159. wlarc='${wl}'
  11160. # ancient GNU ld didn't support --whole-archive et. al.
  11161. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11162. $GREP 'no-whole-archive' > /dev/null; then
  11163. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11164. else
  11165. whole_archive_flag_spec_CXX=
  11166. fi
  11167. else
  11168. with_gnu_ld=no
  11169. wlarc=
  11170. # A generic and very simple default shared library creation
  11171. # command for GNU C++ for the case where it uses the native
  11172. # linker, instead of GNU ld. If possible, this setting should
  11173. # overridden to take advantage of the native linker features on
  11174. # the platform it is being used on.
  11175. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11176. fi
  11177. # Commands to make compiler produce verbose output that lists
  11178. # what "hidden" libraries, object files and flags are used when
  11179. # linking a shared library.
  11180. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11181. else
  11182. GXX=no
  11183. with_gnu_ld=no
  11184. wlarc=
  11185. fi
  11186. # PORTME: fill in a description of your system's C++ link characteristics
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11188. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11189. ld_shlibs_CXX=yes
  11190. case $host_os in
  11191. aix3*)
  11192. # FIXME: insert proper C++ library support
  11193. ld_shlibs_CXX=no
  11194. ;;
  11195. aix[4-9]*)
  11196. if test "$host_cpu" = ia64; then
  11197. # On IA64, the linker does run time linking by default, so we don't
  11198. # have to do anything special.
  11199. aix_use_runtimelinking=no
  11200. exp_sym_flag='-Bexport'
  11201. no_entry_flag=""
  11202. else
  11203. aix_use_runtimelinking=no
  11204. # Test if we are trying to use run time linking or normal
  11205. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11206. # need to do runtime linking.
  11207. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11208. for ld_flag in $LDFLAGS; do
  11209. case $ld_flag in
  11210. *-brtl*)
  11211. aix_use_runtimelinking=yes
  11212. break
  11213. ;;
  11214. esac
  11215. done
  11216. ;;
  11217. esac
  11218. exp_sym_flag='-bexport'
  11219. no_entry_flag='-bnoentry'
  11220. fi
  11221. # When large executables or shared objects are built, AIX ld can
  11222. # have problems creating the table of contents. If linking a library
  11223. # or program results in "error TOC overflow" add -mminimal-toc to
  11224. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11225. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11226. archive_cmds_CXX=''
  11227. hardcode_direct_CXX=yes
  11228. hardcode_direct_absolute_CXX=yes
  11229. hardcode_libdir_separator_CXX=':'
  11230. link_all_deplibs_CXX=yes
  11231. file_list_spec_CXX='${wl}-f,'
  11232. if test "$GXX" = yes; then
  11233. case $host_os in aix4.[012]|aix4.[012].*)
  11234. # We only want to do this on AIX 4.2 and lower, the check
  11235. # below for broken collect2 doesn't work under 4.3+
  11236. collect2name=`${CC} -print-prog-name=collect2`
  11237. if test -f "$collect2name" &&
  11238. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11239. then
  11240. # We have reworked collect2
  11241. :
  11242. else
  11243. # We have old collect2
  11244. hardcode_direct_CXX=unsupported
  11245. # It fails to find uninstalled libraries when the uninstalled
  11246. # path is not listed in the libpath. Setting hardcode_minus_L
  11247. # to unsupported forces relinking
  11248. hardcode_minus_L_CXX=yes
  11249. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11250. hardcode_libdir_separator_CXX=
  11251. fi
  11252. esac
  11253. shared_flag='-shared'
  11254. if test "$aix_use_runtimelinking" = yes; then
  11255. shared_flag="$shared_flag "'${wl}-G'
  11256. fi
  11257. else
  11258. # not using gcc
  11259. if test "$host_cpu" = ia64; then
  11260. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11261. # chokes on -Wl,-G. The following line is correct:
  11262. shared_flag='-G'
  11263. else
  11264. if test "$aix_use_runtimelinking" = yes; then
  11265. shared_flag='${wl}-G'
  11266. else
  11267. shared_flag='${wl}-bM:SRE'
  11268. fi
  11269. fi
  11270. fi
  11271. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11272. # It seems that -bexpall does not export symbols beginning with
  11273. # underscore (_), so it is better to generate a list of symbols to
  11274. # export.
  11275. always_export_symbols_CXX=yes
  11276. if test "$aix_use_runtimelinking" = yes; then
  11277. # Warning - without using the other runtime loading flags (-brtl),
  11278. # -berok will link without error, but may produce a broken library.
  11279. allow_undefined_flag_CXX='-berok'
  11280. # Determine the default libpath from the value encoded in an empty
  11281. # executable.
  11282. if test "${lt_cv_aix_libpath+set}" = set; then
  11283. aix_libpath=$lt_cv_aix_libpath
  11284. else
  11285. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11286. $as_echo_n "(cached) " >&6
  11287. else
  11288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11289. /* end confdefs.h. */
  11290. int
  11291. main ()
  11292. {
  11293. ;
  11294. return 0;
  11295. }
  11296. _ACEOF
  11297. if ac_fn_cxx_try_link "$LINENO"; then :
  11298. lt_aix_libpath_sed='
  11299. /Import File Strings/,/^$/ {
  11300. /^0/ {
  11301. s/^0 *\([^ ]*\) *$/\1/
  11302. p
  11303. }
  11304. }'
  11305. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11306. # Check for a 64-bit object if we didn't find anything.
  11307. if test -z "$lt_cv_aix_libpath__CXX"; then
  11308. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11309. fi
  11310. fi
  11311. rm -f core conftest.err conftest.$ac_objext \
  11312. conftest$ac_exeext conftest.$ac_ext
  11313. if test -z "$lt_cv_aix_libpath__CXX"; then
  11314. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11315. fi
  11316. fi
  11317. aix_libpath=$lt_cv_aix_libpath__CXX
  11318. fi
  11319. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11320. 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"
  11321. else
  11322. if test "$host_cpu" = ia64; then
  11323. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11324. allow_undefined_flag_CXX="-z nodefs"
  11325. 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"
  11326. else
  11327. # Determine the default libpath from the value encoded in an
  11328. # empty executable.
  11329. if test "${lt_cv_aix_libpath+set}" = set; then
  11330. aix_libpath=$lt_cv_aix_libpath
  11331. else
  11332. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11333. $as_echo_n "(cached) " >&6
  11334. else
  11335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11336. /* end confdefs.h. */
  11337. int
  11338. main ()
  11339. {
  11340. ;
  11341. return 0;
  11342. }
  11343. _ACEOF
  11344. if ac_fn_cxx_try_link "$LINENO"; then :
  11345. lt_aix_libpath_sed='
  11346. /Import File Strings/,/^$/ {
  11347. /^0/ {
  11348. s/^0 *\([^ ]*\) *$/\1/
  11349. p
  11350. }
  11351. }'
  11352. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11353. # Check for a 64-bit object if we didn't find anything.
  11354. if test -z "$lt_cv_aix_libpath__CXX"; then
  11355. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11356. fi
  11357. fi
  11358. rm -f core conftest.err conftest.$ac_objext \
  11359. conftest$ac_exeext conftest.$ac_ext
  11360. if test -z "$lt_cv_aix_libpath__CXX"; then
  11361. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11362. fi
  11363. fi
  11364. aix_libpath=$lt_cv_aix_libpath__CXX
  11365. fi
  11366. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11367. # Warning - without using the other run time loading flags,
  11368. # -berok will link without error, but may produce a broken library.
  11369. no_undefined_flag_CXX=' ${wl}-bernotok'
  11370. allow_undefined_flag_CXX=' ${wl}-berok'
  11371. if test "$with_gnu_ld" = yes; then
  11372. # We only use this code for GNU lds that support --whole-archive.
  11373. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11374. else
  11375. # Exported symbols can be pulled into shared objects from archives
  11376. whole_archive_flag_spec_CXX='$convenience'
  11377. fi
  11378. archive_cmds_need_lc_CXX=yes
  11379. # This is similar to how AIX traditionally builds its shared
  11380. # libraries.
  11381. 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'
  11382. fi
  11383. fi
  11384. ;;
  11385. beos*)
  11386. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11387. allow_undefined_flag_CXX=unsupported
  11388. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11389. # support --undefined. This deserves some investigation. FIXME
  11390. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11391. else
  11392. ld_shlibs_CXX=no
  11393. fi
  11394. ;;
  11395. chorus*)
  11396. case $cc_basename in
  11397. *)
  11398. # FIXME: insert proper C++ library support
  11399. ld_shlibs_CXX=no
  11400. ;;
  11401. esac
  11402. ;;
  11403. cygwin* | mingw* | pw32* | cegcc*)
  11404. case $GXX,$cc_basename in
  11405. ,cl* | no,cl*)
  11406. # Native MSVC
  11407. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11408. # no search path for DLLs.
  11409. hardcode_libdir_flag_spec_CXX=' '
  11410. allow_undefined_flag_CXX=unsupported
  11411. always_export_symbols_CXX=yes
  11412. file_list_spec_CXX='@'
  11413. # Tell ltmain to make .lib files, not .a files.
  11414. libext=lib
  11415. # Tell ltmain to make .dll files, not .so files.
  11416. shrext_cmds=".dll"
  11417. # FIXME: Setting linknames here is a bad hack.
  11418. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11419. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11420. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11421. else
  11422. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11423. fi~
  11424. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11425. linknames='
  11426. # The linker will not automatically build a static lib if we build a DLL.
  11427. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11428. enable_shared_with_static_runtimes_CXX=yes
  11429. # Don't use ranlib
  11430. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11431. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11432. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11433. case $lt_outputfile in
  11434. *.exe|*.EXE) ;;
  11435. *)
  11436. lt_outputfile="$lt_outputfile.exe"
  11437. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11438. ;;
  11439. esac~
  11440. func_to_tool_file "$lt_outputfile"~
  11441. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11442. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11443. $RM "$lt_outputfile.manifest";
  11444. fi'
  11445. ;;
  11446. *)
  11447. # g++
  11448. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11449. # as there is no search path for DLLs.
  11450. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11451. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11452. allow_undefined_flag_CXX=unsupported
  11453. always_export_symbols_CXX=no
  11454. enable_shared_with_static_runtimes_CXX=yes
  11455. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11456. 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'
  11457. # If the export-symbols file already is a .def file (1st line
  11458. # is EXPORTS), use it as is; otherwise, prepend...
  11459. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11460. cp $export_symbols $output_objdir/$soname.def;
  11461. else
  11462. echo EXPORTS > $output_objdir/$soname.def;
  11463. cat $export_symbols >> $output_objdir/$soname.def;
  11464. fi~
  11465. $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'
  11466. else
  11467. ld_shlibs_CXX=no
  11468. fi
  11469. ;;
  11470. esac
  11471. ;;
  11472. darwin* | rhapsody*)
  11473. archive_cmds_need_lc_CXX=no
  11474. hardcode_direct_CXX=no
  11475. hardcode_automatic_CXX=yes
  11476. hardcode_shlibpath_var_CXX=unsupported
  11477. if test "$lt_cv_ld_force_load" = "yes"; then
  11478. 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\"`'
  11479. else
  11480. whole_archive_flag_spec_CXX=''
  11481. fi
  11482. link_all_deplibs_CXX=yes
  11483. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11484. case $cc_basename in
  11485. ifort*) _lt_dar_can_shared=yes ;;
  11486. *) _lt_dar_can_shared=$GCC ;;
  11487. esac
  11488. if test "$_lt_dar_can_shared" = "yes"; then
  11489. output_verbose_link_cmd=func_echo_all
  11490. 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}"
  11491. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11492. 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}"
  11493. 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}"
  11494. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11495. 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}"
  11496. 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}"
  11497. fi
  11498. else
  11499. ld_shlibs_CXX=no
  11500. fi
  11501. ;;
  11502. dgux*)
  11503. case $cc_basename in
  11504. ec++*)
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. ;;
  11508. ghcx*)
  11509. # Green Hills C++ Compiler
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. *)
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. esac
  11518. ;;
  11519. freebsd2.*)
  11520. # C++ shared libraries reported to be fairly broken before
  11521. # switch to ELF
  11522. ld_shlibs_CXX=no
  11523. ;;
  11524. freebsd-elf*)
  11525. archive_cmds_need_lc_CXX=no
  11526. ;;
  11527. freebsd* | dragonfly*)
  11528. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11529. # conventions
  11530. ld_shlibs_CXX=yes
  11531. ;;
  11532. gnu*)
  11533. ;;
  11534. haiku*)
  11535. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11536. link_all_deplibs_CXX=yes
  11537. ;;
  11538. hpux9*)
  11539. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11540. hardcode_libdir_separator_CXX=:
  11541. export_dynamic_flag_spec_CXX='${wl}-E'
  11542. hardcode_direct_CXX=yes
  11543. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11544. # but as the default
  11545. # location of the library.
  11546. case $cc_basename in
  11547. CC*)
  11548. # FIXME: insert proper C++ library support
  11549. ld_shlibs_CXX=no
  11550. ;;
  11551. aCC*)
  11552. 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'
  11553. # Commands to make compiler produce verbose output that lists
  11554. # what "hidden" libraries, object files and flags are used when
  11555. # linking a shared library.
  11556. #
  11557. # There doesn't appear to be a way to prevent this compiler from
  11558. # explicitly linking system object files so we need to strip them
  11559. # from the output so that they don't get included in the library
  11560. # dependencies.
  11561. 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"'
  11562. ;;
  11563. *)
  11564. if test "$GXX" = yes; then
  11565. 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'
  11566. else
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. fi
  11570. ;;
  11571. esac
  11572. ;;
  11573. hpux10*|hpux11*)
  11574. if test $with_gnu_ld = no; then
  11575. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11576. hardcode_libdir_separator_CXX=:
  11577. case $host_cpu in
  11578. hppa*64*|ia64*)
  11579. ;;
  11580. *)
  11581. export_dynamic_flag_spec_CXX='${wl}-E'
  11582. ;;
  11583. esac
  11584. fi
  11585. case $host_cpu in
  11586. hppa*64*|ia64*)
  11587. hardcode_direct_CXX=no
  11588. hardcode_shlibpath_var_CXX=no
  11589. ;;
  11590. *)
  11591. hardcode_direct_CXX=yes
  11592. hardcode_direct_absolute_CXX=yes
  11593. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11594. # but as the default
  11595. # location of the library.
  11596. ;;
  11597. esac
  11598. case $cc_basename in
  11599. CC*)
  11600. # FIXME: insert proper C++ library support
  11601. ld_shlibs_CXX=no
  11602. ;;
  11603. aCC*)
  11604. case $host_cpu in
  11605. hppa*64*)
  11606. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11607. ;;
  11608. ia64*)
  11609. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11610. ;;
  11611. *)
  11612. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11613. ;;
  11614. esac
  11615. # Commands to make compiler produce verbose output that lists
  11616. # what "hidden" libraries, object files and flags are used when
  11617. # linking a shared library.
  11618. #
  11619. # There doesn't appear to be a way to prevent this compiler from
  11620. # explicitly linking system object files so we need to strip them
  11621. # from the output so that they don't get included in the library
  11622. # dependencies.
  11623. 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"'
  11624. ;;
  11625. *)
  11626. if test "$GXX" = yes; then
  11627. if test $with_gnu_ld = no; then
  11628. case $host_cpu in
  11629. hppa*64*)
  11630. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11631. ;;
  11632. ia64*)
  11633. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11634. ;;
  11635. *)
  11636. 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'
  11637. ;;
  11638. esac
  11639. fi
  11640. else
  11641. # FIXME: insert proper C++ library support
  11642. ld_shlibs_CXX=no
  11643. fi
  11644. ;;
  11645. esac
  11646. ;;
  11647. interix[3-9]*)
  11648. hardcode_direct_CXX=no
  11649. hardcode_shlibpath_var_CXX=no
  11650. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11651. export_dynamic_flag_spec_CXX='${wl}-E'
  11652. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11653. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11654. # default) and relocated if they conflict, which is a slow very memory
  11655. # consuming and fragmenting process. To avoid this, we pick a random,
  11656. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11657. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11658. 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'
  11659. 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'
  11660. ;;
  11661. irix5* | irix6*)
  11662. case $cc_basename in
  11663. CC*)
  11664. # SGI C++
  11665. 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'
  11666. # Archives containing C++ object files must be created using
  11667. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11668. # necessary to make sure instantiated templates are included
  11669. # in the archive.
  11670. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11671. ;;
  11672. *)
  11673. if test "$GXX" = yes; then
  11674. if test "$with_gnu_ld" = no; then
  11675. 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'
  11676. else
  11677. 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'
  11678. fi
  11679. fi
  11680. link_all_deplibs_CXX=yes
  11681. ;;
  11682. esac
  11683. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11684. hardcode_libdir_separator_CXX=:
  11685. inherit_rpath_CXX=yes
  11686. ;;
  11687. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11688. case $cc_basename in
  11689. KCC*)
  11690. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11691. # KCC will only create a shared library if the output file
  11692. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11693. # to its proper name (with version) after linking.
  11694. 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'
  11695. 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'
  11696. # Commands to make compiler produce verbose output that lists
  11697. # what "hidden" libraries, object files and flags are used when
  11698. # linking a shared library.
  11699. #
  11700. # There doesn't appear to be a way to prevent this compiler from
  11701. # explicitly linking system object files so we need to strip them
  11702. # from the output so that they don't get included in the library
  11703. # dependencies.
  11704. 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"'
  11705. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11706. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11707. # Archives containing C++ object files must be created using
  11708. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11709. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11710. ;;
  11711. icpc* | ecpc* )
  11712. # Intel C++
  11713. with_gnu_ld=yes
  11714. # version 8.0 and above of icpc choke on multiply defined symbols
  11715. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11716. # earlier do not add the objects themselves.
  11717. case `$CC -V 2>&1` in
  11718. *"Version 7."*)
  11719. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11720. 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'
  11721. ;;
  11722. *) # Version 8.0 or newer
  11723. tmp_idyn=
  11724. case $host_cpu in
  11725. ia64*) tmp_idyn=' -i_dynamic';;
  11726. esac
  11727. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11728. 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'
  11729. ;;
  11730. esac
  11731. archive_cmds_need_lc_CXX=no
  11732. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11733. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11734. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11735. ;;
  11736. pgCC* | pgcpp*)
  11737. # Portland Group C++ compiler
  11738. case `$CC -V` in
  11739. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11740. prelink_cmds_CXX='tpldir=Template.dir~
  11741. rm -rf $tpldir~
  11742. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11743. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11744. old_archive_cmds_CXX='tpldir=Template.dir~
  11745. rm -rf $tpldir~
  11746. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11747. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11748. $RANLIB $oldlib'
  11749. archive_cmds_CXX='tpldir=Template.dir~
  11750. rm -rf $tpldir~
  11751. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11752. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11753. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11754. rm -rf $tpldir~
  11755. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11756. $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'
  11757. ;;
  11758. *) # Version 6 and above use weak symbols
  11759. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11760. 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'
  11761. ;;
  11762. esac
  11763. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11764. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11765. 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'
  11766. ;;
  11767. cxx*)
  11768. # Compaq C++
  11769. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11770. 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'
  11771. runpath_var=LD_RUN_PATH
  11772. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11773. hardcode_libdir_separator_CXX=:
  11774. # Commands to make compiler produce verbose output that lists
  11775. # what "hidden" libraries, object files and flags are used when
  11776. # linking a shared library.
  11777. #
  11778. # There doesn't appear to be a way to prevent this compiler from
  11779. # explicitly linking system object files so we need to strip them
  11780. # from the output so that they don't get included in the library
  11781. # dependencies.
  11782. 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'
  11783. ;;
  11784. xl* | mpixl* | bgxl*)
  11785. # IBM XL 8.0 on PPC, with GNU ld
  11786. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11787. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11788. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11789. if test "x$supports_anon_versioning" = xyes; then
  11790. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11791. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11792. echo "local: *; };" >> $output_objdir/$libname.ver~
  11793. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11794. fi
  11795. ;;
  11796. *)
  11797. case `$CC -V 2>&1 | sed 5q` in
  11798. *Sun\ C*)
  11799. # Sun C++ 5.9
  11800. no_undefined_flag_CXX=' -zdefs'
  11801. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11802. 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'
  11803. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11804. 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'
  11805. compiler_needs_object_CXX=yes
  11806. # Not sure whether something based on
  11807. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11808. # would be better.
  11809. output_verbose_link_cmd='func_echo_all'
  11810. # Archives containing C++ object files must be created using
  11811. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11812. # necessary to make sure instantiated templates are included
  11813. # in the archive.
  11814. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11815. ;;
  11816. esac
  11817. ;;
  11818. esac
  11819. ;;
  11820. lynxos*)
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. m88k*)
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. mvs*)
  11829. case $cc_basename in
  11830. cxx*)
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. *)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. esac
  11839. ;;
  11840. netbsd*)
  11841. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11842. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11843. wlarc=
  11844. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11845. hardcode_direct_CXX=yes
  11846. hardcode_shlibpath_var_CXX=no
  11847. fi
  11848. # Workaround some broken pre-1.5 toolchains
  11849. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11850. ;;
  11851. *nto* | *qnx*)
  11852. ld_shlibs_CXX=yes
  11853. ;;
  11854. openbsd2*)
  11855. # C++ shared libraries are fairly broken
  11856. ld_shlibs_CXX=no
  11857. ;;
  11858. openbsd*)
  11859. if test -f /usr/libexec/ld.so; then
  11860. hardcode_direct_CXX=yes
  11861. hardcode_shlibpath_var_CXX=no
  11862. hardcode_direct_absolute_CXX=yes
  11863. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11864. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11865. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11866. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11867. export_dynamic_flag_spec_CXX='${wl}-E'
  11868. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11869. fi
  11870. output_verbose_link_cmd=func_echo_all
  11871. else
  11872. ld_shlibs_CXX=no
  11873. fi
  11874. ;;
  11875. osf3* | osf4* | osf5*)
  11876. case $cc_basename in
  11877. KCC*)
  11878. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11879. # KCC will only create a shared library if the output file
  11880. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11881. # to its proper name (with version) after linking.
  11882. 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'
  11883. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11884. hardcode_libdir_separator_CXX=:
  11885. # Archives containing C++ object files must be created using
  11886. # the KAI C++ compiler.
  11887. case $host in
  11888. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11889. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11890. esac
  11891. ;;
  11892. RCC*)
  11893. # Rational C++ 2.4.1
  11894. # FIXME: insert proper C++ library support
  11895. ld_shlibs_CXX=no
  11896. ;;
  11897. cxx*)
  11898. case $host in
  11899. osf3*)
  11900. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11901. 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'
  11902. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11903. ;;
  11904. *)
  11905. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11906. 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'
  11907. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11908. echo "-hidden">> $lib.exp~
  11909. $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~
  11910. $RM $lib.exp'
  11911. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11912. ;;
  11913. esac
  11914. hardcode_libdir_separator_CXX=:
  11915. # Commands to make compiler produce verbose output that lists
  11916. # what "hidden" libraries, object files and flags are used when
  11917. # linking a shared library.
  11918. #
  11919. # There doesn't appear to be a way to prevent this compiler from
  11920. # explicitly linking system object files so we need to strip them
  11921. # from the output so that they don't get included in the library
  11922. # dependencies.
  11923. 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"'
  11924. ;;
  11925. *)
  11926. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11927. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11928. case $host in
  11929. osf3*)
  11930. 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'
  11931. ;;
  11932. *)
  11933. 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'
  11934. ;;
  11935. esac
  11936. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11937. hardcode_libdir_separator_CXX=:
  11938. # Commands to make compiler produce verbose output that lists
  11939. # what "hidden" libraries, object files and flags are used when
  11940. # linking a shared library.
  11941. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11942. else
  11943. # FIXME: insert proper C++ library support
  11944. ld_shlibs_CXX=no
  11945. fi
  11946. ;;
  11947. esac
  11948. ;;
  11949. psos*)
  11950. # FIXME: insert proper C++ library support
  11951. ld_shlibs_CXX=no
  11952. ;;
  11953. sunos4*)
  11954. case $cc_basename in
  11955. CC*)
  11956. # Sun C++ 4.x
  11957. # FIXME: insert proper C++ library support
  11958. ld_shlibs_CXX=no
  11959. ;;
  11960. lcc*)
  11961. # Lucid
  11962. # FIXME: insert proper C++ library support
  11963. ld_shlibs_CXX=no
  11964. ;;
  11965. *)
  11966. # FIXME: insert proper C++ library support
  11967. ld_shlibs_CXX=no
  11968. ;;
  11969. esac
  11970. ;;
  11971. solaris*)
  11972. case $cc_basename in
  11973. CC* | sunCC*)
  11974. # Sun C++ 4.2, 5.x and Centerline C++
  11975. archive_cmds_need_lc_CXX=yes
  11976. no_undefined_flag_CXX=' -zdefs'
  11977. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11978. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11979. $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'
  11980. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11981. hardcode_shlibpath_var_CXX=no
  11982. case $host_os in
  11983. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11984. *)
  11985. # The compiler driver will combine and reorder linker options,
  11986. # but understands `-z linker_flag'.
  11987. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11988. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11989. ;;
  11990. esac
  11991. link_all_deplibs_CXX=yes
  11992. output_verbose_link_cmd='func_echo_all'
  11993. # Archives containing C++ object files must be created using
  11994. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11995. # necessary to make sure instantiated templates are included
  11996. # in the archive.
  11997. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11998. ;;
  11999. gcx*)
  12000. # Green Hills C++ Compiler
  12001. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12002. # The C++ compiler must be used to create the archive.
  12003. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12004. ;;
  12005. *)
  12006. # GNU C++ compiler with Solaris linker
  12007. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12008. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12009. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12010. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12011. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12012. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12013. # Commands to make compiler produce verbose output that lists
  12014. # what "hidden" libraries, object files and flags are used when
  12015. # linking a shared library.
  12016. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12017. else
  12018. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12019. # platform.
  12020. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12021. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12022. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12023. # Commands to make compiler produce verbose output that lists
  12024. # what "hidden" libraries, object files and flags are used when
  12025. # linking a shared library.
  12026. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12027. fi
  12028. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12029. case $host_os in
  12030. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12031. *)
  12032. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12033. ;;
  12034. esac
  12035. fi
  12036. ;;
  12037. esac
  12038. ;;
  12039. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12040. no_undefined_flag_CXX='${wl}-z,text'
  12041. archive_cmds_need_lc_CXX=no
  12042. hardcode_shlibpath_var_CXX=no
  12043. runpath_var='LD_RUN_PATH'
  12044. case $cc_basename in
  12045. CC*)
  12046. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12047. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12048. ;;
  12049. *)
  12050. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12051. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12052. ;;
  12053. esac
  12054. ;;
  12055. sysv5* | sco3.2v5* | sco5v6*)
  12056. # Note: We can NOT use -z defs as we might desire, because we do not
  12057. # link with -lc, and that would cause any symbols used from libc to
  12058. # always be unresolved, which means just about no library would
  12059. # ever link correctly. If we're not using GNU ld we use -z text
  12060. # though, which does catch some bad symbols but isn't as heavy-handed
  12061. # as -z defs.
  12062. no_undefined_flag_CXX='${wl}-z,text'
  12063. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12064. archive_cmds_need_lc_CXX=no
  12065. hardcode_shlibpath_var_CXX=no
  12066. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12067. hardcode_libdir_separator_CXX=':'
  12068. link_all_deplibs_CXX=yes
  12069. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12070. runpath_var='LD_RUN_PATH'
  12071. case $cc_basename in
  12072. CC*)
  12073. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12074. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12075. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12076. '"$old_archive_cmds_CXX"
  12077. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12078. '"$reload_cmds_CXX"
  12079. ;;
  12080. *)
  12081. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12082. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12083. ;;
  12084. esac
  12085. ;;
  12086. tandem*)
  12087. case $cc_basename in
  12088. NCC*)
  12089. # NonStop-UX NCC 3.20
  12090. # FIXME: insert proper C++ library support
  12091. ld_shlibs_CXX=no
  12092. ;;
  12093. *)
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. esac
  12098. ;;
  12099. vxworks*)
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. *)
  12104. # FIXME: insert proper C++ library support
  12105. ld_shlibs_CXX=no
  12106. ;;
  12107. esac
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12109. $as_echo "$ld_shlibs_CXX" >&6; }
  12110. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12111. GCC_CXX="$GXX"
  12112. LD_CXX="$LD"
  12113. ## CAVEAT EMPTOR:
  12114. ## There is no encapsulation within the following macros, do not change
  12115. ## the running order or otherwise move them around unless you know exactly
  12116. ## what you are doing...
  12117. # Dependencies to place before and after the object being linked:
  12118. predep_objects_CXX=
  12119. postdep_objects_CXX=
  12120. predeps_CXX=
  12121. postdeps_CXX=
  12122. compiler_lib_search_path_CXX=
  12123. cat > conftest.$ac_ext <<_LT_EOF
  12124. class Foo
  12125. {
  12126. public:
  12127. Foo (void) { a = 0; }
  12128. private:
  12129. int a;
  12130. };
  12131. _LT_EOF
  12132. _lt_libdeps_save_CFLAGS=$CFLAGS
  12133. case "$CC $CFLAGS " in #(
  12134. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12135. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12136. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12137. esac
  12138. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12139. (eval $ac_compile) 2>&5
  12140. ac_status=$?
  12141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12142. test $ac_status = 0; }; then
  12143. # Parse the compiler output and extract the necessary
  12144. # objects, libraries and library flags.
  12145. # Sentinel used to keep track of whether or not we are before
  12146. # the conftest object file.
  12147. pre_test_object_deps_done=no
  12148. for p in `eval "$output_verbose_link_cmd"`; do
  12149. case ${prev}${p} in
  12150. -L* | -R* | -l*)
  12151. # Some compilers place space between "-{L,R}" and the path.
  12152. # Remove the space.
  12153. if test $p = "-L" ||
  12154. test $p = "-R"; then
  12155. prev=$p
  12156. continue
  12157. fi
  12158. # Expand the sysroot to ease extracting the directories later.
  12159. if test -z "$prev"; then
  12160. case $p in
  12161. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12162. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12163. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12164. esac
  12165. fi
  12166. case $p in
  12167. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12168. esac
  12169. if test "$pre_test_object_deps_done" = no; then
  12170. case ${prev} in
  12171. -L | -R)
  12172. # Internal compiler library paths should come after those
  12173. # provided the user. The postdeps already come after the
  12174. # user supplied libs so there is no need to process them.
  12175. if test -z "$compiler_lib_search_path_CXX"; then
  12176. compiler_lib_search_path_CXX="${prev}${p}"
  12177. else
  12178. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12179. fi
  12180. ;;
  12181. # The "-l" case would never come before the object being
  12182. # linked, so don't bother handling this case.
  12183. esac
  12184. else
  12185. if test -z "$postdeps_CXX"; then
  12186. postdeps_CXX="${prev}${p}"
  12187. else
  12188. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12189. fi
  12190. fi
  12191. prev=
  12192. ;;
  12193. *.lto.$objext) ;; # Ignore GCC LTO objects
  12194. *.$objext)
  12195. # This assumes that the test object file only shows up
  12196. # once in the compiler output.
  12197. if test "$p" = "conftest.$objext"; then
  12198. pre_test_object_deps_done=yes
  12199. continue
  12200. fi
  12201. if test "$pre_test_object_deps_done" = no; then
  12202. if test -z "$predep_objects_CXX"; then
  12203. predep_objects_CXX="$p"
  12204. else
  12205. predep_objects_CXX="$predep_objects_CXX $p"
  12206. fi
  12207. else
  12208. if test -z "$postdep_objects_CXX"; then
  12209. postdep_objects_CXX="$p"
  12210. else
  12211. postdep_objects_CXX="$postdep_objects_CXX $p"
  12212. fi
  12213. fi
  12214. ;;
  12215. *) ;; # Ignore the rest.
  12216. esac
  12217. done
  12218. # Clean up.
  12219. rm -f a.out a.exe
  12220. else
  12221. echo "libtool.m4: error: problem compiling CXX test program"
  12222. fi
  12223. $RM -f confest.$objext
  12224. CFLAGS=$_lt_libdeps_save_CFLAGS
  12225. # PORTME: override above test on systems where it is broken
  12226. case $host_os in
  12227. interix[3-9]*)
  12228. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12229. # hack all around it, let's just trust "g++" to DTRT.
  12230. predep_objects_CXX=
  12231. postdep_objects_CXX=
  12232. postdeps_CXX=
  12233. ;;
  12234. linux*)
  12235. case `$CC -V 2>&1 | sed 5q` in
  12236. *Sun\ C*)
  12237. # Sun C++ 5.9
  12238. # The more standards-conforming stlport4 library is
  12239. # incompatible with the Cstd library. Avoid specifying
  12240. # it if it's in CXXFLAGS. Ignore libCrun as
  12241. # -library=stlport4 depends on it.
  12242. case " $CXX $CXXFLAGS " in
  12243. *" -library=stlport4 "*)
  12244. solaris_use_stlport4=yes
  12245. ;;
  12246. esac
  12247. if test "$solaris_use_stlport4" != yes; then
  12248. postdeps_CXX='-library=Cstd -library=Crun'
  12249. fi
  12250. ;;
  12251. esac
  12252. ;;
  12253. solaris*)
  12254. case $cc_basename in
  12255. CC* | sunCC*)
  12256. # The more standards-conforming stlport4 library is
  12257. # incompatible with the Cstd library. Avoid specifying
  12258. # it if it's in CXXFLAGS. Ignore libCrun as
  12259. # -library=stlport4 depends on it.
  12260. case " $CXX $CXXFLAGS " in
  12261. *" -library=stlport4 "*)
  12262. solaris_use_stlport4=yes
  12263. ;;
  12264. esac
  12265. # Adding this requires a known-good setup of shared libraries for
  12266. # Sun compiler versions before 5.6, else PIC objects from an old
  12267. # archive will be linked into the output, leading to subtle bugs.
  12268. if test "$solaris_use_stlport4" != yes; then
  12269. postdeps_CXX='-library=Cstd -library=Crun'
  12270. fi
  12271. ;;
  12272. esac
  12273. ;;
  12274. esac
  12275. case " $postdeps_CXX " in
  12276. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12277. esac
  12278. compiler_lib_search_dirs_CXX=
  12279. if test -n "${compiler_lib_search_path_CXX}"; then
  12280. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12281. fi
  12282. lt_prog_compiler_wl_CXX=
  12283. lt_prog_compiler_pic_CXX=
  12284. lt_prog_compiler_static_CXX=
  12285. # C++ specific cases for pic, static, wl, etc.
  12286. if test "$GXX" = yes; then
  12287. lt_prog_compiler_wl_CXX='-Wl,'
  12288. lt_prog_compiler_static_CXX='-static'
  12289. case $host_os in
  12290. aix*)
  12291. # All AIX code is PIC.
  12292. if test "$host_cpu" = ia64; then
  12293. # AIX 5 now supports IA64 processor
  12294. lt_prog_compiler_static_CXX='-Bstatic'
  12295. fi
  12296. ;;
  12297. amigaos*)
  12298. case $host_cpu in
  12299. powerpc)
  12300. # see comment about AmigaOS4 .so support
  12301. lt_prog_compiler_pic_CXX='-fPIC'
  12302. ;;
  12303. m68k)
  12304. # FIXME: we need at least 68020 code to build shared libraries, but
  12305. # adding the `-m68020' flag to GCC prevents building anything better,
  12306. # like `-m68040'.
  12307. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12308. ;;
  12309. esac
  12310. ;;
  12311. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12312. # PIC is the default for these OSes.
  12313. ;;
  12314. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12315. # This hack is so that the source file can tell whether it is being
  12316. # built for inclusion in a dll (and should export symbols for example).
  12317. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12318. # (--disable-auto-import) libraries
  12319. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12320. ;;
  12321. darwin* | rhapsody*)
  12322. # PIC is the default on this platform
  12323. # Common symbols not allowed in MH_DYLIB files
  12324. lt_prog_compiler_pic_CXX='-fno-common'
  12325. ;;
  12326. *djgpp*)
  12327. # DJGPP does not support shared libraries at all
  12328. lt_prog_compiler_pic_CXX=
  12329. ;;
  12330. haiku*)
  12331. # PIC is the default for Haiku.
  12332. # The "-static" flag exists, but is broken.
  12333. lt_prog_compiler_static_CXX=
  12334. ;;
  12335. interix[3-9]*)
  12336. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12337. # Instead, we relocate shared libraries at runtime.
  12338. ;;
  12339. sysv4*MP*)
  12340. if test -d /usr/nec; then
  12341. lt_prog_compiler_pic_CXX=-Kconform_pic
  12342. fi
  12343. ;;
  12344. hpux*)
  12345. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12346. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12347. # sets the default TLS model and affects inlining.
  12348. case $host_cpu in
  12349. hppa*64*)
  12350. ;;
  12351. *)
  12352. lt_prog_compiler_pic_CXX='-fPIC'
  12353. ;;
  12354. esac
  12355. ;;
  12356. *qnx* | *nto*)
  12357. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12358. # it will coredump.
  12359. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12360. ;;
  12361. *)
  12362. lt_prog_compiler_pic_CXX='-fPIC'
  12363. ;;
  12364. esac
  12365. else
  12366. case $host_os in
  12367. aix[4-9]*)
  12368. # All AIX code is PIC.
  12369. if test "$host_cpu" = ia64; then
  12370. # AIX 5 now supports IA64 processor
  12371. lt_prog_compiler_static_CXX='-Bstatic'
  12372. else
  12373. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12374. fi
  12375. ;;
  12376. chorus*)
  12377. case $cc_basename in
  12378. cxch68*)
  12379. # Green Hills C++ Compiler
  12380. # _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"
  12381. ;;
  12382. esac
  12383. ;;
  12384. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12385. # This hack is so that the source file can tell whether it is being
  12386. # built for inclusion in a dll (and should export symbols for example).
  12387. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12388. ;;
  12389. dgux*)
  12390. case $cc_basename in
  12391. ec++*)
  12392. lt_prog_compiler_pic_CXX='-KPIC'
  12393. ;;
  12394. ghcx*)
  12395. # Green Hills C++ Compiler
  12396. lt_prog_compiler_pic_CXX='-pic'
  12397. ;;
  12398. *)
  12399. ;;
  12400. esac
  12401. ;;
  12402. freebsd* | dragonfly*)
  12403. # FreeBSD uses GNU C++
  12404. ;;
  12405. hpux9* | hpux10* | hpux11*)
  12406. case $cc_basename in
  12407. CC*)
  12408. lt_prog_compiler_wl_CXX='-Wl,'
  12409. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12410. if test "$host_cpu" != ia64; then
  12411. lt_prog_compiler_pic_CXX='+Z'
  12412. fi
  12413. ;;
  12414. aCC*)
  12415. lt_prog_compiler_wl_CXX='-Wl,'
  12416. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12417. case $host_cpu in
  12418. hppa*64*|ia64*)
  12419. # +Z the default
  12420. ;;
  12421. *)
  12422. lt_prog_compiler_pic_CXX='+Z'
  12423. ;;
  12424. esac
  12425. ;;
  12426. *)
  12427. ;;
  12428. esac
  12429. ;;
  12430. interix*)
  12431. # This is c89, which is MS Visual C++ (no shared libs)
  12432. # Anyone wants to do a port?
  12433. ;;
  12434. irix5* | irix6* | nonstopux*)
  12435. case $cc_basename in
  12436. CC*)
  12437. lt_prog_compiler_wl_CXX='-Wl,'
  12438. lt_prog_compiler_static_CXX='-non_shared'
  12439. # CC pic flag -KPIC is the default.
  12440. ;;
  12441. *)
  12442. ;;
  12443. esac
  12444. ;;
  12445. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12446. case $cc_basename in
  12447. KCC*)
  12448. # KAI C++ Compiler
  12449. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12450. lt_prog_compiler_pic_CXX='-fPIC'
  12451. ;;
  12452. ecpc* )
  12453. # old Intel C++ for x86_64 which still supported -KPIC.
  12454. lt_prog_compiler_wl_CXX='-Wl,'
  12455. lt_prog_compiler_pic_CXX='-KPIC'
  12456. lt_prog_compiler_static_CXX='-static'
  12457. ;;
  12458. icpc* )
  12459. # Intel C++, used to be incompatible with GCC.
  12460. # ICC 10 doesn't accept -KPIC any more.
  12461. lt_prog_compiler_wl_CXX='-Wl,'
  12462. lt_prog_compiler_pic_CXX='-fPIC'
  12463. lt_prog_compiler_static_CXX='-static'
  12464. ;;
  12465. pgCC* | pgcpp*)
  12466. # Portland Group C++ compiler
  12467. lt_prog_compiler_wl_CXX='-Wl,'
  12468. lt_prog_compiler_pic_CXX='-fpic'
  12469. lt_prog_compiler_static_CXX='-Bstatic'
  12470. ;;
  12471. cxx*)
  12472. # Compaq C++
  12473. # Make sure the PIC flag is empty. It appears that all Alpha
  12474. # Linux and Compaq Tru64 Unix objects are PIC.
  12475. lt_prog_compiler_pic_CXX=
  12476. lt_prog_compiler_static_CXX='-non_shared'
  12477. ;;
  12478. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12479. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12480. lt_prog_compiler_wl_CXX='-Wl,'
  12481. lt_prog_compiler_pic_CXX='-qpic'
  12482. lt_prog_compiler_static_CXX='-qstaticlink'
  12483. ;;
  12484. *)
  12485. case `$CC -V 2>&1 | sed 5q` in
  12486. *Sun\ C*)
  12487. # Sun C++ 5.9
  12488. lt_prog_compiler_pic_CXX='-KPIC'
  12489. lt_prog_compiler_static_CXX='-Bstatic'
  12490. lt_prog_compiler_wl_CXX='-Qoption ld '
  12491. ;;
  12492. esac
  12493. ;;
  12494. esac
  12495. ;;
  12496. lynxos*)
  12497. ;;
  12498. m88k*)
  12499. ;;
  12500. mvs*)
  12501. case $cc_basename in
  12502. cxx*)
  12503. lt_prog_compiler_pic_CXX='-W c,exportall'
  12504. ;;
  12505. *)
  12506. ;;
  12507. esac
  12508. ;;
  12509. netbsd*)
  12510. ;;
  12511. *qnx* | *nto*)
  12512. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12513. # it will coredump.
  12514. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12515. ;;
  12516. osf3* | osf4* | osf5*)
  12517. case $cc_basename in
  12518. KCC*)
  12519. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12520. ;;
  12521. RCC*)
  12522. # Rational C++ 2.4.1
  12523. lt_prog_compiler_pic_CXX='-pic'
  12524. ;;
  12525. cxx*)
  12526. # Digital/Compaq C++
  12527. lt_prog_compiler_wl_CXX='-Wl,'
  12528. # Make sure the PIC flag is empty. It appears that all Alpha
  12529. # Linux and Compaq Tru64 Unix objects are PIC.
  12530. lt_prog_compiler_pic_CXX=
  12531. lt_prog_compiler_static_CXX='-non_shared'
  12532. ;;
  12533. *)
  12534. ;;
  12535. esac
  12536. ;;
  12537. psos*)
  12538. ;;
  12539. solaris*)
  12540. case $cc_basename in
  12541. CC* | sunCC*)
  12542. # Sun C++ 4.2, 5.x and Centerline C++
  12543. lt_prog_compiler_pic_CXX='-KPIC'
  12544. lt_prog_compiler_static_CXX='-Bstatic'
  12545. lt_prog_compiler_wl_CXX='-Qoption ld '
  12546. ;;
  12547. gcx*)
  12548. # Green Hills C++ Compiler
  12549. lt_prog_compiler_pic_CXX='-PIC'
  12550. ;;
  12551. *)
  12552. ;;
  12553. esac
  12554. ;;
  12555. sunos4*)
  12556. case $cc_basename in
  12557. CC*)
  12558. # Sun C++ 4.x
  12559. lt_prog_compiler_pic_CXX='-pic'
  12560. lt_prog_compiler_static_CXX='-Bstatic'
  12561. ;;
  12562. lcc*)
  12563. # Lucid
  12564. lt_prog_compiler_pic_CXX='-pic'
  12565. ;;
  12566. *)
  12567. ;;
  12568. esac
  12569. ;;
  12570. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12571. case $cc_basename in
  12572. CC*)
  12573. lt_prog_compiler_wl_CXX='-Wl,'
  12574. lt_prog_compiler_pic_CXX='-KPIC'
  12575. lt_prog_compiler_static_CXX='-Bstatic'
  12576. ;;
  12577. esac
  12578. ;;
  12579. tandem*)
  12580. case $cc_basename in
  12581. NCC*)
  12582. # NonStop-UX NCC 3.20
  12583. lt_prog_compiler_pic_CXX='-KPIC'
  12584. ;;
  12585. *)
  12586. ;;
  12587. esac
  12588. ;;
  12589. vxworks*)
  12590. ;;
  12591. *)
  12592. lt_prog_compiler_can_build_shared_CXX=no
  12593. ;;
  12594. esac
  12595. fi
  12596. case $host_os in
  12597. # For platforms which do not support PIC, -DPIC is meaningless:
  12598. *djgpp*)
  12599. lt_prog_compiler_pic_CXX=
  12600. ;;
  12601. *)
  12602. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12603. ;;
  12604. esac
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12606. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12607. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12608. $as_echo_n "(cached) " >&6
  12609. else
  12610. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12611. fi
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12613. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12614. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12615. #
  12616. # Check to make sure the PIC flag actually works.
  12617. #
  12618. if test -n "$lt_prog_compiler_pic_CXX"; then
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12620. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12621. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12622. $as_echo_n "(cached) " >&6
  12623. else
  12624. lt_cv_prog_compiler_pic_works_CXX=no
  12625. ac_outfile=conftest.$ac_objext
  12626. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12627. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12628. # Insert the option either (1) after the last *FLAGS variable, or
  12629. # (2) before a word containing "conftest.", or (3) at the end.
  12630. # Note that $ac_compile itself does not contain backslashes and begins
  12631. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12632. # The option is referenced via a variable to avoid confusing sed.
  12633. lt_compile=`echo "$ac_compile" | $SED \
  12634. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12635. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12636. -e 's:$: $lt_compiler_flag:'`
  12637. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12638. (eval "$lt_compile" 2>conftest.err)
  12639. ac_status=$?
  12640. cat conftest.err >&5
  12641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12642. if (exit $ac_status) && test -s "$ac_outfile"; then
  12643. # The compiler can only warn and ignore the option if not recognized
  12644. # So say no if there are warnings other than the usual output.
  12645. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12646. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12647. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12648. lt_cv_prog_compiler_pic_works_CXX=yes
  12649. fi
  12650. fi
  12651. $RM conftest*
  12652. fi
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12654. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12655. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12656. case $lt_prog_compiler_pic_CXX in
  12657. "" | " "*) ;;
  12658. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12659. esac
  12660. else
  12661. lt_prog_compiler_pic_CXX=
  12662. lt_prog_compiler_can_build_shared_CXX=no
  12663. fi
  12664. fi
  12665. #
  12666. # Check to make sure the static flag actually works.
  12667. #
  12668. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12670. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12671. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12672. $as_echo_n "(cached) " >&6
  12673. else
  12674. lt_cv_prog_compiler_static_works_CXX=no
  12675. save_LDFLAGS="$LDFLAGS"
  12676. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12677. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12678. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12679. # The linker can only warn and ignore the option if not recognized
  12680. # So say no if there are warnings
  12681. if test -s conftest.err; then
  12682. # Append any errors to the config.log.
  12683. cat conftest.err 1>&5
  12684. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12685. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12686. if diff conftest.exp conftest.er2 >/dev/null; then
  12687. lt_cv_prog_compiler_static_works_CXX=yes
  12688. fi
  12689. else
  12690. lt_cv_prog_compiler_static_works_CXX=yes
  12691. fi
  12692. fi
  12693. $RM -r conftest*
  12694. LDFLAGS="$save_LDFLAGS"
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12697. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12698. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12699. :
  12700. else
  12701. lt_prog_compiler_static_CXX=
  12702. fi
  12703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12704. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12705. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12706. $as_echo_n "(cached) " >&6
  12707. else
  12708. lt_cv_prog_compiler_c_o_CXX=no
  12709. $RM -r conftest 2>/dev/null
  12710. mkdir conftest
  12711. cd conftest
  12712. mkdir out
  12713. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12714. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12715. # Insert the option either (1) after the last *FLAGS variable, or
  12716. # (2) before a word containing "conftest.", or (3) at the end.
  12717. # Note that $ac_compile itself does not contain backslashes and begins
  12718. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12719. lt_compile=`echo "$ac_compile" | $SED \
  12720. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12721. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12722. -e 's:$: $lt_compiler_flag:'`
  12723. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12724. (eval "$lt_compile" 2>out/conftest.err)
  12725. ac_status=$?
  12726. cat out/conftest.err >&5
  12727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12728. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12729. then
  12730. # The compiler can only warn and ignore the option if not recognized
  12731. # So say no if there are warnings
  12732. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12733. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12734. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12735. lt_cv_prog_compiler_c_o_CXX=yes
  12736. fi
  12737. fi
  12738. chmod u+w . 2>&5
  12739. $RM conftest*
  12740. # SGI C++ compiler will create directory out/ii_files/ for
  12741. # template instantiation
  12742. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12743. $RM out/* && rmdir out
  12744. cd ..
  12745. $RM -r conftest
  12746. $RM conftest*
  12747. fi
  12748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12749. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12751. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12752. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12753. $as_echo_n "(cached) " >&6
  12754. else
  12755. lt_cv_prog_compiler_c_o_CXX=no
  12756. $RM -r conftest 2>/dev/null
  12757. mkdir conftest
  12758. cd conftest
  12759. mkdir out
  12760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12761. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12762. # Insert the option either (1) after the last *FLAGS variable, or
  12763. # (2) before a word containing "conftest.", or (3) at the end.
  12764. # Note that $ac_compile itself does not contain backslashes and begins
  12765. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12766. lt_compile=`echo "$ac_compile" | $SED \
  12767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12769. -e 's:$: $lt_compiler_flag:'`
  12770. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12771. (eval "$lt_compile" 2>out/conftest.err)
  12772. ac_status=$?
  12773. cat out/conftest.err >&5
  12774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12775. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12776. then
  12777. # The compiler can only warn and ignore the option if not recognized
  12778. # So say no if there are warnings
  12779. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12780. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12781. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12782. lt_cv_prog_compiler_c_o_CXX=yes
  12783. fi
  12784. fi
  12785. chmod u+w . 2>&5
  12786. $RM conftest*
  12787. # SGI C++ compiler will create directory out/ii_files/ for
  12788. # template instantiation
  12789. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12790. $RM out/* && rmdir out
  12791. cd ..
  12792. $RM -r conftest
  12793. $RM conftest*
  12794. fi
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12796. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12797. hard_links="nottested"
  12798. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12799. # do not overwrite the value of need_locks provided by the user
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12801. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12802. hard_links=yes
  12803. $RM conftest*
  12804. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12805. touch conftest.a
  12806. ln conftest.a conftest.b 2>&5 || hard_links=no
  12807. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12809. $as_echo "$hard_links" >&6; }
  12810. if test "$hard_links" = no; then
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12812. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12813. need_locks=warn
  12814. fi
  12815. else
  12816. need_locks=no
  12817. fi
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12819. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12820. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12821. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12822. case $host_os in
  12823. aix[4-9]*)
  12824. # If we're using GNU nm, then we don't want the "-C" option.
  12825. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12826. # Also, AIX nm treats weak defined symbols like other global defined
  12827. # symbols, whereas GNU nm marks them as "W".
  12828. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12829. 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'
  12830. else
  12831. 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'
  12832. fi
  12833. ;;
  12834. pw32*)
  12835. export_symbols_cmds_CXX="$ltdll_cmds"
  12836. ;;
  12837. cygwin* | mingw* | cegcc*)
  12838. case $cc_basename in
  12839. cl*)
  12840. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12841. ;;
  12842. *)
  12843. 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'
  12844. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12845. ;;
  12846. esac
  12847. ;;
  12848. *)
  12849. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12850. ;;
  12851. esac
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12853. $as_echo "$ld_shlibs_CXX" >&6; }
  12854. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12855. with_gnu_ld_CXX=$with_gnu_ld
  12856. #
  12857. # Do we need to explicitly link libc?
  12858. #
  12859. case "x$archive_cmds_need_lc_CXX" in
  12860. x|xyes)
  12861. # Assume -lc should be added
  12862. archive_cmds_need_lc_CXX=yes
  12863. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12864. case $archive_cmds_CXX in
  12865. *'~'*)
  12866. # FIXME: we may have to deal with multi-command sequences.
  12867. ;;
  12868. '$CC '*)
  12869. # Test whether the compiler implicitly links with -lc since on some
  12870. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12871. # to ld, don't add -lc before -lgcc.
  12872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12873. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12874. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12875. $as_echo_n "(cached) " >&6
  12876. else
  12877. $RM conftest*
  12878. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12880. (eval $ac_compile) 2>&5
  12881. ac_status=$?
  12882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12883. test $ac_status = 0; } 2>conftest.err; then
  12884. soname=conftest
  12885. lib=conftest
  12886. libobjs=conftest.$ac_objext
  12887. deplibs=
  12888. wl=$lt_prog_compiler_wl_CXX
  12889. pic_flag=$lt_prog_compiler_pic_CXX
  12890. compiler_flags=-v
  12891. linker_flags=-v
  12892. verstring=
  12893. output_objdir=.
  12894. libname=conftest
  12895. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12896. allow_undefined_flag_CXX=
  12897. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12898. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12899. ac_status=$?
  12900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12901. test $ac_status = 0; }
  12902. then
  12903. lt_cv_archive_cmds_need_lc_CXX=no
  12904. else
  12905. lt_cv_archive_cmds_need_lc_CXX=yes
  12906. fi
  12907. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12908. else
  12909. cat conftest.err 1>&5
  12910. fi
  12911. $RM conftest*
  12912. fi
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12914. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12915. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12916. ;;
  12917. esac
  12918. fi
  12919. ;;
  12920. esac
  12921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12922. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12923. library_names_spec=
  12924. libname_spec='lib$name'
  12925. soname_spec=
  12926. shrext_cmds=".so"
  12927. postinstall_cmds=
  12928. postuninstall_cmds=
  12929. finish_cmds=
  12930. finish_eval=
  12931. shlibpath_var=
  12932. shlibpath_overrides_runpath=unknown
  12933. version_type=none
  12934. dynamic_linker="$host_os ld.so"
  12935. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12936. need_lib_prefix=unknown
  12937. hardcode_into_libs=no
  12938. # when you set need_version to no, make sure it does not cause -set_version
  12939. # flags to be left without arguments
  12940. need_version=unknown
  12941. case $host_os in
  12942. aix3*)
  12943. version_type=linux # correct to gnu/linux during the next big refactor
  12944. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12945. shlibpath_var=LIBPATH
  12946. # AIX 3 has no versioning support, so we append a major version to the name.
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. ;;
  12949. aix[4-9]*)
  12950. version_type=linux # correct to gnu/linux during the next big refactor
  12951. need_lib_prefix=no
  12952. need_version=no
  12953. hardcode_into_libs=yes
  12954. if test "$host_cpu" = ia64; then
  12955. # AIX 5 supports IA64
  12956. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. else
  12959. # With GCC up to 2.95.x, collect2 would create an import file
  12960. # for dependence libraries. The import file would start with
  12961. # the line `#! .'. This would cause the generated library to
  12962. # depend on `.', always an invalid library. This was fixed in
  12963. # development snapshots of GCC prior to 3.0.
  12964. case $host_os in
  12965. aix4 | aix4.[01] | aix4.[01].*)
  12966. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12967. echo ' yes '
  12968. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12969. :
  12970. else
  12971. can_build_shared=no
  12972. fi
  12973. ;;
  12974. esac
  12975. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12976. # soname into executable. Probably we can add versioning support to
  12977. # collect2, so additional links can be useful in future.
  12978. if test "$aix_use_runtimelinking" = yes; then
  12979. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12980. # instead of lib<name>.a to let people know that these are not
  12981. # typical AIX shared libraries.
  12982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12983. else
  12984. # We preserve .a as extension for shared libraries through AIX4.2
  12985. # and later when we are not doing run time linking.
  12986. library_names_spec='${libname}${release}.a $libname.a'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. fi
  12989. shlibpath_var=LIBPATH
  12990. fi
  12991. ;;
  12992. amigaos*)
  12993. case $host_cpu in
  12994. powerpc)
  12995. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12996. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. ;;
  12999. m68k)
  13000. library_names_spec='$libname.ixlibrary $libname.a'
  13001. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13002. 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'
  13003. ;;
  13004. esac
  13005. ;;
  13006. beos*)
  13007. library_names_spec='${libname}${shared_ext}'
  13008. dynamic_linker="$host_os ld.so"
  13009. shlibpath_var=LIBRARY_PATH
  13010. ;;
  13011. bsdi[45]*)
  13012. version_type=linux # correct to gnu/linux during the next big refactor
  13013. need_version=no
  13014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13015. soname_spec='${libname}${release}${shared_ext}$major'
  13016. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13017. shlibpath_var=LD_LIBRARY_PATH
  13018. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13019. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13020. # the default ld.so.conf also contains /usr/contrib/lib and
  13021. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13022. # libtool to hard-code these into programs
  13023. ;;
  13024. cygwin* | mingw* | pw32* | cegcc*)
  13025. version_type=windows
  13026. shrext_cmds=".dll"
  13027. need_version=no
  13028. need_lib_prefix=no
  13029. case $GCC,$cc_basename in
  13030. yes,*)
  13031. # gcc
  13032. library_names_spec='$libname.dll.a'
  13033. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13034. postinstall_cmds='base_file=`basename \${file}`~
  13035. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13036. dldir=$destdir/`dirname \$dlpath`~
  13037. test -d \$dldir || mkdir -p \$dldir~
  13038. $install_prog $dir/$dlname \$dldir/$dlname~
  13039. chmod a+x \$dldir/$dlname~
  13040. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13041. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13042. fi'
  13043. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13044. dlpath=$dir/\$dldll~
  13045. $RM \$dlpath'
  13046. shlibpath_overrides_runpath=yes
  13047. case $host_os in
  13048. cygwin*)
  13049. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13050. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13051. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13052. ;;
  13053. mingw* | cegcc*)
  13054. # MinGW DLLs use traditional 'lib' prefix
  13055. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13056. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13057. ;;
  13058. pw32*)
  13059. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13060. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13061. ;;
  13062. esac
  13063. dynamic_linker='Win32 ld.exe'
  13064. ;;
  13065. *,cl*)
  13066. # Native MSVC
  13067. libname_spec='$name'
  13068. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13069. library_names_spec='${libname}.dll.lib'
  13070. case $build_os in
  13071. mingw*)
  13072. sys_lib_search_path_spec=
  13073. lt_save_ifs=$IFS
  13074. IFS=';'
  13075. for lt_path in $LIB
  13076. do
  13077. IFS=$lt_save_ifs
  13078. # Let DOS variable expansion print the short 8.3 style file name.
  13079. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13080. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13081. done
  13082. IFS=$lt_save_ifs
  13083. # Convert to MSYS style.
  13084. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13085. ;;
  13086. cygwin*)
  13087. # Convert to unix form, then to dos form, then back to unix form
  13088. # but this time dos style (no spaces!) so that the unix form looks
  13089. # like /cygdrive/c/PROGRA~1:/cygdr...
  13090. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13091. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13092. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13093. ;;
  13094. *)
  13095. sys_lib_search_path_spec="$LIB"
  13096. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13097. # It is most probably a Windows format PATH.
  13098. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13099. else
  13100. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13101. fi
  13102. # FIXME: find the short name or the path components, as spaces are
  13103. # common. (e.g. "Program Files" -> "PROGRA~1")
  13104. ;;
  13105. esac
  13106. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13107. postinstall_cmds='base_file=`basename \${file}`~
  13108. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13109. dldir=$destdir/`dirname \$dlpath`~
  13110. test -d \$dldir || mkdir -p \$dldir~
  13111. $install_prog $dir/$dlname \$dldir/$dlname'
  13112. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13113. dlpath=$dir/\$dldll~
  13114. $RM \$dlpath'
  13115. shlibpath_overrides_runpath=yes
  13116. dynamic_linker='Win32 link.exe'
  13117. ;;
  13118. *)
  13119. # Assume MSVC wrapper
  13120. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13121. dynamic_linker='Win32 ld.exe'
  13122. ;;
  13123. esac
  13124. # FIXME: first we should search . and the directory the executable is in
  13125. shlibpath_var=PATH
  13126. ;;
  13127. darwin* | rhapsody*)
  13128. dynamic_linker="$host_os dyld"
  13129. version_type=darwin
  13130. need_lib_prefix=no
  13131. need_version=no
  13132. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13133. soname_spec='${libname}${release}${major}$shared_ext'
  13134. shlibpath_overrides_runpath=yes
  13135. shlibpath_var=DYLD_LIBRARY_PATH
  13136. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13137. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13138. ;;
  13139. dgux*)
  13140. version_type=linux # correct to gnu/linux during the next big refactor
  13141. need_lib_prefix=no
  13142. need_version=no
  13143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13144. soname_spec='${libname}${release}${shared_ext}$major'
  13145. shlibpath_var=LD_LIBRARY_PATH
  13146. ;;
  13147. freebsd* | dragonfly*)
  13148. # DragonFly does not have aout. When/if they implement a new
  13149. # versioning mechanism, adjust this.
  13150. if test -x /usr/bin/objformat; then
  13151. objformat=`/usr/bin/objformat`
  13152. else
  13153. case $host_os in
  13154. freebsd[23].*) objformat=aout ;;
  13155. *) objformat=elf ;;
  13156. esac
  13157. fi
  13158. version_type=freebsd-$objformat
  13159. case $version_type in
  13160. freebsd-elf*)
  13161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13162. need_version=no
  13163. need_lib_prefix=no
  13164. ;;
  13165. freebsd-*)
  13166. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13167. need_version=yes
  13168. ;;
  13169. esac
  13170. shlibpath_var=LD_LIBRARY_PATH
  13171. case $host_os in
  13172. freebsd2.*)
  13173. shlibpath_overrides_runpath=yes
  13174. ;;
  13175. freebsd3.[01]* | freebsdelf3.[01]*)
  13176. shlibpath_overrides_runpath=yes
  13177. hardcode_into_libs=yes
  13178. ;;
  13179. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13180. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13181. shlibpath_overrides_runpath=no
  13182. hardcode_into_libs=yes
  13183. ;;
  13184. *) # from 4.6 on, and DragonFly
  13185. shlibpath_overrides_runpath=yes
  13186. hardcode_into_libs=yes
  13187. ;;
  13188. esac
  13189. ;;
  13190. gnu*)
  13191. version_type=linux # correct to gnu/linux during the next big refactor
  13192. need_lib_prefix=no
  13193. need_version=no
  13194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13195. soname_spec='${libname}${release}${shared_ext}$major'
  13196. shlibpath_var=LD_LIBRARY_PATH
  13197. shlibpath_overrides_runpath=no
  13198. hardcode_into_libs=yes
  13199. ;;
  13200. haiku*)
  13201. version_type=linux # correct to gnu/linux during the next big refactor
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. dynamic_linker="$host_os runtime_loader"
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13206. soname_spec='${libname}${release}${shared_ext}$major'
  13207. shlibpath_var=LIBRARY_PATH
  13208. shlibpath_overrides_runpath=yes
  13209. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13210. hardcode_into_libs=yes
  13211. ;;
  13212. hpux9* | hpux10* | hpux11*)
  13213. # Give a soname corresponding to the major version so that dld.sl refuses to
  13214. # link against other versions.
  13215. version_type=sunos
  13216. need_lib_prefix=no
  13217. need_version=no
  13218. case $host_cpu in
  13219. ia64*)
  13220. shrext_cmds='.so'
  13221. hardcode_into_libs=yes
  13222. dynamic_linker="$host_os dld.so"
  13223. shlibpath_var=LD_LIBRARY_PATH
  13224. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13226. soname_spec='${libname}${release}${shared_ext}$major'
  13227. if test "X$HPUX_IA64_MODE" = X32; then
  13228. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13229. else
  13230. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13231. fi
  13232. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13233. ;;
  13234. hppa*64*)
  13235. shrext_cmds='.sl'
  13236. hardcode_into_libs=yes
  13237. dynamic_linker="$host_os dld.sl"
  13238. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13239. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13241. soname_spec='${libname}${release}${shared_ext}$major'
  13242. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13243. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13244. ;;
  13245. *)
  13246. shrext_cmds='.sl'
  13247. dynamic_linker="$host_os dld.sl"
  13248. shlibpath_var=SHLIB_PATH
  13249. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13251. soname_spec='${libname}${release}${shared_ext}$major'
  13252. ;;
  13253. esac
  13254. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13255. postinstall_cmds='chmod 555 $lib'
  13256. # or fails outright, so override atomically:
  13257. install_override_mode=555
  13258. ;;
  13259. interix[3-9]*)
  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. soname_spec='${libname}${release}${shared_ext}$major'
  13265. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13266. shlibpath_var=LD_LIBRARY_PATH
  13267. shlibpath_overrides_runpath=no
  13268. hardcode_into_libs=yes
  13269. ;;
  13270. irix5* | irix6* | nonstopux*)
  13271. case $host_os in
  13272. nonstopux*) version_type=nonstopux ;;
  13273. *)
  13274. if test "$lt_cv_prog_gnu_ld" = yes; then
  13275. version_type=linux # correct to gnu/linux during the next big refactor
  13276. else
  13277. version_type=irix
  13278. fi ;;
  13279. esac
  13280. need_lib_prefix=no
  13281. need_version=no
  13282. soname_spec='${libname}${release}${shared_ext}$major'
  13283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13284. case $host_os in
  13285. irix5* | nonstopux*)
  13286. libsuff= shlibsuff=
  13287. ;;
  13288. *)
  13289. case $LD in # libtool.m4 will add one of these switches to LD
  13290. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13291. libsuff= shlibsuff= libmagic=32-bit;;
  13292. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13293. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13294. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13295. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13296. *) libsuff= shlibsuff= libmagic=never-match;;
  13297. esac
  13298. ;;
  13299. esac
  13300. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13301. shlibpath_overrides_runpath=no
  13302. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13303. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13304. hardcode_into_libs=yes
  13305. ;;
  13306. # No shared lib support for Linux oldld, aout, or coff.
  13307. linux*oldld* | linux*aout* | linux*coff*)
  13308. dynamic_linker=no
  13309. ;;
  13310. # This must be glibc/ELF.
  13311. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13312. version_type=linux # correct to gnu/linux during the next big refactor
  13313. need_lib_prefix=no
  13314. need_version=no
  13315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13316. soname_spec='${libname}${release}${shared_ext}$major'
  13317. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13318. shlibpath_var=LD_LIBRARY_PATH
  13319. shlibpath_overrides_runpath=no
  13320. # Some binutils ld are patched to set DT_RUNPATH
  13321. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13322. $as_echo_n "(cached) " >&6
  13323. else
  13324. lt_cv_shlibpath_overrides_runpath=no
  13325. save_LDFLAGS=$LDFLAGS
  13326. save_libdir=$libdir
  13327. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13328. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13330. /* end confdefs.h. */
  13331. int
  13332. main ()
  13333. {
  13334. ;
  13335. return 0;
  13336. }
  13337. _ACEOF
  13338. if ac_fn_cxx_try_link "$LINENO"; then :
  13339. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13340. lt_cv_shlibpath_overrides_runpath=yes
  13341. fi
  13342. fi
  13343. rm -f core conftest.err conftest.$ac_objext \
  13344. conftest$ac_exeext conftest.$ac_ext
  13345. LDFLAGS=$save_LDFLAGS
  13346. libdir=$save_libdir
  13347. fi
  13348. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13349. # This implies no fast_install, which is unacceptable.
  13350. # Some rework will be needed to allow for fast_install
  13351. # before this can be enabled.
  13352. hardcode_into_libs=yes
  13353. # Append ld.so.conf contents to the search path
  13354. if test -f /etc/ld.so.conf; then
  13355. 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' ' '`
  13356. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13357. fi
  13358. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13359. # powerpc, because MkLinux only supported shared libraries with the
  13360. # GNU dynamic linker. Since this was broken with cross compilers,
  13361. # most powerpc-linux boxes support dynamic linking these days and
  13362. # people can always --disable-shared, the test was removed, and we
  13363. # assume the GNU/Linux dynamic linker is in use.
  13364. dynamic_linker='GNU/Linux ld.so'
  13365. ;;
  13366. netbsd*)
  13367. version_type=sunos
  13368. need_lib_prefix=no
  13369. need_version=no
  13370. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13372. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13373. dynamic_linker='NetBSD (a.out) ld.so'
  13374. else
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13376. soname_spec='${libname}${release}${shared_ext}$major'
  13377. dynamic_linker='NetBSD ld.elf_so'
  13378. fi
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=yes
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. newsos6)
  13384. version_type=linux # correct to gnu/linux during the next big refactor
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13386. shlibpath_var=LD_LIBRARY_PATH
  13387. shlibpath_overrides_runpath=yes
  13388. ;;
  13389. *nto* | *qnx*)
  13390. version_type=qnx
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13394. soname_spec='${libname}${release}${shared_ext}$major'
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. shlibpath_overrides_runpath=no
  13397. hardcode_into_libs=yes
  13398. dynamic_linker='ldqnx.so'
  13399. ;;
  13400. openbsd*)
  13401. version_type=sunos
  13402. sys_lib_dlsearch_path_spec="/usr/lib"
  13403. need_lib_prefix=no
  13404. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13405. case $host_os in
  13406. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13407. *) need_version=no ;;
  13408. esac
  13409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13410. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13411. shlibpath_var=LD_LIBRARY_PATH
  13412. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13413. case $host_os in
  13414. openbsd2.[89] | openbsd2.[89].*)
  13415. shlibpath_overrides_runpath=no
  13416. ;;
  13417. *)
  13418. shlibpath_overrides_runpath=yes
  13419. ;;
  13420. esac
  13421. else
  13422. shlibpath_overrides_runpath=yes
  13423. fi
  13424. ;;
  13425. os2*)
  13426. libname_spec='$name'
  13427. shrext_cmds=".dll"
  13428. need_lib_prefix=no
  13429. library_names_spec='$libname${shared_ext} $libname.a'
  13430. dynamic_linker='OS/2 ld.exe'
  13431. shlibpath_var=LIBPATH
  13432. ;;
  13433. osf3* | osf4* | osf5*)
  13434. version_type=osf
  13435. need_lib_prefix=no
  13436. need_version=no
  13437. soname_spec='${libname}${release}${shared_ext}$major'
  13438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13439. shlibpath_var=LD_LIBRARY_PATH
  13440. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13441. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13442. ;;
  13443. rdos*)
  13444. dynamic_linker=no
  13445. ;;
  13446. solaris*)
  13447. version_type=linux # correct to gnu/linux during the next big refactor
  13448. need_lib_prefix=no
  13449. need_version=no
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13451. soname_spec='${libname}${release}${shared_ext}$major'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. shlibpath_overrides_runpath=yes
  13454. hardcode_into_libs=yes
  13455. # ldd complains unless libraries are executable
  13456. postinstall_cmds='chmod +x $lib'
  13457. ;;
  13458. sunos4*)
  13459. version_type=sunos
  13460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13461. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. shlibpath_overrides_runpath=yes
  13464. if test "$with_gnu_ld" = yes; then
  13465. need_lib_prefix=no
  13466. fi
  13467. need_version=yes
  13468. ;;
  13469. sysv4 | sysv4.3*)
  13470. version_type=linux # correct to gnu/linux during the next big refactor
  13471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13472. soname_spec='${libname}${release}${shared_ext}$major'
  13473. shlibpath_var=LD_LIBRARY_PATH
  13474. case $host_vendor in
  13475. sni)
  13476. shlibpath_overrides_runpath=no
  13477. need_lib_prefix=no
  13478. runpath_var=LD_RUN_PATH
  13479. ;;
  13480. siemens)
  13481. need_lib_prefix=no
  13482. ;;
  13483. motorola)
  13484. need_lib_prefix=no
  13485. need_version=no
  13486. shlibpath_overrides_runpath=no
  13487. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13488. ;;
  13489. esac
  13490. ;;
  13491. sysv4*MP*)
  13492. if test -d /usr/nec ;then
  13493. version_type=linux # correct to gnu/linux during the next big refactor
  13494. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13495. soname_spec='$libname${shared_ext}.$major'
  13496. shlibpath_var=LD_LIBRARY_PATH
  13497. fi
  13498. ;;
  13499. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13500. version_type=freebsd-elf
  13501. need_lib_prefix=no
  13502. need_version=no
  13503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13504. soname_spec='${libname}${release}${shared_ext}$major'
  13505. shlibpath_var=LD_LIBRARY_PATH
  13506. shlibpath_overrides_runpath=yes
  13507. hardcode_into_libs=yes
  13508. if test "$with_gnu_ld" = yes; then
  13509. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13510. else
  13511. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13512. case $host_os in
  13513. sco3.2v5*)
  13514. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13515. ;;
  13516. esac
  13517. fi
  13518. sys_lib_dlsearch_path_spec='/usr/lib'
  13519. ;;
  13520. tpf*)
  13521. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13522. version_type=linux # correct to gnu/linux during the next big refactor
  13523. need_lib_prefix=no
  13524. need_version=no
  13525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13526. shlibpath_var=LD_LIBRARY_PATH
  13527. shlibpath_overrides_runpath=no
  13528. hardcode_into_libs=yes
  13529. ;;
  13530. uts4*)
  13531. version_type=linux # correct to gnu/linux during the next big refactor
  13532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13533. soname_spec='${libname}${release}${shared_ext}$major'
  13534. shlibpath_var=LD_LIBRARY_PATH
  13535. ;;
  13536. *)
  13537. dynamic_linker=no
  13538. ;;
  13539. esac
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13541. $as_echo "$dynamic_linker" >&6; }
  13542. test "$dynamic_linker" = no && can_build_shared=no
  13543. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13544. if test "$GCC" = yes; then
  13545. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13546. fi
  13547. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13548. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13549. fi
  13550. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13551. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13552. fi
  13553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13554. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13555. hardcode_action_CXX=
  13556. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13557. test -n "$runpath_var_CXX" ||
  13558. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13559. # We can hardcode non-existent directories.
  13560. if test "$hardcode_direct_CXX" != no &&
  13561. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13562. # have to relink, otherwise we might link with an installed library
  13563. # when we should be linking with a yet-to-be-installed one
  13564. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13565. test "$hardcode_minus_L_CXX" != no; then
  13566. # Linking always hardcodes the temporary library directory.
  13567. hardcode_action_CXX=relink
  13568. else
  13569. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13570. hardcode_action_CXX=immediate
  13571. fi
  13572. else
  13573. # We cannot hardcode anything, or else we can only hardcode existing
  13574. # directories.
  13575. hardcode_action_CXX=unsupported
  13576. fi
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13578. $as_echo "$hardcode_action_CXX" >&6; }
  13579. if test "$hardcode_action_CXX" = relink ||
  13580. test "$inherit_rpath_CXX" = yes; then
  13581. # Fast installation is not supported
  13582. enable_fast_install=no
  13583. elif test "$shlibpath_overrides_runpath" = yes ||
  13584. test "$enable_shared" = no; then
  13585. # Fast installation is not necessary
  13586. enable_fast_install=needless
  13587. fi
  13588. fi # test -n "$compiler"
  13589. CC=$lt_save_CC
  13590. CFLAGS=$lt_save_CFLAGS
  13591. LDCXX=$LD
  13592. LD=$lt_save_LD
  13593. GCC=$lt_save_GCC
  13594. with_gnu_ld=$lt_save_with_gnu_ld
  13595. lt_cv_path_LDCXX=$lt_cv_path_LD
  13596. lt_cv_path_LD=$lt_save_path_LD
  13597. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13598. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13599. fi # test "$_lt_caught_CXX_error" != yes
  13600. ac_ext=c
  13601. ac_cpp='$CPP $CPPFLAGS'
  13602. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13603. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13604. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13605. # Find a good install program. We prefer a C program (faster),
  13606. # so one script is as good as another. But avoid the broken or
  13607. # incompatible versions:
  13608. # SysV /etc/install, /usr/sbin/install
  13609. # SunOS /usr/etc/install
  13610. # IRIX /sbin/install
  13611. # AIX /bin/install
  13612. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13613. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13614. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13615. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13616. # OS/2's system install, which has a completely different semantic
  13617. # ./install, which can be erroneously created by make from ./install.sh.
  13618. # Reject install programs that cannot install multiple files.
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13620. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13621. if test -z "$INSTALL"; then
  13622. if ${ac_cv_path_install+:} false; then :
  13623. $as_echo_n "(cached) " >&6
  13624. else
  13625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13626. for as_dir in $PATH
  13627. do
  13628. IFS=$as_save_IFS
  13629. test -z "$as_dir" && as_dir=.
  13630. # Account for people who put trailing slashes in PATH elements.
  13631. case $as_dir/ in #((
  13632. ./ | .// | /[cC]/* | \
  13633. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13634. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13635. /usr/ucb/* ) ;;
  13636. *)
  13637. # OSF1 and SCO ODT 3.0 have their own names for install.
  13638. # Don't use installbsd from OSF since it installs stuff as root
  13639. # by default.
  13640. for ac_prog in ginstall scoinst install; do
  13641. for ac_exec_ext in '' $ac_executable_extensions; do
  13642. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13643. if test $ac_prog = install &&
  13644. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13645. # AIX install. It has an incompatible calling convention.
  13646. :
  13647. elif test $ac_prog = install &&
  13648. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13649. # program-specific install script used by HP pwplus--don't use.
  13650. :
  13651. else
  13652. rm -rf conftest.one conftest.two conftest.dir
  13653. echo one > conftest.one
  13654. echo two > conftest.two
  13655. mkdir conftest.dir
  13656. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13657. test -s conftest.one && test -s conftest.two &&
  13658. test -s conftest.dir/conftest.one &&
  13659. test -s conftest.dir/conftest.two
  13660. then
  13661. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13662. break 3
  13663. fi
  13664. fi
  13665. fi
  13666. done
  13667. done
  13668. ;;
  13669. esac
  13670. done
  13671. IFS=$as_save_IFS
  13672. rm -rf conftest.one conftest.two conftest.dir
  13673. fi
  13674. if test "${ac_cv_path_install+set}" = set; then
  13675. INSTALL=$ac_cv_path_install
  13676. else
  13677. # As a last resort, use the slow shell script. Don't cache a
  13678. # value for INSTALL within a source directory, because that will
  13679. # break other packages using the cache if that directory is
  13680. # removed, or if the value is a relative name.
  13681. INSTALL=$ac_install_sh
  13682. fi
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13685. $as_echo "$INSTALL" >&6; }
  13686. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13687. # It thinks the first close brace ends the variable substitution.
  13688. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13689. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13690. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13692. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13693. set x ${MAKE-make}
  13694. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13695. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13696. $as_echo_n "(cached) " >&6
  13697. else
  13698. cat >conftest.make <<\_ACEOF
  13699. SHELL = /bin/sh
  13700. all:
  13701. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13702. _ACEOF
  13703. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13704. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13705. *@@@%%%=?*=@@@%%%*)
  13706. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13707. *)
  13708. eval ac_cv_prog_make_${ac_make}_set=no;;
  13709. esac
  13710. rm -f conftest.make
  13711. fi
  13712. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13714. $as_echo "yes" >&6; }
  13715. SET_MAKE=
  13716. else
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13718. $as_echo "no" >&6; }
  13719. SET_MAKE="MAKE=${MAKE-make}"
  13720. fi
  13721. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13722. if test -n "$ac_tool_prefix"; then
  13723. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13724. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13726. $as_echo_n "checking for $ac_word... " >&6; }
  13727. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13728. $as_echo_n "(cached) " >&6
  13729. else
  13730. case $PKG_CONFIG in
  13731. [\\/]* | ?:[\\/]*)
  13732. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13733. ;;
  13734. *)
  13735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13736. for as_dir in $PATH
  13737. do
  13738. IFS=$as_save_IFS
  13739. test -z "$as_dir" && as_dir=.
  13740. for ac_exec_ext in '' $ac_executable_extensions; do
  13741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13742. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13744. break 2
  13745. fi
  13746. done
  13747. done
  13748. IFS=$as_save_IFS
  13749. ;;
  13750. esac
  13751. fi
  13752. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13753. if test -n "$PKG_CONFIG"; then
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13755. $as_echo "$PKG_CONFIG" >&6; }
  13756. else
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13758. $as_echo "no" >&6; }
  13759. fi
  13760. fi
  13761. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13762. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13763. # Extract the first word of "pkg-config", so it can be a program name with args.
  13764. set dummy pkg-config; ac_word=$2
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13766. $as_echo_n "checking for $ac_word... " >&6; }
  13767. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13768. $as_echo_n "(cached) " >&6
  13769. else
  13770. case $ac_pt_PKG_CONFIG in
  13771. [\\/]* | ?:[\\/]*)
  13772. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13773. ;;
  13774. *)
  13775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13776. for as_dir in $PATH
  13777. do
  13778. IFS=$as_save_IFS
  13779. test -z "$as_dir" && as_dir=.
  13780. for ac_exec_ext in '' $ac_executable_extensions; do
  13781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13782. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13784. break 2
  13785. fi
  13786. done
  13787. done
  13788. IFS=$as_save_IFS
  13789. ;;
  13790. esac
  13791. fi
  13792. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13793. if test -n "$ac_pt_PKG_CONFIG"; then
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13795. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13796. else
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13798. $as_echo "no" >&6; }
  13799. fi
  13800. if test "x$ac_pt_PKG_CONFIG" = x; then
  13801. PKG_CONFIG=""
  13802. else
  13803. case $cross_compiling:$ac_tool_warned in
  13804. yes:)
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13807. ac_tool_warned=yes ;;
  13808. esac
  13809. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13810. fi
  13811. else
  13812. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13813. fi
  13814. fi
  13815. if test -n "$PKG_CONFIG"; then
  13816. _pkg_min_version=0.9.0
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13818. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13819. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13821. $as_echo "yes" >&6; }
  13822. else
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13824. $as_echo "no" >&6; }
  13825. PKG_CONFIG=""
  13826. fi
  13827. fi
  13828. case "$host" in
  13829. *-*-mingw32*)
  13830. # Except on msys, where make can't handle full pathnames (bug 1972)
  13831. ;;
  13832. *)
  13833. srcdir=`cd $srcdir && pwd`
  13834. ;;
  13835. esac
  13836. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13837. if test x$srcdir != x.; then
  13838. INCLUDE="-Iinclude $INCLUDE"
  13839. elif test -d .hg; then
  13840. as_fn_error $? "
  13841. *** When building from Mercurial you should configure and build in a
  13842. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13843. " "$LINENO" 5
  13844. fi
  13845. BASE_CFLAGS=""
  13846. BASE_LDFLAGS=""
  13847. case "$host" in
  13848. *-*-cygwin*)
  13849. # We build SDL on cygwin without the UNIX emulation layer
  13850. save_CFLAGS="$CFLAGS"
  13851. have_no_cygwin=no
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13853. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13854. CFLAGS="$save_CFLAGS -mno-cygwin"
  13855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13856. /* end confdefs.h. */
  13857. int
  13858. main ()
  13859. {
  13860. ;
  13861. return 0;
  13862. }
  13863. _ACEOF
  13864. if ac_fn_c_try_compile "$LINENO"; then :
  13865. have_no_cygwin=yes
  13866. fi
  13867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13869. $as_echo "$have_no_cygwin" >&6; }
  13870. CFLAGS="$save_CFLAGS"
  13871. if test x$have_no_cygwin = xyes; then
  13872. BASE_CFLAGS="-mno-cygwin"
  13873. BASE_LDFLAGS="-mno-cygwin"
  13874. fi
  13875. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13876. ;;
  13877. esac
  13878. # Uncomment the following line if you want to force SDL and applications
  13879. # built with it to be compiled for a particular architecture.
  13880. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13881. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13882. # The default optimization for SDL is -O3 (Bug #31)
  13883. if test "x$orig_CFLAGS" = x; then
  13884. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13885. fi
  13886. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13887. BUILD_LDFLAGS="$LDFLAGS"
  13888. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13889. ## These are common directories to find software packages
  13890. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13891. # if test -d $path/include; then
  13892. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13893. # fi
  13894. # if test -d $path/lib; then
  13895. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13896. # fi
  13897. #done
  13898. SDL_CFLAGS="$BASE_CFLAGS"
  13899. SDL_LIBS="-lSDL2"
  13900. if test "x$BASE_LDFLAGS" != x; then
  13901. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13902. fi
  13903. if test "x$EXTRA_CFLAGS" != x; then
  13904. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13905. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13906. fi
  13907. if test "x$EXTRA_LDFLAGS" != x; then
  13908. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13909. fi
  13910. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13911. find_lib()
  13912. {
  13913. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13914. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13915. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13916. if test "$cross_compiling" = yes; then
  13917. host_lib_path=""
  13918. else
  13919. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13920. fi
  13921. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13922. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13923. if test x$lib != x; then
  13924. echo $lib
  13925. return
  13926. fi
  13927. done
  13928. # Try again, this time allowing more than one version digit after the .so
  13929. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13930. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13931. if test x$lib != x; then
  13932. echo $lib
  13933. return
  13934. fi
  13935. done
  13936. }
  13937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13938. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13939. if ${ac_cv_c_const+:} false; then :
  13940. $as_echo_n "(cached) " >&6
  13941. else
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. int
  13945. main ()
  13946. {
  13947. #ifndef __cplusplus
  13948. /* Ultrix mips cc rejects this sort of thing. */
  13949. typedef int charset[2];
  13950. const charset cs = { 0, 0 };
  13951. /* SunOS 4.1.1 cc rejects this. */
  13952. char const *const *pcpcc;
  13953. char **ppc;
  13954. /* NEC SVR4.0.2 mips cc rejects this. */
  13955. struct point {int x, y;};
  13956. static struct point const zero = {0,0};
  13957. /* AIX XL C 1.02.0.0 rejects this.
  13958. It does not let you subtract one const X* pointer from another in
  13959. an arm of an if-expression whose if-part is not a constant
  13960. expression */
  13961. const char *g = "string";
  13962. pcpcc = &g + (g ? g-g : 0);
  13963. /* HPUX 7.0 cc rejects these. */
  13964. ++pcpcc;
  13965. ppc = (char**) pcpcc;
  13966. pcpcc = (char const *const *) ppc;
  13967. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13968. char tx;
  13969. char *t = &tx;
  13970. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13971. *t++ = 0;
  13972. if (s) return 0;
  13973. }
  13974. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13975. int x[] = {25, 17};
  13976. const int *foo = &x[0];
  13977. ++foo;
  13978. }
  13979. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13980. typedef const int *iptr;
  13981. iptr p = 0;
  13982. ++p;
  13983. }
  13984. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13985. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13986. struct s { int j; const int *ap[3]; } bx;
  13987. struct s *b = &bx; b->j = 5;
  13988. }
  13989. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13990. const int foo = 10;
  13991. if (!foo) return 0;
  13992. }
  13993. return !cs[0] && !zero.x;
  13994. #endif
  13995. ;
  13996. return 0;
  13997. }
  13998. _ACEOF
  13999. if ac_fn_c_try_compile "$LINENO"; then :
  14000. ac_cv_c_const=yes
  14001. else
  14002. ac_cv_c_const=no
  14003. fi
  14004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14007. $as_echo "$ac_cv_c_const" >&6; }
  14008. if test $ac_cv_c_const = no; then
  14009. $as_echo "#define const /**/" >>confdefs.h
  14010. fi
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14012. $as_echo_n "checking for inline... " >&6; }
  14013. if ${ac_cv_c_inline+:} false; then :
  14014. $as_echo_n "(cached) " >&6
  14015. else
  14016. ac_cv_c_inline=no
  14017. for ac_kw in inline __inline__ __inline; do
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #ifndef __cplusplus
  14021. typedef int foo_t;
  14022. static $ac_kw foo_t static_foo () {return 0; }
  14023. $ac_kw foo_t foo () {return 0; }
  14024. #endif
  14025. _ACEOF
  14026. if ac_fn_c_try_compile "$LINENO"; then :
  14027. ac_cv_c_inline=$ac_kw
  14028. fi
  14029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14030. test "$ac_cv_c_inline" != no && break
  14031. done
  14032. fi
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14034. $as_echo "$ac_cv_c_inline" >&6; }
  14035. case $ac_cv_c_inline in
  14036. inline | yes) ;;
  14037. *)
  14038. case $ac_cv_c_inline in
  14039. no) ac_val=;;
  14040. *) ac_val=$ac_cv_c_inline;;
  14041. esac
  14042. cat >>confdefs.h <<_ACEOF
  14043. #ifndef __cplusplus
  14044. #define inline $ac_val
  14045. #endif
  14046. _ACEOF
  14047. ;;
  14048. esac
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14050. $as_echo_n "checking for working volatile... " >&6; }
  14051. if ${ac_cv_c_volatile+:} false; then :
  14052. $as_echo_n "(cached) " >&6
  14053. else
  14054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14055. /* end confdefs.h. */
  14056. int
  14057. main ()
  14058. {
  14059. volatile int x;
  14060. int * volatile y = (int *) 0;
  14061. return !x && !y;
  14062. ;
  14063. return 0;
  14064. }
  14065. _ACEOF
  14066. if ac_fn_c_try_compile "$LINENO"; then :
  14067. ac_cv_c_volatile=yes
  14068. else
  14069. ac_cv_c_volatile=no
  14070. fi
  14071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14072. fi
  14073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14074. $as_echo "$ac_cv_c_volatile" >&6; }
  14075. if test $ac_cv_c_volatile = no; then
  14076. $as_echo "#define volatile /**/" >>confdefs.h
  14077. fi
  14078. # Check whether --enable-assertions was given.
  14079. if test "${enable_assertions+set}" = set; then :
  14080. enableval=$enable_assertions;
  14081. else
  14082. enable_assertions=auto
  14083. fi
  14084. case "$enable_assertions" in
  14085. auto) # Use optimization settings to determine assertion level
  14086. ;;
  14087. disabled)
  14088. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14089. ;;
  14090. release)
  14091. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14092. ;;
  14093. enabled)
  14094. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14095. ;;
  14096. paranoid)
  14097. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14098. ;;
  14099. *)
  14100. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14101. ;;
  14102. esac
  14103. # Check whether --enable-dependency-tracking was given.
  14104. if test "${enable_dependency_tracking+set}" = set; then :
  14105. enableval=$enable_dependency_tracking;
  14106. else
  14107. enable_dependency_tracking=yes
  14108. fi
  14109. if test x$enable_dependency_tracking = xyes; then
  14110. have_gcc_mmd_mt=no
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14112. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14114. /* end confdefs.h. */
  14115. #if !defined(__GNUC__) || __GNUC__ < 3
  14116. #error Dependency tracking requires GCC 3.0 or newer
  14117. #endif
  14118. int
  14119. main ()
  14120. {
  14121. ;
  14122. return 0;
  14123. }
  14124. _ACEOF
  14125. if ac_fn_c_try_compile "$LINENO"; then :
  14126. have_gcc_mmd_mt=yes
  14127. fi
  14128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14130. $as_echo "$have_gcc_mmd_mt" >&6; }
  14131. if test x$have_gcc_mmd_mt = xyes; then
  14132. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14133. fi
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14136. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14137. have_no_undefined=no
  14138. case "$host" in
  14139. *-*-openbsd*)
  14140. ;;
  14141. *)
  14142. save_LDFLAGS="$LDFLAGS"
  14143. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14145. /* end confdefs.h. */
  14146. int
  14147. main ()
  14148. {
  14149. ;
  14150. return 0;
  14151. }
  14152. _ACEOF
  14153. if ac_fn_c_try_link "$LINENO"; then :
  14154. have_no_undefined=yes
  14155. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14156. fi
  14157. rm -f core conftest.err conftest.$ac_objext \
  14158. conftest$ac_exeext conftest.$ac_ext
  14159. LDFLAGS="$save_LDFLAGS"
  14160. ;;
  14161. esac
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14163. $as_echo "$have_no_undefined" >&6; }
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14165. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14166. have_dynamicbase=no
  14167. case "$host" in
  14168. *)
  14169. save_LDFLAGS="$LDFLAGS"
  14170. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. int
  14174. main ()
  14175. {
  14176. ;
  14177. return 0;
  14178. }
  14179. _ACEOF
  14180. if ac_fn_c_try_link "$LINENO"; then :
  14181. have_dynamicbase=yes
  14182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14183. fi
  14184. rm -f core conftest.err conftest.$ac_objext \
  14185. conftest$ac_exeext conftest.$ac_ext
  14186. LDFLAGS="$save_LDFLAGS"
  14187. ;;
  14188. esac
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14190. $as_echo "$have_dynamicbase" >&6; }
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14192. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14193. have_nxcompat=no
  14194. case "$host" in
  14195. *)
  14196. save_LDFLAGS="$LDFLAGS"
  14197. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. int
  14201. main ()
  14202. {
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_link "$LINENO"; then :
  14208. have_nxcompat=yes
  14209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14210. fi
  14211. rm -f core conftest.err conftest.$ac_objext \
  14212. conftest$ac_exeext conftest.$ac_ext
  14213. LDFLAGS="$save_LDFLAGS"
  14214. ;;
  14215. esac
  14216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14217. $as_echo "$have_nxcompat" >&6; }
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14219. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14220. have_high_entropy_va=no
  14221. case "$host" in
  14222. *)
  14223. save_LDFLAGS="$LDFLAGS"
  14224. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14226. /* end confdefs.h. */
  14227. int
  14228. main ()
  14229. {
  14230. ;
  14231. return 0;
  14232. }
  14233. _ACEOF
  14234. if ac_fn_c_try_link "$LINENO"; then :
  14235. have_high_entropy_va=yes
  14236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14237. fi
  14238. rm -f core conftest.err conftest.$ac_objext \
  14239. conftest$ac_exeext conftest.$ac_ext
  14240. LDFLAGS="$save_LDFLAGS"
  14241. ;;
  14242. esac
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14244. $as_echo "$have_high_entropy_va" >&6; }
  14245. # Check whether --enable-libc was given.
  14246. if test "${enable_libc+set}" = set; then :
  14247. enableval=$enable_libc;
  14248. else
  14249. enable_libc=yes
  14250. fi
  14251. if test x$enable_libc = xyes; then
  14252. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14254. $as_echo_n "checking for ANSI C header files... " >&6; }
  14255. if ${ac_cv_header_stdc+:} false; then :
  14256. $as_echo_n "(cached) " >&6
  14257. else
  14258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14259. /* end confdefs.h. */
  14260. #include <stdlib.h>
  14261. #include <stdarg.h>
  14262. #include <string.h>
  14263. #include <float.h>
  14264. int
  14265. main ()
  14266. {
  14267. ;
  14268. return 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_compile "$LINENO"; then :
  14272. ac_cv_header_stdc=yes
  14273. else
  14274. ac_cv_header_stdc=no
  14275. fi
  14276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14277. if test $ac_cv_header_stdc = yes; then
  14278. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14280. /* end confdefs.h. */
  14281. #include <string.h>
  14282. _ACEOF
  14283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14284. $EGREP "memchr" >/dev/null 2>&1; then :
  14285. else
  14286. ac_cv_header_stdc=no
  14287. fi
  14288. rm -f conftest*
  14289. fi
  14290. if test $ac_cv_header_stdc = yes; then
  14291. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14293. /* end confdefs.h. */
  14294. #include <stdlib.h>
  14295. _ACEOF
  14296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14297. $EGREP "free" >/dev/null 2>&1; then :
  14298. else
  14299. ac_cv_header_stdc=no
  14300. fi
  14301. rm -f conftest*
  14302. fi
  14303. if test $ac_cv_header_stdc = yes; then
  14304. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14305. if test "$cross_compiling" = yes; then :
  14306. :
  14307. else
  14308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14309. /* end confdefs.h. */
  14310. #include <ctype.h>
  14311. #include <stdlib.h>
  14312. #if ((' ' & 0x0FF) == 0x020)
  14313. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14314. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14315. #else
  14316. # define ISLOWER(c) \
  14317. (('a' <= (c) && (c) <= 'i') \
  14318. || ('j' <= (c) && (c) <= 'r') \
  14319. || ('s' <= (c) && (c) <= 'z'))
  14320. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14321. #endif
  14322. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14323. int
  14324. main ()
  14325. {
  14326. int i;
  14327. for (i = 0; i < 256; i++)
  14328. if (XOR (islower (i), ISLOWER (i))
  14329. || toupper (i) != TOUPPER (i))
  14330. return 2;
  14331. return 0;
  14332. }
  14333. _ACEOF
  14334. if ac_fn_c_try_run "$LINENO"; then :
  14335. else
  14336. ac_cv_header_stdc=no
  14337. fi
  14338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14340. fi
  14341. fi
  14342. fi
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14344. $as_echo "$ac_cv_header_stdc" >&6; }
  14345. if test $ac_cv_header_stdc = yes; then
  14346. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14347. fi
  14348. 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
  14349. do :
  14350. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14351. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14352. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14353. cat >>confdefs.h <<_ACEOF
  14354. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14355. _ACEOF
  14356. fi
  14357. done
  14358. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14359. if test "x$ac_cv_type_size_t" = xyes; then :
  14360. else
  14361. cat >>confdefs.h <<_ACEOF
  14362. #define size_t unsigned int
  14363. _ACEOF
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14366. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14367. if ${ac_cv_define_M_PI+:} false; then :
  14368. $as_echo_n "(cached) " >&6
  14369. else
  14370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14371. /* end confdefs.h. */
  14372. #include <math.h>
  14373. #ifdef M_PI
  14374. YES_IS_DEFINED
  14375. #endif
  14376. _ACEOF
  14377. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14378. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14379. ac_cv_define_M_PI=yes
  14380. else
  14381. ac_cv_define_M_PI=no
  14382. fi
  14383. rm -f conftest*
  14384. fi
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14386. $as_echo "$ac_cv_define_M_PI" >&6; }
  14387. if test "$ac_cv_define_M_PI" = "yes" ; then
  14388. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14389. fi
  14390. case "$host" in
  14391. *-*-cygwin* | *-*-mingw32*)
  14392. ;;
  14393. *)
  14394. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14395. # for constant arguments. Useless!
  14396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14397. $as_echo_n "checking for working alloca.h... " >&6; }
  14398. if ${ac_cv_working_alloca_h+:} false; then :
  14399. $as_echo_n "(cached) " >&6
  14400. else
  14401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14402. /* end confdefs.h. */
  14403. #include <alloca.h>
  14404. int
  14405. main ()
  14406. {
  14407. char *p = (char *) alloca (2 * sizeof (int));
  14408. if (p) return 0;
  14409. ;
  14410. return 0;
  14411. }
  14412. _ACEOF
  14413. if ac_fn_c_try_link "$LINENO"; then :
  14414. ac_cv_working_alloca_h=yes
  14415. else
  14416. ac_cv_working_alloca_h=no
  14417. fi
  14418. rm -f core conftest.err conftest.$ac_objext \
  14419. conftest$ac_exeext conftest.$ac_ext
  14420. fi
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14422. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14423. if test $ac_cv_working_alloca_h = yes; then
  14424. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14425. fi
  14426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14427. $as_echo_n "checking for alloca... " >&6; }
  14428. if ${ac_cv_func_alloca_works+:} false; then :
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. #ifdef __GNUC__
  14434. # define alloca __builtin_alloca
  14435. #else
  14436. # ifdef _MSC_VER
  14437. # include <malloc.h>
  14438. # define alloca _alloca
  14439. # else
  14440. # ifdef HAVE_ALLOCA_H
  14441. # include <alloca.h>
  14442. # else
  14443. # ifdef _AIX
  14444. #pragma alloca
  14445. # else
  14446. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14447. void *alloca (size_t);
  14448. # endif
  14449. # endif
  14450. # endif
  14451. # endif
  14452. #endif
  14453. int
  14454. main ()
  14455. {
  14456. char *p = (char *) alloca (1);
  14457. if (p) return 0;
  14458. ;
  14459. return 0;
  14460. }
  14461. _ACEOF
  14462. if ac_fn_c_try_link "$LINENO"; then :
  14463. ac_cv_func_alloca_works=yes
  14464. else
  14465. ac_cv_func_alloca_works=no
  14466. fi
  14467. rm -f core conftest.err conftest.$ac_objext \
  14468. conftest$ac_exeext conftest.$ac_ext
  14469. fi
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14471. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14472. if test $ac_cv_func_alloca_works = yes; then
  14473. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14474. else
  14475. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14476. # that cause trouble. Some versions do not even contain alloca or
  14477. # contain a buggy version. If you still want to use their alloca,
  14478. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14479. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14480. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14482. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14483. if ${ac_cv_os_cray+:} false; then :
  14484. $as_echo_n "(cached) " >&6
  14485. else
  14486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14487. /* end confdefs.h. */
  14488. #if defined CRAY && ! defined CRAY2
  14489. webecray
  14490. #else
  14491. wenotbecray
  14492. #endif
  14493. _ACEOF
  14494. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14495. $EGREP "webecray" >/dev/null 2>&1; then :
  14496. ac_cv_os_cray=yes
  14497. else
  14498. ac_cv_os_cray=no
  14499. fi
  14500. rm -f conftest*
  14501. fi
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14503. $as_echo "$ac_cv_os_cray" >&6; }
  14504. if test $ac_cv_os_cray = yes; then
  14505. for ac_func in _getb67 GETB67 getb67; do
  14506. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14507. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14508. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14509. cat >>confdefs.h <<_ACEOF
  14510. #define CRAY_STACKSEG_END $ac_func
  14511. _ACEOF
  14512. break
  14513. fi
  14514. done
  14515. fi
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14517. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14518. if ${ac_cv_c_stack_direction+:} false; then :
  14519. $as_echo_n "(cached) " >&6
  14520. else
  14521. if test "$cross_compiling" = yes; then :
  14522. ac_cv_c_stack_direction=0
  14523. else
  14524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14525. /* end confdefs.h. */
  14526. $ac_includes_default
  14527. int
  14528. find_stack_direction (int *addr, int depth)
  14529. {
  14530. int dir, dummy = 0;
  14531. if (! addr)
  14532. addr = &dummy;
  14533. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14534. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14535. return dir + dummy;
  14536. }
  14537. int
  14538. main (int argc, char **argv)
  14539. {
  14540. return find_stack_direction (0, argc + !argv + 20) < 0;
  14541. }
  14542. _ACEOF
  14543. if ac_fn_c_try_run "$LINENO"; then :
  14544. ac_cv_c_stack_direction=1
  14545. else
  14546. ac_cv_c_stack_direction=-1
  14547. fi
  14548. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14549. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14550. fi
  14551. fi
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14553. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14554. cat >>confdefs.h <<_ACEOF
  14555. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14556. _ACEOF
  14557. fi
  14558. ;;
  14559. esac
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14561. $as_echo_n "checking for working memcmp... " >&6; }
  14562. if ${ac_cv_func_memcmp_working+:} false; then :
  14563. $as_echo_n "(cached) " >&6
  14564. else
  14565. if test "$cross_compiling" = yes; then :
  14566. ac_cv_func_memcmp_working=no
  14567. else
  14568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14569. /* end confdefs.h. */
  14570. $ac_includes_default
  14571. int
  14572. main ()
  14573. {
  14574. /* Some versions of memcmp are not 8-bit clean. */
  14575. char c0 = '\100', c1 = '\200', c2 = '\201';
  14576. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14577. return 1;
  14578. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14579. or more and with at least one buffer not starting on a 4-byte boundary.
  14580. William Lewis provided this test program. */
  14581. {
  14582. char foo[21];
  14583. char bar[21];
  14584. int i;
  14585. for (i = 0; i < 4; i++)
  14586. {
  14587. char *a = foo + i;
  14588. char *b = bar + i;
  14589. strcpy (a, "--------01111111");
  14590. strcpy (b, "--------10000000");
  14591. if (memcmp (a, b, 16) >= 0)
  14592. return 1;
  14593. }
  14594. return 0;
  14595. }
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_run "$LINENO"; then :
  14601. ac_cv_func_memcmp_working=yes
  14602. else
  14603. ac_cv_func_memcmp_working=no
  14604. fi
  14605. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14606. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14607. fi
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14610. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14611. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14612. *" memcmp.$ac_objext "* ) ;;
  14613. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14614. ;;
  14615. esac
  14616. if test x$ac_cv_func_memcmp_working = xyes; then
  14617. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14618. fi
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14620. $as_echo_n "checking for working strtod... " >&6; }
  14621. if ${ac_cv_func_strtod+:} false; then :
  14622. $as_echo_n "(cached) " >&6
  14623. else
  14624. if test "$cross_compiling" = yes; then :
  14625. ac_cv_func_strtod=no
  14626. else
  14627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14628. /* end confdefs.h. */
  14629. $ac_includes_default
  14630. #ifndef strtod
  14631. double strtod ();
  14632. #endif
  14633. int
  14634. main()
  14635. {
  14636. {
  14637. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14638. char *string = " +69";
  14639. char *term;
  14640. double value;
  14641. value = strtod (string, &term);
  14642. if (value != 69 || term != (string + 4))
  14643. return 1;
  14644. }
  14645. {
  14646. /* Under Solaris 2.4, strtod returns the wrong value for the
  14647. terminating character under some conditions. */
  14648. char *string = "NaN";
  14649. char *term;
  14650. strtod (string, &term);
  14651. if (term != string && *(term - 1) == 0)
  14652. return 1;
  14653. }
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. if ac_fn_c_try_run "$LINENO"; then :
  14658. ac_cv_func_strtod=yes
  14659. else
  14660. ac_cv_func_strtod=no
  14661. fi
  14662. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14663. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14664. fi
  14665. fi
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14667. $as_echo "$ac_cv_func_strtod" >&6; }
  14668. if test $ac_cv_func_strtod = no; then
  14669. case " $LIBOBJS " in
  14670. *" strtod.$ac_objext "* ) ;;
  14671. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14672. ;;
  14673. esac
  14674. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14675. if test "x$ac_cv_func_pow" = xyes; then :
  14676. fi
  14677. if test $ac_cv_func_pow = no; then
  14678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14679. $as_echo_n "checking for pow in -lm... " >&6; }
  14680. if ${ac_cv_lib_m_pow+:} false; then :
  14681. $as_echo_n "(cached) " >&6
  14682. else
  14683. ac_check_lib_save_LIBS=$LIBS
  14684. LIBS="-lm $LIBS"
  14685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14686. /* end confdefs.h. */
  14687. /* Override any GCC internal prototype to avoid an error.
  14688. Use char because int might match the return type of a GCC
  14689. builtin and then its argument prototype would still apply. */
  14690. #ifdef __cplusplus
  14691. extern "C"
  14692. #endif
  14693. char pow ();
  14694. int
  14695. main ()
  14696. {
  14697. return pow ();
  14698. ;
  14699. return 0;
  14700. }
  14701. _ACEOF
  14702. if ac_fn_c_try_link "$LINENO"; then :
  14703. ac_cv_lib_m_pow=yes
  14704. else
  14705. ac_cv_lib_m_pow=no
  14706. fi
  14707. rm -f core conftest.err conftest.$ac_objext \
  14708. conftest$ac_exeext conftest.$ac_ext
  14709. LIBS=$ac_check_lib_save_LIBS
  14710. fi
  14711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14712. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14713. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14714. POW_LIB=-lm
  14715. else
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14717. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14718. fi
  14719. fi
  14720. fi
  14721. if test x$ac_cv_func_strtod = xyes; then
  14722. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14723. fi
  14724. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14725. if test "x$ac_cv_func_mprotect" = xyes; then :
  14726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14727. /* end confdefs.h. */
  14728. #include <sys/types.h>
  14729. #include <sys/mman.h>
  14730. int
  14731. main ()
  14732. {
  14733. ;
  14734. return 0;
  14735. }
  14736. _ACEOF
  14737. if ac_fn_c_try_compile "$LINENO"; then :
  14738. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14739. fi
  14740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14741. fi
  14742. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14743. do :
  14744. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14745. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14746. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14747. cat >>confdefs.h <<_ACEOF
  14748. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14749. _ACEOF
  14750. fi
  14751. done
  14752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14753. $as_echo_n "checking for pow in -lm... " >&6; }
  14754. if ${ac_cv_lib_m_pow+:} false; then :
  14755. $as_echo_n "(cached) " >&6
  14756. else
  14757. ac_check_lib_save_LIBS=$LIBS
  14758. LIBS="-lm $LIBS"
  14759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14760. /* end confdefs.h. */
  14761. /* Override any GCC internal prototype to avoid an error.
  14762. Use char because int might match the return type of a GCC
  14763. builtin and then its argument prototype would still apply. */
  14764. #ifdef __cplusplus
  14765. extern "C"
  14766. #endif
  14767. char pow ();
  14768. int
  14769. main ()
  14770. {
  14771. return pow ();
  14772. ;
  14773. return 0;
  14774. }
  14775. _ACEOF
  14776. if ac_fn_c_try_link "$LINENO"; then :
  14777. ac_cv_lib_m_pow=yes
  14778. else
  14779. ac_cv_lib_m_pow=no
  14780. fi
  14781. rm -f core conftest.err conftest.$ac_objext \
  14782. conftest$ac_exeext conftest.$ac_ext
  14783. LIBS=$ac_check_lib_save_LIBS
  14784. fi
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14786. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14787. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14788. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14789. fi
  14790. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14791. do :
  14792. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14793. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14794. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14795. cat >>confdefs.h <<_ACEOF
  14796. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14797. _ACEOF
  14798. fi
  14799. done
  14800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14801. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14802. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14803. $as_echo_n "(cached) " >&6
  14804. else
  14805. ac_check_lib_save_LIBS=$LIBS
  14806. LIBS="-liconv $LIBS"
  14807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14808. /* end confdefs.h. */
  14809. /* Override any GCC internal prototype to avoid an error.
  14810. Use char because int might match the return type of a GCC
  14811. builtin and then its argument prototype would still apply. */
  14812. #ifdef __cplusplus
  14813. extern "C"
  14814. #endif
  14815. char iconv_open ();
  14816. int
  14817. main ()
  14818. {
  14819. return iconv_open ();
  14820. ;
  14821. return 0;
  14822. }
  14823. _ACEOF
  14824. if ac_fn_c_try_link "$LINENO"; then :
  14825. ac_cv_lib_iconv_iconv_open=yes
  14826. else
  14827. ac_cv_lib_iconv_iconv_open=no
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext \
  14830. conftest$ac_exeext conftest.$ac_ext
  14831. LIBS=$ac_check_lib_save_LIBS
  14832. fi
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14834. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14835. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14836. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14837. fi
  14838. for ac_func in iconv
  14839. do :
  14840. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14841. if test "x$ac_cv_func_iconv" = xyes; then :
  14842. cat >>confdefs.h <<_ACEOF
  14843. #define HAVE_ICONV 1
  14844. _ACEOF
  14845. fi
  14846. done
  14847. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14848. "
  14849. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14850. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14851. fi
  14852. for ac_header in libunwind.h
  14853. do :
  14854. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14855. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14856. cat >>confdefs.h <<_ACEOF
  14857. #define HAVE_LIBUNWIND_H 1
  14858. _ACEOF
  14859. fi
  14860. done
  14861. fi
  14862. # Check whether --enable-gcc-atomics was given.
  14863. if test "${enable_gcc_atomics+set}" = set; then :
  14864. enableval=$enable_gcc_atomics;
  14865. else
  14866. enable_gcc_atomics=yes
  14867. fi
  14868. if test x$enable_gcc_atomics = xyes; then
  14869. have_gcc_atomics=no
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14871. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14873. /* end confdefs.h. */
  14874. int
  14875. main ()
  14876. {
  14877. int a;
  14878. void *x, *y, *z;
  14879. __sync_lock_test_and_set(&a, 4);
  14880. __sync_lock_test_and_set(&x, y);
  14881. __sync_fetch_and_add(&a, 1);
  14882. __sync_bool_compare_and_swap(&a, 5, 10);
  14883. __sync_bool_compare_and_swap(&x, y, z);
  14884. ;
  14885. return 0;
  14886. }
  14887. _ACEOF
  14888. if ac_fn_c_try_link "$LINENO"; then :
  14889. have_gcc_atomics=yes
  14890. fi
  14891. rm -f core conftest.err conftest.$ac_objext \
  14892. conftest$ac_exeext conftest.$ac_ext
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14894. $as_echo "$have_gcc_atomics" >&6; }
  14895. if test x$have_gcc_atomics = xyes; then
  14896. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14897. else
  14898. # See if we have the minimum operation needed for GCC atomics
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. int
  14902. main ()
  14903. {
  14904. int a;
  14905. __sync_lock_test_and_set(&a, 1);
  14906. __sync_lock_release(&a);
  14907. ;
  14908. return 0;
  14909. }
  14910. _ACEOF
  14911. if ac_fn_c_try_link "$LINENO"; then :
  14912. have_gcc_sync_lock_test_and_set=yes
  14913. fi
  14914. rm -f core conftest.err conftest.$ac_objext \
  14915. conftest$ac_exeext conftest.$ac_ext
  14916. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14917. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14918. fi
  14919. fi
  14920. fi
  14921. # Standard C sources
  14922. SOURCES="$SOURCES $srcdir/src/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14933. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14938. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14942. # Check whether --enable-atomic was given.
  14943. if test "${enable_atomic+set}" = set; then :
  14944. enableval=$enable_atomic;
  14945. else
  14946. enable_atomic=yes
  14947. fi
  14948. if test x$enable_atomic != xyes; then
  14949. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14950. else
  14951. SUMMARY_modules="${SUMMARY_modules} atomic"
  14952. fi
  14953. # Check whether --enable-audio was given.
  14954. if test "${enable_audio+set}" = set; then :
  14955. enableval=$enable_audio;
  14956. else
  14957. enable_audio=yes
  14958. fi
  14959. if test x$enable_audio != xyes; then
  14960. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14961. else
  14962. SUMMARY_modules="${SUMMARY_modules} audio"
  14963. fi
  14964. # Check whether --enable-video was given.
  14965. if test "${enable_video+set}" = set; then :
  14966. enableval=$enable_video;
  14967. else
  14968. enable_video=yes
  14969. fi
  14970. if test x$enable_video != xyes; then
  14971. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14972. else
  14973. SUMMARY_modules="${SUMMARY_modules} video"
  14974. fi
  14975. # Check whether --enable-render was given.
  14976. if test "${enable_render+set}" = set; then :
  14977. enableval=$enable_render;
  14978. else
  14979. enable_render=yes
  14980. fi
  14981. if test x$enable_render != xyes; then
  14982. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14983. else
  14984. SUMMARY_modules="${SUMMARY_modules} render"
  14985. fi
  14986. # Check whether --enable-events was given.
  14987. if test "${enable_events+set}" = set; then :
  14988. enableval=$enable_events;
  14989. else
  14990. enable_events=yes
  14991. fi
  14992. if test x$enable_events != xyes; then
  14993. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14994. else
  14995. SUMMARY_modules="${SUMMARY_modules} events"
  14996. fi
  14997. # Check whether --enable-joystick was given.
  14998. if test "${enable_joystick+set}" = set; then :
  14999. enableval=$enable_joystick;
  15000. else
  15001. enable_joystick=yes
  15002. fi
  15003. if test x$enable_joystick != xyes; then
  15004. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15005. else
  15006. SUMMARY_modules="${SUMMARY_modules} joystick"
  15007. fi
  15008. # Check whether --enable-haptic was given.
  15009. if test "${enable_haptic+set}" = set; then :
  15010. enableval=$enable_haptic;
  15011. else
  15012. enable_haptic=yes
  15013. fi
  15014. if test x$enable_haptic != xyes; then
  15015. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15016. else
  15017. SUMMARY_modules="${SUMMARY_modules} haptic"
  15018. fi
  15019. # Check whether --enable-sensor was given.
  15020. if test "${enable_sensor+set}" = set; then :
  15021. enableval=$enable_sensor;
  15022. else
  15023. enable_sensor=yes
  15024. fi
  15025. if test x$enable_sensor != xyes; then
  15026. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15027. else
  15028. SUMMARY_modules="${SUMMARY_modules} sensor"
  15029. fi
  15030. # Check whether --enable-power was given.
  15031. if test "${enable_power+set}" = set; then :
  15032. enableval=$enable_power;
  15033. else
  15034. enable_power=yes
  15035. fi
  15036. if test x$enable_power != xyes; then
  15037. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15038. else
  15039. SUMMARY_modules="${SUMMARY_modules} power"
  15040. fi
  15041. # Check whether --enable-filesystem was given.
  15042. if test "${enable_filesystem+set}" = set; then :
  15043. enableval=$enable_filesystem;
  15044. else
  15045. enable_filesystem=yes
  15046. fi
  15047. if test x$enable_filesystem != xyes; then
  15048. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15049. else
  15050. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15051. fi
  15052. # Check whether --enable-threads was given.
  15053. if test "${enable_threads+set}" = set; then :
  15054. enableval=$enable_threads;
  15055. else
  15056. enable_threads=yes
  15057. fi
  15058. if test x$enable_threads != xyes; then
  15059. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15060. else
  15061. SUMMARY_modules="${SUMMARY_modules} threads"
  15062. fi
  15063. # Check whether --enable-timers was given.
  15064. if test "${enable_timers+set}" = set; then :
  15065. enableval=$enable_timers;
  15066. else
  15067. enable_timers=yes
  15068. fi
  15069. if test x$enable_timers != xyes; then
  15070. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15071. else
  15072. SUMMARY_modules="${SUMMARY_modules} timers"
  15073. fi
  15074. # Check whether --enable-file was given.
  15075. if test "${enable_file+set}" = set; then :
  15076. enableval=$enable_file;
  15077. else
  15078. enable_file=yes
  15079. fi
  15080. if test x$enable_file != xyes; then
  15081. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15082. else
  15083. SUMMARY_modules="${SUMMARY_modules} file"
  15084. fi
  15085. # Check whether --enable-loadso was given.
  15086. if test "${enable_loadso+set}" = set; then :
  15087. enableval=$enable_loadso;
  15088. else
  15089. enable_loadso=yes
  15090. fi
  15091. if test x$enable_loadso != xyes; then
  15092. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15093. else
  15094. SUMMARY_modules="${SUMMARY_modules} loadso"
  15095. fi
  15096. # Check whether --enable-cpuinfo was given.
  15097. if test "${enable_cpuinfo+set}" = set; then :
  15098. enableval=$enable_cpuinfo;
  15099. else
  15100. enable_cpuinfo=yes
  15101. fi
  15102. if test x$enable_cpuinfo != xyes; then
  15103. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15104. else
  15105. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15106. fi
  15107. # Check whether --enable-assembly was given.
  15108. if test "${enable_assembly+set}" = set; then :
  15109. enableval=$enable_assembly;
  15110. else
  15111. enable_assembly=yes
  15112. fi
  15113. if test x$enable_assembly = xyes; then
  15114. SUMMARY_modules="${SUMMARY_modules} assembly"
  15115. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15116. # Make sure that we don't generate floating point code that would
  15117. # cause illegal instruction exceptions on older processors
  15118. case "$host" in
  15119. *-*-darwin*)
  15120. # Don't need to worry about Apple hardware, it's all SSE capable
  15121. default_ssemath=yes
  15122. ;;
  15123. *64-*-*)
  15124. # x86 64-bit architectures all have SSE instructions
  15125. default_ssemath=yes
  15126. ;;
  15127. *)
  15128. default_ssemath=no
  15129. ;;
  15130. esac
  15131. # Check whether --enable-ssemath was given.
  15132. if test "${enable_ssemath+set}" = set; then :
  15133. enableval=$enable_ssemath;
  15134. else
  15135. enable_ssemath=$default_ssemath
  15136. fi
  15137. if test x$enable_ssemath = xno; then
  15138. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15139. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15140. fi
  15141. fi
  15142. # Check whether --enable-mmx was given.
  15143. if test "${enable_mmx+set}" = set; then :
  15144. enableval=$enable_mmx;
  15145. else
  15146. enable_mmx=yes
  15147. fi
  15148. if test x$enable_mmx = xyes; then
  15149. save_CFLAGS="$CFLAGS"
  15150. have_gcc_mmx=no
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15152. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15153. mmx_CFLAGS="-mmmx"
  15154. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15156. /* end confdefs.h. */
  15157. #ifdef __MINGW32__
  15158. #include <_mingw.h>
  15159. #ifdef __MINGW64_VERSION_MAJOR
  15160. #include <intrin.h>
  15161. #else
  15162. #include <mmintrin.h>
  15163. #endif
  15164. #else
  15165. #include <mmintrin.h>
  15166. #endif
  15167. #ifndef __MMX__
  15168. #error Assembler CPP flag not enabled
  15169. #endif
  15170. int
  15171. main ()
  15172. {
  15173. ;
  15174. return 0;
  15175. }
  15176. _ACEOF
  15177. if ac_fn_c_try_compile "$LINENO"; then :
  15178. have_gcc_mmx=yes
  15179. fi
  15180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15182. $as_echo "$have_gcc_mmx" >&6; }
  15183. CFLAGS="$save_CFLAGS"
  15184. if test x$have_gcc_mmx = xyes; then
  15185. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15186. SUMMARY_math="${SUMMARY_math} mmx"
  15187. fi
  15188. fi
  15189. # Check whether --enable-3dnow was given.
  15190. if test "${enable_3dnow+set}" = set; then :
  15191. enableval=$enable_3dnow;
  15192. else
  15193. enable_3dnow=yes
  15194. fi
  15195. if test x$enable_3dnow = xyes; then
  15196. save_CFLAGS="$CFLAGS"
  15197. have_gcc_3dnow=no
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15199. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15200. amd3dnow_CFLAGS="-m3dnow"
  15201. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15203. /* end confdefs.h. */
  15204. #include <mm3dnow.h>
  15205. #ifndef __3dNOW__
  15206. #error Assembler CPP flag not enabled
  15207. #endif
  15208. int
  15209. main ()
  15210. {
  15211. void *p = 0;
  15212. _m_prefetch(p);
  15213. ;
  15214. return 0;
  15215. }
  15216. _ACEOF
  15217. if ac_fn_c_try_link "$LINENO"; then :
  15218. have_gcc_3dnow=yes
  15219. fi
  15220. rm -f core conftest.err conftest.$ac_objext \
  15221. conftest$ac_exeext conftest.$ac_ext
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15223. $as_echo "$have_gcc_3dnow" >&6; }
  15224. CFLAGS="$save_CFLAGS"
  15225. if test x$have_gcc_3dnow = xyes; then
  15226. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15227. SUMMARY_math="${SUMMARY_math} 3dnow"
  15228. fi
  15229. fi
  15230. # Check whether --enable-sse was given.
  15231. if test "${enable_sse+set}" = set; then :
  15232. enableval=$enable_sse;
  15233. else
  15234. enable_sse=yes
  15235. fi
  15236. if test x$enable_sse = xyes; then
  15237. save_CFLAGS="$CFLAGS"
  15238. have_gcc_sse=no
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15240. $as_echo_n "checking for GCC -msse option... " >&6; }
  15241. sse_CFLAGS="-msse"
  15242. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15244. /* end confdefs.h. */
  15245. #ifdef __MINGW32__
  15246. #include <_mingw.h>
  15247. #ifdef __MINGW64_VERSION_MAJOR
  15248. #include <intrin.h>
  15249. #else
  15250. #include <xmmintrin.h>
  15251. #endif
  15252. #else
  15253. #include <xmmintrin.h>
  15254. #endif
  15255. #ifndef __SSE__
  15256. #error Assembler CPP flag not enabled
  15257. #endif
  15258. int
  15259. main ()
  15260. {
  15261. ;
  15262. return 0;
  15263. }
  15264. _ACEOF
  15265. if ac_fn_c_try_compile "$LINENO"; then :
  15266. have_gcc_sse=yes
  15267. fi
  15268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15270. $as_echo "$have_gcc_sse" >&6; }
  15271. CFLAGS="$save_CFLAGS"
  15272. if test x$have_gcc_sse = xyes; then
  15273. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15274. SUMMARY_math="${SUMMARY_math} sse"
  15275. fi
  15276. fi
  15277. # Check whether --enable-sse2 was given.
  15278. if test "${enable_sse2+set}" = set; then :
  15279. enableval=$enable_sse2;
  15280. else
  15281. enable_sse2=$default_ssemath
  15282. fi
  15283. if test x$enable_sse2 = xyes; then
  15284. save_CFLAGS="$CFLAGS"
  15285. have_gcc_sse2=no
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15287. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15288. sse2_CFLAGS="-msse2"
  15289. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15291. /* end confdefs.h. */
  15292. #ifdef __MINGW32__
  15293. #include <_mingw.h>
  15294. #ifdef __MINGW64_VERSION_MAJOR
  15295. #include <intrin.h>
  15296. #else
  15297. #include <emmintrin.h>
  15298. #endif
  15299. #else
  15300. #include <emmintrin.h>
  15301. #endif
  15302. #ifndef __SSE2__
  15303. #error Assembler CPP flag not enabled
  15304. #endif
  15305. int
  15306. main ()
  15307. {
  15308. ;
  15309. return 0;
  15310. }
  15311. _ACEOF
  15312. if ac_fn_c_try_compile "$LINENO"; then :
  15313. have_gcc_sse2=yes
  15314. fi
  15315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15317. $as_echo "$have_gcc_sse2" >&6; }
  15318. CFLAGS="$save_CFLAGS"
  15319. if test x$have_gcc_sse2 = xyes; then
  15320. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15321. SUMMARY_math="${SUMMARY_math} sse2"
  15322. fi
  15323. fi
  15324. # Check whether --enable-sse3 was given.
  15325. if test "${enable_sse3+set}" = set; then :
  15326. enableval=$enable_sse3;
  15327. else
  15328. enable_sse3=$default_ssemath
  15329. fi
  15330. if test x$enable_sse3 = xyes; then
  15331. save_CFLAGS="$CFLAGS"
  15332. have_gcc_sse3=no
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15334. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15335. sse3_CFLAGS="-msse3"
  15336. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15338. /* end confdefs.h. */
  15339. #ifdef __MINGW32__
  15340. #include <_mingw.h>
  15341. #ifdef __MINGW64_VERSION_MAJOR
  15342. #include <intrin.h>
  15343. #else
  15344. #include <pmmintrin.h>
  15345. #endif
  15346. #else
  15347. #include <pmmintrin.h>
  15348. #endif
  15349. #ifndef __SSE2__
  15350. #error Assembler CPP flag not enabled
  15351. #endif
  15352. int
  15353. main ()
  15354. {
  15355. ;
  15356. return 0;
  15357. }
  15358. _ACEOF
  15359. if ac_fn_c_try_compile "$LINENO"; then :
  15360. have_gcc_sse3=yes
  15361. fi
  15362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15364. $as_echo "$have_gcc_sse3" >&6; }
  15365. CFLAGS="$save_CFLAGS"
  15366. if test x$have_gcc_sse3 = xyes; then
  15367. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15368. SUMMARY_math="${SUMMARY_math} sse3"
  15369. fi
  15370. fi
  15371. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15372. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15373. have_immintrin_h_hdr=yes
  15374. else
  15375. have_immintrin_h_hdr=no
  15376. fi
  15377. if test x$have_immintrin_h_hdr = xyes; then
  15378. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15379. fi
  15380. # Check whether --enable-altivec was given.
  15381. if test "${enable_altivec+set}" = set; then :
  15382. enableval=$enable_altivec;
  15383. else
  15384. enable_altivec=yes
  15385. fi
  15386. if test x$enable_altivec = xyes; then
  15387. save_CFLAGS="$CFLAGS"
  15388. have_gcc_altivec=no
  15389. have_altivec_h_hdr=no
  15390. altivec_CFLAGS="-maltivec"
  15391. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15393. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15395. /* end confdefs.h. */
  15396. #include <altivec.h>
  15397. vector unsigned int vzero() {
  15398. return vec_splat_u32(0);
  15399. }
  15400. int
  15401. main ()
  15402. {
  15403. ;
  15404. return 0;
  15405. }
  15406. _ACEOF
  15407. if ac_fn_c_try_compile "$LINENO"; then :
  15408. have_gcc_altivec=yes
  15409. have_altivec_h_hdr=yes
  15410. fi
  15411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15413. $as_echo "$have_gcc_altivec" >&6; }
  15414. if test x$have_gcc_altivec = xno; then
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15416. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15418. /* end confdefs.h. */
  15419. vector unsigned int vzero() {
  15420. return vec_splat_u32(0);
  15421. }
  15422. int
  15423. main ()
  15424. {
  15425. ;
  15426. return 0;
  15427. }
  15428. _ACEOF
  15429. if ac_fn_c_try_compile "$LINENO"; then :
  15430. have_gcc_altivec=yes
  15431. fi
  15432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15434. $as_echo "$have_gcc_altivec" >&6; }
  15435. fi
  15436. if test x$have_gcc_altivec = xno; then
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15438. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15439. altivec_CFLAGS="-faltivec"
  15440. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15442. /* end confdefs.h. */
  15443. #include <altivec.h>
  15444. vector unsigned int vzero() {
  15445. return vec_splat_u32(0);
  15446. }
  15447. int
  15448. main ()
  15449. {
  15450. ;
  15451. return 0;
  15452. }
  15453. _ACEOF
  15454. if ac_fn_c_try_compile "$LINENO"; then :
  15455. have_gcc_altivec=yes
  15456. have_altivec_h_hdr=yes
  15457. fi
  15458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15460. $as_echo "$have_gcc_altivec" >&6; }
  15461. fi
  15462. if test x$have_gcc_altivec = xno; then
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15464. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15466. /* end confdefs.h. */
  15467. vector unsigned int vzero() {
  15468. return vec_splat_u32(0);
  15469. }
  15470. int
  15471. main ()
  15472. {
  15473. ;
  15474. return 0;
  15475. }
  15476. _ACEOF
  15477. if ac_fn_c_try_compile "$LINENO"; then :
  15478. have_gcc_altivec=yes
  15479. fi
  15480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15482. $as_echo "$have_gcc_altivec" >&6; }
  15483. fi
  15484. CFLAGS="$save_CFLAGS"
  15485. if test x$have_gcc_altivec = xyes; then
  15486. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15487. if test x$have_altivec_h_hdr = xyes; then
  15488. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15489. fi
  15490. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15491. SUMMARY_math="${SUMMARY_math} altivec"
  15492. fi
  15493. fi
  15494. fi
  15495. CheckOSS()
  15496. {
  15497. # Check whether --enable-oss was given.
  15498. if test "${enable_oss+set}" = set; then :
  15499. enableval=$enable_oss;
  15500. else
  15501. enable_oss=maybe
  15502. fi
  15503. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15504. # use sndio instead. So on there, we default to disabled. You can force
  15505. # it on if you really want, though.
  15506. if test x$enable_oss = xmaybe; then
  15507. enable_oss=yes
  15508. case "$host" in
  15509. *-*-openbsd*)
  15510. enable_oss=no;;
  15511. esac
  15512. fi
  15513. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15515. $as_echo_n "checking for OSS audio support... " >&6; }
  15516. have_oss=no
  15517. if test x$have_oss != xyes; then
  15518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15519. /* end confdefs.h. */
  15520. #include <sys/soundcard.h>
  15521. int
  15522. main ()
  15523. {
  15524. int arg = SNDCTL_DSP_SETFRAGMENT;
  15525. ;
  15526. return 0;
  15527. }
  15528. _ACEOF
  15529. if ac_fn_c_try_compile "$LINENO"; then :
  15530. have_oss=yes
  15531. fi
  15532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15533. fi
  15534. if test x$have_oss != xyes; then
  15535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15536. /* end confdefs.h. */
  15537. #include <soundcard.h>
  15538. int
  15539. main ()
  15540. {
  15541. int arg = SNDCTL_DSP_SETFRAGMENT;
  15542. ;
  15543. return 0;
  15544. }
  15545. _ACEOF
  15546. if ac_fn_c_try_compile "$LINENO"; then :
  15547. have_oss=yes
  15548. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15549. fi
  15550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15551. fi
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15553. $as_echo "$have_oss" >&6; }
  15554. if test x$have_oss = xyes; then
  15555. SUMMARY_audio="${SUMMARY_audio} oss"
  15556. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15557. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15558. have_audio=yes
  15559. # We may need to link with ossaudio emulation library
  15560. case "$host" in
  15561. *-*-openbsd*|*-*-netbsd*)
  15562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15563. esac
  15564. fi
  15565. fi
  15566. }
  15567. CheckALSA()
  15568. {
  15569. # Check whether --enable-alsa was given.
  15570. if test "${enable_alsa+set}" = set; then :
  15571. enableval=$enable_alsa;
  15572. else
  15573. enable_alsa=yes
  15574. fi
  15575. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15576. alsa_save_CFLAGS="$CFLAGS"
  15577. alsa_save_LDFLAGS="$LDFLAGS"
  15578. alsa_save_LIBS="$LIBS"
  15579. alsa_found=yes
  15580. # Check whether --with-alsa-prefix was given.
  15581. if test "${with_alsa_prefix+set}" = set; then :
  15582. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15583. else
  15584. alsa_prefix=""
  15585. fi
  15586. # Check whether --with-alsa-inc-prefix was given.
  15587. if test "${with_alsa_inc_prefix+set}" = set; then :
  15588. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15589. else
  15590. alsa_inc_prefix=""
  15591. fi
  15592. # Check whether --enable-alsatest was given.
  15593. if test "${enable_alsatest+set}" = set; then :
  15594. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15595. else
  15596. enable_alsatest=yes
  15597. fi
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15599. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15600. if test "$alsa_inc_prefix" != "" ; then
  15601. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15602. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15603. fi
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15605. $as_echo "$ALSA_CFLAGS" >&6; }
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15607. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15608. if test "$alsa_prefix" != "" ; then
  15609. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15610. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15611. fi
  15612. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15613. LIBS=`echo $LIBS | sed 's/-lm//'`
  15614. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15615. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15616. LIBS=`echo $LIBS | sed 's/ //'`
  15617. LIBS="$ALSA_LIBS $LIBS"
  15618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15619. $as_echo "$ALSA_LIBS" >&6; }
  15620. min_alsa_version=1.0.11
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15622. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15623. no_alsa=""
  15624. alsa_min_major_version=`echo $min_alsa_version | \
  15625. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15626. alsa_min_minor_version=`echo $min_alsa_version | \
  15627. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15628. alsa_min_micro_version=`echo $min_alsa_version | \
  15629. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15630. ac_ext=c
  15631. ac_cpp='$CPP $CPPFLAGS'
  15632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15636. /* end confdefs.h. */
  15637. #include <alsa/asoundlib.h>
  15638. int
  15639. main ()
  15640. {
  15641. /* ensure backward compatibility */
  15642. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15643. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15644. #endif
  15645. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15646. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15647. #endif
  15648. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15649. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15650. #endif
  15651. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15652. exit(0);
  15653. # else
  15654. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15655. # error not present
  15656. # endif
  15657. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15658. exit(0);
  15659. # else
  15660. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15661. # error not present
  15662. # endif
  15663. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15664. # error not present
  15665. # endif
  15666. # endif
  15667. # endif
  15668. exit(0);
  15669. ;
  15670. return 0;
  15671. }
  15672. _ACEOF
  15673. if ac_fn_c_try_compile "$LINENO"; then :
  15674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15675. $as_echo "found." >&6; }
  15676. else
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15678. $as_echo "not present." >&6; }
  15679. alsa_found=no
  15680. fi
  15681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15682. ac_ext=c
  15683. ac_cpp='$CPP $CPPFLAGS'
  15684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15687. if test "x$enable_alsatest" = "xyes"; then
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15689. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15690. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15691. $as_echo_n "(cached) " >&6
  15692. else
  15693. ac_check_lib_save_LIBS=$LIBS
  15694. LIBS="-lasound $LIBS"
  15695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15696. /* end confdefs.h. */
  15697. /* Override any GCC internal prototype to avoid an error.
  15698. Use char because int might match the return type of a GCC
  15699. builtin and then its argument prototype would still apply. */
  15700. #ifdef __cplusplus
  15701. extern "C"
  15702. #endif
  15703. char snd_ctl_open ();
  15704. int
  15705. main ()
  15706. {
  15707. return snd_ctl_open ();
  15708. ;
  15709. return 0;
  15710. }
  15711. _ACEOF
  15712. if ac_fn_c_try_link "$LINENO"; then :
  15713. ac_cv_lib_asound_snd_ctl_open=yes
  15714. else
  15715. ac_cv_lib_asound_snd_ctl_open=no
  15716. fi
  15717. rm -f core conftest.err conftest.$ac_objext \
  15718. conftest$ac_exeext conftest.$ac_ext
  15719. LIBS=$ac_check_lib_save_LIBS
  15720. fi
  15721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15722. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15723. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15724. cat >>confdefs.h <<_ACEOF
  15725. #define HAVE_LIBASOUND 1
  15726. _ACEOF
  15727. LIBS="-lasound $LIBS"
  15728. else
  15729. alsa_found=no
  15730. fi
  15731. fi
  15732. if test "x$alsa_found" = "xyes" ; then
  15733. have_alsa=yes
  15734. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15735. LIBS=`echo $LIBS | sed 's/ //'`
  15736. LIBS="-lasound $LIBS"
  15737. fi
  15738. if test "x$alsa_found" = "xno" ; then
  15739. have_alsa=no
  15740. CFLAGS="$alsa_save_CFLAGS"
  15741. LDFLAGS="$alsa_save_LDFLAGS"
  15742. LIBS="$alsa_save_LIBS"
  15743. ALSA_CFLAGS=""
  15744. ALSA_LIBS=""
  15745. fi
  15746. # Restore all flags from before the ALSA detection runs
  15747. CFLAGS="$alsa_save_CFLAGS"
  15748. LDFLAGS="$alsa_save_LDFLAGS"
  15749. LIBS="$alsa_save_LIBS"
  15750. if test x$have_alsa = xyes; then
  15751. # Check whether --enable-alsa-shared was given.
  15752. if test "${enable_alsa_shared+set}" = set; then :
  15753. enableval=$enable_alsa_shared;
  15754. else
  15755. enable_alsa_shared=yes
  15756. fi
  15757. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15758. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15759. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15760. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15761. if test x$have_loadso != xyes && \
  15762. test x$enable_alsa_shared = xyes; then
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15764. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15765. fi
  15766. if test x$have_loadso = xyes && \
  15767. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15768. echo "-- dynamic libasound -> $alsa_lib"
  15769. cat >>confdefs.h <<_ACEOF
  15770. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15771. _ACEOF
  15772. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15773. else
  15774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15775. SUMMARY_audio="${SUMMARY_audio} alsa"
  15776. fi
  15777. have_audio=yes
  15778. fi
  15779. fi
  15780. }
  15781. CheckJACK()
  15782. {
  15783. # Check whether --enable-jack was given.
  15784. if test "${enable_jack+set}" = set; then :
  15785. enableval=$enable_jack;
  15786. else
  15787. enable_jack=yes
  15788. fi
  15789. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15790. pkg_failed=no
  15791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15792. $as_echo_n "checking for JACK... " >&6; }
  15793. if test -n "$JACK_CFLAGS"; then
  15794. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15795. elif test -n "$PKG_CONFIG"; then
  15796. if test -n "$PKG_CONFIG" && \
  15797. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15798. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15799. ac_status=$?
  15800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15801. test $ac_status = 0; }; then
  15802. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15803. else
  15804. pkg_failed=yes
  15805. fi
  15806. else
  15807. pkg_failed=untried
  15808. fi
  15809. if test -n "$JACK_LIBS"; then
  15810. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15811. elif test -n "$PKG_CONFIG"; then
  15812. if test -n "$PKG_CONFIG" && \
  15813. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15814. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15815. ac_status=$?
  15816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15817. test $ac_status = 0; }; then
  15818. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15819. else
  15820. pkg_failed=yes
  15821. fi
  15822. else
  15823. pkg_failed=untried
  15824. fi
  15825. if test $pkg_failed = yes; then
  15826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15827. $as_echo "no" >&6; }
  15828. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15829. _pkg_short_errors_supported=yes
  15830. else
  15831. _pkg_short_errors_supported=no
  15832. fi
  15833. if test $_pkg_short_errors_supported = yes; then
  15834. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15835. else
  15836. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15837. fi
  15838. # Put the nasty error message in config.log where it belongs
  15839. echo "$JACK_PKG_ERRORS" >&5
  15840. audio_jack=no
  15841. elif test $pkg_failed = untried; then
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15843. $as_echo "no" >&6; }
  15844. audio_jack=no
  15845. else
  15846. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15847. JACK_LIBS=$pkg_cv_JACK_LIBS
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15849. $as_echo "yes" >&6; }
  15850. audio_jack=yes
  15851. fi
  15852. if test x$audio_jack = xyes; then
  15853. # Check whether --enable-jack-shared was given.
  15854. if test "${enable_jack_shared+set}" = set; then :
  15855. enableval=$enable_jack_shared;
  15856. else
  15857. enable_jack_shared=yes
  15858. fi
  15859. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15860. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15861. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15862. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15863. if test x$have_loadso != xyes && \
  15864. test x$enable_jack_shared = xyes; then
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15866. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15867. fi
  15868. if test x$have_loadso = xyes && \
  15869. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15870. echo "-- dynamic libjack -> $jack_lib"
  15871. cat >>confdefs.h <<_ACEOF
  15872. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15873. _ACEOF
  15874. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15875. case "$host" in
  15876. # On Solaris, jack must be linked deferred explicitly
  15877. # to prevent undefined symbol failures.
  15878. *-*-solaris*)
  15879. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15881. esac
  15882. else
  15883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15884. SUMMARY_audio="${SUMMARY_audio} jack"
  15885. fi
  15886. have_audio=yes
  15887. fi
  15888. fi
  15889. }
  15890. CheckESD()
  15891. {
  15892. # Check whether --enable-esd was given.
  15893. if test "${enable_esd+set}" = set; then :
  15894. enableval=$enable_esd;
  15895. else
  15896. enable_esd=yes
  15897. fi
  15898. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15899. # Check whether --with-esd-prefix was given.
  15900. if test "${with_esd_prefix+set}" = set; then :
  15901. withval=$with_esd_prefix; esd_prefix="$withval"
  15902. else
  15903. esd_prefix=""
  15904. fi
  15905. # Check whether --with-esd-exec-prefix was given.
  15906. if test "${with_esd_exec_prefix+set}" = set; then :
  15907. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15908. else
  15909. esd_exec_prefix=""
  15910. fi
  15911. # Check whether --enable-esdtest was given.
  15912. if test "${enable_esdtest+set}" = set; then :
  15913. enableval=$enable_esdtest;
  15914. else
  15915. enable_esdtest=yes
  15916. fi
  15917. if test x$esd_exec_prefix != x ; then
  15918. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15919. if test x${ESD_CONFIG+set} != xset ; then
  15920. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15921. fi
  15922. fi
  15923. if test x$esd_prefix != x ; then
  15924. esd_args="$esd_args --prefix=$esd_prefix"
  15925. if test x${ESD_CONFIG+set} != xset ; then
  15926. ESD_CONFIG=$esd_prefix/bin/esd-config
  15927. fi
  15928. fi
  15929. # Extract the first word of "esd-config", so it can be a program name with args.
  15930. set dummy esd-config; ac_word=$2
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15932. $as_echo_n "checking for $ac_word... " >&6; }
  15933. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15934. $as_echo_n "(cached) " >&6
  15935. else
  15936. case $ESD_CONFIG in
  15937. [\\/]* | ?:[\\/]*)
  15938. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15939. ;;
  15940. *)
  15941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15942. for as_dir in $PATH
  15943. do
  15944. IFS=$as_save_IFS
  15945. test -z "$as_dir" && as_dir=.
  15946. for ac_exec_ext in '' $ac_executable_extensions; do
  15947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15948. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15950. break 2
  15951. fi
  15952. done
  15953. done
  15954. IFS=$as_save_IFS
  15955. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15956. ;;
  15957. esac
  15958. fi
  15959. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15960. if test -n "$ESD_CONFIG"; then
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15962. $as_echo "$ESD_CONFIG" >&6; }
  15963. else
  15964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15965. $as_echo "no" >&6; }
  15966. fi
  15967. min_esd_version=0.2.8
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15969. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15970. no_esd=""
  15971. if test "$ESD_CONFIG" = "no" ; then
  15972. no_esd=yes
  15973. else
  15974. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15975. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15976. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15977. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15978. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15979. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15980. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15981. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15982. if test "x$enable_esdtest" = "xyes" ; then
  15983. ac_save_CFLAGS="$CFLAGS"
  15984. ac_save_LIBS="$LIBS"
  15985. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15986. LIBS="$LIBS $ESD_LIBS"
  15987. rm -f conf.esdtest
  15988. if test "$cross_compiling" = yes; then :
  15989. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15990. else
  15991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15992. /* end confdefs.h. */
  15993. #include <stdio.h>
  15994. #include <stdlib.h>
  15995. #include <string.h>
  15996. #include <esd.h>
  15997. char*
  15998. my_strdup (char *str)
  15999. {
  16000. char *new_str;
  16001. if (str)
  16002. {
  16003. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  16004. strcpy (new_str, str);
  16005. }
  16006. else
  16007. new_str = NULL;
  16008. return new_str;
  16009. }
  16010. int main ()
  16011. {
  16012. int major, minor, micro;
  16013. char *tmp_version;
  16014. system ("touch conf.esdtest");
  16015. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16016. tmp_version = my_strdup("$min_esd_version");
  16017. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16018. printf("%s, bad version string\n", "$min_esd_version");
  16019. exit(1);
  16020. }
  16021. if (($esd_major_version > major) ||
  16022. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16023. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16024. {
  16025. return 0;
  16026. }
  16027. else
  16028. {
  16029. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16030. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16031. printf("*** best to upgrade to the required version.\n");
  16032. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16033. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16034. printf("*** config.cache before re-running configure\n");
  16035. return 1;
  16036. }
  16037. }
  16038. _ACEOF
  16039. if ac_fn_c_try_run "$LINENO"; then :
  16040. else
  16041. no_esd=yes
  16042. fi
  16043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16045. fi
  16046. CFLAGS="$ac_save_CFLAGS"
  16047. LIBS="$ac_save_LIBS"
  16048. fi
  16049. fi
  16050. if test "x$no_esd" = x ; then
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16052. $as_echo "yes" >&6; }
  16053. have_esd=yes
  16054. else
  16055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16056. $as_echo "no" >&6; }
  16057. if test "$ESD_CONFIG" = "no" ; then
  16058. echo "*** The esd-config script installed by ESD could not be found"
  16059. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16060. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16061. echo "*** full path to esd-config."
  16062. else
  16063. if test -f conf.esdtest ; then
  16064. :
  16065. else
  16066. echo "*** Could not run ESD test program, checking why..."
  16067. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16068. LIBS="$LIBS $ESD_LIBS"
  16069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16070. /* end confdefs.h. */
  16071. #include <stdio.h>
  16072. #include <esd.h>
  16073. int
  16074. main ()
  16075. {
  16076. return 0;
  16077. ;
  16078. return 0;
  16079. }
  16080. _ACEOF
  16081. if ac_fn_c_try_link "$LINENO"; then :
  16082. echo "*** The test program compiled, but did not run. This usually means"
  16083. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16084. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16085. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16086. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16087. echo "*** is required on your system"
  16088. echo "***"
  16089. echo "*** If you have an old version installed, it is best to remove it, although"
  16090. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16091. else
  16092. echo "*** The test program failed to compile or link. See the file config.log for the"
  16093. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16094. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16095. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16096. fi
  16097. rm -f core conftest.err conftest.$ac_objext \
  16098. conftest$ac_exeext conftest.$ac_ext
  16099. CFLAGS="$ac_save_CFLAGS"
  16100. LIBS="$ac_save_LIBS"
  16101. fi
  16102. fi
  16103. ESD_CFLAGS=""
  16104. ESD_LIBS=""
  16105. have_esd=no
  16106. fi
  16107. rm -f conf.esdtest
  16108. if test x$have_esd = xyes; then
  16109. # Check whether --enable-esd-shared was given.
  16110. if test "${enable_esd_shared+set}" = set; then :
  16111. enableval=$enable_esd_shared;
  16112. else
  16113. enable_esd_shared=yes
  16114. fi
  16115. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16116. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16117. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16118. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16119. if test x$have_loadso != xyes && \
  16120. test x$enable_esd_shared = xyes; then
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16122. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16123. fi
  16124. if test x$have_loadso = xyes && \
  16125. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16126. echo "-- dynamic libesd -> $esd_lib"
  16127. cat >>confdefs.h <<_ACEOF
  16128. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16129. _ACEOF
  16130. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16131. else
  16132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16133. SUMMARY_audio="${SUMMARY_audio} esd"
  16134. fi
  16135. have_audio=yes
  16136. fi
  16137. fi
  16138. }
  16139. CheckPulseAudio()
  16140. {
  16141. # Check whether --enable-pulseaudio was given.
  16142. if test "${enable_pulseaudio+set}" = set; then :
  16143. enableval=$enable_pulseaudio;
  16144. else
  16145. enable_pulseaudio=yes
  16146. fi
  16147. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16148. pkg_failed=no
  16149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16150. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16151. if test -n "$PULSEAUDIO_CFLAGS"; then
  16152. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16153. elif test -n "$PKG_CONFIG"; then
  16154. if test -n "$PKG_CONFIG" && \
  16155. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16156. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16157. ac_status=$?
  16158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16159. test $ac_status = 0; }; then
  16160. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16161. else
  16162. pkg_failed=yes
  16163. fi
  16164. else
  16165. pkg_failed=untried
  16166. fi
  16167. if test -n "$PULSEAUDIO_LIBS"; then
  16168. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16169. elif test -n "$PKG_CONFIG"; then
  16170. if test -n "$PKG_CONFIG" && \
  16171. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16172. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16173. ac_status=$?
  16174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16175. test $ac_status = 0; }; then
  16176. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16177. else
  16178. pkg_failed=yes
  16179. fi
  16180. else
  16181. pkg_failed=untried
  16182. fi
  16183. if test $pkg_failed = yes; then
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16185. $as_echo "no" >&6; }
  16186. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16187. _pkg_short_errors_supported=yes
  16188. else
  16189. _pkg_short_errors_supported=no
  16190. fi
  16191. if test $_pkg_short_errors_supported = yes; then
  16192. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16193. else
  16194. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16195. fi
  16196. # Put the nasty error message in config.log where it belongs
  16197. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16198. audio_pulseaudio=no
  16199. elif test $pkg_failed = untried; then
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16201. $as_echo "no" >&6; }
  16202. audio_pulseaudio=no
  16203. else
  16204. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16205. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16207. $as_echo "yes" >&6; }
  16208. audio_pulseaudio=yes
  16209. fi
  16210. if test x$audio_pulseaudio = xyes; then
  16211. # Check whether --enable-pulseaudio-shared was given.
  16212. if test "${enable_pulseaudio_shared+set}" = set; then :
  16213. enableval=$enable_pulseaudio_shared;
  16214. else
  16215. enable_pulseaudio_shared=yes
  16216. fi
  16217. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16218. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16219. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16220. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16221. if test x$have_loadso != xyes && \
  16222. test x$enable_pulseaudio_shared = xyes; then
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16224. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16225. fi
  16226. if test x$have_loadso = xyes && \
  16227. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16228. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16229. cat >>confdefs.h <<_ACEOF
  16230. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16231. _ACEOF
  16232. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16233. case "$host" in
  16234. # On Solaris, pulseaudio must be linked deferred explicitly
  16235. # to prevent undefined symbol failures.
  16236. *-*-solaris*)
  16237. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16238. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16239. esac
  16240. else
  16241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16242. SUMMARY_audio="${SUMMARY_audio} pulse"
  16243. fi
  16244. have_audio=yes
  16245. fi
  16246. fi
  16247. }
  16248. CheckARTSC()
  16249. {
  16250. # Check whether --enable-arts was given.
  16251. if test "${enable_arts+set}" = set; then :
  16252. enableval=$enable_arts;
  16253. else
  16254. enable_arts=yes
  16255. fi
  16256. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16257. # Extract the first word of "artsc-config", so it can be a program name with args.
  16258. set dummy artsc-config; ac_word=$2
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16260. $as_echo_n "checking for $ac_word... " >&6; }
  16261. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16262. $as_echo_n "(cached) " >&6
  16263. else
  16264. case $ARTSCONFIG in
  16265. [\\/]* | ?:[\\/]*)
  16266. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16267. ;;
  16268. *)
  16269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16270. for as_dir in $PATH
  16271. do
  16272. IFS=$as_save_IFS
  16273. test -z "$as_dir" && as_dir=.
  16274. for ac_exec_ext in '' $ac_executable_extensions; do
  16275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16276. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16278. break 2
  16279. fi
  16280. done
  16281. done
  16282. IFS=$as_save_IFS
  16283. ;;
  16284. esac
  16285. fi
  16286. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16287. if test -n "$ARTSCONFIG"; then
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16289. $as_echo "$ARTSCONFIG" >&6; }
  16290. else
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16292. $as_echo "no" >&6; }
  16293. fi
  16294. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16295. : # arts isn't installed
  16296. else
  16297. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16298. ARTS_LIBS=`$ARTSCONFIG --libs`
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16300. $as_echo_n "checking for aRts development environment... " >&6; }
  16301. audio_arts=no
  16302. save_CFLAGS="$CFLAGS"
  16303. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16305. /* end confdefs.h. */
  16306. #include <artsc.h>
  16307. int
  16308. main ()
  16309. {
  16310. arts_stream_t stream;
  16311. ;
  16312. return 0;
  16313. }
  16314. _ACEOF
  16315. if ac_fn_c_try_compile "$LINENO"; then :
  16316. audio_arts=yes
  16317. fi
  16318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16319. CFLAGS="$save_CFLAGS"
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16321. $as_echo "$audio_arts" >&6; }
  16322. if test x$audio_arts = xyes; then
  16323. # Check whether --enable-arts-shared was given.
  16324. if test "${enable_arts_shared+set}" = set; then :
  16325. enableval=$enable_arts_shared;
  16326. else
  16327. enable_arts_shared=yes
  16328. fi
  16329. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16330. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16331. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16332. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16333. if test x$have_loadso != xyes && \
  16334. test x$enable_arts_shared = xyes; then
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16336. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16337. fi
  16338. if test x$have_loadso = xyes && \
  16339. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16340. echo "-- dynamic libartsc -> $arts_lib"
  16341. cat >>confdefs.h <<_ACEOF
  16342. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16343. _ACEOF
  16344. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16345. else
  16346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16347. SUMMARY_audio="${SUMMARY_audio} arts"
  16348. fi
  16349. have_audio=yes
  16350. fi
  16351. fi
  16352. fi
  16353. }
  16354. CheckNAS()
  16355. {
  16356. # Check whether --enable-nas was given.
  16357. if test "${enable_nas+set}" = set; then :
  16358. enableval=$enable_nas;
  16359. else
  16360. enable_nas=yes
  16361. fi
  16362. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16363. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16364. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16365. have_nas_hdr=yes
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16368. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16369. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16370. $as_echo_n "(cached) " >&6
  16371. else
  16372. ac_check_lib_save_LIBS=$LIBS
  16373. LIBS="-laudio $LIBS"
  16374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16375. /* end confdefs.h. */
  16376. /* Override any GCC internal prototype to avoid an error.
  16377. Use char because int might match the return type of a GCC
  16378. builtin and then its argument prototype would still apply. */
  16379. #ifdef __cplusplus
  16380. extern "C"
  16381. #endif
  16382. char AuOpenServer ();
  16383. int
  16384. main ()
  16385. {
  16386. return AuOpenServer ();
  16387. ;
  16388. return 0;
  16389. }
  16390. _ACEOF
  16391. if ac_fn_c_try_link "$LINENO"; then :
  16392. ac_cv_lib_audio_AuOpenServer=yes
  16393. else
  16394. ac_cv_lib_audio_AuOpenServer=no
  16395. fi
  16396. rm -f core conftest.err conftest.$ac_objext \
  16397. conftest$ac_exeext conftest.$ac_ext
  16398. LIBS=$ac_check_lib_save_LIBS
  16399. fi
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16401. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16402. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16403. have_nas_lib=yes
  16404. fi
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16406. $as_echo_n "checking for NAS audio support... " >&6; }
  16407. have_nas=no
  16408. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16409. have_nas=yes
  16410. NAS_LIBS="-laudio"
  16411. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16412. have_nas=yes
  16413. NAS_CFLAGS="-I/usr/X11R6/include/"
  16414. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16415. fi
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16417. $as_echo "$have_nas" >&6; }
  16418. if test x$have_nas = xyes; then
  16419. # Check whether --enable-nas-shared was given.
  16420. if test "${enable_nas_shared+set}" = set; then :
  16421. enableval=$enable_nas_shared;
  16422. else
  16423. enable_nas_shared=yes
  16424. fi
  16425. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16426. if test x$have_loadso != xyes && \
  16427. test x$enable_nas_shared = xyes; then
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16429. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16430. fi
  16431. if test x$have_loadso = xyes && \
  16432. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16433. echo "-- dynamic libaudio -> $nas_lib"
  16434. cat >>confdefs.h <<_ACEOF
  16435. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16436. _ACEOF
  16437. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16438. else
  16439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16440. SUMMARY_audio="${SUMMARY_audio} nas"
  16441. fi
  16442. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16443. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16444. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16445. have_audio=yes
  16446. fi
  16447. fi
  16448. }
  16449. CheckSNDIO()
  16450. {
  16451. # Check whether --enable-sndio was given.
  16452. if test "${enable_sndio+set}" = set; then :
  16453. enableval=$enable_sndio;
  16454. else
  16455. enable_sndio=yes
  16456. fi
  16457. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16458. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16459. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16460. have_sndio_hdr=yes
  16461. fi
  16462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16463. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16464. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16465. $as_echo_n "(cached) " >&6
  16466. else
  16467. ac_check_lib_save_LIBS=$LIBS
  16468. LIBS="-lsndio $LIBS"
  16469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16470. /* end confdefs.h. */
  16471. /* Override any GCC internal prototype to avoid an error.
  16472. Use char because int might match the return type of a GCC
  16473. builtin and then its argument prototype would still apply. */
  16474. #ifdef __cplusplus
  16475. extern "C"
  16476. #endif
  16477. char sio_open ();
  16478. int
  16479. main ()
  16480. {
  16481. return sio_open ();
  16482. ;
  16483. return 0;
  16484. }
  16485. _ACEOF
  16486. if ac_fn_c_try_link "$LINENO"; then :
  16487. ac_cv_lib_sndio_sio_open=yes
  16488. else
  16489. ac_cv_lib_sndio_sio_open=no
  16490. fi
  16491. rm -f core conftest.err conftest.$ac_objext \
  16492. conftest$ac_exeext conftest.$ac_ext
  16493. LIBS=$ac_check_lib_save_LIBS
  16494. fi
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16496. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16497. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16498. have_sndio_lib=yes
  16499. fi
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16501. $as_echo_n "checking for sndio audio support... " >&6; }
  16502. have_sndio=no
  16503. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16504. have_sndio=yes
  16505. SNDIO_LIBS="-lsndio"
  16506. fi
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16508. $as_echo "$have_sndio" >&6; }
  16509. if test x$have_sndio = xyes; then
  16510. # Check whether --enable-sndio-shared was given.
  16511. if test "${enable_sndio_shared+set}" = set; then :
  16512. enableval=$enable_sndio_shared;
  16513. else
  16514. enable_sndio_shared=yes
  16515. fi
  16516. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16517. if test x$have_loadso != xyes && \
  16518. test x$enable_sndio_shared = xyes; then
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16520. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16521. fi
  16522. if test x$have_loadso = xyes && \
  16523. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16524. echo "-- dynamic libsndio -> $sndio_lib"
  16525. cat >>confdefs.h <<_ACEOF
  16526. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16527. _ACEOF
  16528. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16529. else
  16530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16531. SUMMARY_audio="${SUMMARY_audio} sndio"
  16532. fi
  16533. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16534. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16535. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16536. have_audio=yes
  16537. fi
  16538. fi
  16539. }
  16540. CheckFusionSound()
  16541. {
  16542. # Check whether --enable-fusionsound was given.
  16543. if test "${enable_fusionsound+set}" = set; then :
  16544. enableval=$enable_fusionsound;
  16545. else
  16546. enable_fusionsound=no
  16547. fi
  16548. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16549. pkg_failed=no
  16550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16551. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16552. if test -n "$FUSIONSOUND_CFLAGS"; then
  16553. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16554. elif test -n "$PKG_CONFIG"; then
  16555. if test -n "$PKG_CONFIG" && \
  16556. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16557. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16558. ac_status=$?
  16559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16560. test $ac_status = 0; }; then
  16561. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16562. else
  16563. pkg_failed=yes
  16564. fi
  16565. else
  16566. pkg_failed=untried
  16567. fi
  16568. if test -n "$FUSIONSOUND_LIBS"; then
  16569. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16570. elif test -n "$PKG_CONFIG"; then
  16571. if test -n "$PKG_CONFIG" && \
  16572. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16573. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16574. ac_status=$?
  16575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16576. test $ac_status = 0; }; then
  16577. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16578. else
  16579. pkg_failed=yes
  16580. fi
  16581. else
  16582. pkg_failed=untried
  16583. fi
  16584. if test $pkg_failed = yes; then
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16586. $as_echo "no" >&6; }
  16587. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16588. _pkg_short_errors_supported=yes
  16589. else
  16590. _pkg_short_errors_supported=no
  16591. fi
  16592. if test $_pkg_short_errors_supported = yes; then
  16593. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16594. else
  16595. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16596. fi
  16597. # Put the nasty error message in config.log where it belongs
  16598. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16599. fusionsound=no
  16600. elif test $pkg_failed = untried; then
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16602. $as_echo "no" >&6; }
  16603. fusionsound=no
  16604. else
  16605. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16606. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16608. $as_echo "yes" >&6; }
  16609. fusionsound=yes
  16610. fi
  16611. if test x$fusionsound = xyes; then
  16612. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16613. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16614. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16615. # Check whether --enable-fusionsound-shared was given.
  16616. if test "${enable_fusionsound_shared+set}" = set; then :
  16617. enableval=$enable_fusionsound_shared;
  16618. else
  16619. enable_fusionsound_shared=yes
  16620. fi
  16621. fusionsound_shared=no
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16623. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16624. if test x$have_loadso != xyes && \
  16625. test x$enable_fusionsound_shared = xyes; then
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16627. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16628. fi
  16629. if test x$have_loadso = xyes && \
  16630. test x$enable_fusionsound_shared = xyes; then
  16631. cat >>confdefs.h <<_ACEOF
  16632. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16633. _ACEOF
  16634. fusionsound_shared=yes
  16635. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16636. else
  16637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16638. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16639. fi
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16641. $as_echo "$fusionsound_shared" >&6; }
  16642. have_audio=yes
  16643. fi
  16644. fi
  16645. }
  16646. CheckDiskAudio()
  16647. {
  16648. # Check whether --enable-diskaudio was given.
  16649. if test "${enable_diskaudio+set}" = set; then :
  16650. enableval=$enable_diskaudio;
  16651. else
  16652. enable_diskaudio=yes
  16653. fi
  16654. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16655. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16656. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16657. SUMMARY_audio="${SUMMARY_audio} disk"
  16658. fi
  16659. }
  16660. CheckDummyAudio()
  16661. {
  16662. # Check whether --enable-dummyaudio was given.
  16663. if test "${enable_dummyaudio+set}" = set; then :
  16664. enableval=$enable_dummyaudio;
  16665. else
  16666. enable_dummyaudio=yes
  16667. fi
  16668. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16669. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16670. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16671. SUMMARY_audio="${SUMMARY_audio} dummy"
  16672. fi
  16673. }
  16674. CheckLibSampleRate()
  16675. {
  16676. # Check whether --enable-libsamplerate was given.
  16677. if test "${enable_libsamplerate+set}" = set; then :
  16678. enableval=$enable_libsamplerate;
  16679. else
  16680. enable_libsamplerate=yes
  16681. fi
  16682. if test x$enable_libsamplerate = xyes; then
  16683. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16684. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16685. have_samplerate_h_hdr=yes
  16686. else
  16687. have_samplerate_h_hdr=no
  16688. fi
  16689. if test x$have_samplerate_h_hdr = xyes; then
  16690. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16691. # Check whether --enable-libsamplerate-shared was given.
  16692. if test "${enable_libsamplerate_shared+set}" = set; then :
  16693. enableval=$enable_libsamplerate_shared;
  16694. else
  16695. enable_libsamplerate_shared=yes
  16696. fi
  16697. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16698. if test x$have_loadso != xyes && \
  16699. test x$enable_libsamplerate_shared = xyes; then
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16701. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16702. fi
  16703. if test x$have_loadso = xyes && \
  16704. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16705. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16706. cat >>confdefs.h <<_ACEOF
  16707. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16708. _ACEOF
  16709. else
  16710. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16711. fi
  16712. fi
  16713. fi
  16714. }
  16715. CheckARM()
  16716. {
  16717. # Check whether --enable-arm-simd was given.
  16718. if test "${enable_arm_simd+set}" = set; then :
  16719. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16720. else
  16721. enable_arm_simd=yes
  16722. fi
  16723. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16724. save_CFLAGS="$CFLAGS"
  16725. have_arm_simd=no
  16726. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16728. $as_echo_n "checking for ARM SIMD... " >&6; }
  16729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16730. /* end confdefs.h. */
  16731. .text
  16732. .arch armv6
  16733. .object_arch armv4
  16734. .arm
  16735. .altmacro
  16736. #ifndef __ARM_EABI__
  16737. #error EABI is required (to be sure that calling conventions are compatible)
  16738. #endif
  16739. pld [r0]
  16740. uqadd8 r0, r0, r0
  16741. _ACEOF
  16742. if ac_fn_c_try_compile "$LINENO"; then :
  16743. have_arm_simd=yes
  16744. fi
  16745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16747. $as_echo "$have_arm_simd" >&6; }
  16748. CFLAGS="$save_CFLAGS"
  16749. if test x$have_arm_simd = xyes; then
  16750. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16751. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16752. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16753. fi
  16754. fi
  16755. }
  16756. CheckNEON()
  16757. {
  16758. # Check whether --enable-arm-neon was given.
  16759. if test "${enable_arm_neon+set}" = set; then :
  16760. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16761. else
  16762. enable_arm_neon=no
  16763. fi
  16764. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16765. save_CFLAGS="$CFLAGS"
  16766. have_arm_neon=no
  16767. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16769. $as_echo_n "checking for ARM NEON... " >&6; }
  16770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16771. /* end confdefs.h. */
  16772. .text
  16773. .fpu neon
  16774. .arch armv7a
  16775. .object_arch armv4
  16776. .eabi_attribute 10, 0
  16777. .arm
  16778. .altmacro
  16779. #ifndef __ARM_EABI__
  16780. #error EABI is required (to be sure that calling conventions are compatible)
  16781. #endif
  16782. pld [r0]
  16783. vmovn.u16 d0, q0
  16784. _ACEOF
  16785. if ac_fn_c_try_compile "$LINENO"; then :
  16786. have_arm_neon=yes
  16787. fi
  16788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16790. $as_echo "$have_arm_neon" >&6; }
  16791. CFLAGS="$save_CFLAGS"
  16792. if test x$have_arm_neon = xyes; then
  16793. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16794. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16795. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16796. fi
  16797. fi
  16798. }
  16799. CheckVisibilityHidden()
  16800. {
  16801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16802. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16803. have_gcc_fvisibility=no
  16804. visibility_CFLAGS="-fvisibility=hidden"
  16805. save_CFLAGS="$CFLAGS"
  16806. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16808. /* end confdefs.h. */
  16809. #if !defined(__GNUC__) || __GNUC__ < 4
  16810. #error SDL only uses visibility attributes in GCC 4 or newer
  16811. #endif
  16812. int
  16813. main ()
  16814. {
  16815. ;
  16816. return 0;
  16817. }
  16818. _ACEOF
  16819. if ac_fn_c_try_compile "$LINENO"; then :
  16820. have_gcc_fvisibility=yes
  16821. fi
  16822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16824. $as_echo "$have_gcc_fvisibility" >&6; }
  16825. CFLAGS="$save_CFLAGS"
  16826. if test x$have_gcc_fvisibility = xyes; then
  16827. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16828. fi
  16829. }
  16830. CheckNoStrictAliasing()
  16831. {
  16832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16833. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16834. have_gcc_no_strict_aliasing=no
  16835. save_CFLAGS="$CFLAGS"
  16836. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16838. /* end confdefs.h. */
  16839. int x = 0;
  16840. int
  16841. main ()
  16842. {
  16843. ;
  16844. return 0;
  16845. }
  16846. _ACEOF
  16847. if ac_fn_c_try_compile "$LINENO"; then :
  16848. have_gcc_no_strict_aliasing=yes
  16849. fi
  16850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16852. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16853. CFLAGS="$save_CFLAGS"
  16854. if test x$have_gcc_no_strict_aliasing = xyes; then
  16855. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16856. fi
  16857. }
  16858. CheckStackBoundary()
  16859. {
  16860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16861. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16862. have_gcc_preferred_stack_boundary=no
  16863. save_CFLAGS="$CFLAGS"
  16864. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16866. /* end confdefs.h. */
  16867. int x = 0;
  16868. int
  16869. main ()
  16870. {
  16871. ;
  16872. return 0;
  16873. }
  16874. _ACEOF
  16875. if ac_fn_c_try_compile "$LINENO"; then :
  16876. have_gcc_preferred_stack_boundary=yes
  16877. fi
  16878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16880. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16881. CFLAGS="$save_CFLAGS"
  16882. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16883. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16884. fi
  16885. }
  16886. CheckDeclarationAfterStatement()
  16887. {
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16889. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16890. have_gcc_declaration_after_statement=no
  16891. save_CFLAGS="$CFLAGS"
  16892. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16894. /* end confdefs.h. */
  16895. int x = 0;
  16896. int
  16897. main ()
  16898. {
  16899. ;
  16900. return 0;
  16901. }
  16902. _ACEOF
  16903. if ac_fn_c_try_compile "$LINENO"; then :
  16904. have_gcc_declaration_after_statement=yes
  16905. fi
  16906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16908. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16909. CFLAGS="$save_CFLAGS"
  16910. if test x$have_gcc_declaration_after_statement = xyes; then
  16911. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16912. fi
  16913. }
  16914. CheckWarnAll()
  16915. {
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16917. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16918. have_gcc_Wall=no
  16919. save_CFLAGS="$CFLAGS"
  16920. CFLAGS="$save_CFLAGS -Wall"
  16921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16922. /* end confdefs.h. */
  16923. int x = 0;
  16924. int
  16925. main ()
  16926. {
  16927. ;
  16928. return 0;
  16929. }
  16930. _ACEOF
  16931. if ac_fn_c_try_compile "$LINENO"; then :
  16932. have_gcc_Wall=yes
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16936. $as_echo "$have_gcc_Wall" >&6; }
  16937. CFLAGS="$save_CFLAGS"
  16938. if test x$have_gcc_Wall = xyes; then
  16939. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16941. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16942. need_gcc_Wno_multichar=no
  16943. case "$host" in
  16944. *-*-haiku*)
  16945. need_gcc_Wno_multichar=yes
  16946. ;;
  16947. esac
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16949. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16950. if test x$need_gcc_Wno_multichar = xyes; then
  16951. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16952. fi
  16953. fi
  16954. }
  16955. CheckWayland()
  16956. {
  16957. # Check whether --enable-video-wayland was given.
  16958. if test "${enable_video_wayland+set}" = set; then :
  16959. enableval=$enable_video_wayland;
  16960. else
  16961. enable_video_wayland=yes
  16962. fi
  16963. # Check whether --enable-video-wayland-qt-touch was given.
  16964. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16965. enableval=$enable_video_wayland_qt_touch;
  16966. else
  16967. enable_video_wayland_qt_touch=yes
  16968. fi
  16969. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16971. $as_echo_n "checking for Wayland support... " >&6; }
  16972. video_wayland=no
  16973. if test x$video_opengl_egl = xyes && \
  16974. test x$video_opengles_v2 = xyes; then
  16975. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16976. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16977. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16978. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16979. video_wayland=yes
  16980. fi
  16981. fi
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16983. $as_echo "$video_wayland" >&6; }
  16984. if test x$video_wayland = xyes; then
  16985. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16986. if test x$enable_video_wayland_qt_touch = xyes; then
  16987. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16988. fi
  16989. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16990. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16991. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16992. # Check whether --enable-wayland-shared was given.
  16993. if test "${enable_wayland_shared+set}" = set; then :
  16994. enableval=$enable_wayland_shared;
  16995. else
  16996. enable_wayland_shared=maybe
  16997. fi
  16998. case "$host" in
  16999. *)
  17000. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17001. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17002. if test x$wayland_egl_lib = x; then
  17003. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17004. fi
  17005. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17006. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17007. ;;
  17008. esac
  17009. if test x$enable_wayland_shared = xmaybe; then
  17010. enable_wayland_shared=yes
  17011. fi
  17012. if test x$have_loadso != xyes && \
  17013. test x$enable_wayland_shared = xyes; then
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17015. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17016. enable_wayland_shared=no
  17017. fi
  17018. if test x$have_loadso = xyes && \
  17019. test x$enable_wayland_shared = xyes && \
  17020. test x$wayland_client_lib != x && \
  17021. test x$wayland_egl_lib != x && \
  17022. test x$wayland_cursor_lib != x && \
  17023. test x$xkbcommon_lib != x; then
  17024. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17025. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17026. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17027. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17028. cat >>confdefs.h <<_ACEOF
  17029. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17030. _ACEOF
  17031. cat >>confdefs.h <<_ACEOF
  17032. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17033. _ACEOF
  17034. cat >>confdefs.h <<_ACEOF
  17035. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17036. _ACEOF
  17037. cat >>confdefs.h <<_ACEOF
  17038. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17039. _ACEOF
  17040. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17041. else
  17042. enable_wayland_shared=no
  17043. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17044. SUMMARY_video="${SUMMARY_video} wayland"
  17045. fi
  17046. have_video=yes
  17047. fi
  17048. fi
  17049. }
  17050. CheckNativeClient()
  17051. {
  17052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17053. /* end confdefs.h. */
  17054. #if !defined(__native_client__)
  17055. #error "NO NACL"
  17056. #endif
  17057. int
  17058. main ()
  17059. {
  17060. ;
  17061. return 0;
  17062. }
  17063. _ACEOF
  17064. if ac_fn_c_try_compile "$LINENO"; then :
  17065. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17066. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17067. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17068. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17069. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17070. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17071. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17072. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17073. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17074. SUMMARY_audio="${SUMMARY_audio} nacl"
  17075. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17076. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17077. fi
  17078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17079. }
  17080. CheckRPI()
  17081. {
  17082. # Check whether --enable-video-rpi was given.
  17083. if test "${enable_video_rpi+set}" = set; then :
  17084. enableval=$enable_video_rpi;
  17085. else
  17086. enable_video_rpi=yes
  17087. fi
  17088. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17089. pkg_failed=no
  17090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17091. $as_echo_n "checking for RPI... " >&6; }
  17092. if test -n "$RPI_CFLAGS"; then
  17093. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17094. elif test -n "$PKG_CONFIG"; then
  17095. if test -n "$PKG_CONFIG" && \
  17096. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17097. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17098. ac_status=$?
  17099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17100. test $ac_status = 0; }; then
  17101. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17102. else
  17103. pkg_failed=yes
  17104. fi
  17105. else
  17106. pkg_failed=untried
  17107. fi
  17108. if test -n "$RPI_LIBS"; then
  17109. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17110. elif test -n "$PKG_CONFIG"; then
  17111. if test -n "$PKG_CONFIG" && \
  17112. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17113. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17114. ac_status=$?
  17115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17116. test $ac_status = 0; }; then
  17117. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17118. else
  17119. pkg_failed=yes
  17120. fi
  17121. else
  17122. pkg_failed=untried
  17123. fi
  17124. if test $pkg_failed = yes; then
  17125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17126. $as_echo "no" >&6; }
  17127. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17128. _pkg_short_errors_supported=yes
  17129. else
  17130. _pkg_short_errors_supported=no
  17131. fi
  17132. if test $_pkg_short_errors_supported = yes; then
  17133. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17134. else
  17135. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17136. fi
  17137. # Put the nasty error message in config.log where it belongs
  17138. echo "$RPI_PKG_ERRORS" >&5
  17139. video_rpi=no
  17140. elif test $pkg_failed = untried; then
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17142. $as_echo "no" >&6; }
  17143. video_rpi=no
  17144. else
  17145. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17146. RPI_LIBS=$pkg_cv_RPI_LIBS
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17148. $as_echo "yes" >&6; }
  17149. video_rpi=yes
  17150. fi
  17151. if test x$video_rpi = xno; then
  17152. if test x$ARCH = xnetbsd; then
  17153. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17154. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17155. else
  17156. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17157. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17158. fi
  17159. fi
  17160. # Save the original compiler flags and libraries
  17161. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17162. # Add the Raspberry Pi compiler flags and libraries
  17163. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17165. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17166. have_video_rpi=no
  17167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17168. /* end confdefs.h. */
  17169. #include <bcm_host.h>
  17170. int
  17171. main ()
  17172. {
  17173. bcm_host_init();
  17174. ;
  17175. return 0;
  17176. }
  17177. _ACEOF
  17178. if ac_fn_c_try_link "$LINENO"; then :
  17179. have_video_rpi=yes
  17180. fi
  17181. rm -f core conftest.err conftest.$ac_objext \
  17182. conftest$ac_exeext conftest.$ac_ext
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17184. $as_echo "$have_video_rpi" >&6; }
  17185. # Restore the compiler flags and libraries
  17186. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17187. if test x$have_video_rpi = xyes; then
  17188. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17189. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17190. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17191. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17192. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17193. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17194. SUMMARY_video="${SUMMARY_video} rpi"
  17195. fi
  17196. fi
  17197. }
  17198. CheckX11()
  17199. {
  17200. # Check whether --enable-video-x11 was given.
  17201. if test "${enable_video_x11+set}" = set; then :
  17202. enableval=$enable_video_x11;
  17203. else
  17204. enable_video_x11=yes
  17205. fi
  17206. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17207. case "$host" in
  17208. *-*-darwin*)
  17209. # This isn't necessary for X11, but fixes GLX detection
  17210. if test "x$x_includes" = xNONE && \
  17211. test "x$x_libraries" = xNONE && \
  17212. test -d /opt/X11/include && \
  17213. test -d /opt/X11/lib; then
  17214. x_includes="/opt/X11/include"
  17215. x_libraries="/opt/X11/lib"
  17216. fi
  17217. ;;
  17218. esac
  17219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17220. $as_echo_n "checking for X... " >&6; }
  17221. # Check whether --with-x was given.
  17222. if test "${with_x+set}" = set; then :
  17223. withval=$with_x;
  17224. fi
  17225. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17226. if test "x$with_x" = xno; then
  17227. # The user explicitly disabled X.
  17228. have_x=disabled
  17229. else
  17230. case $x_includes,$x_libraries in #(
  17231. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17232. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17233. $as_echo_n "(cached) " >&6
  17234. else
  17235. # One or both of the vars are not set, and there is no cached value.
  17236. ac_x_includes=no ac_x_libraries=no
  17237. rm -f -r conftest.dir
  17238. if mkdir conftest.dir; then
  17239. cd conftest.dir
  17240. cat >Imakefile <<'_ACEOF'
  17241. incroot:
  17242. @echo incroot='${INCROOT}'
  17243. usrlibdir:
  17244. @echo usrlibdir='${USRLIBDIR}'
  17245. libdir:
  17246. @echo libdir='${LIBDIR}'
  17247. _ACEOF
  17248. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17249. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17250. for ac_var in incroot usrlibdir libdir; do
  17251. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17252. done
  17253. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17254. for ac_extension in a so sl dylib la dll; do
  17255. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17256. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17257. ac_im_usrlibdir=$ac_im_libdir; break
  17258. fi
  17259. done
  17260. # Screen out bogus values from the imake configuration. They are
  17261. # bogus both because they are the default anyway, and because
  17262. # using them would break gcc on systems where it needs fixed includes.
  17263. case $ac_im_incroot in
  17264. /usr/include) ac_x_includes= ;;
  17265. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17266. esac
  17267. case $ac_im_usrlibdir in
  17268. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17269. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17270. esac
  17271. fi
  17272. cd ..
  17273. rm -f -r conftest.dir
  17274. fi
  17275. # Standard set of common directories for X headers.
  17276. # Check X11 before X11Rn because it is often a symlink to the current release.
  17277. ac_x_header_dirs='
  17278. /usr/X11/include
  17279. /usr/X11R7/include
  17280. /usr/X11R6/include
  17281. /usr/X11R5/include
  17282. /usr/X11R4/include
  17283. /usr/include/X11
  17284. /usr/include/X11R7
  17285. /usr/include/X11R6
  17286. /usr/include/X11R5
  17287. /usr/include/X11R4
  17288. /usr/local/X11/include
  17289. /usr/local/X11R7/include
  17290. /usr/local/X11R6/include
  17291. /usr/local/X11R5/include
  17292. /usr/local/X11R4/include
  17293. /usr/local/include/X11
  17294. /usr/local/include/X11R7
  17295. /usr/local/include/X11R6
  17296. /usr/local/include/X11R5
  17297. /usr/local/include/X11R4
  17298. /usr/X386/include
  17299. /usr/x386/include
  17300. /usr/XFree86/include/X11
  17301. /usr/include
  17302. /usr/local/include
  17303. /usr/unsupported/include
  17304. /usr/athena/include
  17305. /usr/local/x11r5/include
  17306. /usr/lpp/Xamples/include
  17307. /usr/openwin/include
  17308. /usr/openwin/share/include'
  17309. if test "$ac_x_includes" = no; then
  17310. # Guess where to find include files, by looking for Xlib.h.
  17311. # First, try using that file with no special directory specified.
  17312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17313. /* end confdefs.h. */
  17314. #include <X11/Xlib.h>
  17315. _ACEOF
  17316. if ac_fn_c_try_cpp "$LINENO"; then :
  17317. # We can compile using X headers with no special include directory.
  17318. ac_x_includes=
  17319. else
  17320. for ac_dir in $ac_x_header_dirs; do
  17321. if test -r "$ac_dir/X11/Xlib.h"; then
  17322. ac_x_includes=$ac_dir
  17323. break
  17324. fi
  17325. done
  17326. fi
  17327. rm -f conftest.err conftest.i conftest.$ac_ext
  17328. fi # $ac_x_includes = no
  17329. if test "$ac_x_libraries" = no; then
  17330. # Check for the libraries.
  17331. # See if we find them without any special options.
  17332. # Don't add to $LIBS permanently.
  17333. ac_save_LIBS=$LIBS
  17334. LIBS="-lX11 $LIBS"
  17335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17336. /* end confdefs.h. */
  17337. #include <X11/Xlib.h>
  17338. int
  17339. main ()
  17340. {
  17341. XrmInitialize ()
  17342. ;
  17343. return 0;
  17344. }
  17345. _ACEOF
  17346. if ac_fn_c_try_link "$LINENO"; then :
  17347. LIBS=$ac_save_LIBS
  17348. # We can link X programs with no special library path.
  17349. ac_x_libraries=
  17350. else
  17351. LIBS=$ac_save_LIBS
  17352. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17353. do
  17354. # Don't even attempt the hair of trying to link an X program!
  17355. for ac_extension in a so sl dylib la dll; do
  17356. if test -r "$ac_dir/libX11.$ac_extension"; then
  17357. ac_x_libraries=$ac_dir
  17358. break 2
  17359. fi
  17360. done
  17361. done
  17362. fi
  17363. rm -f core conftest.err conftest.$ac_objext \
  17364. conftest$ac_exeext conftest.$ac_ext
  17365. fi # $ac_x_libraries = no
  17366. case $ac_x_includes,$ac_x_libraries in #(
  17367. no,* | *,no | *\'*)
  17368. # Didn't find X, or a directory has "'" in its name.
  17369. ac_cv_have_x="have_x=no";; #(
  17370. *)
  17371. # Record where we found X for the cache.
  17372. ac_cv_have_x="have_x=yes\
  17373. ac_x_includes='$ac_x_includes'\
  17374. ac_x_libraries='$ac_x_libraries'"
  17375. esac
  17376. fi
  17377. ;; #(
  17378. *) have_x=yes;;
  17379. esac
  17380. eval "$ac_cv_have_x"
  17381. fi # $with_x != no
  17382. if test "$have_x" != yes; then
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17384. $as_echo "$have_x" >&6; }
  17385. no_x=yes
  17386. else
  17387. # If each of the values was on the command line, it overrides each guess.
  17388. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17389. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17390. # Update the cache value to reflect the command line values.
  17391. ac_cv_have_x="have_x=yes\
  17392. ac_x_includes='$x_includes'\
  17393. ac_x_libraries='$x_libraries'"
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17395. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17396. fi
  17397. if test "$no_x" = yes; then
  17398. # Not all programs may use this symbol, but it does not hurt to define it.
  17399. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17400. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17401. else
  17402. if test -n "$x_includes"; then
  17403. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17404. fi
  17405. # It would also be nice to do this for all -L options, not just this one.
  17406. if test -n "$x_libraries"; then
  17407. X_LIBS="$X_LIBS -L$x_libraries"
  17408. # For Solaris; some versions of Sun CC require a space after -R and
  17409. # others require no space. Words are not sufficient . . . .
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17411. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17412. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17413. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17414. ac_c_werror_flag=yes
  17415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17416. /* end confdefs.h. */
  17417. int
  17418. main ()
  17419. {
  17420. ;
  17421. return 0;
  17422. }
  17423. _ACEOF
  17424. if ac_fn_c_try_link "$LINENO"; then :
  17425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17426. $as_echo "no" >&6; }
  17427. X_LIBS="$X_LIBS -R$x_libraries"
  17428. else
  17429. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17431. /* end confdefs.h. */
  17432. int
  17433. main ()
  17434. {
  17435. ;
  17436. return 0;
  17437. }
  17438. _ACEOF
  17439. if ac_fn_c_try_link "$LINENO"; then :
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17441. $as_echo "yes" >&6; }
  17442. X_LIBS="$X_LIBS -R $x_libraries"
  17443. else
  17444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17445. $as_echo "neither works" >&6; }
  17446. fi
  17447. rm -f core conftest.err conftest.$ac_objext \
  17448. conftest$ac_exeext conftest.$ac_ext
  17449. fi
  17450. rm -f core conftest.err conftest.$ac_objext \
  17451. conftest$ac_exeext conftest.$ac_ext
  17452. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17453. LIBS=$ac_xsave_LIBS
  17454. fi
  17455. # Check for system-dependent libraries X programs must link with.
  17456. # Do this before checking for the system-independent R6 libraries
  17457. # (-lICE), since we may need -lsocket or whatever for X linking.
  17458. if test "$ISC" = yes; then
  17459. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17460. else
  17461. # Martyn Johnson says this is needed for Ultrix, if the X
  17462. # libraries were built with DECnet support. And Karl Berry says
  17463. # the Alpha needs dnet_stub (dnet does not exist).
  17464. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17466. /* end confdefs.h. */
  17467. /* Override any GCC internal prototype to avoid an error.
  17468. Use char because int might match the return type of a GCC
  17469. builtin and then its argument prototype would still apply. */
  17470. #ifdef __cplusplus
  17471. extern "C"
  17472. #endif
  17473. char XOpenDisplay ();
  17474. int
  17475. main ()
  17476. {
  17477. return XOpenDisplay ();
  17478. ;
  17479. return 0;
  17480. }
  17481. _ACEOF
  17482. if ac_fn_c_try_link "$LINENO"; then :
  17483. else
  17484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17485. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17486. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17487. $as_echo_n "(cached) " >&6
  17488. else
  17489. ac_check_lib_save_LIBS=$LIBS
  17490. LIBS="-ldnet $LIBS"
  17491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17492. /* end confdefs.h. */
  17493. /* Override any GCC internal prototype to avoid an error.
  17494. Use char because int might match the return type of a GCC
  17495. builtin and then its argument prototype would still apply. */
  17496. #ifdef __cplusplus
  17497. extern "C"
  17498. #endif
  17499. char dnet_ntoa ();
  17500. int
  17501. main ()
  17502. {
  17503. return dnet_ntoa ();
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_link "$LINENO"; then :
  17509. ac_cv_lib_dnet_dnet_ntoa=yes
  17510. else
  17511. ac_cv_lib_dnet_dnet_ntoa=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext \
  17514. conftest$ac_exeext conftest.$ac_ext
  17515. LIBS=$ac_check_lib_save_LIBS
  17516. fi
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17518. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17519. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17520. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17521. fi
  17522. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17524. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17525. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17526. $as_echo_n "(cached) " >&6
  17527. else
  17528. ac_check_lib_save_LIBS=$LIBS
  17529. LIBS="-ldnet_stub $LIBS"
  17530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17531. /* end confdefs.h. */
  17532. /* Override any GCC internal prototype to avoid an error.
  17533. Use char because int might match the return type of a GCC
  17534. builtin and then its argument prototype would still apply. */
  17535. #ifdef __cplusplus
  17536. extern "C"
  17537. #endif
  17538. char dnet_ntoa ();
  17539. int
  17540. main ()
  17541. {
  17542. return dnet_ntoa ();
  17543. ;
  17544. return 0;
  17545. }
  17546. _ACEOF
  17547. if ac_fn_c_try_link "$LINENO"; then :
  17548. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17549. else
  17550. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext \
  17553. conftest$ac_exeext conftest.$ac_ext
  17554. LIBS=$ac_check_lib_save_LIBS
  17555. fi
  17556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17557. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17558. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17559. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17560. fi
  17561. fi
  17562. fi
  17563. rm -f core conftest.err conftest.$ac_objext \
  17564. conftest$ac_exeext conftest.$ac_ext
  17565. LIBS="$ac_xsave_LIBS"
  17566. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17567. # to get the SysV transport functions.
  17568. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17569. # needs -lnsl.
  17570. # The nsl library prevents programs from opening the X display
  17571. # on Irix 5.2, according to T.E. Dickey.
  17572. # The functions gethostbyname, getservbyname, and inet_addr are
  17573. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17574. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17575. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17576. fi
  17577. if test $ac_cv_func_gethostbyname = no; then
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17579. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17580. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17581. $as_echo_n "(cached) " >&6
  17582. else
  17583. ac_check_lib_save_LIBS=$LIBS
  17584. LIBS="-lnsl $LIBS"
  17585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17586. /* end confdefs.h. */
  17587. /* Override any GCC internal prototype to avoid an error.
  17588. Use char because int might match the return type of a GCC
  17589. builtin and then its argument prototype would still apply. */
  17590. #ifdef __cplusplus
  17591. extern "C"
  17592. #endif
  17593. char gethostbyname ();
  17594. int
  17595. main ()
  17596. {
  17597. return gethostbyname ();
  17598. ;
  17599. return 0;
  17600. }
  17601. _ACEOF
  17602. if ac_fn_c_try_link "$LINENO"; then :
  17603. ac_cv_lib_nsl_gethostbyname=yes
  17604. else
  17605. ac_cv_lib_nsl_gethostbyname=no
  17606. fi
  17607. rm -f core conftest.err conftest.$ac_objext \
  17608. conftest$ac_exeext conftest.$ac_ext
  17609. LIBS=$ac_check_lib_save_LIBS
  17610. fi
  17611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17612. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17613. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17614. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17615. fi
  17616. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17618. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17619. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17620. $as_echo_n "(cached) " >&6
  17621. else
  17622. ac_check_lib_save_LIBS=$LIBS
  17623. LIBS="-lbsd $LIBS"
  17624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17625. /* end confdefs.h. */
  17626. /* Override any GCC internal prototype to avoid an error.
  17627. Use char because int might match the return type of a GCC
  17628. builtin and then its argument prototype would still apply. */
  17629. #ifdef __cplusplus
  17630. extern "C"
  17631. #endif
  17632. char gethostbyname ();
  17633. int
  17634. main ()
  17635. {
  17636. return gethostbyname ();
  17637. ;
  17638. return 0;
  17639. }
  17640. _ACEOF
  17641. if ac_fn_c_try_link "$LINENO"; then :
  17642. ac_cv_lib_bsd_gethostbyname=yes
  17643. else
  17644. ac_cv_lib_bsd_gethostbyname=no
  17645. fi
  17646. rm -f core conftest.err conftest.$ac_objext \
  17647. conftest$ac_exeext conftest.$ac_ext
  17648. LIBS=$ac_check_lib_save_LIBS
  17649. fi
  17650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17651. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17652. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17653. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17654. fi
  17655. fi
  17656. fi
  17657. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17658. # socket/setsockopt and other routines are undefined under SCO ODT
  17659. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17660. # on later versions), says Simon Leinen: it contains gethostby*
  17661. # variants that don't use the name server (or something). -lsocket
  17662. # must be given before -lnsl if both are needed. We assume that
  17663. # if connect needs -lnsl, so does gethostbyname.
  17664. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17665. if test "x$ac_cv_func_connect" = xyes; then :
  17666. fi
  17667. if test $ac_cv_func_connect = no; then
  17668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17669. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17670. if ${ac_cv_lib_socket_connect+:} false; then :
  17671. $as_echo_n "(cached) " >&6
  17672. else
  17673. ac_check_lib_save_LIBS=$LIBS
  17674. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17676. /* end confdefs.h. */
  17677. /* Override any GCC internal prototype to avoid an error.
  17678. Use char because int might match the return type of a GCC
  17679. builtin and then its argument prototype would still apply. */
  17680. #ifdef __cplusplus
  17681. extern "C"
  17682. #endif
  17683. char connect ();
  17684. int
  17685. main ()
  17686. {
  17687. return connect ();
  17688. ;
  17689. return 0;
  17690. }
  17691. _ACEOF
  17692. if ac_fn_c_try_link "$LINENO"; then :
  17693. ac_cv_lib_socket_connect=yes
  17694. else
  17695. ac_cv_lib_socket_connect=no
  17696. fi
  17697. rm -f core conftest.err conftest.$ac_objext \
  17698. conftest$ac_exeext conftest.$ac_ext
  17699. LIBS=$ac_check_lib_save_LIBS
  17700. fi
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17702. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17703. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17704. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17705. fi
  17706. fi
  17707. # Guillermo Gomez says -lposix is necessary on A/UX.
  17708. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17709. if test "x$ac_cv_func_remove" = xyes; then :
  17710. fi
  17711. if test $ac_cv_func_remove = no; then
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17713. $as_echo_n "checking for remove in -lposix... " >&6; }
  17714. if ${ac_cv_lib_posix_remove+:} false; then :
  17715. $as_echo_n "(cached) " >&6
  17716. else
  17717. ac_check_lib_save_LIBS=$LIBS
  17718. LIBS="-lposix $LIBS"
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. /* Override any GCC internal prototype to avoid an error.
  17722. Use char because int might match the return type of a GCC
  17723. builtin and then its argument prototype would still apply. */
  17724. #ifdef __cplusplus
  17725. extern "C"
  17726. #endif
  17727. char remove ();
  17728. int
  17729. main ()
  17730. {
  17731. return remove ();
  17732. ;
  17733. return 0;
  17734. }
  17735. _ACEOF
  17736. if ac_fn_c_try_link "$LINENO"; then :
  17737. ac_cv_lib_posix_remove=yes
  17738. else
  17739. ac_cv_lib_posix_remove=no
  17740. fi
  17741. rm -f core conftest.err conftest.$ac_objext \
  17742. conftest$ac_exeext conftest.$ac_ext
  17743. LIBS=$ac_check_lib_save_LIBS
  17744. fi
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17746. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17747. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17748. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17749. fi
  17750. fi
  17751. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17752. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17753. if test "x$ac_cv_func_shmat" = xyes; then :
  17754. fi
  17755. if test $ac_cv_func_shmat = no; then
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17757. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17758. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17759. $as_echo_n "(cached) " >&6
  17760. else
  17761. ac_check_lib_save_LIBS=$LIBS
  17762. LIBS="-lipc $LIBS"
  17763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17764. /* end confdefs.h. */
  17765. /* Override any GCC internal prototype to avoid an error.
  17766. Use char because int might match the return type of a GCC
  17767. builtin and then its argument prototype would still apply. */
  17768. #ifdef __cplusplus
  17769. extern "C"
  17770. #endif
  17771. char shmat ();
  17772. int
  17773. main ()
  17774. {
  17775. return shmat ();
  17776. ;
  17777. return 0;
  17778. }
  17779. _ACEOF
  17780. if ac_fn_c_try_link "$LINENO"; then :
  17781. ac_cv_lib_ipc_shmat=yes
  17782. else
  17783. ac_cv_lib_ipc_shmat=no
  17784. fi
  17785. rm -f core conftest.err conftest.$ac_objext \
  17786. conftest$ac_exeext conftest.$ac_ext
  17787. LIBS=$ac_check_lib_save_LIBS
  17788. fi
  17789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17790. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17791. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17792. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17793. fi
  17794. fi
  17795. fi
  17796. # Check for libraries that X11R6 Xt/Xaw programs need.
  17797. ac_save_LDFLAGS=$LDFLAGS
  17798. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17799. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17800. # check for ICE first), but we must link in the order -lSM -lICE or
  17801. # we get undefined symbols. So assume we have SM if we have ICE.
  17802. # These have to be linked with before -lX11, unlike the other
  17803. # libraries we check for below, so use a different variable.
  17804. # John Interrante, Karl Berry
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17806. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17807. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17808. $as_echo_n "(cached) " >&6
  17809. else
  17810. ac_check_lib_save_LIBS=$LIBS
  17811. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17813. /* end confdefs.h. */
  17814. /* Override any GCC internal prototype to avoid an error.
  17815. Use char because int might match the return type of a GCC
  17816. builtin and then its argument prototype would still apply. */
  17817. #ifdef __cplusplus
  17818. extern "C"
  17819. #endif
  17820. char IceConnectionNumber ();
  17821. int
  17822. main ()
  17823. {
  17824. return IceConnectionNumber ();
  17825. ;
  17826. return 0;
  17827. }
  17828. _ACEOF
  17829. if ac_fn_c_try_link "$LINENO"; then :
  17830. ac_cv_lib_ICE_IceConnectionNumber=yes
  17831. else
  17832. ac_cv_lib_ICE_IceConnectionNumber=no
  17833. fi
  17834. rm -f core conftest.err conftest.$ac_objext \
  17835. conftest$ac_exeext conftest.$ac_ext
  17836. LIBS=$ac_check_lib_save_LIBS
  17837. fi
  17838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17839. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17840. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17841. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17842. fi
  17843. LDFLAGS=$ac_save_LDFLAGS
  17844. fi
  17845. if test x$have_x = xyes; then
  17846. # Check whether --enable-x11-shared was given.
  17847. if test "${enable_x11_shared+set}" = set; then :
  17848. enableval=$enable_x11_shared;
  17849. else
  17850. enable_x11_shared=maybe
  17851. fi
  17852. case "$host" in
  17853. *-*-darwin*)
  17854. # Apple now puts this in /opt/X11
  17855. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17856. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17857. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17858. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17859. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17860. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17861. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17862. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17863. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17864. ;;
  17865. *-*-openbsd*)
  17866. x11_lib='libX11.so'
  17867. x11ext_lib='libXext.so'
  17868. xcursor_lib='libXcursor.so'
  17869. xinerama_lib='libXinerama.so'
  17870. xinput_lib='libXi.so'
  17871. xrandr_lib='libXrandr.so'
  17872. xrender_lib='libXrender.so'
  17873. xss_lib='libXss.so'
  17874. xvidmode_lib='libXxf86vm.so'
  17875. ;;
  17876. *)
  17877. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17878. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17879. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17880. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17881. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17882. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17883. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17884. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17885. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17886. ;;
  17887. esac
  17888. if test x$ac_cv_func_shmat != xyes; then
  17889. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17890. fi
  17891. CFLAGS="$CFLAGS $X_CFLAGS"
  17892. LDFLAGS="$LDFLAGS $X_LIBS"
  17893. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17894. #include <X11/Xproto.h>
  17895. "
  17896. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17897. have_xext_h_hdr=yes
  17898. else
  17899. have_xext_h_hdr=no
  17900. fi
  17901. if test x$have_xext_h_hdr != xyes; then
  17902. as_fn_error $? "
  17903. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17904. " "$LINENO" 5
  17905. fi
  17906. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17907. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17908. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17909. # Needed so SDL applications can include SDL_syswm.h
  17910. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17911. if test x$enable_x11_shared = xmaybe; then
  17912. enable_x11_shared=yes
  17913. fi
  17914. if test x$have_loadso != xyes && \
  17915. test x$enable_x11_shared = xyes; then
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17917. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17918. enable_x11_shared=no
  17919. fi
  17920. if test x$have_loadso = xyes && \
  17921. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17922. echo "-- dynamic libX11 -> $x11_lib"
  17923. echo "-- dynamic libX11ext -> $x11ext_lib"
  17924. cat >>confdefs.h <<_ACEOF
  17925. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17926. _ACEOF
  17927. cat >>confdefs.h <<_ACEOF
  17928. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17929. _ACEOF
  17930. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17931. else
  17932. enable_x11_shared=no
  17933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17934. SUMMARY_video="${SUMMARY_video} x11"
  17935. fi
  17936. have_video=yes
  17937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17938. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17939. have_const_param_XextAddDisplay=no
  17940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17941. /* end confdefs.h. */
  17942. #include <X11/Xlib.h>
  17943. #include <X11/Xproto.h>
  17944. #include <X11/extensions/Xext.h>
  17945. #include <X11/extensions/extutil.h>
  17946. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17947. int
  17948. main ()
  17949. {
  17950. ;
  17951. return 0;
  17952. }
  17953. _ACEOF
  17954. if ac_fn_c_try_compile "$LINENO"; then :
  17955. have_const_param_XextAddDisplay=yes
  17956. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17957. fi
  17958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17960. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17962. $as_echo_n "checking for XGenericEvent... " >&6; }
  17963. have_XGenericEvent=no
  17964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17965. /* end confdefs.h. */
  17966. #include <X11/Xlib.h>
  17967. int
  17968. main ()
  17969. {
  17970. Display *display;
  17971. XEvent event;
  17972. XGenericEventCookie *cookie = &event.xcookie;
  17973. XNextEvent(display, &event);
  17974. XGetEventData(display, cookie);
  17975. XFreeEventData(display, cookie);
  17976. ;
  17977. return 0;
  17978. }
  17979. _ACEOF
  17980. if ac_fn_c_try_compile "$LINENO"; then :
  17981. have_XGenericEvent=yes
  17982. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17983. fi
  17984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17986. $as_echo "$have_XGenericEvent" >&6; }
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17988. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17989. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17990. $as_echo_n "(cached) " >&6
  17991. else
  17992. ac_check_lib_save_LIBS=$LIBS
  17993. LIBS="-lX11 $LIBS"
  17994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17995. /* end confdefs.h. */
  17996. /* Override any GCC internal prototype to avoid an error.
  17997. Use char because int might match the return type of a GCC
  17998. builtin and then its argument prototype would still apply. */
  17999. #ifdef __cplusplus
  18000. extern "C"
  18001. #endif
  18002. char XkbKeycodeToKeysym ();
  18003. int
  18004. main ()
  18005. {
  18006. return XkbKeycodeToKeysym ();
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. if ac_fn_c_try_link "$LINENO"; then :
  18012. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18013. else
  18014. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18015. fi
  18016. rm -f core conftest.err conftest.$ac_objext \
  18017. conftest$ac_exeext conftest.$ac_ext
  18018. LIBS=$ac_check_lib_save_LIBS
  18019. fi
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18021. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18022. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18023. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18024. fi
  18025. # Check whether --enable-video-x11-xcursor was given.
  18026. if test "${enable_video_x11_xcursor+set}" = set; then :
  18027. enableval=$enable_video_x11_xcursor;
  18028. else
  18029. enable_video_x11_xcursor=yes
  18030. fi
  18031. if test x$enable_video_x11_xcursor = xyes; then
  18032. definitely_enable_video_x11_xcursor=no
  18033. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18034. "
  18035. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18036. have_xcursor_h_hdr=yes
  18037. else
  18038. have_xcursor_h_hdr=no
  18039. fi
  18040. if test x$have_xcursor_h_hdr = xyes; then
  18041. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18042. echo "-- dynamic libXcursor -> $xcursor_lib"
  18043. cat >>confdefs.h <<_ACEOF
  18044. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18045. _ACEOF
  18046. definitely_enable_video_x11_xcursor=yes
  18047. else
  18048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18049. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18050. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18051. $as_echo_n "(cached) " >&6
  18052. else
  18053. ac_check_lib_save_LIBS=$LIBS
  18054. LIBS="-lXcursor $LIBS"
  18055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18056. /* end confdefs.h. */
  18057. /* Override any GCC internal prototype to avoid an error.
  18058. Use char because int might match the return type of a GCC
  18059. builtin and then its argument prototype would still apply. */
  18060. #ifdef __cplusplus
  18061. extern "C"
  18062. #endif
  18063. char XcursorImageCreate ();
  18064. int
  18065. main ()
  18066. {
  18067. return XcursorImageCreate ();
  18068. ;
  18069. return 0;
  18070. }
  18071. _ACEOF
  18072. if ac_fn_c_try_link "$LINENO"; then :
  18073. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18074. else
  18075. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18076. fi
  18077. rm -f core conftest.err conftest.$ac_objext \
  18078. conftest$ac_exeext conftest.$ac_ext
  18079. LIBS=$ac_check_lib_save_LIBS
  18080. fi
  18081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18082. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18083. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18084. have_xcursor_lib=yes
  18085. fi
  18086. if test x$have_xcursor_lib = xyes ; then
  18087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18088. definitely_enable_video_x11_xcursor=yes
  18089. fi
  18090. fi
  18091. fi
  18092. fi
  18093. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18094. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18095. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18096. fi
  18097. # Check whether --enable-video-x11-xdbe was given.
  18098. if test "${enable_video_x11_xdbe+set}" = set; then :
  18099. enableval=$enable_video_x11_xdbe;
  18100. else
  18101. enable_video_x11_xdbe=yes
  18102. fi
  18103. if test x$enable_video_x11_xdbe = xyes; then
  18104. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18105. "
  18106. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18107. have_dbe_h_hdr=yes
  18108. else
  18109. have_dbe_h_hdr=no
  18110. fi
  18111. if test x$have_dbe_h_hdr = xyes; then
  18112. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18113. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18114. fi
  18115. fi
  18116. # Check whether --enable-video-x11-xinerama was given.
  18117. if test "${enable_video_x11_xinerama+set}" = set; then :
  18118. enableval=$enable_video_x11_xinerama;
  18119. else
  18120. enable_video_x11_xinerama=yes
  18121. fi
  18122. if test x$enable_video_x11_xinerama = xyes; then
  18123. definitely_enable_video_x11_xinerama=no
  18124. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18125. "
  18126. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18127. have_xinerama_h_hdr=yes
  18128. else
  18129. have_xinerama_h_hdr=no
  18130. fi
  18131. if test x$have_xinerama_h_hdr = xyes; then
  18132. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18133. echo "-- dynamic libXinerama -> $xinerama_lib"
  18134. cat >>confdefs.h <<_ACEOF
  18135. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18136. _ACEOF
  18137. definitely_enable_video_x11_xinerama=yes
  18138. else
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18140. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18141. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18142. $as_echo_n "(cached) " >&6
  18143. else
  18144. ac_check_lib_save_LIBS=$LIBS
  18145. LIBS="-lXinerama $LIBS"
  18146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18147. /* end confdefs.h. */
  18148. /* Override any GCC internal prototype to avoid an error.
  18149. Use char because int might match the return type of a GCC
  18150. builtin and then its argument prototype would still apply. */
  18151. #ifdef __cplusplus
  18152. extern "C"
  18153. #endif
  18154. char XineramaQueryExtension ();
  18155. int
  18156. main ()
  18157. {
  18158. return XineramaQueryExtension ();
  18159. ;
  18160. return 0;
  18161. }
  18162. _ACEOF
  18163. if ac_fn_c_try_link "$LINENO"; then :
  18164. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18165. else
  18166. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18167. fi
  18168. rm -f core conftest.err conftest.$ac_objext \
  18169. conftest$ac_exeext conftest.$ac_ext
  18170. LIBS=$ac_check_lib_save_LIBS
  18171. fi
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18173. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18174. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18175. have_xinerama_lib=yes
  18176. fi
  18177. if test x$have_xinerama_lib = xyes ; then
  18178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18179. definitely_enable_video_x11_xinerama=yes
  18180. fi
  18181. fi
  18182. fi
  18183. fi
  18184. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18185. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18186. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18187. fi
  18188. # Check whether --enable-video-x11-xinput was given.
  18189. if test "${enable_video_x11_xinput+set}" = set; then :
  18190. enableval=$enable_video_x11_xinput;
  18191. else
  18192. enable_video_x11_xinput=yes
  18193. fi
  18194. if test x$enable_video_x11_xinput = xyes; then
  18195. definitely_enable_video_x11_xinput=no
  18196. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18197. "
  18198. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18199. have_xinput_h_hdr=yes
  18200. else
  18201. have_xinput_h_hdr=no
  18202. fi
  18203. if test x$have_xinput_h_hdr = xyes; then
  18204. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18205. echo "-- dynamic libXi -> $xinput_lib"
  18206. cat >>confdefs.h <<_ACEOF
  18207. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18208. _ACEOF
  18209. definitely_enable_video_x11_xinput=yes
  18210. else
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18212. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18213. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18214. $as_echo_n "(cached) " >&6
  18215. else
  18216. ac_check_lib_save_LIBS=$LIBS
  18217. LIBS="-lXi $LIBS"
  18218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18219. /* end confdefs.h. */
  18220. /* Override any GCC internal prototype to avoid an error.
  18221. Use char because int might match the return type of a GCC
  18222. builtin and then its argument prototype would still apply. */
  18223. #ifdef __cplusplus
  18224. extern "C"
  18225. #endif
  18226. char XOpenDevice ();
  18227. int
  18228. main ()
  18229. {
  18230. return XOpenDevice ();
  18231. ;
  18232. return 0;
  18233. }
  18234. _ACEOF
  18235. if ac_fn_c_try_link "$LINENO"; then :
  18236. ac_cv_lib_Xi_XOpenDevice=yes
  18237. else
  18238. ac_cv_lib_Xi_XOpenDevice=no
  18239. fi
  18240. rm -f core conftest.err conftest.$ac_objext \
  18241. conftest$ac_exeext conftest.$ac_ext
  18242. LIBS=$ac_check_lib_save_LIBS
  18243. fi
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18245. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18246. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18247. have_xinput_lib=yes
  18248. fi
  18249. if test x$have_xinput_lib = xyes ; then
  18250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18251. definitely_enable_video_x11_xinput=yes
  18252. fi
  18253. fi
  18254. fi
  18255. fi
  18256. if test x$definitely_enable_video_x11_xinput = xyes; then
  18257. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18258. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18260. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18261. have_xinput2_multitouch=no
  18262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18263. /* end confdefs.h. */
  18264. #include <X11/Xlib.h>
  18265. #include <X11/Xproto.h>
  18266. #include <X11/extensions/XInput2.h>
  18267. int
  18268. main ()
  18269. {
  18270. int event_type = XI_TouchBegin;
  18271. XITouchClassInfo *t;
  18272. ;
  18273. return 0;
  18274. }
  18275. _ACEOF
  18276. if ac_fn_c_try_compile "$LINENO"; then :
  18277. have_xinput2_multitouch=yes
  18278. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18279. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18283. $as_echo "$have_xinput2_multitouch" >&6; }
  18284. fi
  18285. # Check whether --enable-video-x11-xrandr was given.
  18286. if test "${enable_video_x11_xrandr+set}" = set; then :
  18287. enableval=$enable_video_x11_xrandr;
  18288. else
  18289. enable_video_x11_xrandr=yes
  18290. fi
  18291. if test x$enable_video_x11_xrandr = xyes; then
  18292. definitely_enable_video_x11_xrandr=no
  18293. have_xrandr_h_hdr=no
  18294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18295. /* end confdefs.h. */
  18296. #include <X11/Xlib.h>
  18297. #include <X11/extensions/Xrandr.h>
  18298. int
  18299. main ()
  18300. {
  18301. XRRScreenResources *res = NULL;
  18302. ;
  18303. return 0;
  18304. }
  18305. _ACEOF
  18306. if ac_fn_c_try_compile "$LINENO"; then :
  18307. have_xrandr_h_hdr=yes
  18308. fi
  18309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18310. if test x$have_xrandr_h_hdr = xyes; then
  18311. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18312. echo "-- dynamic libXrandr -> $xrandr_lib"
  18313. cat >>confdefs.h <<_ACEOF
  18314. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18315. _ACEOF
  18316. definitely_enable_video_x11_xrandr=yes
  18317. else
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18319. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18320. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18321. $as_echo_n "(cached) " >&6
  18322. else
  18323. ac_check_lib_save_LIBS=$LIBS
  18324. LIBS="-lXrandr $LIBS"
  18325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18326. /* end confdefs.h. */
  18327. /* Override any GCC internal prototype to avoid an error.
  18328. Use char because int might match the return type of a GCC
  18329. builtin and then its argument prototype would still apply. */
  18330. #ifdef __cplusplus
  18331. extern "C"
  18332. #endif
  18333. char XRRQueryExtension ();
  18334. int
  18335. main ()
  18336. {
  18337. return XRRQueryExtension ();
  18338. ;
  18339. return 0;
  18340. }
  18341. _ACEOF
  18342. if ac_fn_c_try_link "$LINENO"; then :
  18343. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18344. else
  18345. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18346. fi
  18347. rm -f core conftest.err conftest.$ac_objext \
  18348. conftest$ac_exeext conftest.$ac_ext
  18349. LIBS=$ac_check_lib_save_LIBS
  18350. fi
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18352. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18353. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18354. have_xrandr_lib=yes
  18355. fi
  18356. if test x$have_xrandr_lib = xyes ; then
  18357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18358. definitely_enable_video_x11_xrandr=yes
  18359. fi
  18360. fi
  18361. fi
  18362. fi
  18363. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18364. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18365. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18366. fi
  18367. # Check whether --enable-video-x11-scrnsaver was given.
  18368. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18369. enableval=$enable_video_x11_scrnsaver;
  18370. else
  18371. enable_video_x11_scrnsaver=yes
  18372. fi
  18373. if test x$enable_video_x11_scrnsaver = xyes; then
  18374. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18375. "
  18376. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18377. have_scrnsaver_h_hdr=yes
  18378. else
  18379. have_scrnsaver_h_hdr=no
  18380. fi
  18381. if test x$have_scrnsaver_h_hdr = xyes; then
  18382. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18383. echo "-- dynamic libXss -> $xss_lib"
  18384. cat >>confdefs.h <<_ACEOF
  18385. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18386. _ACEOF
  18387. definitely_enable_video_x11_scrnsaver=yes
  18388. else
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18390. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18391. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18392. $as_echo_n "(cached) " >&6
  18393. else
  18394. ac_check_lib_save_LIBS=$LIBS
  18395. LIBS="-lXss $LIBS"
  18396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18397. /* end confdefs.h. */
  18398. /* Override any GCC internal prototype to avoid an error.
  18399. Use char because int might match the return type of a GCC
  18400. builtin and then its argument prototype would still apply. */
  18401. #ifdef __cplusplus
  18402. extern "C"
  18403. #endif
  18404. char XScreenSaverSuspend ();
  18405. int
  18406. main ()
  18407. {
  18408. return XScreenSaverSuspend ();
  18409. ;
  18410. return 0;
  18411. }
  18412. _ACEOF
  18413. if ac_fn_c_try_link "$LINENO"; then :
  18414. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18415. else
  18416. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18417. fi
  18418. rm -f core conftest.err conftest.$ac_objext \
  18419. conftest$ac_exeext conftest.$ac_ext
  18420. LIBS=$ac_check_lib_save_LIBS
  18421. fi
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18423. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18424. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18425. have_xss_lib=yes
  18426. fi
  18427. if test x$have_xss_lib = xyes ; then
  18428. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18429. definitely_enable_video_x11_scrnsaver=yes
  18430. fi
  18431. fi
  18432. fi
  18433. fi
  18434. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18435. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18436. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18437. fi
  18438. # Check whether --enable-video-x11-xshape was given.
  18439. if test "${enable_video_x11_xshape+set}" = set; then :
  18440. enableval=$enable_video_x11_xshape;
  18441. else
  18442. enable_video_x11_xshape=yes
  18443. fi
  18444. if test x$enable_video_x11_xshape = xyes; then
  18445. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18446. "
  18447. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18448. have_shape_h_hdr=yes
  18449. else
  18450. have_shape_h_hdr=no
  18451. fi
  18452. if test x$have_shape_h_hdr = xyes; then
  18453. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18454. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18455. fi
  18456. fi
  18457. # Check whether --enable-video-x11-vm was given.
  18458. if test "${enable_video_x11_vm+set}" = set; then :
  18459. enableval=$enable_video_x11_vm;
  18460. else
  18461. enable_video_x11_vm=yes
  18462. fi
  18463. if test x$enable_video_x11_vm = xyes; then
  18464. definitely_enable_video_x11_vm=no
  18465. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18466. "
  18467. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18468. have_vm_h_hdr=yes
  18469. else
  18470. have_vm_h_hdr=no
  18471. fi
  18472. if test x$have_vm_h_hdr = xyes; then
  18473. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18474. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18475. cat >>confdefs.h <<_ACEOF
  18476. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18477. _ACEOF
  18478. definitely_enable_video_x11_vm=yes
  18479. else
  18480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18481. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18482. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18483. $as_echo_n "(cached) " >&6
  18484. else
  18485. ac_check_lib_save_LIBS=$LIBS
  18486. LIBS="-lXxf86vm $LIBS"
  18487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18488. /* end confdefs.h. */
  18489. /* Override any GCC internal prototype to avoid an error.
  18490. Use char because int might match the return type of a GCC
  18491. builtin and then its argument prototype would still apply. */
  18492. #ifdef __cplusplus
  18493. extern "C"
  18494. #endif
  18495. char XF86VidModeQueryVersion ();
  18496. int
  18497. main ()
  18498. {
  18499. return XF86VidModeQueryVersion ();
  18500. ;
  18501. return 0;
  18502. }
  18503. _ACEOF
  18504. if ac_fn_c_try_link "$LINENO"; then :
  18505. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18506. else
  18507. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18508. fi
  18509. rm -f core conftest.err conftest.$ac_objext \
  18510. conftest$ac_exeext conftest.$ac_ext
  18511. LIBS=$ac_check_lib_save_LIBS
  18512. fi
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18514. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18515. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18516. have_vm_lib=yes
  18517. fi
  18518. if test x$have_vm_lib = xyes ; then
  18519. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18520. definitely_enable_video_x11_vm=yes
  18521. fi
  18522. fi
  18523. fi
  18524. fi
  18525. if test x$definitely_enable_video_x11_vm = xyes; then
  18526. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18527. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18528. fi
  18529. fi
  18530. else
  18531. # Prevent Mesa from including X11 headers
  18532. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18533. fi
  18534. }
  18535. CheckVivanteVideo()
  18536. {
  18537. # Check whether --enable-video-vivante was given.
  18538. if test "${enable_video_vivante+set}" = set; then :
  18539. enableval=$enable_video_vivante;
  18540. else
  18541. enable_video_vivante=yes
  18542. fi
  18543. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18545. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18546. have_vivante_vdk=no
  18547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18548. /* end confdefs.h. */
  18549. #define LINUX
  18550. #define EGL_API_FB
  18551. #include <gc_vdk.h>
  18552. int
  18553. main ()
  18554. {
  18555. ;
  18556. return 0;
  18557. }
  18558. _ACEOF
  18559. if ac_fn_c_try_compile "$LINENO"; then :
  18560. have_vivante_vdk=yes
  18561. fi
  18562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18564. $as_echo "$have_vivante_vdk" >&6; }
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18566. $as_echo_n "checking for Vivante FB API... " >&6; }
  18567. have_vivante_egl=no
  18568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18569. /* end confdefs.h. */
  18570. #define LINUX
  18571. #define EGL_API_FB
  18572. #include <EGL/eglvivante.h>
  18573. int
  18574. main ()
  18575. {
  18576. ;
  18577. return 0;
  18578. }
  18579. _ACEOF
  18580. if ac_fn_c_try_compile "$LINENO"; then :
  18581. have_vivante_egl=yes
  18582. fi
  18583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18585. $as_echo "$have_vivante_egl" >&6; }
  18586. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18587. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18588. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18589. if test x$have_vivante_vdk = xyes; then
  18590. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18591. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18592. fi
  18593. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18594. SUMMARY_video="${SUMMARY_video} vivante"
  18595. have_video=yes
  18596. fi
  18597. fi
  18598. }
  18599. CheckHaikuVideo()
  18600. {
  18601. if test x$enable_video = xyes; then
  18602. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18603. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18604. have_video=yes
  18605. SUMMARY_video="${SUMMARY_video} haiku"
  18606. fi
  18607. }
  18608. CheckCOCOA()
  18609. {
  18610. # Check whether --enable-video-cocoa was given.
  18611. if test "${enable_video_cocoa+set}" = set; then :
  18612. enableval=$enable_video_cocoa;
  18613. else
  18614. enable_video_cocoa=yes
  18615. fi
  18616. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18617. save_CFLAGS="$CFLAGS"
  18618. CFLAGS="$CFLAGS -x objective-c"
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18620. $as_echo_n "checking for Cocoa framework... " >&6; }
  18621. have_cocoa=no
  18622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18623. /* end confdefs.h. */
  18624. #import <Cocoa/Cocoa.h>
  18625. int
  18626. main ()
  18627. {
  18628. ;
  18629. return 0;
  18630. }
  18631. _ACEOF
  18632. if ac_fn_c_try_compile "$LINENO"; then :
  18633. have_cocoa=yes
  18634. fi
  18635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18637. $as_echo "$have_cocoa" >&6; }
  18638. CFLAGS="$save_CFLAGS"
  18639. if test x$have_cocoa = xyes; then
  18640. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18641. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18642. SUMMARY_video="${SUMMARY_video} cocoa"
  18643. have_video=yes
  18644. fi
  18645. fi
  18646. }
  18647. CheckMETAL()
  18648. {
  18649. # Check whether --enable-video-metal was given.
  18650. if test "${enable_video_metal+set}" = set; then :
  18651. enableval=$enable_video_metal;
  18652. else
  18653. enable_video_metal=yes
  18654. fi
  18655. # Check whether --enable-render-metal was given.
  18656. if test "${enable_render_metal+set}" = set; then :
  18657. enableval=$enable_render_metal;
  18658. else
  18659. enable_render_metal=yes
  18660. fi
  18661. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18662. save_CFLAGS="$CFLAGS"
  18663. CFLAGS="$CFLAGS -x objective-c"
  18664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18665. $as_echo_n "checking for Metal framework... " >&6; }
  18666. have_metal=no
  18667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18668. /* end confdefs.h. */
  18669. #import <Cocoa/Cocoa.h>
  18670. #import <Metal/Metal.h>
  18671. #import <QuartzCore/CAMetalLayer.h>
  18672. #if !TARGET_CPU_X86_64
  18673. #error Metal doesn't work on this configuration
  18674. #endif
  18675. int
  18676. main ()
  18677. {
  18678. ;
  18679. return 0;
  18680. }
  18681. _ACEOF
  18682. if ac_fn_c_try_compile "$LINENO"; then :
  18683. have_metal=yes
  18684. fi
  18685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18686. CFLAGS="$save_CFLAGS"
  18687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18688. $as_echo "$have_metal" >&6; }
  18689. if test x$have_metal = xyes; then
  18690. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18691. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18692. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18693. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18694. fi
  18695. SUMMARY_video="${SUMMARY_video} metal"
  18696. else
  18697. enable_video_metal=no
  18698. enable_render_metal=no
  18699. fi
  18700. fi
  18701. }
  18702. CheckDirectFB()
  18703. {
  18704. # Check whether --enable-video-directfb was given.
  18705. if test "${enable_video_directfb+set}" = set; then :
  18706. enableval=$enable_video_directfb;
  18707. else
  18708. enable_video_directfb=no
  18709. fi
  18710. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18711. pkg_failed=no
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18713. $as_echo_n "checking for DIRECTFB... " >&6; }
  18714. if test -n "$DIRECTFB_CFLAGS"; then
  18715. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18716. elif test -n "$PKG_CONFIG"; then
  18717. if test -n "$PKG_CONFIG" && \
  18718. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18719. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18720. ac_status=$?
  18721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18722. test $ac_status = 0; }; then
  18723. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18724. else
  18725. pkg_failed=yes
  18726. fi
  18727. else
  18728. pkg_failed=untried
  18729. fi
  18730. if test -n "$DIRECTFB_LIBS"; then
  18731. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18732. elif test -n "$PKG_CONFIG"; then
  18733. if test -n "$PKG_CONFIG" && \
  18734. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18735. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18736. ac_status=$?
  18737. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18738. test $ac_status = 0; }; then
  18739. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18740. else
  18741. pkg_failed=yes
  18742. fi
  18743. else
  18744. pkg_failed=untried
  18745. fi
  18746. if test $pkg_failed = yes; then
  18747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18748. $as_echo "no" >&6; }
  18749. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18750. _pkg_short_errors_supported=yes
  18751. else
  18752. _pkg_short_errors_supported=no
  18753. fi
  18754. if test $_pkg_short_errors_supported = yes; then
  18755. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18756. else
  18757. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18758. fi
  18759. # Put the nasty error message in config.log where it belongs
  18760. echo "$DIRECTFB_PKG_ERRORS" >&5
  18761. video_directfb=no
  18762. elif test $pkg_failed = untried; then
  18763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18764. $as_echo "no" >&6; }
  18765. video_directfb=no
  18766. else
  18767. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18768. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18770. $as_echo "yes" >&6; }
  18771. video_directfb=yes
  18772. fi
  18773. if test x$video_directfb = xyes; then
  18774. # SuSE 11.1 installs directfb-config without directfb-devel
  18775. save_CPPFLAGS="$CPPFLAGS"
  18776. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18777. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18778. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18779. have_directfb_hdr=yes
  18780. else
  18781. have_directfb_hdr=no
  18782. fi
  18783. CPPFLAGS="$save_CPPFLAGS"
  18784. video_directfb=$have_directfb_hdr
  18785. fi
  18786. if test x$video_directfb = xyes; then
  18787. # Check whether --enable-directfb-shared was given.
  18788. if test "${enable_directfb_shared+set}" = set; then :
  18789. enableval=$enable_directfb_shared;
  18790. else
  18791. enable_directfb_shared=yes
  18792. fi
  18793. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18794. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18795. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18796. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18798. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18799. directfb_shared=no
  18800. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18801. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18803. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18804. if test x$have_loadso != xyes && \
  18805. test x$enable_directfb_shared = xyes; then
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18807. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18808. fi
  18809. if test x$have_loadso = xyes && \
  18810. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18811. directfb_shared=yes
  18812. echo "-- $directfb_lib_spec -> $directfb_lib"
  18813. cat >>confdefs.h <<_ACEOF
  18814. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18815. _ACEOF
  18816. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18817. else
  18818. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18819. SUMMARY_video="${SUMMARY_video} directfb"
  18820. fi
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18822. $as_echo "$directfb_shared" >&6; }
  18823. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18824. have_video=yes
  18825. fi
  18826. fi
  18827. }
  18828. CheckKMSDRM()
  18829. {
  18830. # Check whether --enable-video-kmsdrm was given.
  18831. if test "${enable_video_kmsdrm+set}" = set; then :
  18832. enableval=$enable_video_kmsdrm;
  18833. else
  18834. enable_video_kmsdrm=no
  18835. fi
  18836. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18837. video_kmsdrm=no
  18838. pkg_failed=no
  18839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18840. $as_echo_n "checking for LIBDRM... " >&6; }
  18841. if test -n "$LIBDRM_CFLAGS"; then
  18842. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18843. elif test -n "$PKG_CONFIG"; then
  18844. if test -n "$PKG_CONFIG" && \
  18845. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18846. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18847. ac_status=$?
  18848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18849. test $ac_status = 0; }; then
  18850. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18851. else
  18852. pkg_failed=yes
  18853. fi
  18854. else
  18855. pkg_failed=untried
  18856. fi
  18857. if test -n "$LIBDRM_LIBS"; then
  18858. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18859. elif test -n "$PKG_CONFIG"; then
  18860. if test -n "$PKG_CONFIG" && \
  18861. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18862. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18863. ac_status=$?
  18864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18865. test $ac_status = 0; }; then
  18866. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18867. else
  18868. pkg_failed=yes
  18869. fi
  18870. else
  18871. pkg_failed=untried
  18872. fi
  18873. if test $pkg_failed = yes; then
  18874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18875. $as_echo "no" >&6; }
  18876. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18877. _pkg_short_errors_supported=yes
  18878. else
  18879. _pkg_short_errors_supported=no
  18880. fi
  18881. if test $_pkg_short_errors_supported = yes; then
  18882. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18883. else
  18884. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18885. fi
  18886. # Put the nasty error message in config.log where it belongs
  18887. echo "$LIBDRM_PKG_ERRORS" >&5
  18888. libdrm_avail=no
  18889. elif test $pkg_failed = untried; then
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18891. $as_echo "no" >&6; }
  18892. libdrm_avail=no
  18893. else
  18894. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18895. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18897. $as_echo "yes" >&6; }
  18898. libdrm_avail=yes
  18899. fi
  18900. pkg_failed=no
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18902. $as_echo_n "checking for LIBGBM... " >&6; }
  18903. if test -n "$LIBGBM_CFLAGS"; then
  18904. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18905. elif test -n "$PKG_CONFIG"; then
  18906. if test -n "$PKG_CONFIG" && \
  18907. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18908. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18909. ac_status=$?
  18910. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18911. test $ac_status = 0; }; then
  18912. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18913. else
  18914. pkg_failed=yes
  18915. fi
  18916. else
  18917. pkg_failed=untried
  18918. fi
  18919. if test -n "$LIBGBM_LIBS"; then
  18920. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18921. elif test -n "$PKG_CONFIG"; then
  18922. if test -n "$PKG_CONFIG" && \
  18923. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18924. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18925. ac_status=$?
  18926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18927. test $ac_status = 0; }; then
  18928. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18929. else
  18930. pkg_failed=yes
  18931. fi
  18932. else
  18933. pkg_failed=untried
  18934. fi
  18935. if test $pkg_failed = yes; then
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18937. $as_echo "no" >&6; }
  18938. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18939. _pkg_short_errors_supported=yes
  18940. else
  18941. _pkg_short_errors_supported=no
  18942. fi
  18943. if test $_pkg_short_errors_supported = yes; then
  18944. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18945. else
  18946. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18947. fi
  18948. # Put the nasty error message in config.log where it belongs
  18949. echo "$LIBGBM_PKG_ERRORS" >&5
  18950. libgbm_avail=no
  18951. elif test $pkg_failed = untried; then
  18952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18953. $as_echo "no" >&6; }
  18954. libgbm_avail=no
  18955. else
  18956. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18957. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18959. $as_echo "yes" >&6; }
  18960. libgbm_avail=yes
  18961. fi
  18962. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18963. video_kmsdrm=yes
  18964. fi
  18965. if test x$video_kmsdrm = xyes; then
  18966. # Check whether --enable-kmsdrm-shared was given.
  18967. if test "${enable_kmsdrm_shared+set}" = set; then :
  18968. enableval=$enable_kmsdrm_shared;
  18969. else
  18970. enable_kmsdrm_shared=yes
  18971. fi
  18972. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18973. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18974. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18976. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18977. kmsdrm_shared=no
  18978. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18979. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18980. if test x$have_loadso != xyes && \
  18981. test x$enable_kmsdrm_shared = xyes; then
  18982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18983. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18984. fi
  18985. if test x$have_loadso = xyes && \
  18986. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18987. kmsdrm_shared=yes
  18988. cat >>confdefs.h <<_ACEOF
  18989. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18990. _ACEOF
  18991. cat >>confdefs.h <<_ACEOF
  18992. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18993. _ACEOF
  18994. cat >>confdefs.h <<_ACEOF
  18995. #define HAVE_KMSDRM_SHARED "TRUE"
  18996. _ACEOF
  18997. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18998. else
  18999. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19000. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19001. fi
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19003. $as_echo "$kmsdrm_shared" >&6; }
  19004. have_video=yes
  19005. fi
  19006. fi
  19007. }
  19008. CheckDummyVideo()
  19009. {
  19010. # Check whether --enable-video-dummy was given.
  19011. if test "${enable_video_dummy+set}" = set; then :
  19012. enableval=$enable_video_dummy;
  19013. else
  19014. enable_video_dummy=yes
  19015. fi
  19016. if test x$enable_video_dummy = xyes; then
  19017. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19018. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19019. have_video=yes
  19020. SUMMARY_video="${SUMMARY_video} dummy"
  19021. fi
  19022. }
  19023. CheckQNXVideo()
  19024. {
  19025. if test x$enable_video = xyes; then
  19026. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19027. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19028. have_video=yes
  19029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19030. SUMMARY_video="${SUMMARY_video} qnx"
  19031. fi
  19032. }
  19033. CheckQNXAudio()
  19034. {
  19035. if test x$enable_audio = xyes; then
  19036. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19037. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19038. have_audio=yes
  19039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19040. SUMMARY_audio="${SUMMARY_audio} qsa"
  19041. fi
  19042. }
  19043. # Check whether --enable-video-opengl was given.
  19044. if test "${enable_video_opengl+set}" = set; then :
  19045. enableval=$enable_video_opengl;
  19046. else
  19047. enable_video_opengl=yes
  19048. fi
  19049. CheckOpenGLX11()
  19050. {
  19051. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19053. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19054. video_opengl=no
  19055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19056. /* end confdefs.h. */
  19057. #include <GL/gl.h>
  19058. #include <GL/glx.h>
  19059. int
  19060. main ()
  19061. {
  19062. ;
  19063. return 0;
  19064. }
  19065. _ACEOF
  19066. if ac_fn_c_try_compile "$LINENO"; then :
  19067. video_opengl=yes
  19068. fi
  19069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19071. $as_echo "$video_opengl" >&6; }
  19072. if test x$video_opengl = xyes; then
  19073. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19074. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19075. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19076. SUMMARY_video="${SUMMARY_video} opengl"
  19077. fi
  19078. fi
  19079. }
  19080. # Check whether --enable-video-opengles was given.
  19081. if test "${enable_video_opengles+set}" = set; then :
  19082. enableval=$enable_video_opengles;
  19083. else
  19084. enable_video_opengles=yes
  19085. fi
  19086. # Check whether --enable-video-opengles1 was given.
  19087. if test "${enable_video_opengles1+set}" = set; then :
  19088. enableval=$enable_video_opengles1;
  19089. else
  19090. enable_video_opengles1=yes
  19091. fi
  19092. # Check whether --enable-video-opengles2 was given.
  19093. if test "${enable_video_opengles2+set}" = set; then :
  19094. enableval=$enable_video_opengles2;
  19095. else
  19096. enable_video_opengles2=yes
  19097. fi
  19098. CheckOpenGLESX11()
  19099. {
  19100. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19102. $as_echo_n "checking for EGL support... " >&6; }
  19103. video_opengl_egl=no
  19104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19105. /* end confdefs.h. */
  19106. #define LINUX
  19107. #define EGL_API_FB
  19108. #define MESA_EGL_NO_X11_HEADERS
  19109. #include <EGL/egl.h>
  19110. #include <EGL/eglext.h>
  19111. int
  19112. main ()
  19113. {
  19114. ;
  19115. return 0;
  19116. }
  19117. _ACEOF
  19118. if ac_fn_c_try_compile "$LINENO"; then :
  19119. video_opengl_egl=yes
  19120. fi
  19121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19123. $as_echo "$video_opengl_egl" >&6; }
  19124. if test x$video_opengl_egl = xyes; then
  19125. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19126. fi
  19127. if test x$enable_video_opengles1 = xyes; then
  19128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19129. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19130. video_opengles_v1=no
  19131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19132. /* end confdefs.h. */
  19133. #include <GLES/gl.h>
  19134. #include <GLES/glext.h>
  19135. int
  19136. main ()
  19137. {
  19138. ;
  19139. return 0;
  19140. }
  19141. _ACEOF
  19142. if ac_fn_c_try_compile "$LINENO"; then :
  19143. video_opengles_v1=yes
  19144. fi
  19145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19147. $as_echo "$video_opengles_v1" >&6; }
  19148. if test x$video_opengles_v1 = xyes; then
  19149. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19150. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19151. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19152. fi
  19153. fi
  19154. if test x$enable_video_opengles2 = xyes; then
  19155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19156. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19157. video_opengles_v2=no
  19158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19159. /* end confdefs.h. */
  19160. #include <GLES2/gl2.h>
  19161. #include <GLES2/gl2ext.h>
  19162. int
  19163. main ()
  19164. {
  19165. ;
  19166. return 0;
  19167. }
  19168. _ACEOF
  19169. if ac_fn_c_try_compile "$LINENO"; then :
  19170. video_opengles_v2=yes
  19171. fi
  19172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19174. $as_echo "$video_opengles_v2" >&6; }
  19175. if test x$video_opengles_v2 = xyes; then
  19176. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19177. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19178. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19179. fi
  19180. fi
  19181. fi
  19182. }
  19183. CheckWINDOWSGL()
  19184. {
  19185. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19186. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19187. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19188. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19189. SUMMARY_video="${SUMMARY_video} opengl"
  19190. fi
  19191. }
  19192. CheckWINDOWSGLES()
  19193. {
  19194. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19196. $as_echo_n "checking for EGL support... " >&6; }
  19197. video_opengl_egl=no
  19198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19199. /* end confdefs.h. */
  19200. #include <EGL/egl.h>
  19201. int
  19202. main ()
  19203. {
  19204. ;
  19205. return 0;
  19206. }
  19207. _ACEOF
  19208. if ac_fn_c_try_compile "$LINENO"; then :
  19209. video_opengl_egl=yes
  19210. fi
  19211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19213. $as_echo "$video_opengl_egl" >&6; }
  19214. if test x$video_opengl_egl = xyes; then
  19215. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19216. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19217. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19218. fi
  19219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19220. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19221. video_opengles_v2=no
  19222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19223. /* end confdefs.h. */
  19224. #include <GLES2/gl2.h>
  19225. #include <GLES2/gl2ext.h>
  19226. int
  19227. main ()
  19228. {
  19229. ;
  19230. return 0;
  19231. }
  19232. _ACEOF
  19233. if ac_fn_c_try_compile "$LINENO"; then :
  19234. video_opengles_v2=yes
  19235. fi
  19236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19238. $as_echo "$video_opengles_v2" >&6; }
  19239. if test x$video_opengles_v2 = xyes; then
  19240. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19241. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19242. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19243. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19244. fi
  19245. fi
  19246. }
  19247. CheckHaikuGL()
  19248. {
  19249. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19250. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19251. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19252. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19253. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19254. SUMMARY_video="${SUMMARY_video} opengl"
  19255. fi
  19256. }
  19257. CheckMacGL()
  19258. {
  19259. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19260. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19261. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19262. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19263. SUMMARY_video="${SUMMARY_video} opengl"
  19264. fi
  19265. }
  19266. CheckMacGLES()
  19267. {
  19268. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19269. video_opengl_egl=yes
  19270. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19271. video_opengles_v2=yes
  19272. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19273. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19274. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19275. fi
  19276. }
  19277. CheckEmscriptenGLES()
  19278. {
  19279. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19281. $as_echo_n "checking for EGL support... " >&6; }
  19282. video_opengl_egl=no
  19283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19284. /* end confdefs.h. */
  19285. #include <EGL/egl.h>
  19286. int
  19287. main ()
  19288. {
  19289. ;
  19290. return 0;
  19291. }
  19292. _ACEOF
  19293. if ac_fn_c_try_compile "$LINENO"; then :
  19294. video_opengl_egl=yes
  19295. fi
  19296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19298. $as_echo "$video_opengl_egl" >&6; }
  19299. if test x$video_opengl_egl = xyes; then
  19300. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19301. fi
  19302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19303. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19304. video_opengles_v2=no
  19305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19306. /* end confdefs.h. */
  19307. #include <GLES2/gl2.h>
  19308. #include <GLES2/gl2ext.h>
  19309. int
  19310. main ()
  19311. {
  19312. ;
  19313. return 0;
  19314. }
  19315. _ACEOF
  19316. if ac_fn_c_try_compile "$LINENO"; then :
  19317. video_opengles_v2=yes
  19318. fi
  19319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19321. $as_echo "$video_opengles_v2" >&6; }
  19322. if test x$video_opengles_v2 = xyes; then
  19323. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19324. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19325. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19326. fi
  19327. fi
  19328. }
  19329. # Check whether --enable-video-vulkan was given.
  19330. if test "${enable_video_vulkan+set}" = set; then :
  19331. enableval=$enable_video_vulkan;
  19332. else
  19333. enable_video_vulkan=yes
  19334. fi
  19335. CheckVulkan()
  19336. {
  19337. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19338. case "$host" in
  19339. *-*-android*)
  19340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19341. /* end confdefs.h. */
  19342. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19343. #error Vulkan doesn't work on this configuration
  19344. #endif
  19345. int
  19346. main ()
  19347. {
  19348. ;
  19349. return 0;
  19350. }
  19351. _ACEOF
  19352. if ac_fn_c_try_compile "$LINENO"; then :
  19353. else
  19354. enable_video_vulkan=no
  19355. fi
  19356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19357. ;;
  19358. *-*-darwin*)
  19359. save_CFLAGS="$CFLAGS"
  19360. CFLAGS="$CFLAGS -x objective-c"
  19361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19362. /* end confdefs.h. */
  19363. #include <Cocoa/Cocoa.h>
  19364. #include <Metal/Metal.h>
  19365. #include <QuartzCore/CAMetalLayer.h>
  19366. #if !TARGET_CPU_X86_64
  19367. #error Vulkan doesn't work on this configuration
  19368. #endif
  19369. int
  19370. main ()
  19371. {
  19372. ;
  19373. return 0;
  19374. }
  19375. _ACEOF
  19376. if ac_fn_c_try_compile "$LINENO"; then :
  19377. else
  19378. enable_video_vulkan=no
  19379. fi
  19380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19381. CFLAGS="$save_CFLAGS"
  19382. ;;
  19383. *)
  19384. ;;
  19385. esac
  19386. if test x$enable_video_vulkan = xno; then
  19387. # For reasons I am totally unable to see, I get an undefined macro error if
  19388. # I put this in the AC_TRY_COMPILE.
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19390. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19391. fi
  19392. fi
  19393. if test x$enable_video_vulkan = xyes; then
  19394. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19395. SUMMARY_video="${SUMMARY_video} vulkan"
  19396. fi
  19397. }
  19398. CheckInputEvents()
  19399. {
  19400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19401. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19402. use_input_events=no
  19403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19404. /* end confdefs.h. */
  19405. #include <linux/input.h>
  19406. int
  19407. main ()
  19408. {
  19409. #ifndef EVIOCGNAME
  19410. #error EVIOCGNAME() ioctl not available
  19411. #endif
  19412. ;
  19413. return 0;
  19414. }
  19415. _ACEOF
  19416. if ac_fn_c_try_compile "$LINENO"; then :
  19417. use_input_events=yes
  19418. fi
  19419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19421. $as_echo "$use_input_events" >&6; }
  19422. if test x$use_input_events = xyes; then
  19423. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19424. SUMMARY_input="${SUMMARY_input} linuxev"
  19425. fi
  19426. }
  19427. CheckInputKD()
  19428. {
  19429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19430. $as_echo_n "checking for Linux kd.h... " >&6; }
  19431. use_input_kd=no
  19432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19433. /* end confdefs.h. */
  19434. #include <linux/kd.h>
  19435. #include <linux/keyboard.h>
  19436. int
  19437. main ()
  19438. {
  19439. struct kbentry kbe;
  19440. kbe.kb_table = KG_CTRL;
  19441. ioctl(0, KDGKBENT, &kbe);
  19442. ;
  19443. return 0;
  19444. }
  19445. _ACEOF
  19446. if ac_fn_c_try_compile "$LINENO"; then :
  19447. use_input_kd=yes
  19448. fi
  19449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19451. $as_echo "$use_input_kd" >&6; }
  19452. if test x$use_input_kd = xyes; then
  19453. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19454. SUMMARY_input="${SUMMARY_input} linuxkd"
  19455. fi
  19456. }
  19457. CheckLibUDev()
  19458. {
  19459. # Check whether --enable-libudev was given.
  19460. if test "${enable_libudev+set}" = set; then :
  19461. enableval=$enable_libudev;
  19462. else
  19463. enable_libudev=yes
  19464. fi
  19465. if test x$enable_libudev = xyes; then
  19466. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19467. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19468. have_libudev_h_hdr=yes
  19469. else
  19470. have_libudev_h_hdr=no
  19471. fi
  19472. if test x$have_libudev_h_hdr = xyes; then
  19473. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19474. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19475. if test x$udev_lib != x; then
  19476. echo "-- dynamic udev -> $udev_lib"
  19477. cat >>confdefs.h <<_ACEOF
  19478. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19479. _ACEOF
  19480. fi
  19481. fi
  19482. fi
  19483. }
  19484. CheckDBus()
  19485. {
  19486. # Check whether --enable-dbus was given.
  19487. if test "${enable_dbus+set}" = set; then :
  19488. enableval=$enable_dbus;
  19489. else
  19490. enable_dbus=yes
  19491. fi
  19492. if test x$enable_dbus = xyes; then
  19493. pkg_failed=no
  19494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19495. $as_echo_n "checking for DBUS... " >&6; }
  19496. if test -n "$DBUS_CFLAGS"; then
  19497. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19498. elif test -n "$PKG_CONFIG"; then
  19499. if test -n "$PKG_CONFIG" && \
  19500. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19501. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19502. ac_status=$?
  19503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19504. test $ac_status = 0; }; then
  19505. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19506. else
  19507. pkg_failed=yes
  19508. fi
  19509. else
  19510. pkg_failed=untried
  19511. fi
  19512. if test -n "$DBUS_LIBS"; then
  19513. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19514. elif test -n "$PKG_CONFIG"; then
  19515. if test -n "$PKG_CONFIG" && \
  19516. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19517. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19518. ac_status=$?
  19519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19520. test $ac_status = 0; }; then
  19521. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19522. else
  19523. pkg_failed=yes
  19524. fi
  19525. else
  19526. pkg_failed=untried
  19527. fi
  19528. if test $pkg_failed = yes; then
  19529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19530. $as_echo "no" >&6; }
  19531. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19532. _pkg_short_errors_supported=yes
  19533. else
  19534. _pkg_short_errors_supported=no
  19535. fi
  19536. if test $_pkg_short_errors_supported = yes; then
  19537. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19538. else
  19539. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19540. fi
  19541. # Put the nasty error message in config.log where it belongs
  19542. echo "$DBUS_PKG_ERRORS" >&5
  19543. have_dbus=no
  19544. elif test $pkg_failed = untried; then
  19545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19546. $as_echo "no" >&6; }
  19547. have_dbus=no
  19548. else
  19549. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19550. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19552. $as_echo "yes" >&6; }
  19553. have_dbus=yes
  19554. fi
  19555. save_CFLAGS="$CFLAGS"
  19556. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19557. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19558. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19559. have_dbus_dbus_h_hdr=yes
  19560. else
  19561. have_dbus_dbus_h_hdr=no
  19562. fi
  19563. CFLAGS="$save_CFLAGS"
  19564. if test x$have_dbus_dbus_h_hdr = xyes; then
  19565. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19566. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19567. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19568. fi
  19569. fi
  19570. }
  19571. CheckIME()
  19572. {
  19573. # Check whether --enable-ime was given.
  19574. if test "${enable_ime+set}" = set; then :
  19575. enableval=$enable_ime;
  19576. else
  19577. enable_ime=yes
  19578. fi
  19579. if test x$enable_ime = xyes; then
  19580. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19581. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19582. fi
  19583. }
  19584. CheckIBus()
  19585. {
  19586. # Check whether --enable-ibus was given.
  19587. if test "${enable_ibus+set}" = set; then :
  19588. enableval=$enable_ibus;
  19589. else
  19590. enable_ibus=yes
  19591. fi
  19592. if test x$enable_ibus = xyes; then
  19593. pkg_failed=no
  19594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19595. $as_echo_n "checking for IBUS... " >&6; }
  19596. if test -n "$IBUS_CFLAGS"; then
  19597. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19598. elif test -n "$PKG_CONFIG"; then
  19599. if test -n "$PKG_CONFIG" && \
  19600. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19601. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19602. ac_status=$?
  19603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19604. test $ac_status = 0; }; then
  19605. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19606. else
  19607. pkg_failed=yes
  19608. fi
  19609. else
  19610. pkg_failed=untried
  19611. fi
  19612. if test -n "$IBUS_LIBS"; then
  19613. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19614. elif test -n "$PKG_CONFIG"; then
  19615. if test -n "$PKG_CONFIG" && \
  19616. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19617. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19618. ac_status=$?
  19619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19620. test $ac_status = 0; }; then
  19621. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19622. else
  19623. pkg_failed=yes
  19624. fi
  19625. else
  19626. pkg_failed=untried
  19627. fi
  19628. if test $pkg_failed = yes; then
  19629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19630. $as_echo "no" >&6; }
  19631. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19632. _pkg_short_errors_supported=yes
  19633. else
  19634. _pkg_short_errors_supported=no
  19635. fi
  19636. if test $_pkg_short_errors_supported = yes; then
  19637. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19638. else
  19639. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19640. fi
  19641. # Put the nasty error message in config.log where it belongs
  19642. echo "$IBUS_PKG_ERRORS" >&5
  19643. have_ibus=no
  19644. elif test $pkg_failed = untried; then
  19645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19646. $as_echo "no" >&6; }
  19647. have_ibus=no
  19648. else
  19649. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19650. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19652. $as_echo "yes" >&6; }
  19653. have_ibus=yes
  19654. fi
  19655. save_CFLAGS="$CFLAGS"
  19656. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19657. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19658. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19659. have_ibus_ibus_h_hdr=yes
  19660. else
  19661. have_ibus_ibus_h_hdr=no
  19662. fi
  19663. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19664. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19665. have_inotify_inotify_h_hdr=yes
  19666. else
  19667. have_inotify_inotify_h_hdr=no
  19668. fi
  19669. CFLAGS="$save_CFLAGS"
  19670. if test x$have_ibus_ibus_h_hdr = xyes; then
  19671. if test x$enable_ime != xyes; then
  19672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19673. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19674. have_ibus_ibus_h_hdr=no
  19675. elif test x$enable_dbus != xyes; then
  19676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19677. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19678. have_ibus_ibus_h_hdr=no
  19679. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19681. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19682. have_ibus_ibus_h_hdr=no
  19683. else
  19684. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19685. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19686. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19687. fi
  19688. fi
  19689. fi
  19690. }
  19691. CheckFcitx()
  19692. {
  19693. # Check whether --enable-fcitx was given.
  19694. if test "${enable_fcitx+set}" = set; then :
  19695. enableval=$enable_fcitx;
  19696. else
  19697. enable_fcitx=yes
  19698. fi
  19699. if test x$enable_fcitx = xyes; then
  19700. pkg_failed=no
  19701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19702. $as_echo_n "checking for FCITX... " >&6; }
  19703. if test -n "$FCITX_CFLAGS"; then
  19704. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19705. elif test -n "$PKG_CONFIG"; then
  19706. if test -n "$PKG_CONFIG" && \
  19707. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19708. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19709. ac_status=$?
  19710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19711. test $ac_status = 0; }; then
  19712. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19713. else
  19714. pkg_failed=yes
  19715. fi
  19716. else
  19717. pkg_failed=untried
  19718. fi
  19719. if test -n "$FCITX_LIBS"; then
  19720. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19721. elif test -n "$PKG_CONFIG"; then
  19722. if test -n "$PKG_CONFIG" && \
  19723. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19724. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19725. ac_status=$?
  19726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19727. test $ac_status = 0; }; then
  19728. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19729. else
  19730. pkg_failed=yes
  19731. fi
  19732. else
  19733. pkg_failed=untried
  19734. fi
  19735. if test $pkg_failed = yes; then
  19736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19737. $as_echo "no" >&6; }
  19738. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19739. _pkg_short_errors_supported=yes
  19740. else
  19741. _pkg_short_errors_supported=no
  19742. fi
  19743. if test $_pkg_short_errors_supported = yes; then
  19744. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19745. else
  19746. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19747. fi
  19748. # Put the nasty error message in config.log where it belongs
  19749. echo "$FCITX_PKG_ERRORS" >&5
  19750. have_fcitx=no
  19751. elif test $pkg_failed = untried; then
  19752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19753. $as_echo "no" >&6; }
  19754. have_fcitx=no
  19755. else
  19756. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19757. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19759. $as_echo "yes" >&6; }
  19760. have_fcitx=yes
  19761. fi
  19762. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19763. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19764. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19765. have_fcitx_frontend_h_hdr=yes
  19766. else
  19767. have_fcitx_frontend_h_hdr=no
  19768. fi
  19769. CFLAGS="$save_CFLAGS"
  19770. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19771. if test x$enable_ime != xyes; then
  19772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19773. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19774. have_fcitx_frontend_h_hdr=no
  19775. elif test x$enable_dbus != xyes; then
  19776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19777. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19778. have_fcitx_frontend_h_hdr=no
  19779. else
  19780. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19781. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19782. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19783. fi
  19784. fi
  19785. fi
  19786. }
  19787. CheckTslib()
  19788. {
  19789. # Check whether --enable-input-tslib was given.
  19790. if test "${enable_input_tslib+set}" = set; then :
  19791. enableval=$enable_input_tslib;
  19792. else
  19793. enable_input_tslib=yes
  19794. fi
  19795. if test x$enable_input_tslib = xyes; then
  19796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19797. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19798. enable_input_tslib=no
  19799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19800. /* end confdefs.h. */
  19801. #include "tslib.h"
  19802. int
  19803. main ()
  19804. {
  19805. ;
  19806. return 0;
  19807. }
  19808. _ACEOF
  19809. if ac_fn_c_try_compile "$LINENO"; then :
  19810. enable_input_tslib=yes
  19811. fi
  19812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19814. $as_echo "$enable_input_tslib" >&6; }
  19815. if test x$enable_input_tslib = xyes; then
  19816. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19818. SUMMARY_input="${SUMMARY_input} ts"
  19819. fi
  19820. fi
  19821. }
  19822. CheckPTHREAD()
  19823. {
  19824. # Check whether --enable-pthreads was given.
  19825. if test "${enable_pthreads+set}" = set; then :
  19826. enableval=$enable_pthreads;
  19827. else
  19828. enable_pthreads=yes
  19829. fi
  19830. # Check whether --enable-pthread-sem was given.
  19831. if test "${enable_pthread_sem+set}" = set; then :
  19832. enableval=$enable_pthread_sem;
  19833. else
  19834. enable_pthread_sem=yes
  19835. fi
  19836. case "$host" in
  19837. *-*-android*)
  19838. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19839. pthread_lib=""
  19840. ;;
  19841. *-*-linux*|*-*-uclinux*)
  19842. pthread_cflags="-D_REENTRANT"
  19843. pthread_lib="-lpthread"
  19844. ;;
  19845. *-*-bsdi*)
  19846. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19847. pthread_lib=""
  19848. ;;
  19849. *-*-darwin*)
  19850. pthread_cflags="-D_THREAD_SAFE"
  19851. # causes Carbon.p complaints?
  19852. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19853. ;;
  19854. *-*-freebsd*|*-*-dragonfly*)
  19855. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19856. pthread_lib="-pthread"
  19857. ;;
  19858. *-*-netbsd*)
  19859. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19860. pthread_lib="-lpthread"
  19861. ;;
  19862. *-*-openbsd*)
  19863. pthread_cflags="-D_REENTRANT"
  19864. pthread_lib="-pthread"
  19865. ;;
  19866. *-*-solaris2.9)
  19867. # From Solaris 9+, posix4's preferred name is rt.
  19868. pthread_cflags="-D_REENTRANT"
  19869. pthread_lib="-lpthread -lrt"
  19870. ;;
  19871. *-*-solaris2.10)
  19872. # Solaris 10+ merged pthread into libc.
  19873. pthread_cflags="-D_REENTRANT"
  19874. pthread_lib="-lrt"
  19875. ;;
  19876. *-*-solaris*)
  19877. # Solaris 11+ merged rt into libc.
  19878. pthread_cflags="-D_REENTRANT"
  19879. pthread_lib=""
  19880. ;;
  19881. *-*-sysv5*)
  19882. pthread_cflags="-D_REENTRANT -Kthread"
  19883. pthread_lib=""
  19884. ;;
  19885. *-*-aix*)
  19886. pthread_cflags="-D_REENTRANT -mthreads"
  19887. pthread_lib="-lpthread"
  19888. ;;
  19889. *-*-hpux11*)
  19890. pthread_cflags="-D_REENTRANT"
  19891. pthread_lib="-L/usr/lib -lpthread"
  19892. ;;
  19893. *-*-haiku*)
  19894. pthread_cflags="-D_REENTRANT"
  19895. pthread_lib=""
  19896. ;;
  19897. *-*-nto*)
  19898. pthread_cflags="-D_REENTRANT"
  19899. pthread_lib=""
  19900. ;;
  19901. *)
  19902. pthread_cflags="-D_REENTRANT"
  19903. pthread_lib="-lpthread"
  19904. ;;
  19905. esac
  19906. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19907. # Save the original compiler flags and libraries
  19908. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19909. # Add the pthread compiler flags and libraries
  19910. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19911. # Check to see if we have pthread support on this system
  19912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19913. $as_echo_n "checking for pthreads... " >&6; }
  19914. use_pthreads=no
  19915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19916. /* end confdefs.h. */
  19917. #include <pthread.h>
  19918. int
  19919. main ()
  19920. {
  19921. pthread_attr_t type;
  19922. pthread_attr_init(&type);
  19923. ;
  19924. return 0;
  19925. }
  19926. _ACEOF
  19927. if ac_fn_c_try_link "$LINENO"; then :
  19928. use_pthreads=yes
  19929. fi
  19930. rm -f core conftest.err conftest.$ac_objext \
  19931. conftest$ac_exeext conftest.$ac_ext
  19932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19933. $as_echo "$use_pthreads" >&6; }
  19934. # Restore the compiler flags and libraries
  19935. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19936. # Do futher testing if we have pthread support...
  19937. if test x$use_pthreads = xyes; then
  19938. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19939. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19941. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19942. # Save the original compiler flags and libraries
  19943. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19944. # Add the pthread compiler flags and libraries
  19945. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19946. # Check to see if recursive mutexes are available
  19947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19948. $as_echo_n "checking for recursive mutexes... " >&6; }
  19949. has_recursive_mutexes=no
  19950. if test x$has_recursive_mutexes = xno; then
  19951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19952. /* end confdefs.h. */
  19953. #define _GNU_SOURCE 1
  19954. #include <pthread.h>
  19955. int
  19956. main ()
  19957. {
  19958. pthread_mutexattr_t attr;
  19959. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19960. ;
  19961. return 0;
  19962. }
  19963. _ACEOF
  19964. if ac_fn_c_try_link "$LINENO"; then :
  19965. has_recursive_mutexes=yes
  19966. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19967. fi
  19968. rm -f core conftest.err conftest.$ac_objext \
  19969. conftest$ac_exeext conftest.$ac_ext
  19970. fi
  19971. if test x$has_recursive_mutexes = xno; then
  19972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19973. /* end confdefs.h. */
  19974. #define _GNU_SOURCE 1
  19975. #include <pthread.h>
  19976. int
  19977. main ()
  19978. {
  19979. pthread_mutexattr_t attr;
  19980. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19981. ;
  19982. return 0;
  19983. }
  19984. _ACEOF
  19985. if ac_fn_c_try_link "$LINENO"; then :
  19986. has_recursive_mutexes=yes
  19987. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19988. fi
  19989. rm -f core conftest.err conftest.$ac_objext \
  19990. conftest$ac_exeext conftest.$ac_ext
  19991. fi
  19992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19993. $as_echo "$has_recursive_mutexes" >&6; }
  19994. # Check to see if pthread semaphore support is missing
  19995. if test x$enable_pthread_sem = xyes; then
  19996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19997. $as_echo_n "checking for pthread semaphores... " >&6; }
  19998. have_pthread_sem=no
  19999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20000. /* end confdefs.h. */
  20001. #include <pthread.h>
  20002. #include <semaphore.h>
  20003. int
  20004. main ()
  20005. {
  20006. ;
  20007. return 0;
  20008. }
  20009. _ACEOF
  20010. if ac_fn_c_try_compile "$LINENO"; then :
  20011. have_pthread_sem=yes
  20012. fi
  20013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20015. $as_echo "$have_pthread_sem" >&6; }
  20016. fi
  20017. if test x$have_pthread_sem = xyes; then
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20019. $as_echo_n "checking for sem_timedwait... " >&6; }
  20020. have_sem_timedwait=no
  20021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20022. /* end confdefs.h. */
  20023. #include <pthread.h>
  20024. #include <semaphore.h>
  20025. int
  20026. main ()
  20027. {
  20028. sem_timedwait(NULL, NULL);
  20029. ;
  20030. return 0;
  20031. }
  20032. _ACEOF
  20033. if ac_fn_c_try_link "$LINENO"; then :
  20034. have_sem_timedwait=yes
  20035. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20036. fi
  20037. rm -f core conftest.err conftest.$ac_objext \
  20038. conftest$ac_exeext conftest.$ac_ext
  20039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20040. $as_echo "$have_sem_timedwait" >&6; }
  20041. fi
  20042. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20043. "
  20044. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20045. have_pthread_np_h=yes
  20046. else
  20047. have_pthread_np_h=no
  20048. fi
  20049. if test x$have_pthread_np_h = xyes; then
  20050. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20051. fi
  20052. # Check to see if pthread naming is available
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20054. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20056. /* end confdefs.h. */
  20057. /* Override any GCC internal prototype to avoid an error.
  20058. Use char because int might match the return type of a GCC
  20059. builtin and then its argument prototype would still apply. */
  20060. #ifdef __cplusplus
  20061. extern "C"
  20062. #endif
  20063. char pthread_setname_np ();
  20064. int
  20065. main ()
  20066. {
  20067. return pthread_setname_np ();
  20068. ;
  20069. return 0;
  20070. }
  20071. _ACEOF
  20072. if ac_fn_c_try_link "$LINENO"; then :
  20073. has_pthread_setname_np=yes
  20074. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20075. else
  20076. has_pthread_setname_np=no
  20077. fi
  20078. rm -f core conftest.err conftest.$ac_objext \
  20079. conftest$ac_exeext conftest.$ac_ext
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20081. $as_echo "$has_pthread_setname_np" >&6; }
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20083. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20085. /* end confdefs.h. */
  20086. /* Override any GCC internal prototype to avoid an error.
  20087. Use char because int might match the return type of a GCC
  20088. builtin and then its argument prototype would still apply. */
  20089. #ifdef __cplusplus
  20090. extern "C"
  20091. #endif
  20092. char pthread_set_name_np ();
  20093. int
  20094. main ()
  20095. {
  20096. return pthread_set_name_np ();
  20097. ;
  20098. return 0;
  20099. }
  20100. _ACEOF
  20101. if ac_fn_c_try_link "$LINENO"; then :
  20102. has_pthread_set_name_np=yes
  20103. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20104. else
  20105. has_pthread_set_name_np=no
  20106. fi
  20107. rm -f core conftest.err conftest.$ac_objext \
  20108. conftest$ac_exeext conftest.$ac_ext
  20109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20110. $as_echo "$has_pthread_set_name_np" >&6; }
  20111. # Restore the compiler flags and libraries
  20112. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20113. # Basic thread creation functions
  20114. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20115. # Semaphores
  20116. # We can fake these with mutexes and condition variables if necessary
  20117. if test x$have_pthread_sem = xyes; then
  20118. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20119. else
  20120. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20121. fi
  20122. # Mutexes
  20123. # We can fake these with semaphores if necessary
  20124. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20125. # Condition variables
  20126. # We can fake these with semaphores and mutexes if necessary
  20127. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20128. # Thread local storage
  20129. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20130. have_threads=yes
  20131. fi
  20132. fi
  20133. }
  20134. CheckWINDOWS()
  20135. {
  20136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20137. $as_echo_n "checking Windows compiler... " >&6; }
  20138. have_win32_gcc=no
  20139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20140. /* end confdefs.h. */
  20141. #include <windows.h>
  20142. int
  20143. main ()
  20144. {
  20145. ;
  20146. return 0;
  20147. }
  20148. _ACEOF
  20149. if ac_fn_c_try_compile "$LINENO"; then :
  20150. have_win32_gcc=yes
  20151. fi
  20152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20154. $as_echo "$have_win32_gcc" >&6; }
  20155. if test x$have_win32_gcc != xyes; then
  20156. as_fn_error $? "
  20157. *** Your compiler ($CC) does not produce Windows executables!
  20158. " "$LINENO" 5
  20159. fi
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20161. $as_echo_n "checking Windows CE... " >&6; }
  20162. have_wince=no
  20163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20164. /* end confdefs.h. */
  20165. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20166. #error This is not Windows CE
  20167. #endif
  20168. int
  20169. main ()
  20170. {
  20171. ;
  20172. return 0;
  20173. }
  20174. _ACEOF
  20175. if ac_fn_c_try_compile "$LINENO"; then :
  20176. have_wince=yes
  20177. as_fn_error $? "
  20178. *** Sorry, Windows CE is no longer supported.
  20179. " "$LINENO" 5
  20180. fi
  20181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20183. $as_echo "$have_wince" >&6; }
  20184. # This fixes Windows stack alignment with newer GCC
  20185. CheckStackBoundary
  20186. }
  20187. CheckDIRECTX()
  20188. {
  20189. # Check whether --enable-directx was given.
  20190. if test "${enable_directx+set}" = set; then :
  20191. enableval=$enable_directx;
  20192. else
  20193. enable_directx=yes
  20194. fi
  20195. if test x$enable_directx = xyes; then
  20196. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20197. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20198. have_d3d=yes
  20199. fi
  20200. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20201. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20202. have_d3d11=yes
  20203. fi
  20204. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20205. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20206. have_ddraw=yes
  20207. fi
  20208. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20209. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20210. have_dsound=yes
  20211. fi
  20212. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20213. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20214. have_dinput=yes
  20215. fi
  20216. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20217. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20218. have_dxgi=yes
  20219. fi
  20220. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20221. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20222. have_xinput=yes
  20223. fi
  20224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20225. /* end confdefs.h. */
  20226. #include <windows.h>
  20227. #include <xinput.h>
  20228. XINPUT_GAMEPAD_EX x1;
  20229. int
  20230. main ()
  20231. {
  20232. ;
  20233. return 0;
  20234. }
  20235. _ACEOF
  20236. if ac_fn_c_try_compile "$LINENO"; then :
  20237. have_xinput_gamepadex=yes
  20238. fi
  20239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20241. /* end confdefs.h. */
  20242. #include <windows.h>
  20243. #include <xinput.h>
  20244. XINPUT_STATE_EX s1;
  20245. int
  20246. main ()
  20247. {
  20248. ;
  20249. return 0;
  20250. }
  20251. _ACEOF
  20252. if ac_fn_c_try_compile "$LINENO"; then :
  20253. have_xinput_stateex=yes
  20254. fi
  20255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20256. if test x$have_ddraw = xyes; then
  20257. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20258. fi
  20259. if test x$have_dinput = xyes; then
  20260. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20261. fi
  20262. if test x$have_dsound = xyes; then
  20263. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20264. fi
  20265. if test x$have_dxgi = xyes; then
  20266. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20267. fi
  20268. if test x$have_xinput = xyes; then
  20269. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20270. fi
  20271. if test x$have_xinput_gamepadex = xyes; then
  20272. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20273. fi
  20274. if test x$have_xinput_stateex = xyes; then
  20275. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20276. fi
  20277. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20278. # FIXME: ...so force it off for now.
  20279. case "$host" in
  20280. *-*-cygwin*)
  20281. have_dinput=false
  20282. ;;
  20283. esac
  20284. fi
  20285. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20286. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20287. have_wasapi=yes
  20288. fi
  20289. if test x$have_wasapi = xyes; then
  20290. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20291. fi
  20292. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20293. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20294. else
  20295. have_wasapi=no
  20296. fi
  20297. if test x$have_wasapi = xyes; then
  20298. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20299. fi
  20300. # Check whether --enable-wasapi was given.
  20301. if test "${enable_wasapi+set}" = set; then :
  20302. enableval=$enable_wasapi;
  20303. else
  20304. enable_wasapi=yes
  20305. fi
  20306. }
  20307. CheckDLOPEN()
  20308. {
  20309. # Check whether --enable-sdl-dlopen was given.
  20310. if test "${enable_sdl_dlopen+set}" = set; then :
  20311. enableval=$enable_sdl_dlopen;
  20312. else
  20313. enable_sdl_dlopen=yes
  20314. fi
  20315. if test x$enable_sdl_dlopen = xyes; then
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20317. $as_echo_n "checking for dlopen... " >&6; }
  20318. have_dlopen=no
  20319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20320. /* end confdefs.h. */
  20321. #include <dlfcn.h>
  20322. int
  20323. main ()
  20324. {
  20325. void *handle = dlopen("", RTLD_NOW);
  20326. const char *loaderror = (char *) dlerror();
  20327. ;
  20328. return 0;
  20329. }
  20330. _ACEOF
  20331. if ac_fn_c_try_compile "$LINENO"; then :
  20332. have_dlopen=yes
  20333. fi
  20334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20336. $as_echo "$have_dlopen" >&6; }
  20337. if test x$have_dlopen = xyes; then
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20339. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20340. if ${ac_cv_lib_c_dlopen+:} false; then :
  20341. $as_echo_n "(cached) " >&6
  20342. else
  20343. ac_check_lib_save_LIBS=$LIBS
  20344. LIBS="-lc $LIBS"
  20345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20346. /* end confdefs.h. */
  20347. /* Override any GCC internal prototype to avoid an error.
  20348. Use char because int might match the return type of a GCC
  20349. builtin and then its argument prototype would still apply. */
  20350. #ifdef __cplusplus
  20351. extern "C"
  20352. #endif
  20353. char dlopen ();
  20354. int
  20355. main ()
  20356. {
  20357. return dlopen ();
  20358. ;
  20359. return 0;
  20360. }
  20361. _ACEOF
  20362. if ac_fn_c_try_link "$LINENO"; then :
  20363. ac_cv_lib_c_dlopen=yes
  20364. else
  20365. ac_cv_lib_c_dlopen=no
  20366. fi
  20367. rm -f core conftest.err conftest.$ac_objext \
  20368. conftest$ac_exeext conftest.$ac_ext
  20369. LIBS=$ac_check_lib_save_LIBS
  20370. fi
  20371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20372. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20373. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20374. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20375. else
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20377. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20378. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20379. $as_echo_n "(cached) " >&6
  20380. else
  20381. ac_check_lib_save_LIBS=$LIBS
  20382. LIBS="-ldl $LIBS"
  20383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20384. /* end confdefs.h. */
  20385. /* Override any GCC internal prototype to avoid an error.
  20386. Use char because int might match the return type of a GCC
  20387. builtin and then its argument prototype would still apply. */
  20388. #ifdef __cplusplus
  20389. extern "C"
  20390. #endif
  20391. char dlopen ();
  20392. int
  20393. main ()
  20394. {
  20395. return dlopen ();
  20396. ;
  20397. return 0;
  20398. }
  20399. _ACEOF
  20400. if ac_fn_c_try_link "$LINENO"; then :
  20401. ac_cv_lib_dl_dlopen=yes
  20402. else
  20403. ac_cv_lib_dl_dlopen=no
  20404. fi
  20405. rm -f core conftest.err conftest.$ac_objext \
  20406. conftest$ac_exeext conftest.$ac_ext
  20407. LIBS=$ac_check_lib_save_LIBS
  20408. fi
  20409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20410. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20411. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20412. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20413. else
  20414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20415. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20416. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20417. $as_echo_n "(cached) " >&6
  20418. else
  20419. ac_check_lib_save_LIBS=$LIBS
  20420. LIBS="-lltdl $LIBS"
  20421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20422. /* end confdefs.h. */
  20423. /* Override any GCC internal prototype to avoid an error.
  20424. Use char because int might match the return type of a GCC
  20425. builtin and then its argument prototype would still apply. */
  20426. #ifdef __cplusplus
  20427. extern "C"
  20428. #endif
  20429. char dlopen ();
  20430. int
  20431. main ()
  20432. {
  20433. return dlopen ();
  20434. ;
  20435. return 0;
  20436. }
  20437. _ACEOF
  20438. if ac_fn_c_try_link "$LINENO"; then :
  20439. ac_cv_lib_ltdl_dlopen=yes
  20440. else
  20441. ac_cv_lib_ltdl_dlopen=no
  20442. fi
  20443. rm -f core conftest.err conftest.$ac_objext \
  20444. conftest$ac_exeext conftest.$ac_ext
  20445. LIBS=$ac_check_lib_save_LIBS
  20446. fi
  20447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20448. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20449. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20451. fi
  20452. fi
  20453. fi
  20454. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20455. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20456. have_loadso=yes
  20457. fi
  20458. fi
  20459. }
  20460. CheckUSBHID()
  20461. {
  20462. case "$host" in
  20463. *-*-*bsd*)
  20464. if test x$enable_joystick = xyes; then
  20465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20466. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20467. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20468. $as_echo_n "(cached) " >&6
  20469. else
  20470. ac_check_lib_save_LIBS=$LIBS
  20471. LIBS="-lusbhid $LIBS"
  20472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20473. /* end confdefs.h. */
  20474. /* Override any GCC internal prototype to avoid an error.
  20475. Use char because int might match the return type of a GCC
  20476. builtin and then its argument prototype would still apply. */
  20477. #ifdef __cplusplus
  20478. extern "C"
  20479. #endif
  20480. char hid_init ();
  20481. int
  20482. main ()
  20483. {
  20484. return hid_init ();
  20485. ;
  20486. return 0;
  20487. }
  20488. _ACEOF
  20489. if ac_fn_c_try_link "$LINENO"; then :
  20490. ac_cv_lib_usbhid_hid_init=yes
  20491. else
  20492. ac_cv_lib_usbhid_hid_init=no
  20493. fi
  20494. rm -f core conftest.err conftest.$ac_objext \
  20495. conftest$ac_exeext conftest.$ac_ext
  20496. LIBS=$ac_check_lib_save_LIBS
  20497. fi
  20498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20499. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20500. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20501. have_libusbhid=yes
  20502. fi
  20503. if test x$have_libusbhid = xyes; then
  20504. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20505. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20506. USB_CFLAGS="-DHAVE_USBHID_H"
  20507. fi
  20508. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20509. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20510. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20511. fi
  20512. USB_LIBS="$USB_LIBS -lusbhid"
  20513. else
  20514. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20515. if test "x$ac_cv_header_usb_h" = xyes; then :
  20516. USB_CFLAGS="-DHAVE_USB_H"
  20517. fi
  20518. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20519. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20520. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20521. fi
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20523. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20524. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20525. $as_echo_n "(cached) " >&6
  20526. else
  20527. ac_check_lib_save_LIBS=$LIBS
  20528. LIBS="-lusb $LIBS"
  20529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20530. /* end confdefs.h. */
  20531. /* Override any GCC internal prototype to avoid an error.
  20532. Use char because int might match the return type of a GCC
  20533. builtin and then its argument prototype would still apply. */
  20534. #ifdef __cplusplus
  20535. extern "C"
  20536. #endif
  20537. char hid_init ();
  20538. int
  20539. main ()
  20540. {
  20541. return hid_init ();
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. if ac_fn_c_try_link "$LINENO"; then :
  20547. ac_cv_lib_usb_hid_init=yes
  20548. else
  20549. ac_cv_lib_usb_hid_init=no
  20550. fi
  20551. rm -f core conftest.err conftest.$ac_objext \
  20552. conftest$ac_exeext conftest.$ac_ext
  20553. LIBS=$ac_check_lib_save_LIBS
  20554. fi
  20555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20556. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20557. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20558. USB_LIBS="$USB_LIBS -lusb"
  20559. fi
  20560. fi
  20561. save_CFLAGS="$CFLAGS"
  20562. CFLAGS="$CFLAGS $USB_CFLAGS"
  20563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20564. $as_echo_n "checking for usbhid... " >&6; }
  20565. have_usbhid=no
  20566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20567. /* end confdefs.h. */
  20568. #include <sys/types.h>
  20569. #if defined(HAVE_USB_H)
  20570. #include <usb.h>
  20571. #endif
  20572. #ifdef __DragonFly__
  20573. # include <bus/usb/usb.h>
  20574. # include <bus/usb/usbhid.h>
  20575. #else
  20576. # include <dev/usb/usb.h>
  20577. # include <dev/usb/usbhid.h>
  20578. #endif
  20579. #if defined(HAVE_USBHID_H)
  20580. #include <usbhid.h>
  20581. #elif defined(HAVE_LIBUSB_H)
  20582. #include <libusb.h>
  20583. #elif defined(HAVE_LIBUSBHID_H)
  20584. #include <libusbhid.h>
  20585. #endif
  20586. int
  20587. main ()
  20588. {
  20589. struct report_desc *repdesc;
  20590. struct usb_ctl_report *repbuf;
  20591. hid_kind_t hidkind;
  20592. ;
  20593. return 0;
  20594. }
  20595. _ACEOF
  20596. if ac_fn_c_try_compile "$LINENO"; then :
  20597. have_usbhid=yes
  20598. fi
  20599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20601. $as_echo "$have_usbhid" >&6; }
  20602. if test x$have_usbhid = xyes; then
  20603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20604. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20605. have_usbhid_ucr_data=no
  20606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20607. /* end confdefs.h. */
  20608. #include <sys/types.h>
  20609. #if defined(HAVE_USB_H)
  20610. #include <usb.h>
  20611. #endif
  20612. #ifdef __DragonFly__
  20613. # include <bus/usb/usb.h>
  20614. # include <bus/usb/usbhid.h>
  20615. #else
  20616. # include <dev/usb/usb.h>
  20617. # include <dev/usb/usbhid.h>
  20618. #endif
  20619. #if defined(HAVE_USBHID_H)
  20620. #include <usbhid.h>
  20621. #elif defined(HAVE_LIBUSB_H)
  20622. #include <libusb.h>
  20623. #elif defined(HAVE_LIBUSBHID_H)
  20624. #include <libusbhid.h>
  20625. #endif
  20626. int
  20627. main ()
  20628. {
  20629. struct usb_ctl_report buf;
  20630. if (buf.ucr_data) { }
  20631. ;
  20632. return 0;
  20633. }
  20634. _ACEOF
  20635. if ac_fn_c_try_compile "$LINENO"; then :
  20636. have_usbhid_ucr_data=yes
  20637. fi
  20638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20639. if test x$have_usbhid_ucr_data = xyes; then
  20640. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20641. fi
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20643. $as_echo "$have_usbhid_ucr_data" >&6; }
  20644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20645. $as_echo_n "checking for new usbhid API... " >&6; }
  20646. have_usbhid_new=no
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. #include <sys/types.h>
  20650. #if defined(HAVE_USB_H)
  20651. #include <usb.h>
  20652. #endif
  20653. #ifdef __DragonFly__
  20654. #include <bus/usb/usb.h>
  20655. #include <bus/usb/usbhid.h>
  20656. #else
  20657. #include <dev/usb/usb.h>
  20658. #include <dev/usb/usbhid.h>
  20659. #endif
  20660. #if defined(HAVE_USBHID_H)
  20661. #include <usbhid.h>
  20662. #elif defined(HAVE_LIBUSB_H)
  20663. #include <libusb.h>
  20664. #elif defined(HAVE_LIBUSBHID_H)
  20665. #include <libusbhid.h>
  20666. #endif
  20667. int
  20668. main ()
  20669. {
  20670. report_desc_t d;
  20671. hid_start_parse(d, 1, 1);
  20672. ;
  20673. return 0;
  20674. }
  20675. _ACEOF
  20676. if ac_fn_c_try_compile "$LINENO"; then :
  20677. have_usbhid_new=yes
  20678. fi
  20679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20680. if test x$have_usbhid_new = xyes; then
  20681. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20682. fi
  20683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20684. $as_echo "$have_usbhid_new" >&6; }
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20686. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20687. have_machine_joystick=no
  20688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20689. /* end confdefs.h. */
  20690. #include <machine/joystick.h>
  20691. int
  20692. main ()
  20693. {
  20694. struct joystick t;
  20695. ;
  20696. return 0;
  20697. }
  20698. _ACEOF
  20699. if ac_fn_c_try_compile "$LINENO"; then :
  20700. have_machine_joystick=yes
  20701. fi
  20702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20703. if test x$have_machine_joystick = xyes; then
  20704. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20705. fi
  20706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20707. $as_echo "$have_machine_joystick" >&6; }
  20708. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20709. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20710. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20711. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20712. have_joystick=yes
  20713. fi
  20714. CFLAGS="$save_CFLAGS"
  20715. fi
  20716. ;;
  20717. esac
  20718. }
  20719. CheckHIDAPI()
  20720. {
  20721. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20722. # so we'll just use libusb when it's available.
  20723. case "$host" in
  20724. # libusb does not support iOS
  20725. arm*-apple-darwin* | *-ios-* )
  20726. skiplibusb=yes
  20727. ;;
  20728. # On the other hand, *BSD specifically uses libusb only
  20729. *-*-*bsd* )
  20730. onlylibusb=yes
  20731. ;;
  20732. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20733. *-*-cygwin* | *-*-mingw32*)
  20734. userawinput=yes
  20735. ;;
  20736. esac
  20737. # Check whether --enable-hidapi was given.
  20738. if test "${enable_hidapi+set}" = set; then :
  20739. enableval=$enable_hidapi;
  20740. else
  20741. enable_hidapi=no
  20742. fi
  20743. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20744. if test x$skiplibusb = xyes; then
  20745. hidapi_support=yes
  20746. else
  20747. pkg_failed=no
  20748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20749. $as_echo_n "checking for LIBUSB... " >&6; }
  20750. if test -n "$LIBUSB_CFLAGS"; then
  20751. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20752. elif test -n "$PKG_CONFIG"; then
  20753. if test -n "$PKG_CONFIG" && \
  20754. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20755. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20756. ac_status=$?
  20757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20758. test $ac_status = 0; }; then
  20759. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20760. else
  20761. pkg_failed=yes
  20762. fi
  20763. else
  20764. pkg_failed=untried
  20765. fi
  20766. if test -n "$LIBUSB_LIBS"; then
  20767. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20768. elif test -n "$PKG_CONFIG"; then
  20769. if test -n "$PKG_CONFIG" && \
  20770. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20771. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20772. ac_status=$?
  20773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20774. test $ac_status = 0; }; then
  20775. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20776. else
  20777. pkg_failed=yes
  20778. fi
  20779. else
  20780. pkg_failed=untried
  20781. fi
  20782. if test $pkg_failed = yes; then
  20783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20784. $as_echo "no" >&6; }
  20785. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20786. _pkg_short_errors_supported=yes
  20787. else
  20788. _pkg_short_errors_supported=no
  20789. fi
  20790. if test $_pkg_short_errors_supported = yes; then
  20791. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20792. else
  20793. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20794. fi
  20795. # Put the nasty error message in config.log where it belongs
  20796. echo "$LIBUSB_PKG_ERRORS" >&5
  20797. have_libusb=no
  20798. elif test $pkg_failed = untried; then
  20799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20800. $as_echo "no" >&6; }
  20801. have_libusb=no
  20802. else
  20803. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20804. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20806. $as_echo "yes" >&6; }
  20807. have_libusb=yes
  20808. fi
  20809. save_CFLAGS="$CFLAGS"
  20810. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20811. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20812. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20813. have_libusb_h=yes
  20814. fi
  20815. CFLAGS="$save_CFLAGS"
  20816. if test x$have_libusb_h = xyes; then
  20817. hidapi_support=yes
  20818. elif test x$onlylibusb = xyes; then
  20819. hidapi_support=no
  20820. else
  20821. hidapi_support=yes
  20822. fi
  20823. fi
  20824. if test x$hidapi_support = xyes; then
  20825. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20826. if test x$userawinput = xyes; then
  20827. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20828. fi
  20829. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20830. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20831. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20832. if test x$have_libusb_h = xyes; then
  20833. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20834. if test x$onlylibusb = xyes; then
  20835. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20837. else
  20838. if test x$have_loadso != xyes; then
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20840. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20841. fi
  20842. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20843. libusb_lib=""
  20844. case "$host" in
  20845. *-*-darwin* )
  20846. libusb_lib="libusb-1.0.0.dylib"
  20847. ;;
  20848. *-*-cygwin* | *-*-mingw32* )
  20849. libusb_lib="libusb-1.0.dll"
  20850. ;;
  20851. esac
  20852. if test x$libusb_lib = x; then
  20853. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20854. fi
  20855. cat >>confdefs.h <<_ACEOF
  20856. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20857. _ACEOF
  20858. fi
  20859. fi
  20860. fi
  20861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20862. $as_echo_n "checking for hidapi support... " >&6; }
  20863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20864. $as_echo "$hidapi_support" >&6; }
  20865. fi
  20866. }
  20867. CheckClockGettime()
  20868. {
  20869. # Check whether --enable-clock_gettime was given.
  20870. if test "${enable_clock_gettime+set}" = set; then :
  20871. enableval=$enable_clock_gettime;
  20872. else
  20873. enable_clock_gettime=yes
  20874. fi
  20875. if test x$enable_clock_gettime = xyes; then
  20876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20877. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20878. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20879. $as_echo_n "(cached) " >&6
  20880. else
  20881. ac_check_lib_save_LIBS=$LIBS
  20882. LIBS="-lrt $LIBS"
  20883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20884. /* end confdefs.h. */
  20885. /* Override any GCC internal prototype to avoid an error.
  20886. Use char because int might match the return type of a GCC
  20887. builtin and then its argument prototype would still apply. */
  20888. #ifdef __cplusplus
  20889. extern "C"
  20890. #endif
  20891. char clock_gettime ();
  20892. int
  20893. main ()
  20894. {
  20895. return clock_gettime ();
  20896. ;
  20897. return 0;
  20898. }
  20899. _ACEOF
  20900. if ac_fn_c_try_link "$LINENO"; then :
  20901. ac_cv_lib_rt_clock_gettime=yes
  20902. else
  20903. ac_cv_lib_rt_clock_gettime=no
  20904. fi
  20905. rm -f core conftest.err conftest.$ac_objext \
  20906. conftest$ac_exeext conftest.$ac_ext
  20907. LIBS=$ac_check_lib_save_LIBS
  20908. fi
  20909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20910. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20911. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20912. have_clock_gettime=yes
  20913. fi
  20914. if test x$have_clock_gettime = xyes; then
  20915. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20916. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20917. else
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20919. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20920. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20921. $as_echo_n "(cached) " >&6
  20922. else
  20923. ac_check_lib_save_LIBS=$LIBS
  20924. LIBS="-lc $LIBS"
  20925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20926. /* end confdefs.h. */
  20927. /* Override any GCC internal prototype to avoid an error.
  20928. Use char because int might match the return type of a GCC
  20929. builtin and then its argument prototype would still apply. */
  20930. #ifdef __cplusplus
  20931. extern "C"
  20932. #endif
  20933. char clock_gettime ();
  20934. int
  20935. main ()
  20936. {
  20937. return clock_gettime ();
  20938. ;
  20939. return 0;
  20940. }
  20941. _ACEOF
  20942. if ac_fn_c_try_link "$LINENO"; then :
  20943. ac_cv_lib_c_clock_gettime=yes
  20944. else
  20945. ac_cv_lib_c_clock_gettime=no
  20946. fi
  20947. rm -f core conftest.err conftest.$ac_objext \
  20948. conftest$ac_exeext conftest.$ac_ext
  20949. LIBS=$ac_check_lib_save_LIBS
  20950. fi
  20951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20952. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20953. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20954. have_clock_gettime=yes
  20955. fi
  20956. if test x$have_clock_gettime = xyes; then
  20957. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20959. fi
  20960. fi
  20961. fi
  20962. }
  20963. CheckLinuxVersion()
  20964. {
  20965. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20966. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20967. have_linux_version_h=yes
  20968. fi
  20969. if test x$have_linux_version_h = xyes; then
  20970. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20971. fi
  20972. }
  20973. CheckRPATH()
  20974. {
  20975. # Check whether --enable-rpath was given.
  20976. if test "${enable_rpath+set}" = set; then :
  20977. enableval=$enable_rpath;
  20978. else
  20979. enable_rpath=yes
  20980. fi
  20981. }
  20982. CheckEventSignals()
  20983. {
  20984. # Check whether --enable-backgrounding-signal was given.
  20985. if test "${enable_backgrounding_signal+set}" = set; then :
  20986. enableval=$enable_backgrounding_signal;
  20987. else
  20988. enable_backgrounding_signal=no
  20989. fi
  20990. if test x$enable_backgrounding_signal != xno; then
  20991. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20992. fi
  20993. # Check whether --enable-foregrounding-signal was given.
  20994. if test "${enable_foregrounding_signal+set}" = set; then :
  20995. enableval=$enable_foregrounding_signal;
  20996. else
  20997. enable_foregrounding_signal=no
  20998. fi
  20999. if test x$enable_foregrounding_signal != xno; then
  21000. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21001. fi
  21002. }
  21003. CheckVirtualJoystick()
  21004. {
  21005. # Check whether --enable-joystick-virtual was given.
  21006. if test "${enable_joystick_virtual+set}" = set; then :
  21007. enableval=$enable_joystick_virtual;
  21008. else
  21009. enable_joystick_virtual=no
  21010. fi
  21011. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21012. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21013. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21014. have_joystick_virtual=yes
  21015. fi
  21016. }
  21017. CheckWarnAll
  21018. CheckNoStrictAliasing
  21019. CheckEventSignals
  21020. case "$host" in
  21021. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21022. case "$host" in
  21023. *-*-android*)
  21024. # Android
  21025. ARCH=android
  21026. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21027. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21028. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21029. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21030. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21031. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21032. if test x$enable_video = xyes; then
  21033. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21034. # FIXME: confdefs? Not AC_DEFINE?
  21035. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21036. SUMMARY_video="${SUMMARY_video} android"
  21037. fi
  21038. ;;
  21039. *-*-linux*) ARCH=linux ;;
  21040. *-*-uclinux*) ARCH=linux ;;
  21041. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21042. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21043. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21044. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21045. *-*-bsdi*) ARCH=bsdi ;;
  21046. *-*-freebsd*) ARCH=freebsd ;;
  21047. *-*-dragonfly*) ARCH=freebsd ;;
  21048. *-*-netbsd*) ARCH=netbsd ;;
  21049. *-*-openbsd*) ARCH=openbsd ;;
  21050. *-*-sysv5*) ARCH=sysv5 ;;
  21051. *-*-solaris*) ARCH=solaris ;;
  21052. *-*-hpux*) ARCH=hpux ;;
  21053. *-*-aix*) ARCH=aix ;;
  21054. *-*-minix*) ARCH=minix ;;
  21055. *-*-nto*) ARCH=nto
  21056. CheckQNXVideo
  21057. ;;
  21058. esac
  21059. CheckVisibilityHidden
  21060. CheckDeclarationAfterStatement
  21061. CheckDummyVideo
  21062. CheckDiskAudio
  21063. CheckDummyAudio
  21064. CheckDLOPEN
  21065. CheckARM
  21066. CheckNEON
  21067. CheckOSS
  21068. CheckALSA
  21069. CheckPulseAudio
  21070. CheckJACK
  21071. CheckARTSC
  21072. CheckESD
  21073. CheckNAS
  21074. CheckSNDIO
  21075. CheckFusionSound
  21076. CheckLibSampleRate
  21077. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21078. CheckRPI
  21079. CheckX11
  21080. CheckDirectFB
  21081. CheckKMSDRM
  21082. CheckOpenGLX11
  21083. CheckOpenGLESX11
  21084. CheckVulkan
  21085. CheckWayland
  21086. CheckInputEvents
  21087. CheckLibUDev
  21088. CheckDBus
  21089. CheckIME
  21090. CheckIBus
  21091. CheckFcitx
  21092. case $ARCH in
  21093. linux)
  21094. CheckInputKD
  21095. ;;
  21096. esac
  21097. CheckTslib
  21098. CheckUSBHID
  21099. CheckHIDAPI
  21100. CheckPTHREAD
  21101. CheckClockGettime
  21102. CheckLinuxVersion
  21103. CheckRPATH
  21104. CheckVivanteVideo
  21105. # Set up files for the audio library
  21106. if test x$enable_audio = xyes; then
  21107. case $ARCH in
  21108. sysv5|solaris|hpux)
  21109. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21110. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21111. SUMMARY_audio="${SUMMARY_audio} sun"
  21112. have_audio=yes
  21113. ;;
  21114. netbsd) # Don't use this on OpenBSD, it's busted.
  21115. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21116. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21117. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21118. have_audio=yes
  21119. ;;
  21120. aix)
  21121. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21123. SUMMARY_audio="${SUMMARY_audio} paudio"
  21124. have_audio=yes
  21125. ;;
  21126. android)
  21127. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21128. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21129. SUMMARY_audio="${SUMMARY_audio} android"
  21130. have_audio=yes
  21131. ;;
  21132. nto)
  21133. CheckQNXAudio
  21134. ;;
  21135. esac
  21136. fi
  21137. # Set up files for the joystick library
  21138. if test x$enable_joystick = xyes; then
  21139. case $ARCH in
  21140. linux)
  21141. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21142. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21143. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21144. have_joystick=yes
  21145. ;;
  21146. android)
  21147. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21148. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21149. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21150. have_joystick=yes
  21151. ;;
  21152. esac
  21153. fi
  21154. # Set up files for the haptic library
  21155. if test x$enable_haptic = xyes; then
  21156. case $ARCH in
  21157. linux)
  21158. if test x$use_input_events = xyes; then
  21159. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21160. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21161. have_haptic=yes
  21162. fi
  21163. ;;
  21164. android)
  21165. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21166. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21167. have_haptic=yes
  21168. ;;
  21169. esac
  21170. fi
  21171. # Set up files for the sensor library
  21172. if test x$enable_sensor = xyes; then
  21173. case $ARCH in
  21174. android)
  21175. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21176. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21177. have_sensor=yes
  21178. ;;
  21179. esac
  21180. fi
  21181. # Set up files for the power library
  21182. if test x$enable_power = xyes; then
  21183. case $ARCH in
  21184. linux)
  21185. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21186. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21187. have_power=yes
  21188. ;;
  21189. android)
  21190. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21191. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21192. have_power=yes
  21193. ;;
  21194. esac
  21195. fi
  21196. # Set up files for the filesystem library
  21197. if test x$enable_filesystem = xyes; then
  21198. case $ARCH in
  21199. android)
  21200. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21201. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21202. have_filesystem=yes
  21203. ;;
  21204. *)
  21205. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21206. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21207. have_filesystem=yes
  21208. ;;
  21209. esac
  21210. fi
  21211. # Set up files for the timer library
  21212. if test x$enable_timers = xyes; then
  21213. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21214. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21215. have_timers=yes
  21216. fi
  21217. # Set up files for udev hotplugging support
  21218. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21219. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21220. fi
  21221. # Set up files for evdev input
  21222. if test x$use_input_events = xyes; then
  21223. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21224. fi
  21225. # Set up other core UNIX files
  21226. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21227. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21228. ;;
  21229. *-*-cygwin* | *-*-mingw32*)
  21230. ARCH=win32
  21231. if test "$build" != "$host"; then # cross-compiling
  21232. # Default cross-compile location
  21233. ac_default_prefix=/usr/local/cross-tools/$host
  21234. else
  21235. # Look for the location of the tools and install there
  21236. if test "$BUILD_PREFIX" != ""; then
  21237. ac_default_prefix=$BUILD_PREFIX
  21238. fi
  21239. fi
  21240. CheckDeclarationAfterStatement
  21241. CheckDummyVideo
  21242. CheckDiskAudio
  21243. CheckDummyAudio
  21244. CheckWINDOWS
  21245. CheckWINDOWSGL
  21246. CheckWINDOWSGLES
  21247. CheckVulkan
  21248. CheckDIRECTX
  21249. CheckHIDAPI
  21250. # Set up the core platform files
  21251. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21252. # Set up files for the video library
  21253. if test x$enable_video = xyes; then
  21254. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21255. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21256. have_video=yes
  21257. # Check whether --enable-render-d3d was given.
  21258. if test "${enable_render_d3d+set}" = set; then :
  21259. enableval=$enable_render_d3d;
  21260. else
  21261. enable_render_d3d=yes
  21262. fi
  21263. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21264. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21265. SUMMARY_video="${SUMMARY_video} d3d9"
  21266. fi
  21267. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21268. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21269. SUMMARY_video="${SUMMARY_video} d3d11"
  21270. fi
  21271. fi
  21272. # Set up files for the audio library
  21273. if test x$enable_audio = xyes; then
  21274. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21275. SUMMARY_audio="${SUMMARY_audio} winmm"
  21276. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21277. if test x$have_dsound = xyes; then
  21278. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21279. SUMMARY_audio="${SUMMARY_audio} directsound"
  21280. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21281. fi
  21282. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21283. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21284. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21285. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21286. fi
  21287. have_audio=yes
  21288. fi
  21289. # Set up files for the joystick library
  21290. if test x$enable_joystick = xyes; then
  21291. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21292. if test x$have_xinput = xyes; then
  21293. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21294. fi
  21295. if test x$have_dinput = xyes; then
  21296. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21298. fi
  21299. else
  21300. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21301. fi
  21302. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21303. have_joystick=yes
  21304. fi
  21305. if test x$enable_haptic = xyes; then
  21306. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21307. if test x$have_xinput = xyes; then
  21308. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21309. fi
  21310. if test x$have_dinput = xyes; then
  21311. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21312. fi
  21313. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21314. have_haptic=yes
  21315. fi
  21316. fi
  21317. # Set up files for the sensor library
  21318. if test x$enable_sensor = xyes; then
  21319. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21320. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21321. have_sensor=yes
  21322. fi
  21323. # Set up files for the power library
  21324. if test x$enable_power = xyes; then
  21325. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21326. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21327. have_power=yes
  21328. fi
  21329. # Set up files for the filesystem library
  21330. if test x$enable_filesystem = xyes; then
  21331. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21332. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21333. have_filesystem=yes
  21334. fi
  21335. # Set up files for the thread library
  21336. if test x$enable_threads = xyes; then
  21337. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21338. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21339. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21340. have_threads=yes
  21341. fi
  21342. # Set up files for the timer library
  21343. if test x$enable_timers = xyes; then
  21344. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21345. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21346. have_timers=yes
  21347. fi
  21348. # Set up files for the shared object loading library
  21349. if test x$enable_loadso = xyes; then
  21350. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21351. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21352. have_loadso=yes
  21353. fi
  21354. # Set up the system libraries we need
  21355. if test -f /lib/w32api/libuuid.a; then
  21356. LIBUUID=/lib/w32api/libuuid.a
  21357. else
  21358. LIBUUID=-luuid
  21359. fi
  21360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21361. # The Windows platform requires special setup
  21362. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21363. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21364. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21365. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21366. # Check to see if this is a mingw or cygwin build
  21367. have_mingw32=
  21368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21369. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21370. if ${ac_cv_lib_mingw32_main+:} false; then :
  21371. $as_echo_n "(cached) " >&6
  21372. else
  21373. ac_check_lib_save_LIBS=$LIBS
  21374. LIBS="-lmingw32 $LIBS"
  21375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21376. /* end confdefs.h. */
  21377. int
  21378. main ()
  21379. {
  21380. return main ();
  21381. ;
  21382. return 0;
  21383. }
  21384. _ACEOF
  21385. if ac_fn_c_try_link "$LINENO"; then :
  21386. ac_cv_lib_mingw32_main=yes
  21387. else
  21388. ac_cv_lib_mingw32_main=no
  21389. fi
  21390. rm -f core conftest.err conftest.$ac_objext \
  21391. conftest$ac_exeext conftest.$ac_ext
  21392. LIBS=$ac_check_lib_save_LIBS
  21393. fi
  21394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21395. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21396. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21397. have_mingw32=yes
  21398. fi
  21399. if test x$have_mingw32 = xyes; then
  21400. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21401. else
  21402. SDL_LIBS="-lcygwin $SDL_LIBS"
  21403. fi
  21404. ;;
  21405. *-*-beos*)
  21406. as_fn_error $? "
  21407. *** BeOS support has been removed as of SDL 2.0.2.
  21408. " "$LINENO" 5
  21409. ;;
  21410. *-*-haiku*)
  21411. ARCH=haiku
  21412. ac_default_prefix=/boot/system
  21413. CheckDummyVideo
  21414. CheckDiskAudio
  21415. CheckDummyAudio
  21416. CheckDLOPEN
  21417. CheckHaikuVideo
  21418. CheckHaikuGL
  21419. CheckPTHREAD
  21420. # Set up files for the audio library
  21421. if test x$enable_audio = xyes; then
  21422. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21423. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21424. SUMMARY_audio="${SUMMARY_audio} haiku"
  21425. have_audio=yes
  21426. fi
  21427. # Set up files for the joystick library
  21428. if test x$enable_joystick = xyes; then
  21429. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21430. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21431. have_joystick=yes
  21432. fi
  21433. # Set up files for the timer library
  21434. if test x$enable_timers = xyes; then
  21435. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21436. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21437. have_timers=yes
  21438. fi
  21439. # Set up files for the system power library
  21440. if test x$enable_power = xyes; then
  21441. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21442. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21443. have_power=yes
  21444. fi
  21445. # Set up files for the system filesystem library
  21446. if test x$enable_filesystem = xyes; then
  21447. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21448. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21449. have_filesystem=yes
  21450. fi
  21451. # The Haiku platform requires special setup.
  21452. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21454. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21455. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21456. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21458. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21459. if eval \${$as_ac_File+:} false; then :
  21460. $as_echo_n "(cached) " >&6
  21461. else
  21462. test "$cross_compiling" = yes &&
  21463. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21464. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21465. eval "$as_ac_File=yes"
  21466. else
  21467. eval "$as_ac_File=no"
  21468. fi
  21469. fi
  21470. eval ac_res=\$$as_ac_File
  21471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21472. $as_echo "$ac_res" >&6; }
  21473. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21475. else
  21476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21477. fi
  21478. ;;
  21479. arm*-apple-darwin*|*-ios-*)
  21480. ARCH=ios
  21481. CheckVisibilityHidden
  21482. CheckDeclarationAfterStatement
  21483. CheckDummyVideo
  21484. CheckDiskAudio
  21485. CheckDummyAudio
  21486. CheckDLOPEN
  21487. CheckMETAL
  21488. CheckVulkan
  21489. CheckPTHREAD
  21490. # Set up files for the audio library
  21491. if test x$enable_audio = xyes; then
  21492. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21493. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21494. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21495. have_audio=yes
  21496. fi
  21497. # Set up files for the joystick library
  21498. if test x$enable_joystick = xyes; then
  21499. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21500. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21501. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21502. have_joystick=yes
  21503. fi
  21504. # Set up files for the haptic library
  21505. #if test x$enable_haptic = xyes; then
  21506. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21507. # have_haptic=yes
  21508. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21509. #fi
  21510. # Set up files for the sensor library
  21511. if test x$enable_sensor = xyes; then
  21512. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21513. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21514. have_sensor=yes
  21515. fi
  21516. # Set up files for the power library
  21517. if test x$enable_power = xyes; then
  21518. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21519. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21520. have_power=yes
  21521. fi
  21522. # Set up files for the filesystem library
  21523. if test x$enable_filesystem = xyes; then
  21524. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21525. have_filesystem=yes
  21526. fi
  21527. # Set up additional files for the file library
  21528. if test x$enable_file = xyes; then
  21529. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21530. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21531. fi
  21532. # Set up files for the timer library
  21533. if test x$enable_timers = xyes; then
  21534. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21535. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21536. have_timers=yes
  21537. fi
  21538. # Set up other core UNIX files
  21539. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21540. # The iOS platform requires special setup.
  21541. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21542. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21543. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21544. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21545. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21546. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21558. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21559. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21560. fi
  21561. ;;
  21562. *-*-darwin* )
  21563. # This could be either full "Mac OS X", or plain "Darwin" which is
  21564. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21565. # Next line is broken, and a few files below require Mac OS X (full)
  21566. ARCH=macosx
  21567. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21568. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21569. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21570. CheckVisibilityHidden
  21571. CheckDeclarationAfterStatement
  21572. CheckDummyVideo
  21573. CheckDiskAudio
  21574. CheckDummyAudio
  21575. CheckDLOPEN
  21576. CheckCOCOA
  21577. CheckMETAL
  21578. CheckX11
  21579. CheckMacGL
  21580. CheckMacGLES
  21581. CheckOpenGLX11
  21582. CheckVulkan
  21583. CheckPTHREAD
  21584. CheckHIDAPI
  21585. # Set up files for the audio library
  21586. if test x$enable_audio = xyes; then
  21587. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21588. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21590. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21591. have_audio=yes
  21592. fi
  21593. # Set up files for the joystick library
  21594. if test x$enable_joystick = xyes; then
  21595. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21596. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21597. have_joystick=yes
  21598. fi
  21599. # Set up files for the haptic library
  21600. if test x$enable_haptic = xyes; then
  21601. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21602. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21604. have_haptic=yes
  21605. fi
  21606. # Set up files for the power library
  21607. if test x$enable_power = xyes; then
  21608. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21609. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21610. have_power=yes
  21611. fi
  21612. # Set up files for the filesystem library
  21613. if test x$enable_filesystem = xyes; then
  21614. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21615. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21616. have_filesystem=yes
  21617. fi
  21618. # Set up files for the timer library
  21619. if test x$enable_timers = xyes; then
  21620. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21621. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21622. have_timers=yes
  21623. fi
  21624. # Set up additional files for the file library
  21625. if test x$enable_file = xyes; then
  21626. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21627. fi
  21628. # Set up other core UNIX files
  21629. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21630. # The Mac OS X platform requires special setup.
  21631. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21633. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21634. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21635. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21636. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21637. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21638. fi
  21639. ;;
  21640. *-nacl|*-pnacl)
  21641. ARCH=nacl
  21642. CheckNativeClient
  21643. CheckDummyAudio
  21644. CheckDummyVideo
  21645. CheckInputEvents
  21646. CheckPTHREAD
  21647. # Set up files for the timer library
  21648. if test x$enable_timers = xyes; then
  21649. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21650. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21651. have_timers=yes
  21652. fi
  21653. if test x$enable_filesystem = xyes; then
  21654. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21655. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21656. have_filesystem=yes
  21657. fi
  21658. ;;
  21659. *-*-emscripten* )
  21660. if test x$enable_video = xyes; then
  21661. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21662. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21663. have_video=yes
  21664. SUMMARY_video="${SUMMARY_video} emscripten"
  21665. fi
  21666. if test x$enable_audio = xyes; then
  21667. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21668. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21669. have_audio=yes
  21670. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21671. fi
  21672. CheckVisibilityHidden
  21673. CheckDeclarationAfterStatement
  21674. CheckDummyVideo
  21675. CheckDiskAudio
  21676. CheckDummyAudio
  21677. CheckDLOPEN
  21678. CheckClockGettime
  21679. CheckEmscriptenGLES
  21680. # Set up files for the power library
  21681. if test x$enable_power = xyes; then
  21682. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21683. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21684. have_power=yes
  21685. fi
  21686. # Set up files for the power library
  21687. if test x$enable_joystick = xyes; then
  21688. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21689. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21690. have_joystick=yes
  21691. fi
  21692. # Set up files for the filesystem library
  21693. if test x$enable_filesystem = xyes; then
  21694. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21695. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21696. have_filesystem=yes
  21697. fi
  21698. # Set up files for the timer library
  21699. if test x$enable_timers = xyes; then
  21700. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21701. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21702. have_timers=yes
  21703. fi
  21704. ;;
  21705. *-*-riscos*)
  21706. ARCH=riscos
  21707. CheckVisibilityHidden
  21708. CheckDeclarationAfterStatement
  21709. CheckDummyVideo
  21710. CheckDiskAudio
  21711. CheckDummyAudio
  21712. CheckDLOPEN
  21713. CheckOSS
  21714. CheckPTHREAD
  21715. CheckClockGettime
  21716. # Set up files for the timer library
  21717. if test x$enable_timers = xyes; then
  21718. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21719. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21720. have_timers=yes
  21721. fi
  21722. ;;
  21723. *)
  21724. as_fn_error $? "
  21725. *** Unsupported host: Please add to configure.ac
  21726. " "$LINENO" 5
  21727. ;;
  21728. esac
  21729. CheckVirtualJoystick
  21730. # Check whether to install sdl2-config
  21731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21732. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21733. # Check whether --enable-sdl2-config was given.
  21734. if test "${enable_sdl2_config+set}" = set; then :
  21735. enableval=$enable_sdl2_config; case "${enableval}" in
  21736. yes) enable_sdl2_config="TRUE" ;;
  21737. no) enable_sdl2_config="FALSE" ;;
  21738. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21739. esac
  21740. else
  21741. enable_sdl2_config="TRUE"
  21742. fi
  21743. if test "$enable_sdl2_config" = "TRUE"; then
  21744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21745. $as_echo "yes" >&6; }
  21746. else
  21747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21748. $as_echo "no" >&6; }
  21749. fi
  21750. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21751. # Verify that we have all the platform specific files we need
  21752. if test x$have_joystick != xyes; then
  21753. if test x$enable_joystick = xyes; then
  21754. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21755. fi
  21756. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21757. fi
  21758. if test x$have_haptic != xyes; then
  21759. if test x$enable_haptic = xyes; then
  21760. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21761. fi
  21762. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21763. fi
  21764. if test x$have_sensor != xyes; then
  21765. if test x$enable_sensor = xyes; then
  21766. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21767. fi
  21768. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21769. fi
  21770. if test x$have_threads != xyes; then
  21771. if test x$enable_threads = xyes; then
  21772. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21773. fi
  21774. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21775. fi
  21776. if test x$have_timers != xyes; then
  21777. if test x$enable_timers = xyes; then
  21778. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21779. fi
  21780. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21781. fi
  21782. if test x$have_filesystem != xyes; then
  21783. if test x$enable_filesystem = xyes; then
  21784. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21785. fi
  21786. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21787. fi
  21788. if test x$have_loadso != xyes; then
  21789. if test x$enable_loadso = xyes; then
  21790. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21791. fi
  21792. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21793. fi
  21794. if test x$SDLMAIN_SOURCES = x; then
  21795. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21796. fi
  21797. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21798. if test x$video_wayland = xyes; then
  21799. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21800. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21801. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21802. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21803. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21804. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21805. echo ;\
  21806. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21807. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21808. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21809. echo ;\
  21810. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21811. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21812. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21813. echo ;\
  21814. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21815. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21816. done ;\
  21817. echo ;\
  21818. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21819. fi
  21820. OBJECTS=`echo $SOURCES`
  21821. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21822. for EXT in asm cc m c S; do
  21823. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21824. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21825. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21826. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21827. done
  21828. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21829. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21830. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21831. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21832. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21833. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21834. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21835. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21836. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21837. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21838. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21839. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21840. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21841. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21842. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21843. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21844. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21845. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21846. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21847. # Set runtime shared library paths as needed
  21848. if test "x$enable_rpath" = "xyes"; then
  21849. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21850. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21852. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21853. have_enable_new_dtags=no
  21854. save_LDFLAGS="$LDFLAGS"
  21855. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21857. /* end confdefs.h. */
  21858. int
  21859. main ()
  21860. {
  21861. ;
  21862. return 0;
  21863. }
  21864. _ACEOF
  21865. if ac_fn_c_try_link "$LINENO"; then :
  21866. have_enable_new_dtags=yes
  21867. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21868. fi
  21869. rm -f core conftest.err conftest.$ac_objext \
  21870. conftest$ac_exeext conftest.$ac_ext
  21871. LDFLAGS="$save_LDFLAGS"
  21872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21873. $as_echo "$have_enable_new_dtags" >&6; }
  21874. fi
  21875. if test $ARCH = solaris; then
  21876. SDL_RLD_FLAGS="-R\${libdir}"
  21877. fi
  21878. else
  21879. SDL_RLD_FLAGS=""
  21880. fi
  21881. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21882. if test x$enable_shared = xyes; then
  21883. ENABLE_SHARED_TRUE=
  21884. ENABLE_SHARED_FALSE="#"
  21885. else
  21886. ENABLE_SHARED_TRUE="#"
  21887. ENABLE_SHARED_FALSE=
  21888. fi
  21889. if test x$enable_static = xyes; then
  21890. ENABLE_STATIC_TRUE=
  21891. ENABLE_STATIC_FALSE="#"
  21892. else
  21893. ENABLE_STATIC_TRUE="#"
  21894. ENABLE_STATIC_FALSE=
  21895. fi
  21896. cat >Makefile.rules <<__EOF__
  21897. # Build rules for objects
  21898. -include \$(OBJECTS:.lo=.d)
  21899. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21900. $srcdir/src/SDL.c: update-revision
  21901. $DEPENDS
  21902. $VERSION_DEPENDS
  21903. $SDLMAIN_DEPENDS
  21904. $SDLTEST_DEPENDS
  21905. $WAYLAND_PROTOCOLS_DEPENDS
  21906. __EOF__
  21907. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21908. ac_config_commands="$ac_config_commands sdl2_config"
  21909. SUMMARY="SDL2 Configure Summary:\n"
  21910. if test x$enable_shared = xyes; then
  21911. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21912. fi
  21913. if test x$enable_static = xyes; then
  21914. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21915. fi
  21916. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21917. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21918. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21919. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21920. if test x$have_x = xyes; then
  21921. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21922. fi
  21923. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21924. if test x$have_joystick_virtual = xyes; then
  21925. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21926. else
  21927. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21928. fi
  21929. if test x$have_samplerate_h_hdr = xyes; then
  21930. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21931. else
  21932. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21933. fi
  21934. if test x$have_libudev_h_hdr = xyes; then
  21935. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21936. else
  21937. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21938. fi
  21939. if test x$have_dbus_dbus_h_hdr = xyes; then
  21940. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21941. else
  21942. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21943. fi
  21944. if test x$enable_ime = xyes; then
  21945. SUMMARY="${SUMMARY}Using ime : YES\n"
  21946. else
  21947. SUMMARY="${SUMMARY}Using ime : NO\n"
  21948. fi
  21949. if test x$have_ibus_ibus_h_hdr = xyes; then
  21950. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21951. else
  21952. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21953. fi
  21954. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21955. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21956. else
  21957. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21958. fi
  21959. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21960. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21961. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21962. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21963. SUMMARY="${SUMMARY}configure script with:\n"
  21964. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21965. fi
  21966. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21967. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21968. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21969. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21970. SUMMARY="${SUMMARY}configure script with:\n"
  21971. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21972. fi
  21973. ac_config_commands="$ac_config_commands summary"
  21974. cat >confcache <<\_ACEOF
  21975. # This file is a shell script that caches the results of configure
  21976. # tests run on this system so they can be shared between configure
  21977. # scripts and configure runs, see configure's option --config-cache.
  21978. # It is not useful on other systems. If it contains results you don't
  21979. # want to keep, you may remove or edit it.
  21980. #
  21981. # config.status only pays attention to the cache file if you give it
  21982. # the --recheck option to rerun configure.
  21983. #
  21984. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21985. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21986. # following values.
  21987. _ACEOF
  21988. # The following way of writing the cache mishandles newlines in values,
  21989. # but we know of no workaround that is simple, portable, and efficient.
  21990. # So, we kill variables containing newlines.
  21991. # Ultrix sh set writes to stderr and can't be redirected directly,
  21992. # and sets the high bit in the cache file unless we assign to the vars.
  21993. (
  21994. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21995. eval ac_val=\$$ac_var
  21996. case $ac_val in #(
  21997. *${as_nl}*)
  21998. case $ac_var in #(
  21999. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22000. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22001. esac
  22002. case $ac_var in #(
  22003. _ | IFS | as_nl) ;; #(
  22004. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22005. *) { eval $ac_var=; unset $ac_var;} ;;
  22006. esac ;;
  22007. esac
  22008. done
  22009. (set) 2>&1 |
  22010. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22011. *${as_nl}ac_space=\ *)
  22012. # `set' does not quote correctly, so add quotes: double-quote
  22013. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22014. sed -n \
  22015. "s/'/'\\\\''/g;
  22016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22017. ;; #(
  22018. *)
  22019. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22021. ;;
  22022. esac |
  22023. sort
  22024. ) |
  22025. sed '
  22026. /^ac_cv_env_/b end
  22027. t clear
  22028. :clear
  22029. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22030. t end
  22031. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22032. :end' >>confcache
  22033. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22034. if test -w "$cache_file"; then
  22035. if test "x$cache_file" != "x/dev/null"; then
  22036. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22037. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22038. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22039. cat confcache >"$cache_file"
  22040. else
  22041. case $cache_file in #(
  22042. */* | ?:*)
  22043. mv -f confcache "$cache_file"$$ &&
  22044. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22045. *)
  22046. mv -f confcache "$cache_file" ;;
  22047. esac
  22048. fi
  22049. fi
  22050. else
  22051. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22052. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22053. fi
  22054. fi
  22055. rm -f confcache
  22056. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22057. # Let make expand exec_prefix.
  22058. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22059. DEFS=-DHAVE_CONFIG_H
  22060. ac_libobjs=
  22061. ac_ltlibobjs=
  22062. U=
  22063. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22064. # 1. Remove the extension, and $U if already installed.
  22065. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22066. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22067. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22068. # will be set to the directory where LIBOBJS objects are built.
  22069. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22070. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22071. done
  22072. LIBOBJS=$ac_libobjs
  22073. LTLIBOBJS=$ac_ltlibobjs
  22074. : "${CONFIG_STATUS=./config.status}"
  22075. ac_write_fail=0
  22076. ac_clean_files_save=$ac_clean_files
  22077. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22078. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22079. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22080. as_write_fail=0
  22081. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22082. #! $SHELL
  22083. # Generated by $as_me.
  22084. # Run this file to recreate the current configuration.
  22085. # Compiler output produced by configure, useful for debugging
  22086. # configure, is in config.log if it exists.
  22087. debug=false
  22088. ac_cs_recheck=false
  22089. ac_cs_silent=false
  22090. SHELL=\${CONFIG_SHELL-$SHELL}
  22091. export SHELL
  22092. _ASEOF
  22093. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22094. ## -------------------- ##
  22095. ## M4sh Initialization. ##
  22096. ## -------------------- ##
  22097. # Be more Bourne compatible
  22098. DUALCASE=1; export DUALCASE # for MKS sh
  22099. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22100. emulate sh
  22101. NULLCMD=:
  22102. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22103. # is contrary to our usage. Disable this feature.
  22104. alias -g '${1+"$@"}'='"$@"'
  22105. setopt NO_GLOB_SUBST
  22106. else
  22107. case `(set -o) 2>/dev/null` in #(
  22108. *posix*) :
  22109. set -o posix ;; #(
  22110. *) :
  22111. ;;
  22112. esac
  22113. fi
  22114. as_nl='
  22115. '
  22116. export as_nl
  22117. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22118. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22119. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22120. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22121. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22122. # but without wasting forks for bash or zsh.
  22123. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22124. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22125. as_echo='print -r --'
  22126. as_echo_n='print -rn --'
  22127. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22128. as_echo='printf %s\n'
  22129. as_echo_n='printf %s'
  22130. else
  22131. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22132. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22133. as_echo_n='/usr/ucb/echo -n'
  22134. else
  22135. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22136. as_echo_n_body='eval
  22137. arg=$1;
  22138. case $arg in #(
  22139. *"$as_nl"*)
  22140. expr "X$arg" : "X\\(.*\\)$as_nl";
  22141. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22142. esac;
  22143. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22144. '
  22145. export as_echo_n_body
  22146. as_echo_n='sh -c $as_echo_n_body as_echo'
  22147. fi
  22148. export as_echo_body
  22149. as_echo='sh -c $as_echo_body as_echo'
  22150. fi
  22151. # The user is always right.
  22152. if test "${PATH_SEPARATOR+set}" != set; then
  22153. PATH_SEPARATOR=:
  22154. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22155. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22156. PATH_SEPARATOR=';'
  22157. }
  22158. fi
  22159. # IFS
  22160. # We need space, tab and new line, in precisely that order. Quoting is
  22161. # there to prevent editors from complaining about space-tab.
  22162. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22163. # splitting by setting IFS to empty value.)
  22164. IFS=" "" $as_nl"
  22165. # Find who we are. Look in the path if we contain no directory separator.
  22166. as_myself=
  22167. case $0 in #((
  22168. *[\\/]* ) as_myself=$0 ;;
  22169. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22170. for as_dir in $PATH
  22171. do
  22172. IFS=$as_save_IFS
  22173. test -z "$as_dir" && as_dir=.
  22174. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22175. done
  22176. IFS=$as_save_IFS
  22177. ;;
  22178. esac
  22179. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22180. # in which case we are not to be found in the path.
  22181. if test "x$as_myself" = x; then
  22182. as_myself=$0
  22183. fi
  22184. if test ! -f "$as_myself"; then
  22185. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22186. exit 1
  22187. fi
  22188. # Unset variables that we do not need and which cause bugs (e.g. in
  22189. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22190. # suppresses any "Segmentation fault" message there. '((' could
  22191. # trigger a bug in pdksh 5.2.14.
  22192. for as_var in BASH_ENV ENV MAIL MAILPATH
  22193. do eval test x\${$as_var+set} = xset \
  22194. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22195. done
  22196. PS1='$ '
  22197. PS2='> '
  22198. PS4='+ '
  22199. # NLS nuisances.
  22200. LC_ALL=C
  22201. export LC_ALL
  22202. LANGUAGE=C
  22203. export LANGUAGE
  22204. # CDPATH.
  22205. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22206. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22207. # ----------------------------------------
  22208. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22209. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22210. # script with STATUS, using 1 if that was 0.
  22211. as_fn_error ()
  22212. {
  22213. as_status=$1; test $as_status -eq 0 && as_status=1
  22214. if test "$4"; then
  22215. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22216. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22217. fi
  22218. $as_echo "$as_me: error: $2" >&2
  22219. as_fn_exit $as_status
  22220. } # as_fn_error
  22221. # as_fn_set_status STATUS
  22222. # -----------------------
  22223. # Set $? to STATUS, without forking.
  22224. as_fn_set_status ()
  22225. {
  22226. return $1
  22227. } # as_fn_set_status
  22228. # as_fn_exit STATUS
  22229. # -----------------
  22230. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22231. as_fn_exit ()
  22232. {
  22233. set +e
  22234. as_fn_set_status $1
  22235. exit $1
  22236. } # as_fn_exit
  22237. # as_fn_unset VAR
  22238. # ---------------
  22239. # Portably unset VAR.
  22240. as_fn_unset ()
  22241. {
  22242. { eval $1=; unset $1;}
  22243. }
  22244. as_unset=as_fn_unset
  22245. # as_fn_append VAR VALUE
  22246. # ----------------------
  22247. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22248. # advantage of any shell optimizations that allow amortized linear growth over
  22249. # repeated appends, instead of the typical quadratic growth present in naive
  22250. # implementations.
  22251. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22252. eval 'as_fn_append ()
  22253. {
  22254. eval $1+=\$2
  22255. }'
  22256. else
  22257. as_fn_append ()
  22258. {
  22259. eval $1=\$$1\$2
  22260. }
  22261. fi # as_fn_append
  22262. # as_fn_arith ARG...
  22263. # ------------------
  22264. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22265. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22266. # must be portable across $(()) and expr.
  22267. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22268. eval 'as_fn_arith ()
  22269. {
  22270. as_val=$(( $* ))
  22271. }'
  22272. else
  22273. as_fn_arith ()
  22274. {
  22275. as_val=`expr "$@" || test $? -eq 1`
  22276. }
  22277. fi # as_fn_arith
  22278. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22279. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22280. as_expr=expr
  22281. else
  22282. as_expr=false
  22283. fi
  22284. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22285. as_basename=basename
  22286. else
  22287. as_basename=false
  22288. fi
  22289. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22290. as_dirname=dirname
  22291. else
  22292. as_dirname=false
  22293. fi
  22294. as_me=`$as_basename -- "$0" ||
  22295. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22296. X"$0" : 'X\(//\)$' \| \
  22297. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22298. $as_echo X/"$0" |
  22299. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22300. s//\1/
  22301. q
  22302. }
  22303. /^X\/\(\/\/\)$/{
  22304. s//\1/
  22305. q
  22306. }
  22307. /^X\/\(\/\).*/{
  22308. s//\1/
  22309. q
  22310. }
  22311. s/.*/./; q'`
  22312. # Avoid depending upon Character Ranges.
  22313. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22314. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22315. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22316. as_cr_digits='0123456789'
  22317. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22318. ECHO_C= ECHO_N= ECHO_T=
  22319. case `echo -n x` in #(((((
  22320. -n*)
  22321. case `echo 'xy\c'` in
  22322. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22323. xy) ECHO_C='\c';;
  22324. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22325. ECHO_T=' ';;
  22326. esac;;
  22327. *)
  22328. ECHO_N='-n';;
  22329. esac
  22330. rm -f conf$$ conf$$.exe conf$$.file
  22331. if test -d conf$$.dir; then
  22332. rm -f conf$$.dir/conf$$.file
  22333. else
  22334. rm -f conf$$.dir
  22335. mkdir conf$$.dir 2>/dev/null
  22336. fi
  22337. if (echo >conf$$.file) 2>/dev/null; then
  22338. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22339. as_ln_s='ln -s'
  22340. # ... but there are two gotchas:
  22341. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22342. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22343. # In both cases, we have to default to `cp -pR'.
  22344. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22345. as_ln_s='cp -pR'
  22346. elif ln conf$$.file conf$$ 2>/dev/null; then
  22347. as_ln_s=ln
  22348. else
  22349. as_ln_s='cp -pR'
  22350. fi
  22351. else
  22352. as_ln_s='cp -pR'
  22353. fi
  22354. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22355. rmdir conf$$.dir 2>/dev/null
  22356. # as_fn_mkdir_p
  22357. # -------------
  22358. # Create "$as_dir" as a directory, including parents if necessary.
  22359. as_fn_mkdir_p ()
  22360. {
  22361. case $as_dir in #(
  22362. -*) as_dir=./$as_dir;;
  22363. esac
  22364. test -d "$as_dir" || eval $as_mkdir_p || {
  22365. as_dirs=
  22366. while :; do
  22367. case $as_dir in #(
  22368. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22369. *) as_qdir=$as_dir;;
  22370. esac
  22371. as_dirs="'$as_qdir' $as_dirs"
  22372. as_dir=`$as_dirname -- "$as_dir" ||
  22373. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22374. X"$as_dir" : 'X\(//\)[^/]' \| \
  22375. X"$as_dir" : 'X\(//\)$' \| \
  22376. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22377. $as_echo X"$as_dir" |
  22378. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22379. s//\1/
  22380. q
  22381. }
  22382. /^X\(\/\/\)[^/].*/{
  22383. s//\1/
  22384. q
  22385. }
  22386. /^X\(\/\/\)$/{
  22387. s//\1/
  22388. q
  22389. }
  22390. /^X\(\/\).*/{
  22391. s//\1/
  22392. q
  22393. }
  22394. s/.*/./; q'`
  22395. test -d "$as_dir" && break
  22396. done
  22397. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22398. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22399. } # as_fn_mkdir_p
  22400. if mkdir -p . 2>/dev/null; then
  22401. as_mkdir_p='mkdir -p "$as_dir"'
  22402. else
  22403. test -d ./-p && rmdir ./-p
  22404. as_mkdir_p=false
  22405. fi
  22406. # as_fn_executable_p FILE
  22407. # -----------------------
  22408. # Test if FILE is an executable regular file.
  22409. as_fn_executable_p ()
  22410. {
  22411. test -f "$1" && test -x "$1"
  22412. } # as_fn_executable_p
  22413. as_test_x='test -x'
  22414. as_executable_p=as_fn_executable_p
  22415. # Sed expression to map a string onto a valid CPP name.
  22416. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22417. # Sed expression to map a string onto a valid variable name.
  22418. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22419. exec 6>&1
  22420. ## ----------------------------------- ##
  22421. ## Main body of $CONFIG_STATUS script. ##
  22422. ## ----------------------------------- ##
  22423. _ASEOF
  22424. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22425. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22426. # Save the log message, to keep $0 and so on meaningful, and to
  22427. # report actual input values of CONFIG_FILES etc. instead of their
  22428. # values after options handling.
  22429. ac_log="
  22430. This file was extended by $as_me, which was
  22431. generated by GNU Autoconf 2.69. Invocation command line was
  22432. CONFIG_FILES = $CONFIG_FILES
  22433. CONFIG_HEADERS = $CONFIG_HEADERS
  22434. CONFIG_LINKS = $CONFIG_LINKS
  22435. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22436. $ $0 $@
  22437. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22438. "
  22439. _ACEOF
  22440. case $ac_config_files in *"
  22441. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22442. esac
  22443. case $ac_config_headers in *"
  22444. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22445. esac
  22446. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22447. # Files that config.status was made for.
  22448. config_files="$ac_config_files"
  22449. config_headers="$ac_config_headers"
  22450. config_commands="$ac_config_commands"
  22451. _ACEOF
  22452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22453. ac_cs_usage="\
  22454. \`$as_me' instantiates files and other configuration actions
  22455. from templates according to the current configuration. Unless the files
  22456. and actions are specified as TAGs, all are instantiated by default.
  22457. Usage: $0 [OPTION]... [TAG]...
  22458. -h, --help print this help, then exit
  22459. -V, --version print version number and configuration settings, then exit
  22460. --config print configuration, then exit
  22461. -q, --quiet, --silent
  22462. do not print progress messages
  22463. -d, --debug don't remove temporary files
  22464. --recheck update $as_me by reconfiguring in the same conditions
  22465. --file=FILE[:TEMPLATE]
  22466. instantiate the configuration file FILE
  22467. --header=FILE[:TEMPLATE]
  22468. instantiate the configuration header FILE
  22469. Configuration files:
  22470. $config_files
  22471. Configuration headers:
  22472. $config_headers
  22473. Configuration commands:
  22474. $config_commands
  22475. Report bugs to the package provider."
  22476. _ACEOF
  22477. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22478. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22479. ac_cs_version="\\
  22480. config.status
  22481. configured by $0, generated by GNU Autoconf 2.69,
  22482. with options \\"\$ac_cs_config\\"
  22483. Copyright (C) 2012 Free Software Foundation, Inc.
  22484. This config.status script is free software; the Free Software Foundation
  22485. gives unlimited permission to copy, distribute and modify it."
  22486. ac_pwd='$ac_pwd'
  22487. srcdir='$srcdir'
  22488. INSTALL='$INSTALL'
  22489. AWK='$AWK'
  22490. test -n "\$AWK" || AWK=awk
  22491. _ACEOF
  22492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22493. # The default lists apply if the user does not specify any file.
  22494. ac_need_defaults=:
  22495. while test $# != 0
  22496. do
  22497. case $1 in
  22498. --*=?*)
  22499. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22500. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22501. ac_shift=:
  22502. ;;
  22503. --*=)
  22504. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22505. ac_optarg=
  22506. ac_shift=:
  22507. ;;
  22508. *)
  22509. ac_option=$1
  22510. ac_optarg=$2
  22511. ac_shift=shift
  22512. ;;
  22513. esac
  22514. case $ac_option in
  22515. # Handling of the options.
  22516. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22517. ac_cs_recheck=: ;;
  22518. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22519. $as_echo "$ac_cs_version"; exit ;;
  22520. --config | --confi | --conf | --con | --co | --c )
  22521. $as_echo "$ac_cs_config"; exit ;;
  22522. --debug | --debu | --deb | --de | --d | -d )
  22523. debug=: ;;
  22524. --file | --fil | --fi | --f )
  22525. $ac_shift
  22526. case $ac_optarg in
  22527. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22528. '') as_fn_error $? "missing file argument" ;;
  22529. esac
  22530. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22531. ac_need_defaults=false;;
  22532. --header | --heade | --head | --hea )
  22533. $ac_shift
  22534. case $ac_optarg in
  22535. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22536. esac
  22537. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22538. ac_need_defaults=false;;
  22539. --he | --h)
  22540. # Conflict between --help and --header
  22541. as_fn_error $? "ambiguous option: \`$1'
  22542. Try \`$0 --help' for more information.";;
  22543. --help | --hel | -h )
  22544. $as_echo "$ac_cs_usage"; exit ;;
  22545. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22546. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22547. ac_cs_silent=: ;;
  22548. # This is an error.
  22549. -*) as_fn_error $? "unrecognized option: \`$1'
  22550. Try \`$0 --help' for more information." ;;
  22551. *) as_fn_append ac_config_targets " $1"
  22552. ac_need_defaults=false ;;
  22553. esac
  22554. shift
  22555. done
  22556. ac_configure_extra_args=
  22557. if $ac_cs_silent; then
  22558. exec 6>/dev/null
  22559. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22560. fi
  22561. _ACEOF
  22562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22563. if \$ac_cs_recheck; then
  22564. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22565. shift
  22566. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22567. CONFIG_SHELL='$SHELL'
  22568. export CONFIG_SHELL
  22569. exec "\$@"
  22570. fi
  22571. _ACEOF
  22572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22573. exec 5>>config.log
  22574. {
  22575. echo
  22576. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22577. ## Running $as_me. ##
  22578. _ASBOX
  22579. $as_echo "$ac_log"
  22580. } >&5
  22581. _ACEOF
  22582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22583. #
  22584. # INIT-COMMANDS
  22585. #
  22586. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22587. # if CDPATH is set.
  22588. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22589. sed_quote_subst='$sed_quote_subst'
  22590. double_quote_subst='$double_quote_subst'
  22591. delay_variable_subst='$delay_variable_subst'
  22592. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22593. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22594. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22595. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22596. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22597. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22598. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22599. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22600. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22601. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22602. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22603. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22604. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22605. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22606. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22607. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22608. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22609. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22610. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22611. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22612. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22613. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22614. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22615. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22616. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22617. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22618. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22619. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22620. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22621. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22622. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22623. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22624. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22625. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22626. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22627. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22628. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22629. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22630. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22631. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22632. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22633. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22634. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22635. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22636. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22637. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22638. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22639. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22640. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22641. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22642. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22643. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22644. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22645. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22646. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22647. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22648. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22649. 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"`'
  22650. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22651. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22652. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22653. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22654. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22655. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22656. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22657. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22658. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22659. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22660. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22661. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22662. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22663. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22664. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22665. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22666. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22667. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22668. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22669. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22670. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22671. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22672. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22673. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22674. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22675. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22676. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22677. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22678. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22679. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22680. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22681. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22682. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22683. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22684. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22685. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22686. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22687. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22688. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22689. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22690. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22691. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22692. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22693. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22694. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22695. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22696. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22697. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22698. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22699. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22700. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22701. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22702. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22703. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22704. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22705. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22706. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22707. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22708. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22709. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22710. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22711. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22712. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22713. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22714. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22715. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22716. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22717. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22718. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22719. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22720. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22721. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22722. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22723. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22724. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22725. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22726. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22727. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22728. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22729. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22730. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22731. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22732. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22733. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22734. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22735. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22736. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22737. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22738. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22739. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22740. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22741. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22742. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22743. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22744. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22745. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22746. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22747. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22748. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22749. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22750. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22751. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22752. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22753. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22754. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22755. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22756. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22757. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22758. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22759. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22760. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22761. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22762. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22763. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22764. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22765. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22766. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22767. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22768. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22769. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22770. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22771. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22772. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22773. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22774. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22775. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22776. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22777. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22778. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22779. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22780. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22781. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22782. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22783. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22784. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22785. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22786. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22787. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22788. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22789. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22790. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22791. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22792. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22793. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22794. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22795. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22796. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22797. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22798. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22799. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22800. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22801. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22802. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22803. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22804. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22805. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22806. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22807. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22808. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22809. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22810. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22811. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22812. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22813. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22814. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22815. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22816. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22817. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22818. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22819. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22820. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22821. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22822. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22823. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22824. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22825. LTCC='$LTCC'
  22826. LTCFLAGS='$LTCFLAGS'
  22827. compiler='$compiler_DEFAULT'
  22828. # A function that is used when there is no print builtin or printf.
  22829. func_fallback_echo ()
  22830. {
  22831. eval 'cat <<_LTECHO_EOF
  22832. \$1
  22833. _LTECHO_EOF'
  22834. }
  22835. # Quote evaled strings.
  22836. for var in AS \
  22837. DLLTOOL \
  22838. OBJDUMP \
  22839. SHELL \
  22840. ECHO \
  22841. PATH_SEPARATOR \
  22842. SED \
  22843. GREP \
  22844. EGREP \
  22845. FGREP \
  22846. LD \
  22847. NM \
  22848. LN_S \
  22849. lt_SP2NL \
  22850. lt_NL2SP \
  22851. reload_flag \
  22852. deplibs_check_method \
  22853. file_magic_cmd \
  22854. file_magic_glob \
  22855. want_nocaseglob \
  22856. sharedlib_from_linklib_cmd \
  22857. AR \
  22858. AR_FLAGS \
  22859. archiver_list_spec \
  22860. STRIP \
  22861. RANLIB \
  22862. CC \
  22863. CFLAGS \
  22864. compiler \
  22865. lt_cv_sys_global_symbol_pipe \
  22866. lt_cv_sys_global_symbol_to_cdecl \
  22867. lt_cv_sys_global_symbol_to_c_name_address \
  22868. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22869. nm_file_list_spec \
  22870. lt_prog_compiler_no_builtin_flag \
  22871. lt_prog_compiler_pic \
  22872. lt_prog_compiler_wl \
  22873. lt_prog_compiler_static \
  22874. lt_cv_prog_compiler_c_o \
  22875. need_locks \
  22876. MANIFEST_TOOL \
  22877. DSYMUTIL \
  22878. NMEDIT \
  22879. LIPO \
  22880. OTOOL \
  22881. OTOOL64 \
  22882. shrext_cmds \
  22883. export_dynamic_flag_spec \
  22884. whole_archive_flag_spec \
  22885. compiler_needs_object \
  22886. with_gnu_ld \
  22887. allow_undefined_flag \
  22888. no_undefined_flag \
  22889. hardcode_libdir_flag_spec \
  22890. hardcode_libdir_separator \
  22891. exclude_expsyms \
  22892. include_expsyms \
  22893. file_list_spec \
  22894. variables_saved_for_relink \
  22895. libname_spec \
  22896. library_names_spec \
  22897. soname_spec \
  22898. install_override_mode \
  22899. finish_eval \
  22900. old_striplib \
  22901. striplib \
  22902. compiler_lib_search_dirs \
  22903. predep_objects \
  22904. postdep_objects \
  22905. predeps \
  22906. postdeps \
  22907. compiler_lib_search_path \
  22908. LD_RC \
  22909. LD_CXX \
  22910. reload_flag_RC \
  22911. reload_flag_CXX \
  22912. compiler_RC \
  22913. compiler_CXX \
  22914. lt_prog_compiler_no_builtin_flag_RC \
  22915. lt_prog_compiler_no_builtin_flag_CXX \
  22916. lt_prog_compiler_pic_RC \
  22917. lt_prog_compiler_pic_CXX \
  22918. lt_prog_compiler_wl_RC \
  22919. lt_prog_compiler_wl_CXX \
  22920. lt_prog_compiler_static_RC \
  22921. lt_prog_compiler_static_CXX \
  22922. lt_cv_prog_compiler_c_o_RC \
  22923. lt_cv_prog_compiler_c_o_CXX \
  22924. export_dynamic_flag_spec_RC \
  22925. export_dynamic_flag_spec_CXX \
  22926. whole_archive_flag_spec_RC \
  22927. whole_archive_flag_spec_CXX \
  22928. compiler_needs_object_RC \
  22929. compiler_needs_object_CXX \
  22930. with_gnu_ld_RC \
  22931. with_gnu_ld_CXX \
  22932. allow_undefined_flag_RC \
  22933. allow_undefined_flag_CXX \
  22934. no_undefined_flag_RC \
  22935. no_undefined_flag_CXX \
  22936. hardcode_libdir_flag_spec_RC \
  22937. hardcode_libdir_flag_spec_CXX \
  22938. hardcode_libdir_separator_RC \
  22939. hardcode_libdir_separator_CXX \
  22940. exclude_expsyms_RC \
  22941. exclude_expsyms_CXX \
  22942. include_expsyms_RC \
  22943. include_expsyms_CXX \
  22944. file_list_spec_RC \
  22945. file_list_spec_CXX \
  22946. compiler_lib_search_dirs_RC \
  22947. compiler_lib_search_dirs_CXX \
  22948. predep_objects_RC \
  22949. predep_objects_CXX \
  22950. postdep_objects_RC \
  22951. postdep_objects_CXX \
  22952. predeps_RC \
  22953. predeps_CXX \
  22954. postdeps_RC \
  22955. postdeps_CXX \
  22956. compiler_lib_search_path_RC \
  22957. compiler_lib_search_path_CXX; do
  22958. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22959. *[\\\\\\\`\\"\\\$]*)
  22960. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22961. ;;
  22962. *)
  22963. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22964. ;;
  22965. esac
  22966. done
  22967. # Double-quote double-evaled strings.
  22968. for var in reload_cmds \
  22969. old_postinstall_cmds \
  22970. old_postuninstall_cmds \
  22971. old_archive_cmds \
  22972. extract_expsyms_cmds \
  22973. old_archive_from_new_cmds \
  22974. old_archive_from_expsyms_cmds \
  22975. archive_cmds \
  22976. archive_expsym_cmds \
  22977. module_cmds \
  22978. module_expsym_cmds \
  22979. export_symbols_cmds \
  22980. prelink_cmds \
  22981. postlink_cmds \
  22982. postinstall_cmds \
  22983. postuninstall_cmds \
  22984. finish_cmds \
  22985. sys_lib_search_path_spec \
  22986. sys_lib_dlsearch_path_spec \
  22987. reload_cmds_RC \
  22988. reload_cmds_CXX \
  22989. old_archive_cmds_RC \
  22990. old_archive_cmds_CXX \
  22991. old_archive_from_new_cmds_RC \
  22992. old_archive_from_new_cmds_CXX \
  22993. old_archive_from_expsyms_cmds_RC \
  22994. old_archive_from_expsyms_cmds_CXX \
  22995. archive_cmds_RC \
  22996. archive_cmds_CXX \
  22997. archive_expsym_cmds_RC \
  22998. archive_expsym_cmds_CXX \
  22999. module_cmds_RC \
  23000. module_cmds_CXX \
  23001. module_expsym_cmds_RC \
  23002. module_expsym_cmds_CXX \
  23003. export_symbols_cmds_RC \
  23004. export_symbols_cmds_CXX \
  23005. prelink_cmds_RC \
  23006. prelink_cmds_CXX \
  23007. postlink_cmds_RC \
  23008. postlink_cmds_CXX; do
  23009. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23010. *[\\\\\\\`\\"\\\$]*)
  23011. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23012. ;;
  23013. *)
  23014. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23015. ;;
  23016. esac
  23017. done
  23018. ac_aux_dir='$ac_aux_dir'
  23019. xsi_shell='$xsi_shell'
  23020. lt_shell_append='$lt_shell_append'
  23021. # See if we are running on zsh, and set the options which allow our
  23022. # commands through without removal of \ escapes INIT.
  23023. if test -n "\${ZSH_VERSION+set}" ; then
  23024. setopt NO_GLOB_SUBST
  23025. fi
  23026. PACKAGE='$PACKAGE'
  23027. VERSION='$VERSION'
  23028. TIMESTAMP='$TIMESTAMP'
  23029. RM='$RM'
  23030. ofile='$ofile'
  23031. SUMMARY="$SUMMARY"
  23032. _ACEOF
  23033. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23034. # Handling of arguments.
  23035. for ac_config_target in $ac_config_targets
  23036. do
  23037. case $ac_config_target in
  23038. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23039. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23040. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23041. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23042. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23043. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23044. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23045. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23046. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23047. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23048. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23049. esac
  23050. done
  23051. # If the user did not use the arguments to specify the items to instantiate,
  23052. # then the envvar interface is used. Set only those that are not.
  23053. # We use the long form for the default assignment because of an extremely
  23054. # bizarre bug on SunOS 4.1.3.
  23055. if $ac_need_defaults; then
  23056. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23057. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23058. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23059. fi
  23060. # Have a temporary directory for convenience. Make it in the build tree
  23061. # simply because there is no reason against having it here, and in addition,
  23062. # creating and moving files from /tmp can sometimes cause problems.
  23063. # Hook for its removal unless debugging.
  23064. # Note that there is a small window in which the directory will not be cleaned:
  23065. # after its creation but before its name has been assigned to `$tmp'.
  23066. $debug ||
  23067. {
  23068. tmp= ac_tmp=
  23069. trap 'exit_status=$?
  23070. : "${ac_tmp:=$tmp}"
  23071. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23072. ' 0
  23073. trap 'as_fn_exit 1' 1 2 13 15
  23074. }
  23075. # Create a (secure) tmp directory for tmp files.
  23076. {
  23077. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23078. test -d "$tmp"
  23079. } ||
  23080. {
  23081. tmp=./conf$$-$RANDOM
  23082. (umask 077 && mkdir "$tmp")
  23083. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23084. ac_tmp=$tmp
  23085. # Set up the scripts for CONFIG_FILES section.
  23086. # No need to generate them if there are no CONFIG_FILES.
  23087. # This happens for instance with `./config.status config.h'.
  23088. if test -n "$CONFIG_FILES"; then
  23089. ac_cr=`echo X | tr X '\015'`
  23090. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23091. # But we know of no other shell where ac_cr would be empty at this
  23092. # point, so we can use a bashism as a fallback.
  23093. if test "x$ac_cr" = x; then
  23094. eval ac_cr=\$\'\\r\'
  23095. fi
  23096. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23097. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23098. ac_cs_awk_cr='\\r'
  23099. else
  23100. ac_cs_awk_cr=$ac_cr
  23101. fi
  23102. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23103. _ACEOF
  23104. {
  23105. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23106. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23107. echo "_ACEOF"
  23108. } >conf$$subs.sh ||
  23109. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23110. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23111. ac_delim='%!_!# '
  23112. for ac_last_try in false false false false false :; do
  23113. . ./conf$$subs.sh ||
  23114. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23115. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23116. if test $ac_delim_n = $ac_delim_num; then
  23117. break
  23118. elif $ac_last_try; then
  23119. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23120. else
  23121. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23122. fi
  23123. done
  23124. rm -f conf$$subs.sh
  23125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23126. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23127. _ACEOF
  23128. sed -n '
  23129. h
  23130. s/^/S["/; s/!.*/"]=/
  23131. p
  23132. g
  23133. s/^[^!]*!//
  23134. :repl
  23135. t repl
  23136. s/'"$ac_delim"'$//
  23137. t delim
  23138. :nl
  23139. h
  23140. s/\(.\{148\}\)..*/\1/
  23141. t more1
  23142. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23143. p
  23144. n
  23145. b repl
  23146. :more1
  23147. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23148. p
  23149. g
  23150. s/.\{148\}//
  23151. t nl
  23152. :delim
  23153. h
  23154. s/\(.\{148\}\)..*/\1/
  23155. t more2
  23156. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23157. p
  23158. b
  23159. :more2
  23160. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23161. p
  23162. g
  23163. s/.\{148\}//
  23164. t delim
  23165. ' <conf$$subs.awk | sed '
  23166. /^[^""]/{
  23167. N
  23168. s/\n//
  23169. }
  23170. ' >>$CONFIG_STATUS || ac_write_fail=1
  23171. rm -f conf$$subs.awk
  23172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23173. _ACAWK
  23174. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23175. for (key in S) S_is_set[key] = 1
  23176. FS = ""
  23177. }
  23178. {
  23179. line = $ 0
  23180. nfields = split(line, field, "@")
  23181. substed = 0
  23182. len = length(field[1])
  23183. for (i = 2; i < nfields; i++) {
  23184. key = field[i]
  23185. keylen = length(key)
  23186. if (S_is_set[key]) {
  23187. value = S[key]
  23188. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23189. len += length(value) + length(field[++i])
  23190. substed = 1
  23191. } else
  23192. len += 1 + keylen
  23193. }
  23194. print line
  23195. }
  23196. _ACAWK
  23197. _ACEOF
  23198. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23199. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23200. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23201. else
  23202. cat
  23203. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23204. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23205. _ACEOF
  23206. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23207. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23208. # trailing colons and then remove the whole line if VPATH becomes empty
  23209. # (actually we leave an empty line to preserve line numbers).
  23210. if test "x$srcdir" = x.; then
  23211. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23212. h
  23213. s///
  23214. s/^/:/
  23215. s/[ ]*$/:/
  23216. s/:\$(srcdir):/:/g
  23217. s/:\${srcdir}:/:/g
  23218. s/:@srcdir@:/:/g
  23219. s/^:*//
  23220. s/:*$//
  23221. x
  23222. s/\(=[ ]*\).*/\1/
  23223. G
  23224. s/\n//
  23225. s/^[^=]*=[ ]*$//
  23226. }'
  23227. fi
  23228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23229. fi # test -n "$CONFIG_FILES"
  23230. # Set up the scripts for CONFIG_HEADERS section.
  23231. # No need to generate them if there are no CONFIG_HEADERS.
  23232. # This happens for instance with `./config.status Makefile'.
  23233. if test -n "$CONFIG_HEADERS"; then
  23234. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23235. BEGIN {
  23236. _ACEOF
  23237. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23238. # here-document in config.status, that substitutes the proper values into
  23239. # config.h.in to produce config.h.
  23240. # Create a delimiter string that does not exist in confdefs.h, to ease
  23241. # handling of long lines.
  23242. ac_delim='%!_!# '
  23243. for ac_last_try in false false :; do
  23244. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23245. if test -z "$ac_tt"; then
  23246. break
  23247. elif $ac_last_try; then
  23248. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23249. else
  23250. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23251. fi
  23252. done
  23253. # For the awk script, D is an array of macro values keyed by name,
  23254. # likewise P contains macro parameters if any. Preserve backslash
  23255. # newline sequences.
  23256. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23257. sed -n '
  23258. s/.\{148\}/&'"$ac_delim"'/g
  23259. t rset
  23260. :rset
  23261. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23262. t def
  23263. d
  23264. :def
  23265. s/\\$//
  23266. t bsnl
  23267. s/["\\]/\\&/g
  23268. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23269. D["\1"]=" \3"/p
  23270. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23271. d
  23272. :bsnl
  23273. s/["\\]/\\&/g
  23274. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23275. D["\1"]=" \3\\\\\\n"\\/p
  23276. t cont
  23277. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23278. t cont
  23279. d
  23280. :cont
  23281. n
  23282. s/.\{148\}/&'"$ac_delim"'/g
  23283. t clear
  23284. :clear
  23285. s/\\$//
  23286. t bsnlc
  23287. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23288. d
  23289. :bsnlc
  23290. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23291. b cont
  23292. ' <confdefs.h | sed '
  23293. s/'"$ac_delim"'/"\\\
  23294. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23295. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23296. for (key in D) D_is_set[key] = 1
  23297. FS = ""
  23298. }
  23299. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23300. line = \$ 0
  23301. split(line, arg, " ")
  23302. if (arg[1] == "#") {
  23303. defundef = arg[2]
  23304. mac1 = arg[3]
  23305. } else {
  23306. defundef = substr(arg[1], 2)
  23307. mac1 = arg[2]
  23308. }
  23309. split(mac1, mac2, "(") #)
  23310. macro = mac2[1]
  23311. prefix = substr(line, 1, index(line, defundef) - 1)
  23312. if (D_is_set[macro]) {
  23313. # Preserve the white space surrounding the "#".
  23314. print prefix "define", macro P[macro] D[macro]
  23315. next
  23316. } else {
  23317. # Replace #undef with comments. This is necessary, for example,
  23318. # in the case of _POSIX_SOURCE, which is predefined and required
  23319. # on some systems where configure will not decide to define it.
  23320. if (defundef == "undef") {
  23321. print "/*", prefix defundef, macro, "*/"
  23322. next
  23323. }
  23324. }
  23325. }
  23326. { print }
  23327. _ACAWK
  23328. _ACEOF
  23329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23330. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23331. fi # test -n "$CONFIG_HEADERS"
  23332. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23333. shift
  23334. for ac_tag
  23335. do
  23336. case $ac_tag in
  23337. :[FHLC]) ac_mode=$ac_tag; continue;;
  23338. esac
  23339. case $ac_mode$ac_tag in
  23340. :[FHL]*:*);;
  23341. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23342. :[FH]-) ac_tag=-:-;;
  23343. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23344. esac
  23345. ac_save_IFS=$IFS
  23346. IFS=:
  23347. set x $ac_tag
  23348. IFS=$ac_save_IFS
  23349. shift
  23350. ac_file=$1
  23351. shift
  23352. case $ac_mode in
  23353. :L) ac_source=$1;;
  23354. :[FH])
  23355. ac_file_inputs=
  23356. for ac_f
  23357. do
  23358. case $ac_f in
  23359. -) ac_f="$ac_tmp/stdin";;
  23360. *) # Look for the file first in the build tree, then in the source tree
  23361. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23362. # because $ac_f cannot contain `:'.
  23363. test -f "$ac_f" ||
  23364. case $ac_f in
  23365. [\\/$]*) false;;
  23366. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23367. esac ||
  23368. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23369. esac
  23370. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23371. as_fn_append ac_file_inputs " '$ac_f'"
  23372. done
  23373. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23374. # use $as_me), people would be surprised to read:
  23375. # /* config.h. Generated by config.status. */
  23376. configure_input='Generated from '`
  23377. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23378. `' by configure.'
  23379. if test x"$ac_file" != x-; then
  23380. configure_input="$ac_file. $configure_input"
  23381. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23382. $as_echo "$as_me: creating $ac_file" >&6;}
  23383. fi
  23384. # Neutralize special characters interpreted by sed in replacement strings.
  23385. case $configure_input in #(
  23386. *\&* | *\|* | *\\* )
  23387. ac_sed_conf_input=`$as_echo "$configure_input" |
  23388. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23389. *) ac_sed_conf_input=$configure_input;;
  23390. esac
  23391. case $ac_tag in
  23392. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23393. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23394. esac
  23395. ;;
  23396. esac
  23397. ac_dir=`$as_dirname -- "$ac_file" ||
  23398. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23399. X"$ac_file" : 'X\(//\)[^/]' \| \
  23400. X"$ac_file" : 'X\(//\)$' \| \
  23401. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23402. $as_echo X"$ac_file" |
  23403. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23404. s//\1/
  23405. q
  23406. }
  23407. /^X\(\/\/\)[^/].*/{
  23408. s//\1/
  23409. q
  23410. }
  23411. /^X\(\/\/\)$/{
  23412. s//\1/
  23413. q
  23414. }
  23415. /^X\(\/\).*/{
  23416. s//\1/
  23417. q
  23418. }
  23419. s/.*/./; q'`
  23420. as_dir="$ac_dir"; as_fn_mkdir_p
  23421. ac_builddir=.
  23422. case "$ac_dir" in
  23423. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23424. *)
  23425. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23426. # A ".." for each directory in $ac_dir_suffix.
  23427. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23428. case $ac_top_builddir_sub in
  23429. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23430. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23431. esac ;;
  23432. esac
  23433. ac_abs_top_builddir=$ac_pwd
  23434. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23435. # for backward compatibility:
  23436. ac_top_builddir=$ac_top_build_prefix
  23437. case $srcdir in
  23438. .) # We are building in place.
  23439. ac_srcdir=.
  23440. ac_top_srcdir=$ac_top_builddir_sub
  23441. ac_abs_top_srcdir=$ac_pwd ;;
  23442. [\\/]* | ?:[\\/]* ) # Absolute name.
  23443. ac_srcdir=$srcdir$ac_dir_suffix;
  23444. ac_top_srcdir=$srcdir
  23445. ac_abs_top_srcdir=$srcdir ;;
  23446. *) # Relative name.
  23447. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23448. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23449. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23450. esac
  23451. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23452. case $ac_mode in
  23453. :F)
  23454. #
  23455. # CONFIG_FILE
  23456. #
  23457. case $INSTALL in
  23458. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23459. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23460. esac
  23461. _ACEOF
  23462. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23463. # If the template does not know about datarootdir, expand it.
  23464. # FIXME: This hack should be removed a few years after 2.60.
  23465. ac_datarootdir_hack=; ac_datarootdir_seen=
  23466. ac_sed_dataroot='
  23467. /datarootdir/ {
  23468. p
  23469. q
  23470. }
  23471. /@datadir@/p
  23472. /@docdir@/p
  23473. /@infodir@/p
  23474. /@localedir@/p
  23475. /@mandir@/p'
  23476. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23477. *datarootdir*) ac_datarootdir_seen=yes;;
  23478. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23480. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23481. _ACEOF
  23482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23483. ac_datarootdir_hack='
  23484. s&@datadir@&$datadir&g
  23485. s&@docdir@&$docdir&g
  23486. s&@infodir@&$infodir&g
  23487. s&@localedir@&$localedir&g
  23488. s&@mandir@&$mandir&g
  23489. s&\\\${datarootdir}&$datarootdir&g' ;;
  23490. esac
  23491. _ACEOF
  23492. # Neutralize VPATH when `$srcdir' = `.'.
  23493. # Shell code in configure.ac might set extrasub.
  23494. # FIXME: do we really want to maintain this feature?
  23495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23496. ac_sed_extra="$ac_vpsub
  23497. $extrasub
  23498. _ACEOF
  23499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23500. :t
  23501. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23502. s|@configure_input@|$ac_sed_conf_input|;t t
  23503. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23504. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23505. s&@srcdir@&$ac_srcdir&;t t
  23506. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23507. s&@top_srcdir@&$ac_top_srcdir&;t t
  23508. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23509. s&@builddir@&$ac_builddir&;t t
  23510. s&@abs_builddir@&$ac_abs_builddir&;t t
  23511. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23512. s&@INSTALL@&$ac_INSTALL&;t t
  23513. $ac_datarootdir_hack
  23514. "
  23515. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23516. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23517. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23518. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23519. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23520. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23522. which seems to be undefined. Please make sure it is defined" >&5
  23523. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23524. which seems to be undefined. Please make sure it is defined" >&2;}
  23525. rm -f "$ac_tmp/stdin"
  23526. case $ac_file in
  23527. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23528. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23529. esac \
  23530. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23531. ;;
  23532. :H)
  23533. #
  23534. # CONFIG_HEADER
  23535. #
  23536. if test x"$ac_file" != x-; then
  23537. {
  23538. $as_echo "/* $configure_input */" \
  23539. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23540. } >"$ac_tmp/config.h" \
  23541. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23542. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23543. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23544. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23545. else
  23546. rm -f "$ac_file"
  23547. mv "$ac_tmp/config.h" "$ac_file" \
  23548. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23549. fi
  23550. else
  23551. $as_echo "/* $configure_input */" \
  23552. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23553. || as_fn_error $? "could not create -" "$LINENO" 5
  23554. fi
  23555. ;;
  23556. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23557. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23558. ;;
  23559. esac
  23560. case $ac_file$ac_mode in
  23561. "libtool":C)
  23562. # See if we are running on zsh, and set the options which allow our
  23563. # commands through without removal of \ escapes.
  23564. if test -n "${ZSH_VERSION+set}" ; then
  23565. setopt NO_GLOB_SUBST
  23566. fi
  23567. cfgfile="${ofile}T"
  23568. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23569. $RM "$cfgfile"
  23570. cat <<_LT_EOF >> "$cfgfile"
  23571. #! $SHELL
  23572. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23573. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23574. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23575. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23576. #
  23577. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23578. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23579. # Foundation, Inc.
  23580. # Written by Gordon Matzigkeit, 1996
  23581. #
  23582. # This file is part of GNU Libtool.
  23583. #
  23584. # GNU Libtool is free software; you can redistribute it and/or
  23585. # modify it under the terms of the GNU General Public License as
  23586. # published by the Free Software Foundation; either version 2 of
  23587. # the License, or (at your option) any later version.
  23588. #
  23589. # As a special exception to the GNU General Public License,
  23590. # if you distribute this file as part of a program or library that
  23591. # is built using GNU Libtool, you may include this file under the
  23592. # same distribution terms that you use for the rest of that program.
  23593. #
  23594. # GNU Libtool is distributed in the hope that it will be useful,
  23595. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23596. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23597. # GNU General Public License for more details.
  23598. #
  23599. # You should have received a copy of the GNU General Public License
  23600. # along with GNU Libtool; see the file COPYING. If not, a copy
  23601. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23602. # obtained by writing to the Free Software Foundation, Inc.,
  23603. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23604. # The names of the tagged configurations supported by this script.
  23605. available_tags="RC CXX "
  23606. # ### BEGIN LIBTOOL CONFIG
  23607. # Which release of libtool.m4 was used?
  23608. macro_version=$macro_version
  23609. macro_revision=$macro_revision
  23610. # Assembler program.
  23611. AS=$lt_AS
  23612. # DLL creation program.
  23613. DLLTOOL=$lt_DLLTOOL
  23614. # Object dumper program.
  23615. OBJDUMP=$lt_OBJDUMP
  23616. # Whether or not to build shared libraries.
  23617. build_libtool_libs=$enable_shared
  23618. # Whether or not to build static libraries.
  23619. build_old_libs=$enable_static
  23620. # What type of objects to build.
  23621. pic_mode=$pic_mode
  23622. # Whether or not to optimize for fast installation.
  23623. fast_install=$enable_fast_install
  23624. # Shell to use when invoking shell scripts.
  23625. SHELL=$lt_SHELL
  23626. # An echo program that protects backslashes.
  23627. ECHO=$lt_ECHO
  23628. # The PATH separator for the build system.
  23629. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23630. # The host system.
  23631. host_alias=$host_alias
  23632. host=$host
  23633. host_os=$host_os
  23634. # The build system.
  23635. build_alias=$build_alias
  23636. build=$build
  23637. build_os=$build_os
  23638. # A sed program that does not truncate output.
  23639. SED=$lt_SED
  23640. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23641. Xsed="\$SED -e 1s/^X//"
  23642. # A grep program that handles long lines.
  23643. GREP=$lt_GREP
  23644. # An ERE matcher.
  23645. EGREP=$lt_EGREP
  23646. # A literal string matcher.
  23647. FGREP=$lt_FGREP
  23648. # A BSD- or MS-compatible name lister.
  23649. NM=$lt_NM
  23650. # Whether we need soft or hard links.
  23651. LN_S=$lt_LN_S
  23652. # What is the maximum length of a command?
  23653. max_cmd_len=$max_cmd_len
  23654. # Object file suffix (normally "o").
  23655. objext=$ac_objext
  23656. # Executable file suffix (normally "").
  23657. exeext=$exeext
  23658. # whether the shell understands "unset".
  23659. lt_unset=$lt_unset
  23660. # turn spaces into newlines.
  23661. SP2NL=$lt_lt_SP2NL
  23662. # turn newlines into spaces.
  23663. NL2SP=$lt_lt_NL2SP
  23664. # convert \$build file names to \$host format.
  23665. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23666. # convert \$build files to toolchain format.
  23667. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23668. # Method to check whether dependent libraries are shared objects.
  23669. deplibs_check_method=$lt_deplibs_check_method
  23670. # Command to use when deplibs_check_method = "file_magic".
  23671. file_magic_cmd=$lt_file_magic_cmd
  23672. # How to find potential files when deplibs_check_method = "file_magic".
  23673. file_magic_glob=$lt_file_magic_glob
  23674. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23675. want_nocaseglob=$lt_want_nocaseglob
  23676. # Command to associate shared and link libraries.
  23677. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23678. # The archiver.
  23679. AR=$lt_AR
  23680. # Flags to create an archive.
  23681. AR_FLAGS=$lt_AR_FLAGS
  23682. # How to feed a file listing to the archiver.
  23683. archiver_list_spec=$lt_archiver_list_spec
  23684. # A symbol stripping program.
  23685. STRIP=$lt_STRIP
  23686. # Commands used to install an old-style archive.
  23687. RANLIB=$lt_RANLIB
  23688. old_postinstall_cmds=$lt_old_postinstall_cmds
  23689. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23690. # Whether to use a lock for old archive extraction.
  23691. lock_old_archive_extraction=$lock_old_archive_extraction
  23692. # A C compiler.
  23693. LTCC=$lt_CC
  23694. # LTCC compiler flags.
  23695. LTCFLAGS=$lt_CFLAGS
  23696. # Take the output of nm and produce a listing of raw symbols and C names.
  23697. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23698. # Transform the output of nm in a proper C declaration.
  23699. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23700. # Transform the output of nm in a C name address pair.
  23701. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23702. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23703. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23704. # Specify filename containing input files for \$NM.
  23705. nm_file_list_spec=$lt_nm_file_list_spec
  23706. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23707. lt_sysroot=$lt_sysroot
  23708. # The name of the directory that contains temporary libtool files.
  23709. objdir=$objdir
  23710. # Used to examine libraries when file_magic_cmd begins with "file".
  23711. MAGIC_CMD=$MAGIC_CMD
  23712. # Must we lock files when doing compilation?
  23713. need_locks=$lt_need_locks
  23714. # Manifest tool.
  23715. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23716. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23717. DSYMUTIL=$lt_DSYMUTIL
  23718. # Tool to change global to local symbols on Mac OS X.
  23719. NMEDIT=$lt_NMEDIT
  23720. # Tool to manipulate fat objects and archives on Mac OS X.
  23721. LIPO=$lt_LIPO
  23722. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23723. OTOOL=$lt_OTOOL
  23724. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23725. OTOOL64=$lt_OTOOL64
  23726. # Old archive suffix (normally "a").
  23727. libext=$libext
  23728. # Shared library suffix (normally ".so").
  23729. shrext_cmds=$lt_shrext_cmds
  23730. # The commands to extract the exported symbol list from a shared archive.
  23731. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23732. # Variables whose values should be saved in libtool wrapper scripts and
  23733. # restored at link time.
  23734. variables_saved_for_relink=$lt_variables_saved_for_relink
  23735. # Do we need the "lib" prefix for modules?
  23736. need_lib_prefix=$need_lib_prefix
  23737. # Do we need a version for libraries?
  23738. need_version=$need_version
  23739. # Library versioning type.
  23740. version_type=$version_type
  23741. # Shared library runtime path variable.
  23742. runpath_var=$runpath_var
  23743. # Shared library path variable.
  23744. shlibpath_var=$shlibpath_var
  23745. # Is shlibpath searched before the hard-coded library search path?
  23746. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23747. # Format of library name prefix.
  23748. libname_spec=$lt_libname_spec
  23749. # List of archive names. First name is the real one, the rest are links.
  23750. # The last name is the one that the linker finds with -lNAME
  23751. library_names_spec=$lt_library_names_spec
  23752. # The coded name of the library, if different from the real name.
  23753. soname_spec=$lt_soname_spec
  23754. # Permission mode override for installation of shared libraries.
  23755. install_override_mode=$lt_install_override_mode
  23756. # Command to use after installation of a shared archive.
  23757. postinstall_cmds=$lt_postinstall_cmds
  23758. # Command to use after uninstallation of a shared archive.
  23759. postuninstall_cmds=$lt_postuninstall_cmds
  23760. # Commands used to finish a libtool library installation in a directory.
  23761. finish_cmds=$lt_finish_cmds
  23762. # As "finish_cmds", except a single script fragment to be evaled but
  23763. # not shown.
  23764. finish_eval=$lt_finish_eval
  23765. # Whether we should hardcode library paths into libraries.
  23766. hardcode_into_libs=$hardcode_into_libs
  23767. # Compile-time system search path for libraries.
  23768. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23769. # Run-time system search path for libraries.
  23770. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23771. # Whether dlopen is supported.
  23772. dlopen_support=$enable_dlopen
  23773. # Whether dlopen of programs is supported.
  23774. dlopen_self=$enable_dlopen_self
  23775. # Whether dlopen of statically linked programs is supported.
  23776. dlopen_self_static=$enable_dlopen_self_static
  23777. # Commands to strip libraries.
  23778. old_striplib=$lt_old_striplib
  23779. striplib=$lt_striplib
  23780. # The linker used to build libraries.
  23781. LD=$lt_LD
  23782. # How to create reloadable object files.
  23783. reload_flag=$lt_reload_flag
  23784. reload_cmds=$lt_reload_cmds
  23785. # Commands used to build an old-style archive.
  23786. old_archive_cmds=$lt_old_archive_cmds
  23787. # A language specific compiler.
  23788. CC=$lt_compiler
  23789. # Is the compiler the GNU compiler?
  23790. with_gcc=$GCC
  23791. # Compiler flag to turn off builtin functions.
  23792. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23793. # Additional compiler flags for building library objects.
  23794. pic_flag=$lt_lt_prog_compiler_pic
  23795. # How to pass a linker flag through the compiler.
  23796. wl=$lt_lt_prog_compiler_wl
  23797. # Compiler flag to prevent dynamic linking.
  23798. link_static_flag=$lt_lt_prog_compiler_static
  23799. # Does compiler simultaneously support -c and -o options?
  23800. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23801. # Whether or not to add -lc for building shared libraries.
  23802. build_libtool_need_lc=$archive_cmds_need_lc
  23803. # Whether or not to disallow shared libs when runtime libs are static.
  23804. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23805. # Compiler flag to allow reflexive dlopens.
  23806. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23807. # Compiler flag to generate shared objects directly from archives.
  23808. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23809. # Whether the compiler copes with passing no objects directly.
  23810. compiler_needs_object=$lt_compiler_needs_object
  23811. # Create an old-style archive from a shared archive.
  23812. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23813. # Create a temporary old-style archive to link instead of a shared archive.
  23814. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23815. # Commands used to build a shared archive.
  23816. archive_cmds=$lt_archive_cmds
  23817. archive_expsym_cmds=$lt_archive_expsym_cmds
  23818. # Commands used to build a loadable module if different from building
  23819. # a shared archive.
  23820. module_cmds=$lt_module_cmds
  23821. module_expsym_cmds=$lt_module_expsym_cmds
  23822. # Whether we are building with GNU ld or not.
  23823. with_gnu_ld=$lt_with_gnu_ld
  23824. # Flag that allows shared libraries with undefined symbols to be built.
  23825. allow_undefined_flag=$lt_allow_undefined_flag
  23826. # Flag that enforces no undefined symbols.
  23827. no_undefined_flag=$lt_no_undefined_flag
  23828. # Flag to hardcode \$libdir into a binary during linking.
  23829. # This must work even if \$libdir does not exist
  23830. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23831. # Whether we need a single "-rpath" flag with a separated argument.
  23832. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23833. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23834. # DIR into the resulting binary.
  23835. hardcode_direct=$hardcode_direct
  23836. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23837. # DIR into the resulting binary and the resulting library dependency is
  23838. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23839. # library is relocated.
  23840. hardcode_direct_absolute=$hardcode_direct_absolute
  23841. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23842. # into the resulting binary.
  23843. hardcode_minus_L=$hardcode_minus_L
  23844. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23845. # into the resulting binary.
  23846. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23847. # Set to "yes" if building a shared library automatically hardcodes DIR
  23848. # into the library and all subsequent libraries and executables linked
  23849. # against it.
  23850. hardcode_automatic=$hardcode_automatic
  23851. # Set to yes if linker adds runtime paths of dependent libraries
  23852. # to runtime path list.
  23853. inherit_rpath=$inherit_rpath
  23854. # Whether libtool must link a program against all its dependency libraries.
  23855. link_all_deplibs=$link_all_deplibs
  23856. # Set to "yes" if exported symbols are required.
  23857. always_export_symbols=$always_export_symbols
  23858. # The commands to list exported symbols.
  23859. export_symbols_cmds=$lt_export_symbols_cmds
  23860. # Symbols that should not be listed in the preloaded symbols.
  23861. exclude_expsyms=$lt_exclude_expsyms
  23862. # Symbols that must always be exported.
  23863. include_expsyms=$lt_include_expsyms
  23864. # Commands necessary for linking programs (against libraries) with templates.
  23865. prelink_cmds=$lt_prelink_cmds
  23866. # Commands necessary for finishing linking programs.
  23867. postlink_cmds=$lt_postlink_cmds
  23868. # Specify filename containing input files.
  23869. file_list_spec=$lt_file_list_spec
  23870. # How to hardcode a shared library path into an executable.
  23871. hardcode_action=$hardcode_action
  23872. # The directories searched by this compiler when creating a shared library.
  23873. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23874. # Dependencies to place before and after the objects being linked to
  23875. # create a shared library.
  23876. predep_objects=$lt_predep_objects
  23877. postdep_objects=$lt_postdep_objects
  23878. predeps=$lt_predeps
  23879. postdeps=$lt_postdeps
  23880. # The library search path used internally by the compiler when linking
  23881. # a shared library.
  23882. compiler_lib_search_path=$lt_compiler_lib_search_path
  23883. # ### END LIBTOOL CONFIG
  23884. _LT_EOF
  23885. case $host_os in
  23886. aix3*)
  23887. cat <<\_LT_EOF >> "$cfgfile"
  23888. # AIX sometimes has problems with the GCC collect2 program. For some
  23889. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23890. # vanish in a puff of smoke.
  23891. if test "X${COLLECT_NAMES+set}" != Xset; then
  23892. COLLECT_NAMES=
  23893. export COLLECT_NAMES
  23894. fi
  23895. _LT_EOF
  23896. ;;
  23897. esac
  23898. ltmain="$ac_aux_dir/ltmain.sh"
  23899. # We use sed instead of cat because bash on DJGPP gets confused if
  23900. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23901. # text mode, it properly converts lines to CR/LF. This bash problem
  23902. # is reportedly fixed, but why not run on old versions too?
  23903. sed '$q' "$ltmain" >> "$cfgfile" \
  23904. || (rm -f "$cfgfile"; exit 1)
  23905. if test x"$xsi_shell" = xyes; then
  23906. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23907. func_dirname ()\
  23908. {\
  23909. \ case ${1} in\
  23910. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23911. \ * ) func_dirname_result="${3}" ;;\
  23912. \ esac\
  23913. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23914. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23915. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23916. test 0 -eq $? || _lt_function_replace_fail=:
  23917. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23918. func_basename ()\
  23919. {\
  23920. \ func_basename_result="${1##*/}"\
  23921. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23922. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23923. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23924. test 0 -eq $? || _lt_function_replace_fail=:
  23925. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23926. func_dirname_and_basename ()\
  23927. {\
  23928. \ case ${1} in\
  23929. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23930. \ * ) func_dirname_result="${3}" ;;\
  23931. \ esac\
  23932. \ func_basename_result="${1##*/}"\
  23933. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23934. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23935. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23936. test 0 -eq $? || _lt_function_replace_fail=:
  23937. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23938. func_stripname ()\
  23939. {\
  23940. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23941. \ # positional parameters, so assign one to ordinary parameter first.\
  23942. \ func_stripname_result=${3}\
  23943. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23944. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23945. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23946. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23947. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23948. test 0 -eq $? || _lt_function_replace_fail=:
  23949. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23950. func_split_long_opt ()\
  23951. {\
  23952. \ func_split_long_opt_name=${1%%=*}\
  23953. \ func_split_long_opt_arg=${1#*=}\
  23954. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23955. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23956. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23957. test 0 -eq $? || _lt_function_replace_fail=:
  23958. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23959. func_split_short_opt ()\
  23960. {\
  23961. \ func_split_short_opt_arg=${1#??}\
  23962. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23963. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23964. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23965. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23966. test 0 -eq $? || _lt_function_replace_fail=:
  23967. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23968. func_lo2o ()\
  23969. {\
  23970. \ case ${1} in\
  23971. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23972. \ *) func_lo2o_result=${1} ;;\
  23973. \ esac\
  23974. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23975. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23976. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23977. test 0 -eq $? || _lt_function_replace_fail=:
  23978. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23979. func_xform ()\
  23980. {\
  23981. func_xform_result=${1%.*}.lo\
  23982. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23983. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23984. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23985. test 0 -eq $? || _lt_function_replace_fail=:
  23986. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23987. func_arith ()\
  23988. {\
  23989. func_arith_result=$(( $* ))\
  23990. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23991. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23992. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23993. test 0 -eq $? || _lt_function_replace_fail=:
  23994. sed -e '/^func_len ()$/,/^} # func_len /c\
  23995. func_len ()\
  23996. {\
  23997. func_len_result=${#1}\
  23998. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23999. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24000. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24001. test 0 -eq $? || _lt_function_replace_fail=:
  24002. fi
  24003. if test x"$lt_shell_append" = xyes; then
  24004. sed -e '/^func_append ()$/,/^} # func_append /c\
  24005. func_append ()\
  24006. {\
  24007. eval "${1}+=\\${2}"\
  24008. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24009. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24010. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24011. test 0 -eq $? || _lt_function_replace_fail=:
  24012. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24013. func_append_quoted ()\
  24014. {\
  24015. \ func_quote_for_eval "${2}"\
  24016. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24017. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24018. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24019. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24020. test 0 -eq $? || _lt_function_replace_fail=:
  24021. # Save a `func_append' function call where possible by direct use of '+='
  24022. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24023. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24024. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24025. test 0 -eq $? || _lt_function_replace_fail=:
  24026. else
  24027. # Save a `func_append' function call even when '+=' is not available
  24028. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24029. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24030. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24031. test 0 -eq $? || _lt_function_replace_fail=:
  24032. fi
  24033. if test x"$_lt_function_replace_fail" = x":"; then
  24034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24035. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24036. fi
  24037. mv -f "$cfgfile" "$ofile" ||
  24038. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24039. chmod +x "$ofile"
  24040. cat <<_LT_EOF >> "$ofile"
  24041. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24042. # The linker used to build libraries.
  24043. LD=$lt_LD_RC
  24044. # How to create reloadable object files.
  24045. reload_flag=$lt_reload_flag_RC
  24046. reload_cmds=$lt_reload_cmds_RC
  24047. # Commands used to build an old-style archive.
  24048. old_archive_cmds=$lt_old_archive_cmds_RC
  24049. # A language specific compiler.
  24050. CC=$lt_compiler_RC
  24051. # Is the compiler the GNU compiler?
  24052. with_gcc=$GCC_RC
  24053. # Compiler flag to turn off builtin functions.
  24054. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24055. # Additional compiler flags for building library objects.
  24056. pic_flag=$lt_lt_prog_compiler_pic_RC
  24057. # How to pass a linker flag through the compiler.
  24058. wl=$lt_lt_prog_compiler_wl_RC
  24059. # Compiler flag to prevent dynamic linking.
  24060. link_static_flag=$lt_lt_prog_compiler_static_RC
  24061. # Does compiler simultaneously support -c and -o options?
  24062. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24063. # Whether or not to add -lc for building shared libraries.
  24064. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24065. # Whether or not to disallow shared libs when runtime libs are static.
  24066. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24067. # Compiler flag to allow reflexive dlopens.
  24068. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24069. # Compiler flag to generate shared objects directly from archives.
  24070. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24071. # Whether the compiler copes with passing no objects directly.
  24072. compiler_needs_object=$lt_compiler_needs_object_RC
  24073. # Create an old-style archive from a shared archive.
  24074. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24075. # Create a temporary old-style archive to link instead of a shared archive.
  24076. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24077. # Commands used to build a shared archive.
  24078. archive_cmds=$lt_archive_cmds_RC
  24079. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24080. # Commands used to build a loadable module if different from building
  24081. # a shared archive.
  24082. module_cmds=$lt_module_cmds_RC
  24083. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24084. # Whether we are building with GNU ld or not.
  24085. with_gnu_ld=$lt_with_gnu_ld_RC
  24086. # Flag that allows shared libraries with undefined symbols to be built.
  24087. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24088. # Flag that enforces no undefined symbols.
  24089. no_undefined_flag=$lt_no_undefined_flag_RC
  24090. # Flag to hardcode \$libdir into a binary during linking.
  24091. # This must work even if \$libdir does not exist
  24092. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24093. # Whether we need a single "-rpath" flag with a separated argument.
  24094. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24095. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24096. # DIR into the resulting binary.
  24097. hardcode_direct=$hardcode_direct_RC
  24098. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24099. # DIR into the resulting binary and the resulting library dependency is
  24100. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24101. # library is relocated.
  24102. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24103. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24104. # into the resulting binary.
  24105. hardcode_minus_L=$hardcode_minus_L_RC
  24106. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24107. # into the resulting binary.
  24108. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24109. # Set to "yes" if building a shared library automatically hardcodes DIR
  24110. # into the library and all subsequent libraries and executables linked
  24111. # against it.
  24112. hardcode_automatic=$hardcode_automatic_RC
  24113. # Set to yes if linker adds runtime paths of dependent libraries
  24114. # to runtime path list.
  24115. inherit_rpath=$inherit_rpath_RC
  24116. # Whether libtool must link a program against all its dependency libraries.
  24117. link_all_deplibs=$link_all_deplibs_RC
  24118. # Set to "yes" if exported symbols are required.
  24119. always_export_symbols=$always_export_symbols_RC
  24120. # The commands to list exported symbols.
  24121. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24122. # Symbols that should not be listed in the preloaded symbols.
  24123. exclude_expsyms=$lt_exclude_expsyms_RC
  24124. # Symbols that must always be exported.
  24125. include_expsyms=$lt_include_expsyms_RC
  24126. # Commands necessary for linking programs (against libraries) with templates.
  24127. prelink_cmds=$lt_prelink_cmds_RC
  24128. # Commands necessary for finishing linking programs.
  24129. postlink_cmds=$lt_postlink_cmds_RC
  24130. # Specify filename containing input files.
  24131. file_list_spec=$lt_file_list_spec_RC
  24132. # How to hardcode a shared library path into an executable.
  24133. hardcode_action=$hardcode_action_RC
  24134. # The directories searched by this compiler when creating a shared library.
  24135. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24136. # Dependencies to place before and after the objects being linked to
  24137. # create a shared library.
  24138. predep_objects=$lt_predep_objects_RC
  24139. postdep_objects=$lt_postdep_objects_RC
  24140. predeps=$lt_predeps_RC
  24141. postdeps=$lt_postdeps_RC
  24142. # The library search path used internally by the compiler when linking
  24143. # a shared library.
  24144. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24145. # ### END LIBTOOL TAG CONFIG: RC
  24146. _LT_EOF
  24147. cat <<_LT_EOF >> "$ofile"
  24148. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24149. # The linker used to build libraries.
  24150. LD=$lt_LD_CXX
  24151. # How to create reloadable object files.
  24152. reload_flag=$lt_reload_flag_CXX
  24153. reload_cmds=$lt_reload_cmds_CXX
  24154. # Commands used to build an old-style archive.
  24155. old_archive_cmds=$lt_old_archive_cmds_CXX
  24156. # A language specific compiler.
  24157. CC=$lt_compiler_CXX
  24158. # Is the compiler the GNU compiler?
  24159. with_gcc=$GCC_CXX
  24160. # Compiler flag to turn off builtin functions.
  24161. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24162. # Additional compiler flags for building library objects.
  24163. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24164. # How to pass a linker flag through the compiler.
  24165. wl=$lt_lt_prog_compiler_wl_CXX
  24166. # Compiler flag to prevent dynamic linking.
  24167. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24168. # Does compiler simultaneously support -c and -o options?
  24169. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24170. # Whether or not to add -lc for building shared libraries.
  24171. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24172. # Whether or not to disallow shared libs when runtime libs are static.
  24173. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24174. # Compiler flag to allow reflexive dlopens.
  24175. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24176. # Compiler flag to generate shared objects directly from archives.
  24177. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24178. # Whether the compiler copes with passing no objects directly.
  24179. compiler_needs_object=$lt_compiler_needs_object_CXX
  24180. # Create an old-style archive from a shared archive.
  24181. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24182. # Create a temporary old-style archive to link instead of a shared archive.
  24183. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24184. # Commands used to build a shared archive.
  24185. archive_cmds=$lt_archive_cmds_CXX
  24186. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24187. # Commands used to build a loadable module if different from building
  24188. # a shared archive.
  24189. module_cmds=$lt_module_cmds_CXX
  24190. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24191. # Whether we are building with GNU ld or not.
  24192. with_gnu_ld=$lt_with_gnu_ld_CXX
  24193. # Flag that allows shared libraries with undefined symbols to be built.
  24194. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24195. # Flag that enforces no undefined symbols.
  24196. no_undefined_flag=$lt_no_undefined_flag_CXX
  24197. # Flag to hardcode \$libdir into a binary during linking.
  24198. # This must work even if \$libdir does not exist
  24199. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24200. # Whether we need a single "-rpath" flag with a separated argument.
  24201. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24202. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24203. # DIR into the resulting binary.
  24204. hardcode_direct=$hardcode_direct_CXX
  24205. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24206. # DIR into the resulting binary and the resulting library dependency is
  24207. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24208. # library is relocated.
  24209. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24210. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24211. # into the resulting binary.
  24212. hardcode_minus_L=$hardcode_minus_L_CXX
  24213. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24214. # into the resulting binary.
  24215. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24216. # Set to "yes" if building a shared library automatically hardcodes DIR
  24217. # into the library and all subsequent libraries and executables linked
  24218. # against it.
  24219. hardcode_automatic=$hardcode_automatic_CXX
  24220. # Set to yes if linker adds runtime paths of dependent libraries
  24221. # to runtime path list.
  24222. inherit_rpath=$inherit_rpath_CXX
  24223. # Whether libtool must link a program against all its dependency libraries.
  24224. link_all_deplibs=$link_all_deplibs_CXX
  24225. # Set to "yes" if exported symbols are required.
  24226. always_export_symbols=$always_export_symbols_CXX
  24227. # The commands to list exported symbols.
  24228. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24229. # Symbols that should not be listed in the preloaded symbols.
  24230. exclude_expsyms=$lt_exclude_expsyms_CXX
  24231. # Symbols that must always be exported.
  24232. include_expsyms=$lt_include_expsyms_CXX
  24233. # Commands necessary for linking programs (against libraries) with templates.
  24234. prelink_cmds=$lt_prelink_cmds_CXX
  24235. # Commands necessary for finishing linking programs.
  24236. postlink_cmds=$lt_postlink_cmds_CXX
  24237. # Specify filename containing input files.
  24238. file_list_spec=$lt_file_list_spec_CXX
  24239. # How to hardcode a shared library path into an executable.
  24240. hardcode_action=$hardcode_action_CXX
  24241. # The directories searched by this compiler when creating a shared library.
  24242. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24243. # Dependencies to place before and after the objects being linked to
  24244. # create a shared library.
  24245. predep_objects=$lt_predep_objects_CXX
  24246. postdep_objects=$lt_postdep_objects_CXX
  24247. predeps=$lt_predeps_CXX
  24248. postdeps=$lt_postdeps_CXX
  24249. # The library search path used internally by the compiler when linking
  24250. # a shared library.
  24251. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24252. # ### END LIBTOOL TAG CONFIG: CXX
  24253. _LT_EOF
  24254. ;;
  24255. "sdl2_config":C) chmod a+x sdl2-config ;;
  24256. "summary":C) echo -en "$SUMMARY" ;;
  24257. esac
  24258. done # for ac_tag
  24259. as_fn_exit 0
  24260. _ACEOF
  24261. ac_clean_files=$ac_clean_files_save
  24262. test $ac_write_fail = 0 ||
  24263. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24264. # configure is writing to config.log, and then calls config.status.
  24265. # config.status does its own redirection, appending to config.log.
  24266. # Unfortunately, on DOS this fails, as config.log is still kept open
  24267. # by configure, so config.status won't be able to write to it; its
  24268. # output is simply discarded. So we exec the FD to /dev/null,
  24269. # effectively closing config.log, so it can be properly (re)opened and
  24270. # appended to by config.status. When coming back to configure, we
  24271. # need to make the FD available again.
  24272. if test "$no_create" != yes; then
  24273. ac_cs_success=:
  24274. ac_config_status_args=
  24275. test "$silent" = yes &&
  24276. ac_config_status_args="$ac_config_status_args --quiet"
  24277. exec 5>/dev/null
  24278. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24279. exec 5>>config.log
  24280. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24281. # would make configure fail if this is the last instruction.
  24282. $ac_cs_success || as_fn_exit 1
  24283. fi
  24284. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24286. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24287. fi