configure 837 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623
  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. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. SET_MAKE
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. CXXCPP
  646. ac_ct_CXX
  647. CXXFLAGS
  648. CXX
  649. LT_AGE
  650. LT_REVISION
  651. LT_CURRENT
  652. LT_RELEASE
  653. RC
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. runstatedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_hidapi_libusb
  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. LIBUSB_CFLAGS
  891. LIBUSB_LIBS'
  892. # Initialize some variables set by options.
  893. ac_init_help=
  894. ac_init_version=false
  895. ac_unrecognized_opts=
  896. ac_unrecognized_sep=
  897. # The variables have the same names as the options, with
  898. # dashes changed to underlines.
  899. cache_file=/dev/null
  900. exec_prefix=NONE
  901. no_create=
  902. no_recursion=
  903. prefix=NONE
  904. program_prefix=NONE
  905. program_suffix=NONE
  906. program_transform_name=s,x,x,
  907. silent=
  908. site=
  909. srcdir=
  910. verbose=
  911. x_includes=NONE
  912. x_libraries=NONE
  913. # Installation directory options.
  914. # These are left unexpanded so users can "make install exec_prefix=/foo"
  915. # and all the variables that are supposed to be based on exec_prefix
  916. # by default will actually change.
  917. # Use braces instead of parens because sh, perl, etc. also accept them.
  918. # (The list follows the same order as the GNU Coding Standards.)
  919. bindir='${exec_prefix}/bin'
  920. sbindir='${exec_prefix}/sbin'
  921. libexecdir='${exec_prefix}/libexec'
  922. datarootdir='${prefix}/share'
  923. datadir='${datarootdir}'
  924. sysconfdir='${prefix}/etc'
  925. sharedstatedir='${prefix}/com'
  926. localstatedir='${prefix}/var'
  927. runstatedir='${localstatedir}/run'
  928. includedir='${prefix}/include'
  929. oldincludedir='/usr/include'
  930. docdir='${datarootdir}/doc/${PACKAGE}'
  931. infodir='${datarootdir}/info'
  932. htmldir='${docdir}'
  933. dvidir='${docdir}'
  934. pdfdir='${docdir}'
  935. psdir='${docdir}'
  936. libdir='${exec_prefix}/lib'
  937. localedir='${datarootdir}/locale'
  938. mandir='${datarootdir}/man'
  939. ac_prev=
  940. ac_dashdash=
  941. for ac_option
  942. do
  943. # If the previous option needs an argument, assign it.
  944. if test -n "$ac_prev"; then
  945. eval $ac_prev=\$ac_option
  946. ac_prev=
  947. continue
  948. fi
  949. case $ac_option in
  950. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  951. *=) ac_optarg= ;;
  952. *) ac_optarg=yes ;;
  953. esac
  954. # Accept the important Cygnus configure options, so we can diagnose typos.
  955. case $ac_dashdash$ac_option in
  956. --)
  957. ac_dashdash=yes ;;
  958. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  959. ac_prev=bindir ;;
  960. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  961. bindir=$ac_optarg ;;
  962. -build | --build | --buil | --bui | --bu)
  963. ac_prev=build_alias ;;
  964. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  965. build_alias=$ac_optarg ;;
  966. -cache-file | --cache-file | --cache-fil | --cache-fi \
  967. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  968. ac_prev=cache_file ;;
  969. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  970. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  971. cache_file=$ac_optarg ;;
  972. --config-cache | -C)
  973. cache_file=config.cache ;;
  974. -datadir | --datadir | --datadi | --datad)
  975. ac_prev=datadir ;;
  976. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  977. datadir=$ac_optarg ;;
  978. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  979. | --dataroo | --dataro | --datar)
  980. ac_prev=datarootdir ;;
  981. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  982. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  983. datarootdir=$ac_optarg ;;
  984. -disable-* | --disable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error $? "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=no ;;
  999. -docdir | --docdir | --docdi | --doc | --do)
  1000. ac_prev=docdir ;;
  1001. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1002. docdir=$ac_optarg ;;
  1003. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004. ac_prev=dvidir ;;
  1005. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006. dvidir=$ac_optarg ;;
  1007. -enable-* | --enable-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid feature name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "enable_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval enable_$ac_useropt=\$ac_optarg ;;
  1022. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1023. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1024. | --exec | --exe | --ex)
  1025. ac_prev=exec_prefix ;;
  1026. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1027. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1028. | --exec=* | --exe=* | --ex=*)
  1029. exec_prefix=$ac_optarg ;;
  1030. -gas | --gas | --ga | --g)
  1031. # Obsolete; use --with-gas.
  1032. with_gas=yes ;;
  1033. -help | --help | --hel | --he | -h)
  1034. ac_init_help=long ;;
  1035. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1036. ac_init_help=recursive ;;
  1037. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1038. ac_init_help=short ;;
  1039. -host | --host | --hos | --ho)
  1040. ac_prev=host_alias ;;
  1041. -host=* | --host=* | --hos=* | --ho=*)
  1042. host_alias=$ac_optarg ;;
  1043. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1044. ac_prev=htmldir ;;
  1045. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1046. | --ht=*)
  1047. htmldir=$ac_optarg ;;
  1048. -includedir | --includedir | --includedi | --included | --include \
  1049. | --includ | --inclu | --incl | --inc)
  1050. ac_prev=includedir ;;
  1051. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1052. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1053. includedir=$ac_optarg ;;
  1054. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055. ac_prev=infodir ;;
  1056. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057. infodir=$ac_optarg ;;
  1058. -libdir | --libdir | --libdi | --libd)
  1059. ac_prev=libdir ;;
  1060. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061. libdir=$ac_optarg ;;
  1062. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1063. | --libexe | --libex | --libe)
  1064. ac_prev=libexecdir ;;
  1065. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1066. | --libexe=* | --libex=* | --libe=*)
  1067. libexecdir=$ac_optarg ;;
  1068. -localedir | --localedir | --localedi | --localed | --locale)
  1069. ac_prev=localedir ;;
  1070. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1071. localedir=$ac_optarg ;;
  1072. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1073. | --localstate | --localstat | --localsta | --localst | --locals)
  1074. ac_prev=localstatedir ;;
  1075. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1076. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1077. localstatedir=$ac_optarg ;;
  1078. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1079. ac_prev=mandir ;;
  1080. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1081. mandir=$ac_optarg ;;
  1082. -nfp | --nfp | --nf)
  1083. # Obsolete; use --without-fp.
  1084. with_fp=no ;;
  1085. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1086. | --no-cr | --no-c | -n)
  1087. no_create=yes ;;
  1088. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1089. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1090. no_recursion=yes ;;
  1091. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1092. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1093. | --oldin | --oldi | --old | --ol | --o)
  1094. ac_prev=oldincludedir ;;
  1095. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1096. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1097. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1098. oldincludedir=$ac_optarg ;;
  1099. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1100. ac_prev=prefix ;;
  1101. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1102. prefix=$ac_optarg ;;
  1103. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104. | --program-pre | --program-pr | --program-p)
  1105. ac_prev=program_prefix ;;
  1106. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108. program_prefix=$ac_optarg ;;
  1109. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1110. | --program-suf | --program-su | --program-s)
  1111. ac_prev=program_suffix ;;
  1112. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1113. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1114. program_suffix=$ac_optarg ;;
  1115. -program-transform-name | --program-transform-name \
  1116. | --program-transform-nam | --program-transform-na \
  1117. | --program-transform-n | --program-transform- \
  1118. | --program-transform | --program-transfor \
  1119. | --program-transfo | --program-transf \
  1120. | --program-trans | --program-tran \
  1121. | --progr-tra | --program-tr | --program-t)
  1122. ac_prev=program_transform_name ;;
  1123. -program-transform-name=* | --program-transform-name=* \
  1124. | --program-transform-nam=* | --program-transform-na=* \
  1125. | --program-transform-n=* | --program-transform-=* \
  1126. | --program-transform=* | --program-transfor=* \
  1127. | --program-transfo=* | --program-transf=* \
  1128. | --program-trans=* | --program-tran=* \
  1129. | --progr-tra=* | --program-tr=* | --program-t=*)
  1130. program_transform_name=$ac_optarg ;;
  1131. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132. ac_prev=pdfdir ;;
  1133. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134. pdfdir=$ac_optarg ;;
  1135. -psdir | --psdir | --psdi | --psd | --ps)
  1136. ac_prev=psdir ;;
  1137. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138. psdir=$ac_optarg ;;
  1139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1140. | -silent | --silent | --silen | --sile | --sil)
  1141. silent=yes ;;
  1142. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1143. | --runstate | --runstat | --runsta | --runst | --runs \
  1144. | --run | --ru | --r)
  1145. ac_prev=runstatedir ;;
  1146. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1147. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1148. | --run=* | --ru=* | --r=*)
  1149. runstatedir=$ac_optarg ;;
  1150. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1151. ac_prev=sbindir ;;
  1152. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1153. | --sbi=* | --sb=*)
  1154. sbindir=$ac_optarg ;;
  1155. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1156. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1157. | --sharedst | --shareds | --shared | --share | --shar \
  1158. | --sha | --sh)
  1159. ac_prev=sharedstatedir ;;
  1160. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1161. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1162. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1163. | --sha=* | --sh=*)
  1164. sharedstatedir=$ac_optarg ;;
  1165. -site | --site | --sit)
  1166. ac_prev=site ;;
  1167. -site=* | --site=* | --sit=*)
  1168. site=$ac_optarg ;;
  1169. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1170. ac_prev=srcdir ;;
  1171. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1172. srcdir=$ac_optarg ;;
  1173. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1174. | --syscon | --sysco | --sysc | --sys | --sy)
  1175. ac_prev=sysconfdir ;;
  1176. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1177. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1178. sysconfdir=$ac_optarg ;;
  1179. -target | --target | --targe | --targ | --tar | --ta | --t)
  1180. ac_prev=target_alias ;;
  1181. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1182. target_alias=$ac_optarg ;;
  1183. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1184. verbose=yes ;;
  1185. -version | --version | --versio | --versi | --vers | -V)
  1186. ac_init_version=: ;;
  1187. -with-* | --with-*)
  1188. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1189. # Reject names that are not valid shell variable names.
  1190. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1191. as_fn_error $? "invalid package name: $ac_useropt"
  1192. ac_useropt_orig=$ac_useropt
  1193. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1194. case $ac_user_opts in
  1195. *"
  1196. "with_$ac_useropt"
  1197. "*) ;;
  1198. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1199. ac_unrecognized_sep=', ';;
  1200. esac
  1201. eval with_$ac_useropt=\$ac_optarg ;;
  1202. -without-* | --without-*)
  1203. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1204. # Reject names that are not valid shell variable names.
  1205. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1206. as_fn_error $? "invalid package name: $ac_useropt"
  1207. ac_useropt_orig=$ac_useropt
  1208. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1209. case $ac_user_opts in
  1210. *"
  1211. "with_$ac_useropt"
  1212. "*) ;;
  1213. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1214. ac_unrecognized_sep=', ';;
  1215. esac
  1216. eval with_$ac_useropt=no ;;
  1217. --x)
  1218. # Obsolete; use --with-x.
  1219. with_x=yes ;;
  1220. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1221. | --x-incl | --x-inc | --x-in | --x-i)
  1222. ac_prev=x_includes ;;
  1223. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1224. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1225. x_includes=$ac_optarg ;;
  1226. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1227. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1228. ac_prev=x_libraries ;;
  1229. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1230. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1231. x_libraries=$ac_optarg ;;
  1232. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1233. Try \`$0 --help' for more information"
  1234. ;;
  1235. *=*)
  1236. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1237. # Reject names that are not valid shell variable names.
  1238. case $ac_envvar in #(
  1239. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1240. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1241. esac
  1242. eval $ac_envvar=\$ac_optarg
  1243. export $ac_envvar ;;
  1244. *)
  1245. # FIXME: should be removed in autoconf 3.0.
  1246. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1247. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1248. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1249. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1250. ;;
  1251. esac
  1252. done
  1253. if test -n "$ac_prev"; then
  1254. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1255. as_fn_error $? "missing argument to $ac_option"
  1256. fi
  1257. if test -n "$ac_unrecognized_opts"; then
  1258. case $enable_option_checking in
  1259. no) ;;
  1260. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1261. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1262. esac
  1263. fi
  1264. # Check all directory arguments for consistency.
  1265. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1266. datadir sysconfdir sharedstatedir localstatedir includedir \
  1267. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1268. libdir localedir mandir runstatedir
  1269. do
  1270. eval ac_val=\$$ac_var
  1271. # Remove trailing slashes.
  1272. case $ac_val in
  1273. */ )
  1274. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1275. eval $ac_var=\$ac_val;;
  1276. esac
  1277. # Be sure to have absolute directory names.
  1278. case $ac_val in
  1279. [\\/$]* | ?:[\\/]* ) continue;;
  1280. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1281. esac
  1282. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1283. done
  1284. # There might be people who depend on the old broken behavior: `$host'
  1285. # used to hold the argument of --host etc.
  1286. # FIXME: To remove some day.
  1287. build=$build_alias
  1288. host=$host_alias
  1289. target=$target_alias
  1290. # FIXME: To remove some day.
  1291. if test "x$host_alias" != x; then
  1292. if test "x$build_alias" = x; then
  1293. cross_compiling=maybe
  1294. elif test "x$build_alias" != "x$host_alias"; then
  1295. cross_compiling=yes
  1296. fi
  1297. fi
  1298. ac_tool_prefix=
  1299. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1300. test "$silent" = yes && exec 6>/dev/null
  1301. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1302. ac_ls_di=`ls -di .` &&
  1303. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1304. as_fn_error $? "working directory cannot be determined"
  1305. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1306. as_fn_error $? "pwd does not report name of working directory"
  1307. # Find the source files, if location was not specified.
  1308. if test -z "$srcdir"; then
  1309. ac_srcdir_defaulted=yes
  1310. # Try the directory containing this script, then the parent directory.
  1311. ac_confdir=`$as_dirname -- "$as_myself" ||
  1312. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1313. X"$as_myself" : 'X\(//\)[^/]' \| \
  1314. X"$as_myself" : 'X\(//\)$' \| \
  1315. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1316. $as_echo X"$as_myself" |
  1317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1318. s//\1/
  1319. q
  1320. }
  1321. /^X\(\/\/\)[^/].*/{
  1322. s//\1/
  1323. q
  1324. }
  1325. /^X\(\/\/\)$/{
  1326. s//\1/
  1327. q
  1328. }
  1329. /^X\(\/\).*/{
  1330. s//\1/
  1331. q
  1332. }
  1333. s/.*/./; q'`
  1334. srcdir=$ac_confdir
  1335. if test ! -r "$srcdir/$ac_unique_file"; then
  1336. srcdir=..
  1337. fi
  1338. else
  1339. ac_srcdir_defaulted=no
  1340. fi
  1341. if test ! -r "$srcdir/$ac_unique_file"; then
  1342. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1343. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1344. fi
  1345. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1346. ac_abs_confdir=`(
  1347. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1348. pwd)`
  1349. # When building in place, set srcdir=.
  1350. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1351. srcdir=.
  1352. fi
  1353. # Remove unnecessary trailing slashes from srcdir.
  1354. # Double slashes in file names in object file debugging info
  1355. # mess up M-x gdb in Emacs.
  1356. case $srcdir in
  1357. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1358. esac
  1359. for ac_var in $ac_precious_vars; do
  1360. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1361. eval ac_env_${ac_var}_value=\$${ac_var}
  1362. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1363. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1364. done
  1365. #
  1366. # Report the --help message.
  1367. #
  1368. if test "$ac_init_help" = "long"; then
  1369. # Omit some internal or obsolete options to make the list less imposing.
  1370. # This message is too long to be a string in the A/UX 3.1 sh.
  1371. cat <<_ACEOF
  1372. \`configure' configures this package to adapt to many kinds of systems.
  1373. Usage: $0 [OPTION]... [VAR=VALUE]...
  1374. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1375. VAR=VALUE. See below for descriptions of some of the useful variables.
  1376. Defaults for the options are specified in brackets.
  1377. Configuration:
  1378. -h, --help display this help and exit
  1379. --help=short display options specific to this package
  1380. --help=recursive display the short help of all the included packages
  1381. -V, --version display version information and exit
  1382. -q, --quiet, --silent do not print \`checking ...' messages
  1383. --cache-file=FILE cache test results in FILE [disabled]
  1384. -C, --config-cache alias for \`--cache-file=config.cache'
  1385. -n, --no-create do not create output files
  1386. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1387. Installation directories:
  1388. --prefix=PREFIX install architecture-independent files in PREFIX
  1389. [$ac_default_prefix]
  1390. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1391. [PREFIX]
  1392. By default, \`make install' will install all the files in
  1393. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1394. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1395. for instance \`--prefix=\$HOME'.
  1396. For better control, use the options below.
  1397. Fine tuning of the installation directories:
  1398. --bindir=DIR user executables [EPREFIX/bin]
  1399. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1400. --libexecdir=DIR program executables [EPREFIX/libexec]
  1401. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1402. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1403. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1404. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1405. --libdir=DIR object code libraries [EPREFIX/lib]
  1406. --includedir=DIR C header files [PREFIX/include]
  1407. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1408. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1409. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1410. --infodir=DIR info documentation [DATAROOTDIR/info]
  1411. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1412. --mandir=DIR man documentation [DATAROOTDIR/man]
  1413. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1414. --htmldir=DIR html documentation [DOCDIR]
  1415. --dvidir=DIR dvi documentation [DOCDIR]
  1416. --pdfdir=DIR pdf documentation [DOCDIR]
  1417. --psdir=DIR ps documentation [DOCDIR]
  1418. _ACEOF
  1419. cat <<\_ACEOF
  1420. X features:
  1421. --x-includes=DIR X include files are in DIR
  1422. --x-libraries=DIR X library files are in DIR
  1423. System types:
  1424. --build=BUILD configure for building on BUILD [guessed]
  1425. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1426. _ACEOF
  1427. fi
  1428. if test -n "$ac_init_help"; then
  1429. cat <<\_ACEOF
  1430. Optional Features:
  1431. --disable-option-checking ignore unrecognized --enable/--with options
  1432. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1433. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1434. --enable-shared[=PKGS] build shared libraries [default=yes]
  1435. --enable-static[=PKGS] build static libraries [default=yes]
  1436. --enable-fast-install[=PKGS]
  1437. optimize for fast installation [default=yes]
  1438. --disable-libtool-lock avoid locking (might break parallel builds)
  1439. --enable-assertions Enable internal sanity checks
  1440. (auto/disabled/release/enabled/paranoid)
  1441. [[default=auto]]
  1442. --enable-dependency-tracking
  1443. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1444. --enable-libc Use the system C library [[default=yes]]
  1445. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1446. --enable-atomic Enable the atomic operations subsystem
  1447. [[default=yes]]
  1448. --enable-audio Enable the audio subsystem [[default=yes]]
  1449. --enable-video Enable the video subsystem [[default=yes]]
  1450. --enable-render Enable the render subsystem [[default=yes]]
  1451. --enable-events Enable the events subsystem [[default=yes]]
  1452. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1453. --enable-haptic Enable the haptic (force feedback) subsystem
  1454. [[default=yes]]
  1455. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1456. --enable-power Enable the power subsystem [[default=yes]]
  1457. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1458. --enable-threads Enable the threading subsystem [[default=yes]]
  1459. --enable-timers Enable the timer subsystem [[default=yes]]
  1460. --enable-file Enable the file subsystem [[default=yes]]
  1461. --enable-loadso Enable the shared object loading subsystem
  1462. [[default=yes]]
  1463. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1464. --enable-assembly Enable assembly routines [[default=yes]]
  1465. --enable-ssemath Allow GCC to use SSE floating point math
  1466. [[default=maybe]]
  1467. --enable-mmx use MMX assembly routines [[default=yes]]
  1468. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1469. --enable-sse use SSE assembly routines [[default=yes]]
  1470. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1471. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1472. --enable-altivec use Altivec assembly routines [[default=yes]]
  1473. --enable-oss support the OSS audio API [[default=maybe]]
  1474. --enable-alsa support the ALSA audio API [[default=yes]]
  1475. --disable-alsatest Do not try to compile and run a test Alsa program
  1476. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1477. --enable-jack use JACK audio [[default=yes]]
  1478. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1479. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1480. --disable-esdtest Do not try to compile and run a test ESD program
  1481. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1482. --enable-pulseaudio use PulseAudio [[default=yes]]
  1483. --enable-pulseaudio-shared
  1484. dynamically load PulseAudio support [[default=yes]]
  1485. --enable-arts support the Analog Real Time Synthesizer
  1486. [[default=yes]]
  1487. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1488. --enable-nas support the NAS audio API [[default=yes]]
  1489. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1490. --enable-sndio support the sndio audio API [[default=yes]]
  1491. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1492. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1493. --enable-fusionsound-shared
  1494. dynamically load fusionsound audio support
  1495. [[default=yes]]
  1496. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1497. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1498. --enable-libsamplerate use libsamplerate for audio rate conversion
  1499. [[default=yes]]
  1500. --enable-libsamplerate-shared
  1501. dynamically load libsamplerate [[default=yes]]
  1502. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1503. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1504. --enable-video-wayland use Wayland video driver [[default=yes]]
  1505. --enable-video-wayland-qt-touch
  1506. QtWayland server support for Wayland video driver
  1507. [[default=yes]]
  1508. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1509. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1510. --enable-video-x11 use X11 video driver [[default=yes]]
  1511. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1512. --enable-video-x11-xcursor
  1513. enable X11 Xcursor support [[default=yes]]
  1514. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1515. --enable-video-x11-xinerama
  1516. enable X11 Xinerama support [[default=yes]]
  1517. --enable-video-x11-xinput
  1518. enable X11 XInput extension for manymouse, tablets,
  1519. etc [[default=yes]]
  1520. --enable-video-x11-xrandr
  1521. enable X11 Xrandr extension for fullscreen
  1522. [[default=yes]]
  1523. --enable-video-x11-scrnsaver
  1524. enable X11 screensaver extension [[default=yes]]
  1525. --enable-video-x11-xshape
  1526. enable X11 XShape support [[default=yes]]
  1527. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1528. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1529. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1530. --enable-video-metal include Metal support [[default=yes]]
  1531. --enable-render-metal enable the Metal render driver [[default=yes]]
  1532. --enable-video-directfb use DirectFB video driver [[default=no]]
  1533. --enable-directfb-shared
  1534. dynamically load directfb support [[default=yes]]
  1535. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1536. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1537. --enable-video-dummy use dummy video driver [[default=yes]]
  1538. --enable-video-opengl include OpenGL support [[default=yes]]
  1539. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1540. --enable-video-opengles1
  1541. include OpenGL ES 1.1 support [[default=yes]]
  1542. --enable-video-opengles2
  1543. include OpenGL ES 2.0 support [[default=yes]]
  1544. --enable-video-vulkan include Vulkan support [[default=yes]]
  1545. --enable-libudev enable libudev support [[default=yes]]
  1546. --enable-dbus enable D-Bus support [[default=yes]]
  1547. --enable-ime enable IME support [[default=yes]]
  1548. --enable-ibus enable IBus support [[default=yes]]
  1549. --enable-fcitx enable fcitx support [[default=yes]]
  1550. --enable-input-tslib use the Touchscreen library for input
  1551. [[default=yes]]
  1552. --enable-pthreads use POSIX threads for multi-threading
  1553. [[default=yes]]
  1554. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1555. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1556. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1557. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1558. --enable-hidapi use HIDAPI for low level joystick drivers
  1559. [[default=yes]]
  1560. --enable-hidapi-libusb use libusb for low level joystick drivers
  1561. [[default=maybe]]
  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=yes]]
  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. LIBUSB_CFLAGS
  1633. C compiler flags for LIBUSB, overriding pkg-config
  1634. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1635. Use these variables to override the choices made by `configure' or to help
  1636. it to find libraries and programs with nonstandard names/locations.
  1637. Report bugs to the package provider.
  1638. _ACEOF
  1639. ac_status=$?
  1640. fi
  1641. if test "$ac_init_help" = "recursive"; then
  1642. # If there are subdirs, report their specific --help.
  1643. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1644. test -d "$ac_dir" ||
  1645. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1646. continue
  1647. ac_builddir=.
  1648. case "$ac_dir" in
  1649. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1650. *)
  1651. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1652. # A ".." for each directory in $ac_dir_suffix.
  1653. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1654. case $ac_top_builddir_sub in
  1655. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1656. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1657. esac ;;
  1658. esac
  1659. ac_abs_top_builddir=$ac_pwd
  1660. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1661. # for backward compatibility:
  1662. ac_top_builddir=$ac_top_build_prefix
  1663. case $srcdir in
  1664. .) # We are building in place.
  1665. ac_srcdir=.
  1666. ac_top_srcdir=$ac_top_builddir_sub
  1667. ac_abs_top_srcdir=$ac_pwd ;;
  1668. [\\/]* | ?:[\\/]* ) # Absolute name.
  1669. ac_srcdir=$srcdir$ac_dir_suffix;
  1670. ac_top_srcdir=$srcdir
  1671. ac_abs_top_srcdir=$srcdir ;;
  1672. *) # Relative name.
  1673. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1674. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1675. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1676. esac
  1677. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1678. cd "$ac_dir" || { ac_status=$?; continue; }
  1679. # Check for guested configure.
  1680. if test -f "$ac_srcdir/configure.gnu"; then
  1681. echo &&
  1682. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1683. elif test -f "$ac_srcdir/configure"; then
  1684. echo &&
  1685. $SHELL "$ac_srcdir/configure" --help=recursive
  1686. else
  1687. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1688. fi || ac_status=$?
  1689. cd "$ac_pwd" || { ac_status=$?; break; }
  1690. done
  1691. fi
  1692. test -n "$ac_init_help" && exit $ac_status
  1693. if $ac_init_version; then
  1694. cat <<\_ACEOF
  1695. configure
  1696. generated by GNU Autoconf 2.69
  1697. Copyright (C) 2012 Free Software Foundation, Inc.
  1698. This configure script is free software; the Free Software Foundation
  1699. gives unlimited permission to copy, distribute and modify it.
  1700. _ACEOF
  1701. exit
  1702. fi
  1703. ## ------------------------ ##
  1704. ## Autoconf initialization. ##
  1705. ## ------------------------ ##
  1706. # ac_fn_c_try_compile LINENO
  1707. # --------------------------
  1708. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1709. ac_fn_c_try_compile ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. rm -f conftest.$ac_objext
  1713. if { { ac_try="$ac_compile"
  1714. case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720. (eval "$ac_compile") 2>conftest.err
  1721. ac_status=$?
  1722. if test -s conftest.err; then
  1723. grep -v '^ *+' conftest.err >conftest.er1
  1724. cat conftest.er1 >&5
  1725. mv -f conftest.er1 conftest.err
  1726. fi
  1727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1728. test $ac_status = 0; } && {
  1729. test -z "$ac_c_werror_flag" ||
  1730. test ! -s conftest.err
  1731. } && test -s conftest.$ac_objext; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736. ac_retval=1
  1737. fi
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_compile
  1741. # ac_fn_c_try_link LINENO
  1742. # -----------------------
  1743. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1744. ac_fn_c_try_link ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. rm -f conftest.$ac_objext conftest$ac_exeext
  1748. if { { ac_try="$ac_link"
  1749. case "(($ac_try" in
  1750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1751. *) ac_try_echo=$ac_try;;
  1752. esac
  1753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1754. $as_echo "$ac_try_echo"; } >&5
  1755. (eval "$ac_link") 2>conftest.err
  1756. ac_status=$?
  1757. if test -s conftest.err; then
  1758. grep -v '^ *+' conftest.err >conftest.er1
  1759. cat conftest.er1 >&5
  1760. mv -f conftest.er1 conftest.err
  1761. fi
  1762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1763. test $ac_status = 0; } && {
  1764. test -z "$ac_c_werror_flag" ||
  1765. test ! -s conftest.err
  1766. } && test -s conftest$ac_exeext && {
  1767. test "$cross_compiling" = yes ||
  1768. test -x conftest$ac_exeext
  1769. }; then :
  1770. ac_retval=0
  1771. else
  1772. $as_echo "$as_me: failed program was:" >&5
  1773. sed 's/^/| /' conftest.$ac_ext >&5
  1774. ac_retval=1
  1775. fi
  1776. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1777. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1778. # interfere with the next link command; also delete a directory that is
  1779. # left behind by Apple's compiler. We do this before executing the actions.
  1780. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_c_try_link
  1784. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1785. # -------------------------------------------------------
  1786. # Tests whether HEADER exists and can be compiled using the include files in
  1787. # INCLUDES, setting the cache variable VAR accordingly.
  1788. ac_fn_c_check_header_compile ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1792. $as_echo_n "checking for $2... " >&6; }
  1793. if eval \${$3+:} false; then :
  1794. $as_echo_n "(cached) " >&6
  1795. else
  1796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1797. /* end confdefs.h. */
  1798. $4
  1799. #include <$2>
  1800. _ACEOF
  1801. if ac_fn_c_try_compile "$LINENO"; then :
  1802. eval "$3=yes"
  1803. else
  1804. eval "$3=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. eval ac_res=\$$3
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1810. $as_echo "$ac_res" >&6; }
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. } # ac_fn_c_check_header_compile
  1813. # ac_fn_c_try_cpp LINENO
  1814. # ----------------------
  1815. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1816. ac_fn_c_try_cpp ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } > conftest.i && {
  1835. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1836. test ! -s conftest.err
  1837. }; then :
  1838. ac_retval=0
  1839. else
  1840. $as_echo "$as_me: failed program was:" >&5
  1841. sed 's/^/| /' conftest.$ac_ext >&5
  1842. ac_retval=1
  1843. fi
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_c_try_cpp
  1847. # ac_fn_c_try_run LINENO
  1848. # ----------------------
  1849. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1850. # that executables *can* be run.
  1851. ac_fn_c_try_run ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. if { { ac_try="$ac_link"
  1855. case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo"; } >&5
  1861. (eval "$ac_link") 2>&5
  1862. ac_status=$?
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1865. { { case "(($ac_try" in
  1866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1867. *) ac_try_echo=$ac_try;;
  1868. esac
  1869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1870. $as_echo "$ac_try_echo"; } >&5
  1871. (eval "$ac_try") 2>&5
  1872. ac_status=$?
  1873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; }; }; then :
  1875. ac_retval=0
  1876. else
  1877. $as_echo "$as_me: program exited with status $ac_status" >&5
  1878. $as_echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. ac_retval=$ac_status
  1881. fi
  1882. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. as_fn_set_status $ac_retval
  1885. } # ac_fn_c_try_run
  1886. # ac_fn_c_check_func LINENO FUNC VAR
  1887. # ----------------------------------
  1888. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1889. ac_fn_c_check_func ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. $as_echo_n "checking for $2... " >&6; }
  1894. if eval \${$3+:} false; then :
  1895. $as_echo_n "(cached) " >&6
  1896. else
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1901. #define $2 innocuous_$2
  1902. /* System header to define __stub macros and hopefully few prototypes,
  1903. which can conflict with char $2 (); below.
  1904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1905. <limits.h> exists even on freestanding compilers. */
  1906. #ifdef __STDC__
  1907. # include <limits.h>
  1908. #else
  1909. # include <assert.h>
  1910. #endif
  1911. #undef $2
  1912. /* Override any GCC internal prototype to avoid an error.
  1913. Use char because int might match the return type of a GCC
  1914. builtin and then its argument prototype would still apply. */
  1915. #ifdef __cplusplus
  1916. extern "C"
  1917. #endif
  1918. char $2 ();
  1919. /* The GNU C library defines this for functions which it implements
  1920. to always fail with ENOSYS. Some functions are actually named
  1921. something starting with __ and the normal name is an alias. */
  1922. #if defined __stub_$2 || defined __stub___$2
  1923. choke me
  1924. #endif
  1925. int
  1926. main ()
  1927. {
  1928. return $2 ();
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. if ac_fn_c_try_link "$LINENO"; then :
  1934. eval "$3=yes"
  1935. else
  1936. eval "$3=no"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext \
  1939. conftest$ac_exeext conftest.$ac_ext
  1940. fi
  1941. eval ac_res=\$$3
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1943. $as_echo "$ac_res" >&6; }
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. } # ac_fn_c_check_func
  1946. # ac_fn_cxx_try_compile LINENO
  1947. # ----------------------------
  1948. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1949. ac_fn_cxx_try_compile ()
  1950. {
  1951. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1952. rm -f conftest.$ac_objext
  1953. if { { ac_try="$ac_compile"
  1954. case "(($ac_try" in
  1955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1956. *) ac_try_echo=$ac_try;;
  1957. esac
  1958. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1959. $as_echo "$ac_try_echo"; } >&5
  1960. (eval "$ac_compile") 2>conftest.err
  1961. ac_status=$?
  1962. if test -s conftest.err; then
  1963. grep -v '^ *+' conftest.err >conftest.er1
  1964. cat conftest.er1 >&5
  1965. mv -f conftest.er1 conftest.err
  1966. fi
  1967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1968. test $ac_status = 0; } && {
  1969. test -z "$ac_cxx_werror_flag" ||
  1970. test ! -s conftest.err
  1971. } && test -s conftest.$ac_objext; then :
  1972. ac_retval=0
  1973. else
  1974. $as_echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. ac_retval=1
  1977. fi
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. as_fn_set_status $ac_retval
  1980. } # ac_fn_cxx_try_compile
  1981. # ac_fn_cxx_try_cpp LINENO
  1982. # ------------------------
  1983. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1984. ac_fn_cxx_try_cpp ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1988. case "(($ac_try" in
  1989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1990. *) ac_try_echo=$ac_try;;
  1991. esac
  1992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1993. $as_echo "$ac_try_echo"; } >&5
  1994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1995. ac_status=$?
  1996. if test -s conftest.err; then
  1997. grep -v '^ *+' conftest.err >conftest.er1
  1998. cat conftest.er1 >&5
  1999. mv -f conftest.er1 conftest.err
  2000. fi
  2001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2002. test $ac_status = 0; } > conftest.i && {
  2003. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2004. test ! -s conftest.err
  2005. }; then :
  2006. ac_retval=0
  2007. else
  2008. $as_echo "$as_me: failed program was:" >&5
  2009. sed 's/^/| /' conftest.$ac_ext >&5
  2010. ac_retval=1
  2011. fi
  2012. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2013. as_fn_set_status $ac_retval
  2014. } # ac_fn_cxx_try_cpp
  2015. # ac_fn_cxx_try_link LINENO
  2016. # -------------------------
  2017. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2018. ac_fn_cxx_try_link ()
  2019. {
  2020. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2021. rm -f conftest.$ac_objext conftest$ac_exeext
  2022. if { { ac_try="$ac_link"
  2023. case "(($ac_try" in
  2024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2025. *) ac_try_echo=$ac_try;;
  2026. esac
  2027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2028. $as_echo "$ac_try_echo"; } >&5
  2029. (eval "$ac_link") 2>conftest.err
  2030. ac_status=$?
  2031. if test -s conftest.err; then
  2032. grep -v '^ *+' conftest.err >conftest.er1
  2033. cat conftest.er1 >&5
  2034. mv -f conftest.er1 conftest.err
  2035. fi
  2036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2037. test $ac_status = 0; } && {
  2038. test -z "$ac_cxx_werror_flag" ||
  2039. test ! -s conftest.err
  2040. } && test -s conftest$ac_exeext && {
  2041. test "$cross_compiling" = yes ||
  2042. test -x conftest$ac_exeext
  2043. }; then :
  2044. ac_retval=0
  2045. else
  2046. $as_echo "$as_me: failed program was:" >&5
  2047. sed 's/^/| /' conftest.$ac_ext >&5
  2048. ac_retval=1
  2049. fi
  2050. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2051. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2052. # interfere with the next link command; also delete a directory that is
  2053. # left behind by Apple's compiler. We do this before executing the actions.
  2054. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2055. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2056. as_fn_set_status $ac_retval
  2057. } # ac_fn_cxx_try_link
  2058. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2059. # -------------------------------------------------------
  2060. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2061. # the include files in INCLUDES and setting the cache variable VAR
  2062. # accordingly.
  2063. ac_fn_c_check_header_mongrel ()
  2064. {
  2065. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2066. if eval \${$3+:} false; then :
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2068. $as_echo_n "checking for $2... " >&6; }
  2069. if eval \${$3+:} false; then :
  2070. $as_echo_n "(cached) " >&6
  2071. fi
  2072. eval ac_res=\$$3
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2074. $as_echo "$ac_res" >&6; }
  2075. else
  2076. # Is the header compilable?
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2078. $as_echo_n "checking $2 usability... " >&6; }
  2079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2080. /* end confdefs.h. */
  2081. $4
  2082. #include <$2>
  2083. _ACEOF
  2084. if ac_fn_c_try_compile "$LINENO"; then :
  2085. ac_header_compiler=yes
  2086. else
  2087. ac_header_compiler=no
  2088. fi
  2089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2091. $as_echo "$ac_header_compiler" >&6; }
  2092. # Is the header present?
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2094. $as_echo_n "checking $2 presence... " >&6; }
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. #include <$2>
  2098. _ACEOF
  2099. if ac_fn_c_try_cpp "$LINENO"; then :
  2100. ac_header_preproc=yes
  2101. else
  2102. ac_header_preproc=no
  2103. fi
  2104. rm -f conftest.err conftest.i conftest.$ac_ext
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2106. $as_echo "$ac_header_preproc" >&6; }
  2107. # So? What about this header?
  2108. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2109. yes:no: )
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2111. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2113. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2114. ;;
  2115. no:yes:* )
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2117. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2119. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2121. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2123. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2125. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2126. ;;
  2127. esac
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2129. $as_echo_n "checking for $2... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=\$ac_header_compiler"
  2134. fi
  2135. eval ac_res=\$$3
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. $as_echo "$ac_res" >&6; }
  2138. fi
  2139. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2140. } # ac_fn_c_check_header_mongrel
  2141. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2142. # -------------------------------------------
  2143. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2144. # variable VAR accordingly.
  2145. ac_fn_c_check_type ()
  2146. {
  2147. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2149. $as_echo_n "checking for $2... " >&6; }
  2150. if eval \${$3+:} false; then :
  2151. $as_echo_n "(cached) " >&6
  2152. else
  2153. eval "$3=no"
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. if (sizeof ($2))
  2161. return 0;
  2162. ;
  2163. return 0;
  2164. }
  2165. _ACEOF
  2166. if ac_fn_c_try_compile "$LINENO"; then :
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $4
  2170. int
  2171. main ()
  2172. {
  2173. if (sizeof (($2)))
  2174. return 0;
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_c_try_compile "$LINENO"; then :
  2180. else
  2181. eval "$3=yes"
  2182. fi
  2183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. fi
  2187. eval ac_res=\$$3
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2189. $as_echo "$ac_res" >&6; }
  2190. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2191. } # ac_fn_c_check_type
  2192. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2193. # ----------------------------------------------------
  2194. # Tries to find if the field MEMBER exists in type AGGR, after including
  2195. # INCLUDES, setting cache variable VAR accordingly.
  2196. ac_fn_c_check_member ()
  2197. {
  2198. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2200. $as_echo_n "checking for $2.$3... " >&6; }
  2201. if eval \${$4+:} false; then :
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205. /* end confdefs.h. */
  2206. $5
  2207. int
  2208. main ()
  2209. {
  2210. static $2 ac_aggr;
  2211. if (ac_aggr.$3)
  2212. return 0;
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. if ac_fn_c_try_compile "$LINENO"; then :
  2218. eval "$4=yes"
  2219. else
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main ()
  2225. {
  2226. static $2 ac_aggr;
  2227. if (sizeof ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_c_try_compile "$LINENO"; then :
  2234. eval "$4=yes"
  2235. else
  2236. eval "$4=no"
  2237. fi
  2238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2239. fi
  2240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2241. fi
  2242. eval ac_res=\$$4
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2244. $as_echo "$ac_res" >&6; }
  2245. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2246. } # ac_fn_c_check_member
  2247. cat >config.log <<_ACEOF
  2248. This file contains any messages produced by compilers while
  2249. running configure, to aid debugging if configure makes a mistake.
  2250. It was created by $as_me, which was
  2251. generated by GNU Autoconf 2.69. Invocation command line was
  2252. $ $0 $@
  2253. _ACEOF
  2254. exec 5>>config.log
  2255. {
  2256. cat <<_ASUNAME
  2257. ## --------- ##
  2258. ## Platform. ##
  2259. ## --------- ##
  2260. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2261. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2262. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2263. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2264. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2265. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2266. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2267. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2268. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2269. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2270. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2271. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2272. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2273. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2274. _ASUNAME
  2275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2276. for as_dir in $PATH
  2277. do
  2278. IFS=$as_save_IFS
  2279. test -z "$as_dir" && as_dir=.
  2280. $as_echo "PATH: $as_dir"
  2281. done
  2282. IFS=$as_save_IFS
  2283. } >&5
  2284. cat >&5 <<_ACEOF
  2285. ## ----------- ##
  2286. ## Core tests. ##
  2287. ## ----------- ##
  2288. _ACEOF
  2289. # Keep a trace of the command line.
  2290. # Strip out --no-create and --no-recursion so they do not pile up.
  2291. # Strip out --silent because we don't want to record it for future runs.
  2292. # Also quote any args containing shell meta-characters.
  2293. # Make two passes to allow for proper duplicate-argument suppression.
  2294. ac_configure_args=
  2295. ac_configure_args0=
  2296. ac_configure_args1=
  2297. ac_must_keep_next=false
  2298. for ac_pass in 1 2
  2299. do
  2300. for ac_arg
  2301. do
  2302. case $ac_arg in
  2303. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2304. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2305. | -silent | --silent | --silen | --sile | --sil)
  2306. continue ;;
  2307. *\'*)
  2308. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2309. esac
  2310. case $ac_pass in
  2311. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2312. 2)
  2313. as_fn_append ac_configure_args1 " '$ac_arg'"
  2314. if test $ac_must_keep_next = true; then
  2315. ac_must_keep_next=false # Got value, back to normal.
  2316. else
  2317. case $ac_arg in
  2318. *=* | --config-cache | -C | -disable-* | --disable-* \
  2319. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2320. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2321. | -with-* | --with-* | -without-* | --without-* | --x)
  2322. case "$ac_configure_args0 " in
  2323. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2324. esac
  2325. ;;
  2326. -* ) ac_must_keep_next=true ;;
  2327. esac
  2328. fi
  2329. as_fn_append ac_configure_args " '$ac_arg'"
  2330. ;;
  2331. esac
  2332. done
  2333. done
  2334. { ac_configure_args0=; unset ac_configure_args0;}
  2335. { ac_configure_args1=; unset ac_configure_args1;}
  2336. # When interrupted or exit'd, cleanup temporary files, and complete
  2337. # config.log. We remove comments because anyway the quotes in there
  2338. # would cause problems or look ugly.
  2339. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2340. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2341. trap 'exit_status=$?
  2342. # Save into config.log some information that might help in debugging.
  2343. {
  2344. echo
  2345. $as_echo "## ---------------- ##
  2346. ## Cache variables. ##
  2347. ## ---------------- ##"
  2348. echo
  2349. # The following way of writing the cache mishandles newlines in values,
  2350. (
  2351. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2352. eval ac_val=\$$ac_var
  2353. case $ac_val in #(
  2354. *${as_nl}*)
  2355. case $ac_var in #(
  2356. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2357. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2358. esac
  2359. case $ac_var in #(
  2360. _ | IFS | as_nl) ;; #(
  2361. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2362. *) { eval $ac_var=; unset $ac_var;} ;;
  2363. esac ;;
  2364. esac
  2365. done
  2366. (set) 2>&1 |
  2367. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2368. *${as_nl}ac_space=\ *)
  2369. sed -n \
  2370. "s/'\''/'\''\\\\'\'''\''/g;
  2371. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2372. ;; #(
  2373. *)
  2374. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2375. ;;
  2376. esac |
  2377. sort
  2378. )
  2379. echo
  2380. $as_echo "## ----------------- ##
  2381. ## Output variables. ##
  2382. ## ----------------- ##"
  2383. echo
  2384. for ac_var in $ac_subst_vars
  2385. do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in
  2388. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2389. esac
  2390. $as_echo "$ac_var='\''$ac_val'\''"
  2391. done | sort
  2392. echo
  2393. if test -n "$ac_subst_files"; then
  2394. $as_echo "## ------------------- ##
  2395. ## File substitutions. ##
  2396. ## ------------------- ##"
  2397. echo
  2398. for ac_var in $ac_subst_files
  2399. do
  2400. eval ac_val=\$$ac_var
  2401. case $ac_val in
  2402. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2403. esac
  2404. $as_echo "$ac_var='\''$ac_val'\''"
  2405. done | sort
  2406. echo
  2407. fi
  2408. if test -s confdefs.h; then
  2409. $as_echo "## ----------- ##
  2410. ## confdefs.h. ##
  2411. ## ----------- ##"
  2412. echo
  2413. cat confdefs.h
  2414. echo
  2415. fi
  2416. test "$ac_signal" != 0 &&
  2417. $as_echo "$as_me: caught signal $ac_signal"
  2418. $as_echo "$as_me: exit $exit_status"
  2419. } >&5
  2420. rm -f core *.core core.conftest.* &&
  2421. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2422. exit $exit_status
  2423. ' 0
  2424. for ac_signal in 1 2 13 15; do
  2425. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2426. done
  2427. ac_signal=0
  2428. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2429. rm -f -r conftest* confdefs.h
  2430. $as_echo "/* confdefs.h */" > confdefs.h
  2431. # Predefined preprocessor variables.
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_NAME "$PACKAGE_NAME"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2440. _ACEOF
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_STRING "$PACKAGE_STRING"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_URL "$PACKAGE_URL"
  2449. _ACEOF
  2450. # Let the site file select an alternate cache file if it wants to.
  2451. # Prefer an explicitly selected file to automatically selected ones.
  2452. ac_site_file1=NONE
  2453. ac_site_file2=NONE
  2454. if test -n "$CONFIG_SITE"; then
  2455. # We do not want a PATH search for config.site.
  2456. case $CONFIG_SITE in #((
  2457. -*) ac_site_file1=./$CONFIG_SITE;;
  2458. */*) ac_site_file1=$CONFIG_SITE;;
  2459. *) ac_site_file1=./$CONFIG_SITE;;
  2460. esac
  2461. elif test "x$prefix" != xNONE; then
  2462. ac_site_file1=$prefix/share/config.site
  2463. ac_site_file2=$prefix/etc/config.site
  2464. else
  2465. ac_site_file1=$ac_default_prefix/share/config.site
  2466. ac_site_file2=$ac_default_prefix/etc/config.site
  2467. fi
  2468. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2469. do
  2470. test "x$ac_site_file" = xNONE && continue
  2471. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2473. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2474. sed 's/^/| /' "$ac_site_file" >&5
  2475. . "$ac_site_file" \
  2476. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. as_fn_error $? "failed to load site script $ac_site_file
  2479. See \`config.log' for more details" "$LINENO" 5; }
  2480. fi
  2481. done
  2482. if test -r "$cache_file"; then
  2483. # Some versions of bash will fail to source /dev/null (special files
  2484. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2485. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2487. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2488. case $cache_file in
  2489. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2490. *) . "./$cache_file";;
  2491. esac
  2492. fi
  2493. else
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2495. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2496. >$cache_file
  2497. fi
  2498. # Check that the precious variables saved in the cache have kept the same
  2499. # value.
  2500. ac_cache_corrupted=false
  2501. for ac_var in $ac_precious_vars; do
  2502. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2503. eval ac_new_set=\$ac_env_${ac_var}_set
  2504. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2505. eval ac_new_val=\$ac_env_${ac_var}_value
  2506. case $ac_old_set,$ac_new_set in
  2507. set,)
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2509. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2510. ac_cache_corrupted=: ;;
  2511. ,set)
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2514. ac_cache_corrupted=: ;;
  2515. ,);;
  2516. *)
  2517. if test "x$ac_old_val" != "x$ac_new_val"; then
  2518. # differences in whitespace do not lead to failure.
  2519. ac_old_val_w=`echo x $ac_old_val`
  2520. ac_new_val_w=`echo x $ac_new_val`
  2521. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2523. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2524. ac_cache_corrupted=:
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2527. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2528. eval $ac_var=\$ac_old_val
  2529. fi
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2531. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2533. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2534. fi;;
  2535. esac
  2536. # Pass precious variables to config.status.
  2537. if test "$ac_new_set" = set; then
  2538. case $ac_new_val in
  2539. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2540. *) ac_arg=$ac_var=$ac_new_val ;;
  2541. esac
  2542. case " $ac_configure_args " in
  2543. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2544. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2545. esac
  2546. fi
  2547. done
  2548. if $ac_cache_corrupted; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2552. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2553. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2554. fi
  2555. ## -------------------- ##
  2556. ## Main body of script. ##
  2557. ## -------------------- ##
  2558. ac_ext=c
  2559. ac_cpp='$CPP $CPPFLAGS'
  2560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2563. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2564. ac_aux_dir=
  2565. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2566. if test -f "$ac_dir/install-sh"; then
  2567. ac_aux_dir=$ac_dir
  2568. ac_install_sh="$ac_aux_dir/install-sh -c"
  2569. break
  2570. elif test -f "$ac_dir/install.sh"; then
  2571. ac_aux_dir=$ac_dir
  2572. ac_install_sh="$ac_aux_dir/install.sh -c"
  2573. break
  2574. elif test -f "$ac_dir/shtool"; then
  2575. ac_aux_dir=$ac_dir
  2576. ac_install_sh="$ac_aux_dir/shtool install -c"
  2577. break
  2578. fi
  2579. done
  2580. if test -z "$ac_aux_dir"; then
  2581. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2582. fi
  2583. # These three variables are undocumented and unsupported,
  2584. # and are intended to be withdrawn in a future Autoconf release.
  2585. # They can cause serious problems if a builder's source tree is in a directory
  2586. # whose full name contains unusual characters.
  2587. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2588. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2589. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2590. orig_CFLAGS="$CFLAGS"
  2591. #
  2592. # Making releases:
  2593. # Edit include/SDL_version.h and change the version, then:
  2594. # SDL_MICRO_VERSION += 1;
  2595. # SDL_INTERFACE_AGE += 1;
  2596. # SDL_BINARY_AGE += 1;
  2597. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2598. # if backwards compatibility has been broken,
  2599. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2600. #
  2601. SDL_MAJOR_VERSION=2
  2602. SDL_MINOR_VERSION=0
  2603. SDL_MICRO_VERSION=13
  2604. SDL_INTERFACE_AGE=1
  2605. SDL_BINARY_AGE=13
  2606. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2607. # libtool versioning
  2608. case `pwd` in
  2609. *\ * | *\ *)
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2611. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2612. esac
  2613. macro_version='2.4.2'
  2614. macro_revision='1.3337'
  2615. ltmain="$ac_aux_dir/ltmain.sh"
  2616. # Make sure we can run config.sub.
  2617. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2618. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2620. $as_echo_n "checking build system type... " >&6; }
  2621. if ${ac_cv_build+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. ac_build_alias=$build_alias
  2625. test "x$ac_build_alias" = x &&
  2626. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2627. test "x$ac_build_alias" = x &&
  2628. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2629. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2630. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2633. $as_echo "$ac_cv_build" >&6; }
  2634. case $ac_cv_build in
  2635. *-*-*) ;;
  2636. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2637. esac
  2638. build=$ac_cv_build
  2639. ac_save_IFS=$IFS; IFS='-'
  2640. set x $ac_cv_build
  2641. shift
  2642. build_cpu=$1
  2643. build_vendor=$2
  2644. shift; shift
  2645. # Remember, the first character of IFS is used to create $*,
  2646. # except with old shells:
  2647. build_os=$*
  2648. IFS=$ac_save_IFS
  2649. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2651. $as_echo_n "checking host system type... " >&6; }
  2652. if ${ac_cv_host+:} false; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. if test "x$host_alias" = x; then
  2656. ac_cv_host=$ac_cv_build
  2657. else
  2658. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2659. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2660. fi
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2663. $as_echo "$ac_cv_host" >&6; }
  2664. case $ac_cv_host in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2667. esac
  2668. host=$ac_cv_host
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_host
  2671. shift
  2672. host_cpu=$1
  2673. host_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. host_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2680. # Backslashify metacharacters that are still active within
  2681. # double-quoted strings.
  2682. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2683. # Same as above, but do not quote variable references.
  2684. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2685. # Sed substitution to delay expansion of an escaped shell variable in a
  2686. # double_quote_subst'ed string.
  2687. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2688. # Sed substitution to delay expansion of an escaped single quote.
  2689. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2690. # Sed substitution to avoid accidental globbing in evaled expressions
  2691. no_glob_subst='s/\*/\\\*/g'
  2692. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2693. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2694. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2696. $as_echo_n "checking how to print strings... " >&6; }
  2697. # Test print first, because it will be a builtin if present.
  2698. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2699. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2700. ECHO='print -r --'
  2701. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2702. ECHO='printf %s\n'
  2703. else
  2704. # Use this function as a fallback that always works.
  2705. func_fallback_echo ()
  2706. {
  2707. eval 'cat <<_LTECHO_EOF
  2708. $1
  2709. _LTECHO_EOF'
  2710. }
  2711. ECHO='func_fallback_echo'
  2712. fi
  2713. # func_echo_all arg...
  2714. # Invoke $ECHO with all args, space-separated.
  2715. func_echo_all ()
  2716. {
  2717. $ECHO ""
  2718. }
  2719. case "$ECHO" in
  2720. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2721. $as_echo "printf" >&6; } ;;
  2722. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2723. $as_echo "print -r" >&6; } ;;
  2724. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2725. $as_echo "cat" >&6; } ;;
  2726. esac
  2727. ac_ext=c
  2728. ac_cpp='$CPP $CPPFLAGS'
  2729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2732. if test -n "$ac_tool_prefix"; then
  2733. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2734. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if ${ac_cv_prog_CC+:} false; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. if test -n "$CC"; then
  2741. ac_cv_prog_CC="$CC" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2750. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. fi
  2758. fi
  2759. CC=$ac_cv_prog_CC
  2760. if test -n "$CC"; then
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2762. $as_echo "$CC" >&6; }
  2763. else
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2765. $as_echo "no" >&6; }
  2766. fi
  2767. fi
  2768. if test -z "$ac_cv_prog_CC"; then
  2769. ac_ct_CC=$CC
  2770. # Extract the first word of "gcc", so it can be a program name with args.
  2771. set dummy gcc; ac_word=$2
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2773. $as_echo_n "checking for $ac_word... " >&6; }
  2774. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. if test -n "$ac_ct_CC"; then
  2778. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2787. ac_cv_prog_ac_ct_CC="gcc"
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2797. if test -n "$ac_ct_CC"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2799. $as_echo "$ac_ct_CC" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. if test "x$ac_ct_CC" = x; then
  2805. CC=""
  2806. else
  2807. case $cross_compiling:$ac_tool_warned in
  2808. yes:)
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2811. ac_tool_warned=yes ;;
  2812. esac
  2813. CC=$ac_ct_CC
  2814. fi
  2815. else
  2816. CC="$ac_cv_prog_CC"
  2817. fi
  2818. if test -z "$CC"; then
  2819. if test -n "$ac_tool_prefix"; then
  2820. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2821. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2823. $as_echo_n "checking for $ac_word... " >&6; }
  2824. if ${ac_cv_prog_CC+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. if test -n "$CC"; then
  2828. ac_cv_prog_CC="$CC" # Let the user override the test.
  2829. else
  2830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2831. for as_dir in $PATH
  2832. do
  2833. IFS=$as_save_IFS
  2834. test -z "$as_dir" && as_dir=.
  2835. for ac_exec_ext in '' $ac_executable_extensions; do
  2836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2837. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2839. break 2
  2840. fi
  2841. done
  2842. done
  2843. IFS=$as_save_IFS
  2844. fi
  2845. fi
  2846. CC=$ac_cv_prog_CC
  2847. if test -n "$CC"; then
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2849. $as_echo "$CC" >&6; }
  2850. else
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2852. $as_echo "no" >&6; }
  2853. fi
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. # Extract the first word of "cc", so it can be a program name with args.
  2858. set dummy cc; ac_word=$2
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2860. $as_echo_n "checking for $ac_word... " >&6; }
  2861. if ${ac_cv_prog_CC+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if test -n "$CC"; then
  2865. ac_cv_prog_CC="$CC" # Let the user override the test.
  2866. else
  2867. ac_prog_rejected=no
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2876. ac_prog_rejected=yes
  2877. continue
  2878. fi
  2879. ac_cv_prog_CC="cc"
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2881. break 2
  2882. fi
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. if test $ac_prog_rejected = yes; then
  2887. # We found a bogon in the path, so make sure we never use it.
  2888. set dummy $ac_cv_prog_CC
  2889. shift
  2890. if test $# != 0; then
  2891. # We chose a different compiler from the bogus one.
  2892. # However, it has the same basename, so the bogon will be chosen
  2893. # first if we set CC to just the basename; use the full file name.
  2894. shift
  2895. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2896. fi
  2897. fi
  2898. fi
  2899. fi
  2900. CC=$ac_cv_prog_CC
  2901. if test -n "$CC"; then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2903. $as_echo "$CC" >&6; }
  2904. else
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2906. $as_echo "no" >&6; }
  2907. fi
  2908. fi
  2909. if test -z "$CC"; then
  2910. if test -n "$ac_tool_prefix"; then
  2911. for ac_prog in cl.exe
  2912. do
  2913. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2914. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2916. $as_echo_n "checking for $ac_word... " >&6; }
  2917. if ${ac_cv_prog_CC+:} false; then :
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. if test -n "$CC"; then
  2921. ac_cv_prog_CC="$CC" # Let the user override the test.
  2922. else
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926. IFS=$as_save_IFS
  2927. test -z "$as_dir" && as_dir=.
  2928. for ac_exec_ext in '' $ac_executable_extensions; do
  2929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2930. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2932. break 2
  2933. fi
  2934. done
  2935. done
  2936. IFS=$as_save_IFS
  2937. fi
  2938. fi
  2939. CC=$ac_cv_prog_CC
  2940. if test -n "$CC"; then
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2942. $as_echo "$CC" >&6; }
  2943. else
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2945. $as_echo "no" >&6; }
  2946. fi
  2947. test -n "$CC" && break
  2948. done
  2949. fi
  2950. if test -z "$CC"; then
  2951. ac_ct_CC=$CC
  2952. for ac_prog in cl.exe
  2953. do
  2954. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2955. set dummy $ac_prog; ac_word=$2
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2957. $as_echo_n "checking for $ac_word... " >&6; }
  2958. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. if test -n "$ac_ct_CC"; then
  2962. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2963. else
  2964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2965. for as_dir in $PATH
  2966. do
  2967. IFS=$as_save_IFS
  2968. test -z "$as_dir" && as_dir=.
  2969. for ac_exec_ext in '' $ac_executable_extensions; do
  2970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_prog"
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2973. break 2
  2974. fi
  2975. done
  2976. done
  2977. IFS=$as_save_IFS
  2978. fi
  2979. fi
  2980. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2981. if test -n "$ac_ct_CC"; then
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2983. $as_echo "$ac_ct_CC" >&6; }
  2984. else
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2986. $as_echo "no" >&6; }
  2987. fi
  2988. test -n "$ac_ct_CC" && break
  2989. done
  2990. if test "x$ac_ct_CC" = x; then
  2991. CC=""
  2992. else
  2993. case $cross_compiling:$ac_tool_warned in
  2994. yes:)
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2997. ac_tool_warned=yes ;;
  2998. esac
  2999. CC=$ac_ct_CC
  3000. fi
  3001. fi
  3002. fi
  3003. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3005. as_fn_error $? "no acceptable C compiler found in \$PATH
  3006. See \`config.log' for more details" "$LINENO" 5; }
  3007. # Provide some information about the compiler.
  3008. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3009. set X $ac_compile
  3010. ac_compiler=$2
  3011. for ac_option in --version -v -V -qversion; do
  3012. { { ac_try="$ac_compiler $ac_option >&5"
  3013. case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3020. ac_status=$?
  3021. if test -s conftest.err; then
  3022. sed '10a\
  3023. ... rest of stderr output deleted ...
  3024. 10q' conftest.err >conftest.er1
  3025. cat conftest.er1 >&5
  3026. fi
  3027. rm -f conftest.er1 conftest.err
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }
  3030. done
  3031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3032. /* end confdefs.h. */
  3033. int
  3034. main ()
  3035. {
  3036. ;
  3037. return 0;
  3038. }
  3039. _ACEOF
  3040. ac_clean_files_save=$ac_clean_files
  3041. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3042. # Try to create an executable without -o first, disregard a.out.
  3043. # It will help us diagnose broken compilers, and finding out an intuition
  3044. # of exeext.
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3046. $as_echo_n "checking whether the C compiler works... " >&6; }
  3047. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3048. # The possible output files:
  3049. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3050. ac_rmfiles=
  3051. for ac_file in $ac_files
  3052. do
  3053. case $ac_file in
  3054. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3055. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3056. esac
  3057. done
  3058. rm -f $ac_rmfiles
  3059. if { { ac_try="$ac_link_default"
  3060. case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_link_default") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; then :
  3070. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3071. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3072. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3073. # so that the user can short-circuit this test for compilers unknown to
  3074. # Autoconf.
  3075. for ac_file in $ac_files ''
  3076. do
  3077. test -f "$ac_file" || continue
  3078. case $ac_file in
  3079. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3080. ;;
  3081. [ab].out )
  3082. # We found the default executable, but exeext='' is most
  3083. # certainly right.
  3084. break;;
  3085. *.* )
  3086. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3087. then :; else
  3088. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3089. fi
  3090. # We set ac_cv_exeext here because the later test for it is not
  3091. # safe: cross compilers may not add the suffix if given an `-o'
  3092. # argument, so we may need to know it at that point already.
  3093. # Even if this section looks crufty: it has the advantage of
  3094. # actually working.
  3095. break;;
  3096. * )
  3097. break;;
  3098. esac
  3099. done
  3100. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3101. else
  3102. ac_file=''
  3103. fi
  3104. if test -z "$ac_file"; then :
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3106. $as_echo "no" >&6; }
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. as_fn_error 77 "C compiler cannot create executables
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. else
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3115. $as_echo "yes" >&6; }
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3118. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3120. $as_echo "$ac_file" >&6; }
  3121. ac_exeext=$ac_cv_exeext
  3122. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3123. ac_clean_files=$ac_clean_files_save
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3125. $as_echo_n "checking for suffix of executables... " >&6; }
  3126. if { { ac_try="$ac_link"
  3127. case "(($ac_try" in
  3128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3129. *) ac_try_echo=$ac_try;;
  3130. esac
  3131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3132. $as_echo "$ac_try_echo"; } >&5
  3133. (eval "$ac_link") 2>&5
  3134. ac_status=$?
  3135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3136. test $ac_status = 0; }; then :
  3137. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3138. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3139. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3140. # `rm'.
  3141. for ac_file in conftest.exe conftest conftest.*; do
  3142. test -f "$ac_file" || continue
  3143. case $ac_file in
  3144. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3145. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3146. break;;
  3147. * ) break;;
  3148. esac
  3149. done
  3150. else
  3151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3153. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3154. See \`config.log' for more details" "$LINENO" 5; }
  3155. fi
  3156. rm -f conftest conftest$ac_cv_exeext
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3158. $as_echo "$ac_cv_exeext" >&6; }
  3159. rm -f conftest.$ac_ext
  3160. EXEEXT=$ac_cv_exeext
  3161. ac_exeext=$EXEEXT
  3162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3163. /* end confdefs.h. */
  3164. #include <stdio.h>
  3165. int
  3166. main ()
  3167. {
  3168. FILE *f = fopen ("conftest.out", "w");
  3169. return ferror (f) || fclose (f) != 0;
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. ac_clean_files="$ac_clean_files conftest.out"
  3175. # Check that the compiler produces executables we can run. If not, either
  3176. # the compiler is broken, or we cross compile.
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3178. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3179. if test "$cross_compiling" != yes; then
  3180. { { ac_try="$ac_link"
  3181. case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3186. $as_echo "$ac_try_echo"; } >&5
  3187. (eval "$ac_link") 2>&5
  3188. ac_status=$?
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }
  3191. if { ac_try='./conftest$ac_cv_exeext'
  3192. { { case "(($ac_try" in
  3193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194. *) ac_try_echo=$ac_try;;
  3195. esac
  3196. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3197. $as_echo "$ac_try_echo"; } >&5
  3198. (eval "$ac_try") 2>&5
  3199. ac_status=$?
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3201. test $ac_status = 0; }; }; then
  3202. cross_compiling=no
  3203. else
  3204. if test "$cross_compiling" = maybe; then
  3205. cross_compiling=yes
  3206. else
  3207. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3209. as_fn_error $? "cannot run C compiled programs.
  3210. If you meant to cross compile, use \`--host'.
  3211. See \`config.log' for more details" "$LINENO" 5; }
  3212. fi
  3213. fi
  3214. fi
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3216. $as_echo "$cross_compiling" >&6; }
  3217. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3218. ac_clean_files=$ac_clean_files_save
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3220. $as_echo_n "checking for suffix of object files... " >&6; }
  3221. if ${ac_cv_objext+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. rm -f conftest.o conftest.obj
  3234. if { { ac_try="$ac_compile"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_compile") 2>&5
  3242. ac_status=$?
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3244. test $ac_status = 0; }; then :
  3245. for ac_file in conftest.o conftest.obj conftest.*; do
  3246. test -f "$ac_file" || continue;
  3247. case $ac_file in
  3248. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3249. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3250. break;;
  3251. esac
  3252. done
  3253. else
  3254. $as_echo "$as_me: failed program was:" >&5
  3255. sed 's/^/| /' conftest.$ac_ext >&5
  3256. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3257. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3258. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3259. See \`config.log' for more details" "$LINENO" 5; }
  3260. fi
  3261. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3264. $as_echo "$ac_cv_objext" >&6; }
  3265. OBJEXT=$ac_cv_objext
  3266. ac_objext=$OBJEXT
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3268. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3269. if ${ac_cv_c_compiler_gnu+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. int
  3275. main ()
  3276. {
  3277. #ifndef __GNUC__
  3278. choke me
  3279. #endif
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. if ac_fn_c_try_compile "$LINENO"; then :
  3285. ac_compiler_gnu=yes
  3286. else
  3287. ac_compiler_gnu=no
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3291. fi
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3293. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3294. if test $ac_compiler_gnu = yes; then
  3295. GCC=yes
  3296. else
  3297. GCC=
  3298. fi
  3299. ac_test_CFLAGS=${CFLAGS+set}
  3300. ac_save_CFLAGS=$CFLAGS
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3302. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3303. if ${ac_cv_prog_cc_g+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_save_c_werror_flag=$ac_c_werror_flag
  3307. ac_c_werror_flag=yes
  3308. ac_cv_prog_cc_g=no
  3309. CFLAGS="-g"
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. if ac_fn_c_try_compile "$LINENO"; then :
  3320. ac_cv_prog_cc_g=yes
  3321. else
  3322. CFLAGS=""
  3323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end confdefs.h. */
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_c_try_compile "$LINENO"; then :
  3333. else
  3334. ac_c_werror_flag=$ac_save_c_werror_flag
  3335. CFLAGS="-g"
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. if ac_fn_c_try_compile "$LINENO"; then :
  3346. ac_cv_prog_cc_g=yes
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. fi
  3350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3351. fi
  3352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. ac_c_werror_flag=$ac_save_c_werror_flag
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3356. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3357. if test "$ac_test_CFLAGS" = set; then
  3358. CFLAGS=$ac_save_CFLAGS
  3359. elif test $ac_cv_prog_cc_g = yes; then
  3360. if test "$GCC" = yes; then
  3361. CFLAGS="-g -O2"
  3362. else
  3363. CFLAGS="-g"
  3364. fi
  3365. else
  3366. if test "$GCC" = yes; then
  3367. CFLAGS="-O2"
  3368. else
  3369. CFLAGS=
  3370. fi
  3371. fi
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3373. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3374. if ${ac_cv_prog_cc_c89+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. ac_cv_prog_cc_c89=no
  3378. ac_save_CC=$CC
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. #include <stdarg.h>
  3382. #include <stdio.h>
  3383. struct stat;
  3384. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3385. struct buf { int x; };
  3386. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3387. static char *e (p, i)
  3388. char **p;
  3389. int i;
  3390. {
  3391. return p[i];
  3392. }
  3393. static char *f (char * (*g) (char **, int), char **p, ...)
  3394. {
  3395. char *s;
  3396. va_list v;
  3397. va_start (v,p);
  3398. s = g (p, va_arg (v,int));
  3399. va_end (v);
  3400. return s;
  3401. }
  3402. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3403. function prototypes and stuff, but not '\xHH' hex character constants.
  3404. These don't provoke an error unfortunately, instead are silently treated
  3405. as 'x'. The following induces an error, until -std is added to get
  3406. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3407. array size at least. It's necessary to write '\x00'==0 to get something
  3408. that's true only with -std. */
  3409. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3410. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3411. inside strings and character constants. */
  3412. #define FOO(x) 'x'
  3413. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3414. int test (int i, double x);
  3415. struct s1 {int (*f) (int a);};
  3416. struct s2 {int (*f) (double a);};
  3417. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3418. int argc;
  3419. char **argv;
  3420. int
  3421. main ()
  3422. {
  3423. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3429. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3430. do
  3431. CC="$ac_save_CC $ac_arg"
  3432. if ac_fn_c_try_compile "$LINENO"; then :
  3433. ac_cv_prog_cc_c89=$ac_arg
  3434. fi
  3435. rm -f core conftest.err conftest.$ac_objext
  3436. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3437. done
  3438. rm -f conftest.$ac_ext
  3439. CC=$ac_save_CC
  3440. fi
  3441. # AC_CACHE_VAL
  3442. case "x$ac_cv_prog_cc_c89" in
  3443. x)
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3445. $as_echo "none needed" >&6; } ;;
  3446. xno)
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3448. $as_echo "unsupported" >&6; } ;;
  3449. *)
  3450. CC="$CC $ac_cv_prog_cc_c89"
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3452. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3453. esac
  3454. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3455. fi
  3456. ac_ext=c
  3457. ac_cpp='$CPP $CPPFLAGS'
  3458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3462. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3463. if ${ac_cv_path_SED+:} false; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3467. for ac_i in 1 2 3 4 5 6 7; do
  3468. ac_script="$ac_script$as_nl$ac_script"
  3469. done
  3470. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3471. { ac_script=; unset ac_script;}
  3472. if test -z "$SED"; then
  3473. ac_path_SED_found=false
  3474. # Loop through the user's path and test for each of PROGNAME-LIST
  3475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3476. for as_dir in $PATH
  3477. do
  3478. IFS=$as_save_IFS
  3479. test -z "$as_dir" && as_dir=.
  3480. for ac_prog in sed gsed; do
  3481. for ac_exec_ext in '' $ac_executable_extensions; do
  3482. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3483. as_fn_executable_p "$ac_path_SED" || continue
  3484. # Check for GNU ac_path_SED and select it if it is found.
  3485. # Check for GNU $ac_path_SED
  3486. case `"$ac_path_SED" --version 2>&1` in
  3487. *GNU*)
  3488. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3489. *)
  3490. ac_count=0
  3491. $as_echo_n 0123456789 >"conftest.in"
  3492. while :
  3493. do
  3494. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3495. mv "conftest.tmp" "conftest.in"
  3496. cp "conftest.in" "conftest.nl"
  3497. $as_echo '' >> "conftest.nl"
  3498. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3499. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3500. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3501. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3502. # Best one so far, save it but keep looking for a better one
  3503. ac_cv_path_SED="$ac_path_SED"
  3504. ac_path_SED_max=$ac_count
  3505. fi
  3506. # 10*(2^10) chars as input seems more than enough
  3507. test $ac_count -gt 10 && break
  3508. done
  3509. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3510. esac
  3511. $ac_path_SED_found && break 3
  3512. done
  3513. done
  3514. done
  3515. IFS=$as_save_IFS
  3516. if test -z "$ac_cv_path_SED"; then
  3517. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3518. fi
  3519. else
  3520. ac_cv_path_SED=$SED
  3521. fi
  3522. fi
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3524. $as_echo "$ac_cv_path_SED" >&6; }
  3525. SED="$ac_cv_path_SED"
  3526. rm -f conftest.sed
  3527. test -z "$SED" && SED=sed
  3528. Xsed="$SED -e 1s/^X//"
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3530. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3531. if ${ac_cv_path_GREP+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -z "$GREP"; then
  3535. ac_path_GREP_found=false
  3536. # Loop through the user's path and test for each of PROGNAME-LIST
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_prog in grep ggrep; do
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3545. as_fn_executable_p "$ac_path_GREP" || continue
  3546. # Check for GNU ac_path_GREP and select it if it is found.
  3547. # Check for GNU $ac_path_GREP
  3548. case `"$ac_path_GREP" --version 2>&1` in
  3549. *GNU*)
  3550. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3551. *)
  3552. ac_count=0
  3553. $as_echo_n 0123456789 >"conftest.in"
  3554. while :
  3555. do
  3556. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3557. mv "conftest.tmp" "conftest.in"
  3558. cp "conftest.in" "conftest.nl"
  3559. $as_echo 'GREP' >> "conftest.nl"
  3560. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3561. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3562. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3563. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3564. # Best one so far, save it but keep looking for a better one
  3565. ac_cv_path_GREP="$ac_path_GREP"
  3566. ac_path_GREP_max=$ac_count
  3567. fi
  3568. # 10*(2^10) chars as input seems more than enough
  3569. test $ac_count -gt 10 && break
  3570. done
  3571. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3572. esac
  3573. $ac_path_GREP_found && break 3
  3574. done
  3575. done
  3576. done
  3577. IFS=$as_save_IFS
  3578. if test -z "$ac_cv_path_GREP"; then
  3579. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3580. fi
  3581. else
  3582. ac_cv_path_GREP=$GREP
  3583. fi
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3586. $as_echo "$ac_cv_path_GREP" >&6; }
  3587. GREP="$ac_cv_path_GREP"
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3589. $as_echo_n "checking for egrep... " >&6; }
  3590. if ${ac_cv_path_EGREP+:} false; then :
  3591. $as_echo_n "(cached) " >&6
  3592. else
  3593. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3594. then ac_cv_path_EGREP="$GREP -E"
  3595. else
  3596. if test -z "$EGREP"; then
  3597. ac_path_EGREP_found=false
  3598. # Loop through the user's path and test for each of PROGNAME-LIST
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_prog in egrep; do
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3607. as_fn_executable_p "$ac_path_EGREP" || continue
  3608. # Check for GNU ac_path_EGREP and select it if it is found.
  3609. # Check for GNU $ac_path_EGREP
  3610. case `"$ac_path_EGREP" --version 2>&1` in
  3611. *GNU*)
  3612. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3613. *)
  3614. ac_count=0
  3615. $as_echo_n 0123456789 >"conftest.in"
  3616. while :
  3617. do
  3618. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3619. mv "conftest.tmp" "conftest.in"
  3620. cp "conftest.in" "conftest.nl"
  3621. $as_echo 'EGREP' >> "conftest.nl"
  3622. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3623. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3624. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3625. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3626. # Best one so far, save it but keep looking for a better one
  3627. ac_cv_path_EGREP="$ac_path_EGREP"
  3628. ac_path_EGREP_max=$ac_count
  3629. fi
  3630. # 10*(2^10) chars as input seems more than enough
  3631. test $ac_count -gt 10 && break
  3632. done
  3633. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3634. esac
  3635. $ac_path_EGREP_found && break 3
  3636. done
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. if test -z "$ac_cv_path_EGREP"; then
  3641. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3642. fi
  3643. else
  3644. ac_cv_path_EGREP=$EGREP
  3645. fi
  3646. fi
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3649. $as_echo "$ac_cv_path_EGREP" >&6; }
  3650. EGREP="$ac_cv_path_EGREP"
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3652. $as_echo_n "checking for fgrep... " >&6; }
  3653. if ${ac_cv_path_FGREP+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3657. then ac_cv_path_FGREP="$GREP -F"
  3658. else
  3659. if test -z "$FGREP"; then
  3660. ac_path_FGREP_found=false
  3661. # Loop through the user's path and test for each of PROGNAME-LIST
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_prog in fgrep; do
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3670. as_fn_executable_p "$ac_path_FGREP" || continue
  3671. # Check for GNU ac_path_FGREP and select it if it is found.
  3672. # Check for GNU $ac_path_FGREP
  3673. case `"$ac_path_FGREP" --version 2>&1` in
  3674. *GNU*)
  3675. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3676. *)
  3677. ac_count=0
  3678. $as_echo_n 0123456789 >"conftest.in"
  3679. while :
  3680. do
  3681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3682. mv "conftest.tmp" "conftest.in"
  3683. cp "conftest.in" "conftest.nl"
  3684. $as_echo 'FGREP' >> "conftest.nl"
  3685. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3687. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3688. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3689. # Best one so far, save it but keep looking for a better one
  3690. ac_cv_path_FGREP="$ac_path_FGREP"
  3691. ac_path_FGREP_max=$ac_count
  3692. fi
  3693. # 10*(2^10) chars as input seems more than enough
  3694. test $ac_count -gt 10 && break
  3695. done
  3696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3697. esac
  3698. $ac_path_FGREP_found && break 3
  3699. done
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. if test -z "$ac_cv_path_FGREP"; then
  3704. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3705. fi
  3706. else
  3707. ac_cv_path_FGREP=$FGREP
  3708. fi
  3709. fi
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3712. $as_echo "$ac_cv_path_FGREP" >&6; }
  3713. FGREP="$ac_cv_path_FGREP"
  3714. test -z "$GREP" && GREP=grep
  3715. # Check whether --with-gnu-ld was given.
  3716. if test "${with_gnu_ld+set}" = set; then :
  3717. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3718. else
  3719. with_gnu_ld=no
  3720. fi
  3721. ac_prog=ld
  3722. if test "$GCC" = yes; then
  3723. # Check if gcc -print-prog-name=ld gives a path.
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3725. $as_echo_n "checking for ld used by $CC... " >&6; }
  3726. case $host in
  3727. *-*-mingw*)
  3728. # gcc leaves a trailing carriage return which upsets mingw
  3729. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3730. *)
  3731. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3732. esac
  3733. case $ac_prog in
  3734. # Accept absolute paths.
  3735. [\\/]* | ?:[\\/]*)
  3736. re_direlt='/[^/][^/]*/\.\./'
  3737. # Canonicalize the pathname of ld
  3738. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3739. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3740. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3741. done
  3742. test -z "$LD" && LD="$ac_prog"
  3743. ;;
  3744. "")
  3745. # If it fails, then pretend we aren't using GCC.
  3746. ac_prog=ld
  3747. ;;
  3748. *)
  3749. # If it is relative, then search for the first ld in PATH.
  3750. with_gnu_ld=unknown
  3751. ;;
  3752. esac
  3753. elif test "$with_gnu_ld" = yes; then
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3755. $as_echo_n "checking for GNU ld... " >&6; }
  3756. else
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3758. $as_echo_n "checking for non-GNU ld... " >&6; }
  3759. fi
  3760. if ${lt_cv_path_LD+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. if test -z "$LD"; then
  3764. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3765. for ac_dir in $PATH; do
  3766. IFS="$lt_save_ifs"
  3767. test -z "$ac_dir" && ac_dir=.
  3768. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3769. lt_cv_path_LD="$ac_dir/$ac_prog"
  3770. # Check to see if the program is GNU ld. I'd rather use --version,
  3771. # but apparently some variants of GNU ld only accept -v.
  3772. # Break only if it was the GNU/non-GNU ld that we prefer.
  3773. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3774. *GNU* | *'with BFD'*)
  3775. test "$with_gnu_ld" != no && break
  3776. ;;
  3777. *)
  3778. test "$with_gnu_ld" != yes && break
  3779. ;;
  3780. esac
  3781. fi
  3782. done
  3783. IFS="$lt_save_ifs"
  3784. else
  3785. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3786. fi
  3787. fi
  3788. LD="$lt_cv_path_LD"
  3789. if test -n "$LD"; then
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3791. $as_echo "$LD" >&6; }
  3792. else
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3794. $as_echo "no" >&6; }
  3795. fi
  3796. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3798. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3799. if ${lt_cv_prog_gnu_ld+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3803. case `$LD -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. lt_cv_prog_gnu_ld=yes
  3806. ;;
  3807. *)
  3808. lt_cv_prog_gnu_ld=no
  3809. ;;
  3810. esac
  3811. fi
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3813. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3814. with_gnu_ld=$lt_cv_prog_gnu_ld
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3816. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3817. if ${lt_cv_path_NM+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$NM"; then
  3821. # Let the user override the test.
  3822. lt_cv_path_NM="$NM"
  3823. else
  3824. lt_nm_to_check="${ac_tool_prefix}nm"
  3825. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3826. lt_nm_to_check="$lt_nm_to_check nm"
  3827. fi
  3828. for lt_tmp_nm in $lt_nm_to_check; do
  3829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3830. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3831. IFS="$lt_save_ifs"
  3832. test -z "$ac_dir" && ac_dir=.
  3833. tmp_nm="$ac_dir/$lt_tmp_nm"
  3834. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3835. # Check to see if the nm accepts a BSD-compat flag.
  3836. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3837. # nm: unknown option "B" ignored
  3838. # Tru64's nm complains that /dev/null is an invalid object file
  3839. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3840. */dev/null* | *'Invalid file or object type'*)
  3841. lt_cv_path_NM="$tmp_nm -B"
  3842. break
  3843. ;;
  3844. *)
  3845. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3846. */dev/null*)
  3847. lt_cv_path_NM="$tmp_nm -p"
  3848. break
  3849. ;;
  3850. *)
  3851. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3852. continue # so that we can try to find one that supports BSD flags
  3853. ;;
  3854. esac
  3855. ;;
  3856. esac
  3857. fi
  3858. done
  3859. IFS="$lt_save_ifs"
  3860. done
  3861. : ${lt_cv_path_NM=no}
  3862. fi
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3865. $as_echo "$lt_cv_path_NM" >&6; }
  3866. if test "$lt_cv_path_NM" != "no"; then
  3867. NM="$lt_cv_path_NM"
  3868. else
  3869. # Didn't find any BSD compatible name lister, look for dumpbin.
  3870. if test -n "$DUMPBIN"; then :
  3871. # Let the user override the test.
  3872. else
  3873. if test -n "$ac_tool_prefix"; then
  3874. for ac_prog in dumpbin "link -dump"
  3875. do
  3876. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3877. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3879. $as_echo_n "checking for $ac_word... " >&6; }
  3880. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if test -n "$DUMPBIN"; then
  3884. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3885. else
  3886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3887. for as_dir in $PATH
  3888. do
  3889. IFS=$as_save_IFS
  3890. test -z "$as_dir" && as_dir=.
  3891. for ac_exec_ext in '' $ac_executable_extensions; do
  3892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3893. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3895. break 2
  3896. fi
  3897. done
  3898. done
  3899. IFS=$as_save_IFS
  3900. fi
  3901. fi
  3902. DUMPBIN=$ac_cv_prog_DUMPBIN
  3903. if test -n "$DUMPBIN"; then
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3905. $as_echo "$DUMPBIN" >&6; }
  3906. else
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3908. $as_echo "no" >&6; }
  3909. fi
  3910. test -n "$DUMPBIN" && break
  3911. done
  3912. fi
  3913. if test -z "$DUMPBIN"; then
  3914. ac_ct_DUMPBIN=$DUMPBIN
  3915. for ac_prog in dumpbin "link -dump"
  3916. do
  3917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3918. set dummy $ac_prog; ac_word=$2
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3920. $as_echo_n "checking for $ac_word... " >&6; }
  3921. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -n "$ac_ct_DUMPBIN"; then
  3925. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3926. else
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3934. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. fi
  3942. fi
  3943. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3944. if test -n "$ac_ct_DUMPBIN"; then
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3946. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3947. else
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. test -n "$ac_ct_DUMPBIN" && break
  3952. done
  3953. if test "x$ac_ct_DUMPBIN" = x; then
  3954. DUMPBIN=":"
  3955. else
  3956. case $cross_compiling:$ac_tool_warned in
  3957. yes:)
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3960. ac_tool_warned=yes ;;
  3961. esac
  3962. DUMPBIN=$ac_ct_DUMPBIN
  3963. fi
  3964. fi
  3965. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3966. *COFF*)
  3967. DUMPBIN="$DUMPBIN -symbols"
  3968. ;;
  3969. *)
  3970. DUMPBIN=:
  3971. ;;
  3972. esac
  3973. fi
  3974. if test "$DUMPBIN" != ":"; then
  3975. NM="$DUMPBIN"
  3976. fi
  3977. fi
  3978. test -z "$NM" && NM=nm
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3980. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3981. if ${lt_cv_nm_interface+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. lt_cv_nm_interface="BSD nm"
  3985. echo "int some_variable = 0;" > conftest.$ac_ext
  3986. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3987. (eval "$ac_compile" 2>conftest.err)
  3988. cat conftest.err >&5
  3989. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3990. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3991. cat conftest.err >&5
  3992. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3993. cat conftest.out >&5
  3994. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3995. lt_cv_nm_interface="MS dumpbin"
  3996. fi
  3997. rm -f conftest*
  3998. fi
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4000. $as_echo "$lt_cv_nm_interface" >&6; }
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4002. $as_echo_n "checking whether ln -s works... " >&6; }
  4003. LN_S=$as_ln_s
  4004. if test "$LN_S" = "ln -s"; then
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4006. $as_echo "yes" >&6; }
  4007. else
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4009. $as_echo "no, using $LN_S" >&6; }
  4010. fi
  4011. # find the maximum length of command line arguments
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4013. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4014. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. i=0
  4018. teststring="ABCD"
  4019. case $build_os in
  4020. msdosdjgpp*)
  4021. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4022. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4023. # during glob expansion). Even if it were fixed, the result of this
  4024. # check would be larger than it should be.
  4025. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4026. ;;
  4027. gnu*)
  4028. # Under GNU Hurd, this test is not required because there is
  4029. # no limit to the length of command line arguments.
  4030. # Libtool will interpret -1 as no limit whatsoever
  4031. lt_cv_sys_max_cmd_len=-1;
  4032. ;;
  4033. cygwin* | mingw* | cegcc*)
  4034. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4035. # about 5 minutes as the teststring grows exponentially.
  4036. # Worse, since 9x/ME are not pre-emptively multitasking,
  4037. # you end up with a "frozen" computer, even though with patience
  4038. # the test eventually succeeds (with a max line length of 256k).
  4039. # Instead, let's just punt: use the minimum linelength reported by
  4040. # all of the supported platforms: 8192 (on NT/2K/XP).
  4041. lt_cv_sys_max_cmd_len=8192;
  4042. ;;
  4043. mint*)
  4044. # On MiNT this can take a long time and run out of memory.
  4045. lt_cv_sys_max_cmd_len=8192;
  4046. ;;
  4047. amigaos*)
  4048. # On AmigaOS with pdksh, this test takes hours, literally.
  4049. # So we just punt and use a minimum line length of 8192.
  4050. lt_cv_sys_max_cmd_len=8192;
  4051. ;;
  4052. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4053. # This has been around since 386BSD, at least. Likely further.
  4054. if test -x /sbin/sysctl; then
  4055. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4056. elif test -x /usr/sbin/sysctl; then
  4057. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4058. else
  4059. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4060. fi
  4061. # And add a safety zone
  4062. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4063. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4064. ;;
  4065. interix*)
  4066. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4067. lt_cv_sys_max_cmd_len=196608
  4068. ;;
  4069. os2*)
  4070. # The test takes a long time on OS/2.
  4071. lt_cv_sys_max_cmd_len=8192
  4072. ;;
  4073. osf*)
  4074. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4075. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4076. # nice to cause kernel panics so lets avoid the loop below.
  4077. # First set a reasonable default.
  4078. lt_cv_sys_max_cmd_len=16384
  4079. #
  4080. if test -x /sbin/sysconfig; then
  4081. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4082. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4083. esac
  4084. fi
  4085. ;;
  4086. sco3.2v5*)
  4087. lt_cv_sys_max_cmd_len=102400
  4088. ;;
  4089. sysv5* | sco5v6* | sysv4.2uw2*)
  4090. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4091. if test -n "$kargmax"; then
  4092. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4093. else
  4094. lt_cv_sys_max_cmd_len=32768
  4095. fi
  4096. ;;
  4097. *)
  4098. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4099. if test -n "$lt_cv_sys_max_cmd_len"; then
  4100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4102. else
  4103. # Make teststring a little bigger before we do anything with it.
  4104. # a 1K string should be a reasonable start.
  4105. for i in 1 2 3 4 5 6 7 8 ; do
  4106. teststring=$teststring$teststring
  4107. done
  4108. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4109. # If test is not a shell built-in, we'll probably end up computing a
  4110. # maximum length that is only half of the actual maximum length, but
  4111. # we can't tell.
  4112. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4113. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4114. test $i != 17 # 1/2 MB should be enough
  4115. do
  4116. i=`expr $i + 1`
  4117. teststring=$teststring$teststring
  4118. done
  4119. # Only check the string length outside the loop.
  4120. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4121. teststring=
  4122. # Add a significant safety factor because C++ compilers can tack on
  4123. # massive amounts of additional arguments before passing them to the
  4124. # linker. It appears as though 1/2 is a usable value.
  4125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4126. fi
  4127. ;;
  4128. esac
  4129. fi
  4130. if test -n $lt_cv_sys_max_cmd_len ; then
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4132. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4133. else
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4135. $as_echo "none" >&6; }
  4136. fi
  4137. max_cmd_len=$lt_cv_sys_max_cmd_len
  4138. : ${CP="cp -f"}
  4139. : ${MV="mv -f"}
  4140. : ${RM="rm -f"}
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4142. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4143. # Try some XSI features
  4144. xsi_shell=no
  4145. ( _lt_dummy="a/b/c"
  4146. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4147. = c,a/b,b/c, \
  4148. && eval 'test $(( 1 + 1 )) -eq 2 \
  4149. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4150. && xsi_shell=yes
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4152. $as_echo "$xsi_shell" >&6; }
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4154. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4155. lt_shell_append=no
  4156. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4157. >/dev/null 2>&1 \
  4158. && lt_shell_append=yes
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4160. $as_echo "$lt_shell_append" >&6; }
  4161. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4162. lt_unset=unset
  4163. else
  4164. lt_unset=false
  4165. fi
  4166. # test EBCDIC or ASCII
  4167. case `echo X|tr X '\101'` in
  4168. A) # ASCII based system
  4169. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4170. lt_SP2NL='tr \040 \012'
  4171. lt_NL2SP='tr \015\012 \040\040'
  4172. ;;
  4173. *) # EBCDIC based system
  4174. lt_SP2NL='tr \100 \n'
  4175. lt_NL2SP='tr \r\n \100\100'
  4176. ;;
  4177. esac
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4179. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4180. if ${lt_cv_to_host_file_cmd+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. case $host in
  4184. *-*-mingw* )
  4185. case $build in
  4186. *-*-mingw* ) # actually msys
  4187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4188. ;;
  4189. *-*-cygwin* )
  4190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4191. ;;
  4192. * ) # otherwise, assume *nix
  4193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4194. ;;
  4195. esac
  4196. ;;
  4197. *-*-cygwin* )
  4198. case $build in
  4199. *-*-mingw* ) # actually msys
  4200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4201. ;;
  4202. *-*-cygwin* )
  4203. lt_cv_to_host_file_cmd=func_convert_file_noop
  4204. ;;
  4205. * ) # otherwise, assume *nix
  4206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4207. ;;
  4208. esac
  4209. ;;
  4210. * ) # unhandled hosts (and "normal" native builds)
  4211. lt_cv_to_host_file_cmd=func_convert_file_noop
  4212. ;;
  4213. esac
  4214. fi
  4215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4217. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4219. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4220. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. #assume ordinary cross tools, or native build.
  4224. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4225. case $host in
  4226. *-*-mingw* )
  4227. case $build in
  4228. *-*-mingw* ) # actually msys
  4229. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4230. ;;
  4231. esac
  4232. ;;
  4233. esac
  4234. fi
  4235. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4237. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4239. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4240. if ${lt_cv_ld_reload_flag+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. lt_cv_ld_reload_flag='-r'
  4244. fi
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4246. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4247. reload_flag=$lt_cv_ld_reload_flag
  4248. case $reload_flag in
  4249. "" | " "*) ;;
  4250. *) reload_flag=" $reload_flag" ;;
  4251. esac
  4252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4253. case $host_os in
  4254. cygwin* | mingw* | pw32* | cegcc*)
  4255. if test "$GCC" != yes; then
  4256. reload_cmds=false
  4257. fi
  4258. ;;
  4259. darwin*)
  4260. if test "$GCC" = yes; then
  4261. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4262. else
  4263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4264. fi
  4265. ;;
  4266. esac
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$OBJDUMP"; then
  4276. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. OBJDUMP=$ac_cv_prog_OBJDUMP
  4295. if test -n "$OBJDUMP"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4297. $as_echo "$OBJDUMP" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_OBJDUMP"; then
  4304. ac_ct_OBJDUMP=$OBJDUMP
  4305. # Extract the first word of "objdump", so it can be a program name with args.
  4306. set dummy objdump; ac_word=$2
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_OBJDUMP"; then
  4313. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4322. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4332. if test -n "$ac_ct_OBJDUMP"; then
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4334. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4335. else
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_OBJDUMP" = x; then
  4340. OBJDUMP="false"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. OBJDUMP=$ac_ct_OBJDUMP
  4349. fi
  4350. else
  4351. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4352. fi
  4353. test -z "$OBJDUMP" && OBJDUMP=objdump
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4355. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4356. if ${lt_cv_deplibs_check_method+:} false; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4360. lt_cv_file_magic_test_file=
  4361. lt_cv_deplibs_check_method='unknown'
  4362. # Need to set the preceding variable on all platforms that support
  4363. # interlibrary dependencies.
  4364. # 'none' -- dependencies not supported.
  4365. # `unknown' -- same as none, but documents that we really don't know.
  4366. # 'pass_all' -- all dependencies passed with no checks.
  4367. # 'test_compile' -- check by making test program.
  4368. # 'file_magic [[regex]]' -- check by looking for files in library path
  4369. # which responds to the $file_magic_cmd with a given extended regex.
  4370. # If you have `file' or equivalent on your system and you're not sure
  4371. # whether `pass_all' will *always* work, you probably want this one.
  4372. case $host_os in
  4373. aix[4-9]*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. beos*)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. bsdi[45]*)
  4380. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4381. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4382. lt_cv_file_magic_test_file=/shlib/libc.so
  4383. ;;
  4384. cygwin*)
  4385. # func_win32_libid is a shell function defined in ltmain.sh
  4386. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4387. lt_cv_file_magic_cmd='func_win32_libid'
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. mingw* | pw32*)
  4391. # Base MSYS/MinGW do not provide the 'file' command needed by
  4392. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4393. # unless we find 'file', for example because we are cross-compiling.
  4394. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4395. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4396. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4397. lt_cv_file_magic_cmd='func_win32_libid'
  4398. else
  4399. # Keep this pattern in sync with the one in func_win32_libid.
  4400. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4401. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4402. fi
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. cegcc*)
  4406. # use the weaker test based on 'objdump'. See mingw*.
  4407. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4408. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4409. ;;
  4410. darwin* | rhapsody*)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. freebsd* | dragonfly*)
  4414. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4415. case $host_cpu in
  4416. i*86 )
  4417. # Not sure whether the presence of OpenBSD here was a mistake.
  4418. # Let's accept both of them until this is cleared up.
  4419. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4420. lt_cv_file_magic_cmd=/usr/bin/file
  4421. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4422. ;;
  4423. esac
  4424. else
  4425. lt_cv_deplibs_check_method=pass_all
  4426. fi
  4427. ;;
  4428. gnu*)
  4429. lt_cv_deplibs_check_method=pass_all
  4430. ;;
  4431. haiku*)
  4432. lt_cv_deplibs_check_method=pass_all
  4433. ;;
  4434. hpux10.20* | hpux11*)
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. case $host_cpu in
  4437. ia64*)
  4438. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4439. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4440. ;;
  4441. hppa*64*)
  4442. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4443. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4444. ;;
  4445. *)
  4446. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4447. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4448. ;;
  4449. esac
  4450. ;;
  4451. interix[3-9]*)
  4452. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4454. ;;
  4455. irix5* | irix6* | nonstopux*)
  4456. case $LD in
  4457. *-32|*"-32 ") libmagic=32-bit;;
  4458. *-n32|*"-n32 ") libmagic=N32;;
  4459. *-64|*"-64 ") libmagic=64-bit;;
  4460. *) libmagic=never-match;;
  4461. esac
  4462. lt_cv_deplibs_check_method=pass_all
  4463. ;;
  4464. # This must be glibc/ELF.
  4465. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. netbsd*)
  4469. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4471. else
  4472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4473. fi
  4474. ;;
  4475. newos6*)
  4476. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4477. lt_cv_file_magic_cmd=/usr/bin/file
  4478. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4479. ;;
  4480. *nto* | *qnx*)
  4481. lt_cv_deplibs_check_method=pass_all
  4482. ;;
  4483. openbsd*)
  4484. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4486. else
  4487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4488. fi
  4489. ;;
  4490. osf3* | osf4* | osf5*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. rdos*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. solaris*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. sysv4 | sysv4.3*)
  4503. case $host_vendor in
  4504. motorola)
  4505. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4506. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4507. ;;
  4508. ncr)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sequent)
  4512. lt_cv_file_magic_cmd='/bin/file'
  4513. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4514. ;;
  4515. sni)
  4516. lt_cv_file_magic_cmd='/bin/file'
  4517. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4518. lt_cv_file_magic_test_file=/lib/libc.so
  4519. ;;
  4520. siemens)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. pc)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. esac
  4527. ;;
  4528. tpf*)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. esac
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4534. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4535. file_magic_glob=
  4536. want_nocaseglob=no
  4537. if test "$build" = "$host"; then
  4538. case $host_os in
  4539. mingw* | pw32*)
  4540. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4541. want_nocaseglob=yes
  4542. else
  4543. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4544. fi
  4545. ;;
  4546. esac
  4547. fi
  4548. file_magic_cmd=$lt_cv_file_magic_cmd
  4549. deplibs_check_method=$lt_cv_deplibs_check_method
  4550. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4551. if test -n "$ac_tool_prefix"; then
  4552. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4553. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$DLLTOOL"; then
  4560. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. DLLTOOL=$ac_cv_prog_DLLTOOL
  4579. if test -n "$DLLTOOL"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4581. $as_echo "$DLLTOOL" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. fi
  4587. if test -z "$ac_cv_prog_DLLTOOL"; then
  4588. ac_ct_DLLTOOL=$DLLTOOL
  4589. # Extract the first word of "dlltool", so it can be a program name with args.
  4590. set dummy dlltool; ac_word=$2
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4592. $as_echo_n "checking for $ac_word... " >&6; }
  4593. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. if test -n "$ac_ct_DLLTOOL"; then
  4597. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4598. else
  4599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4600. for as_dir in $PATH
  4601. do
  4602. IFS=$as_save_IFS
  4603. test -z "$as_dir" && as_dir=.
  4604. for ac_exec_ext in '' $ac_executable_extensions; do
  4605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4606. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4608. break 2
  4609. fi
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. fi
  4614. fi
  4615. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4616. if test -n "$ac_ct_DLLTOOL"; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4618. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4619. else
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4621. $as_echo "no" >&6; }
  4622. fi
  4623. if test "x$ac_ct_DLLTOOL" = x; then
  4624. DLLTOOL="false"
  4625. else
  4626. case $cross_compiling:$ac_tool_warned in
  4627. yes:)
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4630. ac_tool_warned=yes ;;
  4631. esac
  4632. DLLTOOL=$ac_ct_DLLTOOL
  4633. fi
  4634. else
  4635. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4636. fi
  4637. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4639. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4640. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4644. case $host_os in
  4645. cygwin* | mingw* | pw32* | cegcc*)
  4646. # two different shell functions defined in ltmain.sh
  4647. # decide which to use based on capabilities of $DLLTOOL
  4648. case `$DLLTOOL --help 2>&1` in
  4649. *--identify-strict*)
  4650. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4651. ;;
  4652. *)
  4653. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4654. ;;
  4655. esac
  4656. ;;
  4657. *)
  4658. # fallback: assume linklib IS sharedlib
  4659. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4660. ;;
  4661. esac
  4662. fi
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4664. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4665. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4666. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4667. if test -n "$ac_tool_prefix"; then
  4668. for ac_prog in ar
  4669. do
  4670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4673. $as_echo_n "checking for $ac_word... " >&6; }
  4674. if ${ac_cv_prog_AR+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. if test -n "$AR"; then
  4678. ac_cv_prog_AR="$AR" # Let the user override the test.
  4679. else
  4680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4681. for as_dir in $PATH
  4682. do
  4683. IFS=$as_save_IFS
  4684. test -z "$as_dir" && as_dir=.
  4685. for ac_exec_ext in '' $ac_executable_extensions; do
  4686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4687. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4689. break 2
  4690. fi
  4691. done
  4692. done
  4693. IFS=$as_save_IFS
  4694. fi
  4695. fi
  4696. AR=$ac_cv_prog_AR
  4697. if test -n "$AR"; then
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4699. $as_echo "$AR" >&6; }
  4700. else
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. test -n "$AR" && break
  4705. done
  4706. fi
  4707. if test -z "$AR"; then
  4708. ac_ct_AR=$AR
  4709. for ac_prog in ar
  4710. do
  4711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4712. set dummy $ac_prog; ac_word=$2
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4714. $as_echo_n "checking for $ac_word... " >&6; }
  4715. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. if test -n "$ac_ct_AR"; then
  4719. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4720. else
  4721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4722. for as_dir in $PATH
  4723. do
  4724. IFS=$as_save_IFS
  4725. test -z "$as_dir" && as_dir=.
  4726. for ac_exec_ext in '' $ac_executable_extensions; do
  4727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4728. ac_cv_prog_ac_ct_AR="$ac_prog"
  4729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4730. break 2
  4731. fi
  4732. done
  4733. done
  4734. IFS=$as_save_IFS
  4735. fi
  4736. fi
  4737. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4738. if test -n "$ac_ct_AR"; then
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4740. $as_echo "$ac_ct_AR" >&6; }
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743. $as_echo "no" >&6; }
  4744. fi
  4745. test -n "$ac_ct_AR" && break
  4746. done
  4747. if test "x$ac_ct_AR" = x; then
  4748. AR="false"
  4749. else
  4750. case $cross_compiling:$ac_tool_warned in
  4751. yes:)
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4754. ac_tool_warned=yes ;;
  4755. esac
  4756. AR=$ac_ct_AR
  4757. fi
  4758. fi
  4759. : ${AR=ar}
  4760. : ${AR_FLAGS=cru}
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4762. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4763. if ${lt_cv_ar_at_file+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. lt_cv_ar_at_file=no
  4767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4768. /* end confdefs.h. */
  4769. int
  4770. main ()
  4771. {
  4772. ;
  4773. return 0;
  4774. }
  4775. _ACEOF
  4776. if ac_fn_c_try_compile "$LINENO"; then :
  4777. echo conftest.$ac_objext > conftest.lst
  4778. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4779. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4780. (eval $lt_ar_try) 2>&5
  4781. ac_status=$?
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4783. test $ac_status = 0; }
  4784. if test "$ac_status" -eq 0; then
  4785. # Ensure the archiver fails upon bogus file names.
  4786. rm -f conftest.$ac_objext libconftest.a
  4787. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4788. (eval $lt_ar_try) 2>&5
  4789. ac_status=$?
  4790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4791. test $ac_status = 0; }
  4792. if test "$ac_status" -ne 0; then
  4793. lt_cv_ar_at_file=@
  4794. fi
  4795. fi
  4796. rm -f conftest.* libconftest.a
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4801. $as_echo "$lt_cv_ar_at_file" >&6; }
  4802. if test "x$lt_cv_ar_at_file" = xno; then
  4803. archiver_list_spec=
  4804. else
  4805. archiver_list_spec=$lt_cv_ar_at_file
  4806. fi
  4807. if test -n "$ac_tool_prefix"; then
  4808. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4809. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4811. $as_echo_n "checking for $ac_word... " >&6; }
  4812. if ${ac_cv_prog_STRIP+:} false; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. if test -n "$STRIP"; then
  4816. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4817. else
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_exec_ext in '' $ac_executable_extensions; do
  4824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4825. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4827. break 2
  4828. fi
  4829. done
  4830. done
  4831. IFS=$as_save_IFS
  4832. fi
  4833. fi
  4834. STRIP=$ac_cv_prog_STRIP
  4835. if test -n "$STRIP"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4837. $as_echo "$STRIP" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4840. $as_echo "no" >&6; }
  4841. fi
  4842. fi
  4843. if test -z "$ac_cv_prog_STRIP"; then
  4844. ac_ct_STRIP=$STRIP
  4845. # Extract the first word of "strip", so it can be a program name with args.
  4846. set dummy strip; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$ac_ct_STRIP"; then
  4853. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4862. ac_cv_prog_ac_ct_STRIP="strip"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4872. if test -n "$ac_ct_STRIP"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4874. $as_echo "$ac_ct_STRIP" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. if test "x$ac_ct_STRIP" = x; then
  4880. STRIP=":"
  4881. else
  4882. case $cross_compiling:$ac_tool_warned in
  4883. yes:)
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4886. ac_tool_warned=yes ;;
  4887. esac
  4888. STRIP=$ac_ct_STRIP
  4889. fi
  4890. else
  4891. STRIP="$ac_cv_prog_STRIP"
  4892. fi
  4893. test -z "$STRIP" && STRIP=:
  4894. if test -n "$ac_tool_prefix"; then
  4895. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4896. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_RANLIB+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$RANLIB"; then
  4903. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. RANLIB=$ac_cv_prog_RANLIB
  4922. if test -n "$RANLIB"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4924. $as_echo "$RANLIB" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. fi
  4930. if test -z "$ac_cv_prog_RANLIB"; then
  4931. ac_ct_RANLIB=$RANLIB
  4932. # Extract the first word of "ranlib", so it can be a program name with args.
  4933. set dummy ranlib; ac_word=$2
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4935. $as_echo_n "checking for $ac_word... " >&6; }
  4936. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if test -n "$ac_ct_RANLIB"; then
  4940. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4941. else
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_exec_ext in '' $ac_executable_extensions; do
  4948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4949. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4951. break 2
  4952. fi
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. fi
  4957. fi
  4958. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4959. if test -n "$ac_ct_RANLIB"; then
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4961. $as_echo "$ac_ct_RANLIB" >&6; }
  4962. else
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4964. $as_echo "no" >&6; }
  4965. fi
  4966. if test "x$ac_ct_RANLIB" = x; then
  4967. RANLIB=":"
  4968. else
  4969. case $cross_compiling:$ac_tool_warned in
  4970. yes:)
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4973. ac_tool_warned=yes ;;
  4974. esac
  4975. RANLIB=$ac_ct_RANLIB
  4976. fi
  4977. else
  4978. RANLIB="$ac_cv_prog_RANLIB"
  4979. fi
  4980. test -z "$RANLIB" && RANLIB=:
  4981. # Determine commands to create old-style static archives.
  4982. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4983. old_postinstall_cmds='chmod 644 $oldlib'
  4984. old_postuninstall_cmds=
  4985. if test -n "$RANLIB"; then
  4986. case $host_os in
  4987. openbsd*)
  4988. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4989. ;;
  4990. *)
  4991. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4992. ;;
  4993. esac
  4994. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4995. fi
  4996. case $host_os in
  4997. darwin*)
  4998. lock_old_archive_extraction=yes ;;
  4999. *)
  5000. lock_old_archive_extraction=no ;;
  5001. esac
  5002. for ac_prog in gawk mawk nawk awk
  5003. do
  5004. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5005. set dummy $ac_prog; ac_word=$2
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5007. $as_echo_n "checking for $ac_word... " >&6; }
  5008. if ${ac_cv_prog_AWK+:} false; then :
  5009. $as_echo_n "(cached) " >&6
  5010. else
  5011. if test -n "$AWK"; then
  5012. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5013. else
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_exec_ext in '' $ac_executable_extensions; do
  5020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5021. ac_cv_prog_AWK="$ac_prog"
  5022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5023. break 2
  5024. fi
  5025. done
  5026. done
  5027. IFS=$as_save_IFS
  5028. fi
  5029. fi
  5030. AWK=$ac_cv_prog_AWK
  5031. if test -n "$AWK"; then
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5033. $as_echo "$AWK" >&6; }
  5034. else
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5036. $as_echo "no" >&6; }
  5037. fi
  5038. test -n "$AWK" && break
  5039. done
  5040. # If no C compiler was specified, use CC.
  5041. LTCC=${LTCC-"$CC"}
  5042. # If no C compiler flags were specified, use CFLAGS.
  5043. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5044. # Allow CC to be a program name with arguments.
  5045. compiler=$CC
  5046. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5048. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5049. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. # These are sane defaults that work on at least a few old systems.
  5053. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5054. # Character class describing NM global symbol codes.
  5055. symcode='[BCDEGRST]'
  5056. # Regexp to match symbols that can be accessed directly from C.
  5057. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5058. # Define system-specific variables.
  5059. case $host_os in
  5060. aix*)
  5061. symcode='[BCDT]'
  5062. ;;
  5063. cygwin* | mingw* | pw32* | cegcc*)
  5064. symcode='[ABCDGISTW]'
  5065. ;;
  5066. hpux*)
  5067. if test "$host_cpu" = ia64; then
  5068. symcode='[ABCDEGRST]'
  5069. fi
  5070. ;;
  5071. irix* | nonstopux*)
  5072. symcode='[BCDEGRST]'
  5073. ;;
  5074. osf*)
  5075. symcode='[BCDEGQRST]'
  5076. ;;
  5077. solaris*)
  5078. symcode='[BDRT]'
  5079. ;;
  5080. sco3.2v5*)
  5081. symcode='[DT]'
  5082. ;;
  5083. sysv4.2uw2*)
  5084. symcode='[DT]'
  5085. ;;
  5086. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5087. symcode='[ABDT]'
  5088. ;;
  5089. sysv4)
  5090. symcode='[DFNSTU]'
  5091. ;;
  5092. esac
  5093. # If we're using GNU nm, then use its standard symbol codes.
  5094. case `$NM -V 2>&1` in
  5095. *GNU* | *'with BFD'*)
  5096. symcode='[ABCDGIRSTW]' ;;
  5097. esac
  5098. # Transform an extracted symbol line into a proper C declaration.
  5099. # Some systems (esp. on ia64) link data and code symbols differently,
  5100. # so use this general approach.
  5101. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5102. # Transform an extracted symbol line into symbol name and symbol address
  5103. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5104. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5105. # Handle CRLF in mingw tool chain
  5106. opt_cr=
  5107. case $build_os in
  5108. mingw*)
  5109. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5110. ;;
  5111. esac
  5112. # Try without a prefix underscore, then with it.
  5113. for ac_symprfx in "" "_"; do
  5114. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5115. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5116. # Write the raw and C identifiers.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. # Fake it for dumpbin and say T for any non-static function
  5119. # and D for any global variable.
  5120. # Also find C++ and __fastcall symbols from MSVC++,
  5121. # which start with @ or ?.
  5122. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5123. " {last_section=section; section=\$ 3};"\
  5124. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5125. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5126. " \$ 0!~/External *\|/{next};"\
  5127. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5128. " {if(hide[section]) next};"\
  5129. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5130. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5131. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5132. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5133. " ' prfx=^$ac_symprfx"
  5134. else
  5135. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5136. fi
  5137. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5138. # Check to see that the pipe works correctly.
  5139. pipe_works=no
  5140. rm -f conftest*
  5141. cat > conftest.$ac_ext <<_LT_EOF
  5142. #ifdef __cplusplus
  5143. extern "C" {
  5144. #endif
  5145. char nm_test_var;
  5146. void nm_test_func(void);
  5147. void nm_test_func(void){}
  5148. #ifdef __cplusplus
  5149. }
  5150. #endif
  5151. int main(){nm_test_var='a';nm_test_func();return(0);}
  5152. _LT_EOF
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5154. (eval $ac_compile) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; }; then
  5158. # Now try to grab the symbols.
  5159. nlist=conftest.nm
  5160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5161. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5162. ac_status=$?
  5163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5164. test $ac_status = 0; } && test -s "$nlist"; then
  5165. # Try sorting and uniquifying the output.
  5166. if sort "$nlist" | uniq > "$nlist"T; then
  5167. mv -f "$nlist"T "$nlist"
  5168. else
  5169. rm -f "$nlist"T
  5170. fi
  5171. # Make sure that we snagged all the symbols we need.
  5172. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5173. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5174. cat <<_LT_EOF > conftest.$ac_ext
  5175. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5176. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5177. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5178. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5179. # define LT_DLSYM_CONST
  5180. #elif defined(__osf__)
  5181. /* This system does not cope well with relocations in const data. */
  5182. # define LT_DLSYM_CONST
  5183. #else
  5184. # define LT_DLSYM_CONST const
  5185. #endif
  5186. #ifdef __cplusplus
  5187. extern "C" {
  5188. #endif
  5189. _LT_EOF
  5190. # Now generate the symbol file.
  5191. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5192. cat <<_LT_EOF >> conftest.$ac_ext
  5193. /* The mapping between symbol names and symbols. */
  5194. LT_DLSYM_CONST struct {
  5195. const char *name;
  5196. void *address;
  5197. }
  5198. lt__PROGRAM__LTX_preloaded_symbols[] =
  5199. {
  5200. { "@PROGRAM@", (void *) 0 },
  5201. _LT_EOF
  5202. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5203. cat <<\_LT_EOF >> conftest.$ac_ext
  5204. {0, (void *) 0}
  5205. };
  5206. /* This works around a problem in FreeBSD linker */
  5207. #ifdef FREEBSD_WORKAROUND
  5208. static const void *lt_preloaded_setup() {
  5209. return lt__PROGRAM__LTX_preloaded_symbols;
  5210. }
  5211. #endif
  5212. #ifdef __cplusplus
  5213. }
  5214. #endif
  5215. _LT_EOF
  5216. # Now try linking the two files.
  5217. mv conftest.$ac_objext conftstm.$ac_objext
  5218. lt_globsym_save_LIBS=$LIBS
  5219. lt_globsym_save_CFLAGS=$CFLAGS
  5220. LIBS="conftstm.$ac_objext"
  5221. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5223. (eval $ac_link) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5227. pipe_works=yes
  5228. fi
  5229. LIBS=$lt_globsym_save_LIBS
  5230. CFLAGS=$lt_globsym_save_CFLAGS
  5231. else
  5232. echo "cannot find nm_test_func in $nlist" >&5
  5233. fi
  5234. else
  5235. echo "cannot find nm_test_var in $nlist" >&5
  5236. fi
  5237. else
  5238. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5239. fi
  5240. else
  5241. echo "$progname: failed program was:" >&5
  5242. cat conftest.$ac_ext >&5
  5243. fi
  5244. rm -rf conftest* conftst*
  5245. # Do not use the global_symbol_pipe unless it works.
  5246. if test "$pipe_works" = yes; then
  5247. break
  5248. else
  5249. lt_cv_sys_global_symbol_pipe=
  5250. fi
  5251. done
  5252. fi
  5253. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5254. lt_cv_sys_global_symbol_to_cdecl=
  5255. fi
  5256. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5258. $as_echo "failed" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5261. $as_echo "ok" >&6; }
  5262. fi
  5263. # Response file support.
  5264. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5265. nm_file_list_spec='@'
  5266. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5267. nm_file_list_spec='@'
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5270. $as_echo_n "checking for sysroot... " >&6; }
  5271. # Check whether --with-sysroot was given.
  5272. if test "${with_sysroot+set}" = set; then :
  5273. withval=$with_sysroot;
  5274. else
  5275. with_sysroot=no
  5276. fi
  5277. lt_sysroot=
  5278. case ${with_sysroot} in #(
  5279. yes)
  5280. if test "$GCC" = yes; then
  5281. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5282. fi
  5283. ;; #(
  5284. /*)
  5285. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5286. ;; #(
  5287. no|'')
  5288. ;; #(
  5289. *)
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5291. $as_echo "${with_sysroot}" >&6; }
  5292. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5293. ;;
  5294. esac
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5296. $as_echo "${lt_sysroot:-no}" >&6; }
  5297. # Check whether --enable-libtool-lock was given.
  5298. if test "${enable_libtool_lock+set}" = set; then :
  5299. enableval=$enable_libtool_lock;
  5300. fi
  5301. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5302. # Some flags need to be propagated to the compiler or linker for good
  5303. # libtool support.
  5304. case $host in
  5305. ia64-*-hpux*)
  5306. # Find out which ABI we are using.
  5307. echo 'int i;' > conftest.$ac_ext
  5308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5309. (eval $ac_compile) 2>&5
  5310. ac_status=$?
  5311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5312. test $ac_status = 0; }; then
  5313. case `/usr/bin/file conftest.$ac_objext` in
  5314. *ELF-32*)
  5315. HPUX_IA64_MODE="32"
  5316. ;;
  5317. *ELF-64*)
  5318. HPUX_IA64_MODE="64"
  5319. ;;
  5320. esac
  5321. fi
  5322. rm -rf conftest*
  5323. ;;
  5324. *-*-irix6*)
  5325. # Find out which ABI we are using.
  5326. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5327. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5328. (eval $ac_compile) 2>&5
  5329. ac_status=$?
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5331. test $ac_status = 0; }; then
  5332. if test "$lt_cv_prog_gnu_ld" = yes; then
  5333. case `/usr/bin/file conftest.$ac_objext` in
  5334. *32-bit*)
  5335. LD="${LD-ld} -melf32bsmip"
  5336. ;;
  5337. *N32*)
  5338. LD="${LD-ld} -melf32bmipn32"
  5339. ;;
  5340. *64-bit*)
  5341. LD="${LD-ld} -melf64bmip"
  5342. ;;
  5343. esac
  5344. else
  5345. case `/usr/bin/file conftest.$ac_objext` in
  5346. *32-bit*)
  5347. LD="${LD-ld} -32"
  5348. ;;
  5349. *N32*)
  5350. LD="${LD-ld} -n32"
  5351. ;;
  5352. *64-bit*)
  5353. LD="${LD-ld} -64"
  5354. ;;
  5355. esac
  5356. fi
  5357. fi
  5358. rm -rf conftest*
  5359. ;;
  5360. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5361. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5362. # Find out which ABI we are using.
  5363. echo 'int i;' > conftest.$ac_ext
  5364. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5365. (eval $ac_compile) 2>&5
  5366. ac_status=$?
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5368. test $ac_status = 0; }; then
  5369. case `/usr/bin/file conftest.o` in
  5370. *32-bit*)
  5371. case $host in
  5372. x86_64-*kfreebsd*-gnu)
  5373. LD="${LD-ld} -m elf_i386_fbsd"
  5374. ;;
  5375. x86_64-*linux*)
  5376. LD="${LD-ld} -m elf_i386"
  5377. ;;
  5378. ppc64-*linux*|powerpc64-*linux*)
  5379. LD="${LD-ld} -m elf32ppclinux"
  5380. ;;
  5381. s390x-*linux*)
  5382. LD="${LD-ld} -m elf_s390"
  5383. ;;
  5384. sparc64-*linux*)
  5385. LD="${LD-ld} -m elf32_sparc"
  5386. ;;
  5387. esac
  5388. ;;
  5389. *64-bit*)
  5390. case $host in
  5391. x86_64-*kfreebsd*-gnu)
  5392. LD="${LD-ld} -m elf_x86_64_fbsd"
  5393. ;;
  5394. x86_64-*linux*)
  5395. LD="${LD-ld} -m elf_x86_64"
  5396. ;;
  5397. powerpc64le-*linux*)
  5398. LD="${LD-ld} -m elf64lppc"
  5399. ;;
  5400. powerpc64-*linux*)
  5401. LD="${LD-ld} -m elf64ppc"
  5402. ;;
  5403. s390*-*linux*|s390*-*tpf*)
  5404. LD="${LD-ld} -m elf64_s390"
  5405. ;;
  5406. sparc*-*linux*)
  5407. LD="${LD-ld} -m elf64_sparc"
  5408. ;;
  5409. esac
  5410. ;;
  5411. esac
  5412. fi
  5413. rm -rf conftest*
  5414. ;;
  5415. *-*-sco3.2v5*)
  5416. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5417. SAVE_CFLAGS="$CFLAGS"
  5418. CFLAGS="$CFLAGS -belf"
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5420. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5421. if ${lt_cv_cc_needs_belf+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. ac_ext=c
  5425. ac_cpp='$CPP $CPPFLAGS'
  5426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5430. /* end confdefs.h. */
  5431. int
  5432. main ()
  5433. {
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. if ac_fn_c_try_link "$LINENO"; then :
  5439. lt_cv_cc_needs_belf=yes
  5440. else
  5441. lt_cv_cc_needs_belf=no
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext \
  5444. conftest$ac_exeext conftest.$ac_ext
  5445. ac_ext=c
  5446. ac_cpp='$CPP $CPPFLAGS'
  5447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5450. fi
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5452. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5453. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5454. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5455. CFLAGS="$SAVE_CFLAGS"
  5456. fi
  5457. ;;
  5458. *-*solaris*)
  5459. # Find out which ABI we are using.
  5460. echo 'int i;' > conftest.$ac_ext
  5461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5462. (eval $ac_compile) 2>&5
  5463. ac_status=$?
  5464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5465. test $ac_status = 0; }; then
  5466. case `/usr/bin/file conftest.o` in
  5467. *64-bit*)
  5468. case $lt_cv_prog_gnu_ld in
  5469. yes*)
  5470. case $host in
  5471. i?86-*-solaris*)
  5472. LD="${LD-ld} -m elf_x86_64"
  5473. ;;
  5474. sparc*-*-solaris*)
  5475. LD="${LD-ld} -m elf64_sparc"
  5476. ;;
  5477. esac
  5478. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5479. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5480. LD="${LD-ld}_sol2"
  5481. fi
  5482. ;;
  5483. *)
  5484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5485. LD="${LD-ld} -64"
  5486. fi
  5487. ;;
  5488. esac
  5489. ;;
  5490. esac
  5491. fi
  5492. rm -rf conftest*
  5493. ;;
  5494. esac
  5495. need_locks="$enable_libtool_lock"
  5496. if test -n "$ac_tool_prefix"; then
  5497. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5498. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$MANIFEST_TOOL"; then
  5505. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5524. if test -n "$MANIFEST_TOOL"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5526. $as_echo "$MANIFEST_TOOL" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. fi
  5532. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5533. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5534. # Extract the first word of "mt", so it can be a program name with args.
  5535. set dummy mt; ac_word=$2
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5537. $as_echo_n "checking for $ac_word... " >&6; }
  5538. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5539. $as_echo_n "(cached) " >&6
  5540. else
  5541. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5542. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5543. else
  5544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5545. for as_dir in $PATH
  5546. do
  5547. IFS=$as_save_IFS
  5548. test -z "$as_dir" && as_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5551. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5553. break 2
  5554. fi
  5555. done
  5556. done
  5557. IFS=$as_save_IFS
  5558. fi
  5559. fi
  5560. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5561. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5563. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5564. else
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5566. $as_echo "no" >&6; }
  5567. fi
  5568. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5569. MANIFEST_TOOL=":"
  5570. else
  5571. case $cross_compiling:$ac_tool_warned in
  5572. yes:)
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5574. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5575. ac_tool_warned=yes ;;
  5576. esac
  5577. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5578. fi
  5579. else
  5580. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5581. fi
  5582. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5584. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5585. if ${lt_cv_path_mainfest_tool+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. lt_cv_path_mainfest_tool=no
  5589. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5590. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5591. cat conftest.err >&5
  5592. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5593. lt_cv_path_mainfest_tool=yes
  5594. fi
  5595. rm -f conftest*
  5596. fi
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5598. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5599. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5600. MANIFEST_TOOL=:
  5601. fi
  5602. case $host_os in
  5603. rhapsody* | darwin*)
  5604. if test -n "$ac_tool_prefix"; then
  5605. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5606. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$DSYMUTIL"; then
  5613. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5632. if test -n "$DSYMUTIL"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5634. $as_echo "$DSYMUTIL" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5641. ac_ct_DSYMUTIL=$DSYMUTIL
  5642. # Extract the first word of "dsymutil", so it can be a program name with args.
  5643. set dummy dsymutil; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$ac_ct_DSYMUTIL"; then
  5650. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5659. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5669. if test -n "$ac_ct_DSYMUTIL"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5671. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. if test "x$ac_ct_DSYMUTIL" = x; then
  5677. DSYMUTIL=":"
  5678. else
  5679. case $cross_compiling:$ac_tool_warned in
  5680. yes:)
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5683. ac_tool_warned=yes ;;
  5684. esac
  5685. DSYMUTIL=$ac_ct_DSYMUTIL
  5686. fi
  5687. else
  5688. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5689. fi
  5690. if test -n "$ac_tool_prefix"; then
  5691. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5692. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if ${ac_cv_prog_NMEDIT+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$NMEDIT"; then
  5699. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5708. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. NMEDIT=$ac_cv_prog_NMEDIT
  5718. if test -n "$NMEDIT"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5720. $as_echo "$NMEDIT" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. fi
  5726. if test -z "$ac_cv_prog_NMEDIT"; then
  5727. ac_ct_NMEDIT=$NMEDIT
  5728. # Extract the first word of "nmedit", so it can be a program name with args.
  5729. set dummy nmedit; ac_word=$2
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. $as_echo_n "checking for $ac_word... " >&6; }
  5732. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. if test -n "$ac_ct_NMEDIT"; then
  5736. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5737. else
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5745. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. fi
  5753. fi
  5754. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5755. if test -n "$ac_ct_NMEDIT"; then
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5757. $as_echo "$ac_ct_NMEDIT" >&6; }
  5758. else
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5760. $as_echo "no" >&6; }
  5761. fi
  5762. if test "x$ac_ct_NMEDIT" = x; then
  5763. NMEDIT=":"
  5764. else
  5765. case $cross_compiling:$ac_tool_warned in
  5766. yes:)
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5769. ac_tool_warned=yes ;;
  5770. esac
  5771. NMEDIT=$ac_ct_NMEDIT
  5772. fi
  5773. else
  5774. NMEDIT="$ac_cv_prog_NMEDIT"
  5775. fi
  5776. if test -n "$ac_tool_prefix"; then
  5777. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5778. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_LIPO+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$LIPO"; then
  5785. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. LIPO=$ac_cv_prog_LIPO
  5804. if test -n "$LIPO"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5806. $as_echo "$LIPO" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. fi
  5812. if test -z "$ac_cv_prog_LIPO"; then
  5813. ac_ct_LIPO=$LIPO
  5814. # Extract the first word of "lipo", so it can be a program name with args.
  5815. set dummy lipo; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$ac_ct_LIPO"; then
  5822. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_LIPO="lipo"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5841. if test -n "$ac_ct_LIPO"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5843. $as_echo "$ac_ct_LIPO" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_LIPO" = x; then
  5849. LIPO=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. LIPO=$ac_ct_LIPO
  5858. fi
  5859. else
  5860. LIPO="$ac_cv_prog_LIPO"
  5861. fi
  5862. if test -n "$ac_tool_prefix"; then
  5863. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5864. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_OTOOL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$OTOOL"; then
  5871. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. OTOOL=$ac_cv_prog_OTOOL
  5890. if test -n "$OTOOL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5892. $as_echo "$OTOOL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. fi
  5898. if test -z "$ac_cv_prog_OTOOL"; then
  5899. ac_ct_OTOOL=$OTOOL
  5900. # Extract the first word of "otool", so it can be a program name with args.
  5901. set dummy otool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_OTOOL"; then
  5908. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_OTOOL="otool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5927. if test -n "$ac_ct_OTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5929. $as_echo "$ac_ct_OTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. if test "x$ac_ct_OTOOL" = x; then
  5935. OTOOL=":"
  5936. else
  5937. case $cross_compiling:$ac_tool_warned in
  5938. yes:)
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5941. ac_tool_warned=yes ;;
  5942. esac
  5943. OTOOL=$ac_ct_OTOOL
  5944. fi
  5945. else
  5946. OTOOL="$ac_cv_prog_OTOOL"
  5947. fi
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_OTOOL64+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$OTOOL64"; then
  5957. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. OTOOL64=$ac_cv_prog_OTOOL64
  5976. if test -n "$OTOOL64"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5978. $as_echo "$OTOOL64" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_OTOOL64"; then
  5985. ac_ct_OTOOL64=$OTOOL64
  5986. # Extract the first word of "otool64", so it can be a program name with args.
  5987. set dummy otool64; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_OTOOL64"; then
  5994. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6013. if test -n "$ac_ct_OTOOL64"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6015. $as_echo "$ac_ct_OTOOL64" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_OTOOL64" = x; then
  6021. OTOOL64=":"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. OTOOL64=$ac_ct_OTOOL64
  6030. fi
  6031. else
  6032. OTOOL64="$ac_cv_prog_OTOOL64"
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6035. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6036. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. lt_cv_apple_cc_single_mod=no
  6040. if test -z "${LT_MULTI_MODULE}"; then
  6041. # By default we will add the -single_module flag. You can override
  6042. # by either setting the environment variable LT_MULTI_MODULE
  6043. # non-empty at configure time, or by adding -multi_module to the
  6044. # link flags.
  6045. rm -rf libconftest.dylib*
  6046. echo "int foo(void){return 1;}" > conftest.c
  6047. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6048. -dynamiclib -Wl,-single_module conftest.c" >&5
  6049. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6050. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6051. _lt_result=$?
  6052. # If there is a non-empty error log, and "single_module"
  6053. # appears in it, assume the flag caused a linker warning
  6054. if test -s conftest.err && $GREP single_module conftest.err; then
  6055. cat conftest.err >&5
  6056. # Otherwise, if the output was created with a 0 exit code from
  6057. # the compiler, it worked.
  6058. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6059. lt_cv_apple_cc_single_mod=yes
  6060. else
  6061. cat conftest.err >&5
  6062. fi
  6063. rm -rf libconftest.dylib*
  6064. rm -f conftest.*
  6065. fi
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6068. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6070. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6071. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. lt_cv_ld_exported_symbols_list=no
  6075. save_LDFLAGS=$LDFLAGS
  6076. echo "_main" > conftest.sym
  6077. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6079. /* end confdefs.h. */
  6080. int
  6081. main ()
  6082. {
  6083. ;
  6084. return 0;
  6085. }
  6086. _ACEOF
  6087. if ac_fn_c_try_link "$LINENO"; then :
  6088. lt_cv_ld_exported_symbols_list=yes
  6089. else
  6090. lt_cv_ld_exported_symbols_list=no
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext \
  6093. conftest$ac_exeext conftest.$ac_ext
  6094. LDFLAGS="$save_LDFLAGS"
  6095. fi
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6097. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6099. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6100. if ${lt_cv_ld_force_load+:} false; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. lt_cv_ld_force_load=no
  6104. cat > conftest.c << _LT_EOF
  6105. int forced_loaded() { return 2;}
  6106. _LT_EOF
  6107. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6108. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6109. echo "$AR cru libconftest.a conftest.o" >&5
  6110. $AR cru libconftest.a conftest.o 2>&5
  6111. echo "$RANLIB libconftest.a" >&5
  6112. $RANLIB libconftest.a 2>&5
  6113. cat > conftest.c << _LT_EOF
  6114. int main() { return 0;}
  6115. _LT_EOF
  6116. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6117. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6118. _lt_result=$?
  6119. if test -s conftest.err && $GREP force_load conftest.err; then
  6120. cat conftest.err >&5
  6121. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6122. lt_cv_ld_force_load=yes
  6123. else
  6124. cat conftest.err >&5
  6125. fi
  6126. rm -f conftest.err libconftest.a conftest conftest.c
  6127. rm -rf conftest.dSYM
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6130. $as_echo "$lt_cv_ld_force_load" >&6; }
  6131. case $host_os in
  6132. rhapsody* | darwin1.[012])
  6133. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6134. darwin1.*)
  6135. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6136. darwin*) # darwin 5.x on
  6137. # if running on 10.5 or later, the deployment target defaults
  6138. # to the OS version, if on x86, and 10.4, the deployment
  6139. # target defaults to 10.4. Don't you love it?
  6140. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6141. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6142. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6143. 10.[012]*)
  6144. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6145. 10.*)
  6146. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6147. esac
  6148. ;;
  6149. esac
  6150. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6151. _lt_dar_single_mod='$single_module'
  6152. fi
  6153. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6154. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6155. else
  6156. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6157. fi
  6158. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6159. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6160. else
  6161. _lt_dsymutil=
  6162. fi
  6163. ;;
  6164. esac
  6165. ac_ext=c
  6166. ac_cpp='$CPP $CPPFLAGS'
  6167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6171. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6172. # On Suns, sometimes $CPP names a directory.
  6173. if test -n "$CPP" && test -d "$CPP"; then
  6174. CPP=
  6175. fi
  6176. if test -z "$CPP"; then
  6177. if ${ac_cv_prog_CPP+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. # Double quotes because CPP needs to be expanded
  6181. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6182. do
  6183. ac_preproc_ok=false
  6184. for ac_c_preproc_warn_flag in '' yes
  6185. do
  6186. # Use a header file that comes with gcc, so configuring glibc
  6187. # with a fresh cross-compiler works.
  6188. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6189. # <limits.h> exists even on freestanding compilers.
  6190. # On the NeXT, cc -E runs the code through the compiler's parser,
  6191. # not just through cpp. "Syntax error" is here to catch this case.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #ifdef __STDC__
  6195. # include <limits.h>
  6196. #else
  6197. # include <assert.h>
  6198. #endif
  6199. Syntax error
  6200. _ACEOF
  6201. if ac_fn_c_try_cpp "$LINENO"; then :
  6202. else
  6203. # Broken: fails on valid input.
  6204. continue
  6205. fi
  6206. rm -f conftest.err conftest.i conftest.$ac_ext
  6207. # OK, works on sane cases. Now check whether nonexistent headers
  6208. # can be detected and how.
  6209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6210. /* end confdefs.h. */
  6211. #include <ac_nonexistent.h>
  6212. _ACEOF
  6213. if ac_fn_c_try_cpp "$LINENO"; then :
  6214. # Broken: success on invalid input.
  6215. continue
  6216. else
  6217. # Passes both tests.
  6218. ac_preproc_ok=:
  6219. break
  6220. fi
  6221. rm -f conftest.err conftest.i conftest.$ac_ext
  6222. done
  6223. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6224. rm -f conftest.i conftest.err conftest.$ac_ext
  6225. if $ac_preproc_ok; then :
  6226. break
  6227. fi
  6228. done
  6229. ac_cv_prog_CPP=$CPP
  6230. fi
  6231. CPP=$ac_cv_prog_CPP
  6232. else
  6233. ac_cv_prog_CPP=$CPP
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6236. $as_echo "$CPP" >&6; }
  6237. ac_preproc_ok=false
  6238. for ac_c_preproc_warn_flag in '' yes
  6239. do
  6240. # Use a header file that comes with gcc, so configuring glibc
  6241. # with a fresh cross-compiler works.
  6242. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6243. # <limits.h> exists even on freestanding compilers.
  6244. # On the NeXT, cc -E runs the code through the compiler's parser,
  6245. # not just through cpp. "Syntax error" is here to catch this case.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #ifdef __STDC__
  6249. # include <limits.h>
  6250. #else
  6251. # include <assert.h>
  6252. #endif
  6253. Syntax error
  6254. _ACEOF
  6255. if ac_fn_c_try_cpp "$LINENO"; then :
  6256. else
  6257. # Broken: fails on valid input.
  6258. continue
  6259. fi
  6260. rm -f conftest.err conftest.i conftest.$ac_ext
  6261. # OK, works on sane cases. Now check whether nonexistent headers
  6262. # can be detected and how.
  6263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6264. /* end confdefs.h. */
  6265. #include <ac_nonexistent.h>
  6266. _ACEOF
  6267. if ac_fn_c_try_cpp "$LINENO"; then :
  6268. # Broken: success on invalid input.
  6269. continue
  6270. else
  6271. # Passes both tests.
  6272. ac_preproc_ok=:
  6273. break
  6274. fi
  6275. rm -f conftest.err conftest.i conftest.$ac_ext
  6276. done
  6277. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6278. rm -f conftest.i conftest.err conftest.$ac_ext
  6279. if $ac_preproc_ok; then :
  6280. else
  6281. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6282. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6283. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6284. See \`config.log' for more details" "$LINENO" 5; }
  6285. fi
  6286. ac_ext=c
  6287. ac_cpp='$CPP $CPPFLAGS'
  6288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6292. $as_echo_n "checking for ANSI C header files... " >&6; }
  6293. if ${ac_cv_header_stdc+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6297. /* end confdefs.h. */
  6298. #include <stdlib.h>
  6299. #include <stdarg.h>
  6300. #include <string.h>
  6301. #include <float.h>
  6302. int
  6303. main ()
  6304. {
  6305. ;
  6306. return 0;
  6307. }
  6308. _ACEOF
  6309. if ac_fn_c_try_compile "$LINENO"; then :
  6310. ac_cv_header_stdc=yes
  6311. else
  6312. ac_cv_header_stdc=no
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6315. if test $ac_cv_header_stdc = yes; then
  6316. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6318. /* end confdefs.h. */
  6319. #include <string.h>
  6320. _ACEOF
  6321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6322. $EGREP "memchr" >/dev/null 2>&1; then :
  6323. else
  6324. ac_cv_header_stdc=no
  6325. fi
  6326. rm -f conftest*
  6327. fi
  6328. if test $ac_cv_header_stdc = yes; then
  6329. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #include <stdlib.h>
  6333. _ACEOF
  6334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6335. $EGREP "free" >/dev/null 2>&1; then :
  6336. else
  6337. ac_cv_header_stdc=no
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. if test $ac_cv_header_stdc = yes; then
  6342. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6343. if test "$cross_compiling" = yes; then :
  6344. :
  6345. else
  6346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6347. /* end confdefs.h. */
  6348. #include <ctype.h>
  6349. #include <stdlib.h>
  6350. #if ((' ' & 0x0FF) == 0x020)
  6351. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6352. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6353. #else
  6354. # define ISLOWER(c) \
  6355. (('a' <= (c) && (c) <= 'i') \
  6356. || ('j' <= (c) && (c) <= 'r') \
  6357. || ('s' <= (c) && (c) <= 'z'))
  6358. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6359. #endif
  6360. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6361. int
  6362. main ()
  6363. {
  6364. int i;
  6365. for (i = 0; i < 256; i++)
  6366. if (XOR (islower (i), ISLOWER (i))
  6367. || toupper (i) != TOUPPER (i))
  6368. return 2;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_c_try_run "$LINENO"; then :
  6373. else
  6374. ac_cv_header_stdc=no
  6375. fi
  6376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6377. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6378. fi
  6379. fi
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6382. $as_echo "$ac_cv_header_stdc" >&6; }
  6383. if test $ac_cv_header_stdc = yes; then
  6384. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6385. fi
  6386. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6387. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6388. inttypes.h stdint.h unistd.h
  6389. do :
  6390. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6391. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6392. "
  6393. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6394. cat >>confdefs.h <<_ACEOF
  6395. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6396. _ACEOF
  6397. fi
  6398. done
  6399. for ac_header in dlfcn.h
  6400. do :
  6401. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6402. "
  6403. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6404. cat >>confdefs.h <<_ACEOF
  6405. #define HAVE_DLFCN_H 1
  6406. _ACEOF
  6407. fi
  6408. done
  6409. # Set options
  6410. enable_win32_dll=yes
  6411. case $host in
  6412. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6413. if test -n "$ac_tool_prefix"; then
  6414. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6415. set dummy ${ac_tool_prefix}as; ac_word=$2
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6417. $as_echo_n "checking for $ac_word... " >&6; }
  6418. if ${ac_cv_prog_AS+:} false; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. if test -n "$AS"; then
  6422. ac_cv_prog_AS="$AS" # Let the user override the test.
  6423. else
  6424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6425. for as_dir in $PATH
  6426. do
  6427. IFS=$as_save_IFS
  6428. test -z "$as_dir" && as_dir=.
  6429. for ac_exec_ext in '' $ac_executable_extensions; do
  6430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6431. ac_cv_prog_AS="${ac_tool_prefix}as"
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6433. break 2
  6434. fi
  6435. done
  6436. done
  6437. IFS=$as_save_IFS
  6438. fi
  6439. fi
  6440. AS=$ac_cv_prog_AS
  6441. if test -n "$AS"; then
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6443. $as_echo "$AS" >&6; }
  6444. else
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6446. $as_echo "no" >&6; }
  6447. fi
  6448. fi
  6449. if test -z "$ac_cv_prog_AS"; then
  6450. ac_ct_AS=$AS
  6451. # Extract the first word of "as", so it can be a program name with args.
  6452. set dummy as; ac_word=$2
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6454. $as_echo_n "checking for $ac_word... " >&6; }
  6455. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. if test -n "$ac_ct_AS"; then
  6459. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6460. else
  6461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6462. for as_dir in $PATH
  6463. do
  6464. IFS=$as_save_IFS
  6465. test -z "$as_dir" && as_dir=.
  6466. for ac_exec_ext in '' $ac_executable_extensions; do
  6467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6468. ac_cv_prog_ac_ct_AS="as"
  6469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6470. break 2
  6471. fi
  6472. done
  6473. done
  6474. IFS=$as_save_IFS
  6475. fi
  6476. fi
  6477. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6478. if test -n "$ac_ct_AS"; then
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6480. $as_echo "$ac_ct_AS" >&6; }
  6481. else
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6483. $as_echo "no" >&6; }
  6484. fi
  6485. if test "x$ac_ct_AS" = x; then
  6486. AS="false"
  6487. else
  6488. case $cross_compiling:$ac_tool_warned in
  6489. yes:)
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6491. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6492. ac_tool_warned=yes ;;
  6493. esac
  6494. AS=$ac_ct_AS
  6495. fi
  6496. else
  6497. AS="$ac_cv_prog_AS"
  6498. fi
  6499. if test -n "$ac_tool_prefix"; then
  6500. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6501. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6503. $as_echo_n "checking for $ac_word... " >&6; }
  6504. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. if test -n "$DLLTOOL"; then
  6508. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6509. else
  6510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6511. for as_dir in $PATH
  6512. do
  6513. IFS=$as_save_IFS
  6514. test -z "$as_dir" && as_dir=.
  6515. for ac_exec_ext in '' $ac_executable_extensions; do
  6516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6517. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6519. break 2
  6520. fi
  6521. done
  6522. done
  6523. IFS=$as_save_IFS
  6524. fi
  6525. fi
  6526. DLLTOOL=$ac_cv_prog_DLLTOOL
  6527. if test -n "$DLLTOOL"; then
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6529. $as_echo "$DLLTOOL" >&6; }
  6530. else
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6532. $as_echo "no" >&6; }
  6533. fi
  6534. fi
  6535. if test -z "$ac_cv_prog_DLLTOOL"; then
  6536. ac_ct_DLLTOOL=$DLLTOOL
  6537. # Extract the first word of "dlltool", so it can be a program name with args.
  6538. set dummy dlltool; ac_word=$2
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6540. $as_echo_n "checking for $ac_word... " >&6; }
  6541. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. if test -n "$ac_ct_DLLTOOL"; then
  6545. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6546. else
  6547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6548. for as_dir in $PATH
  6549. do
  6550. IFS=$as_save_IFS
  6551. test -z "$as_dir" && as_dir=.
  6552. for ac_exec_ext in '' $ac_executable_extensions; do
  6553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6554. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6556. break 2
  6557. fi
  6558. done
  6559. done
  6560. IFS=$as_save_IFS
  6561. fi
  6562. fi
  6563. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6564. if test -n "$ac_ct_DLLTOOL"; then
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6566. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6567. else
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6569. $as_echo "no" >&6; }
  6570. fi
  6571. if test "x$ac_ct_DLLTOOL" = x; then
  6572. DLLTOOL="false"
  6573. else
  6574. case $cross_compiling:$ac_tool_warned in
  6575. yes:)
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6578. ac_tool_warned=yes ;;
  6579. esac
  6580. DLLTOOL=$ac_ct_DLLTOOL
  6581. fi
  6582. else
  6583. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6584. fi
  6585. if test -n "$ac_tool_prefix"; then
  6586. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6587. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. if test -n "$OBJDUMP"; then
  6594. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6595. else
  6596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6597. for as_dir in $PATH
  6598. do
  6599. IFS=$as_save_IFS
  6600. test -z "$as_dir" && as_dir=.
  6601. for ac_exec_ext in '' $ac_executable_extensions; do
  6602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6603. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6605. break 2
  6606. fi
  6607. done
  6608. done
  6609. IFS=$as_save_IFS
  6610. fi
  6611. fi
  6612. OBJDUMP=$ac_cv_prog_OBJDUMP
  6613. if test -n "$OBJDUMP"; then
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6615. $as_echo "$OBJDUMP" >&6; }
  6616. else
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6618. $as_echo "no" >&6; }
  6619. fi
  6620. fi
  6621. if test -z "$ac_cv_prog_OBJDUMP"; then
  6622. ac_ct_OBJDUMP=$OBJDUMP
  6623. # Extract the first word of "objdump", so it can be a program name with args.
  6624. set dummy objdump; ac_word=$2
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6626. $as_echo_n "checking for $ac_word... " >&6; }
  6627. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. if test -n "$ac_ct_OBJDUMP"; then
  6631. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6632. else
  6633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6634. for as_dir in $PATH
  6635. do
  6636. IFS=$as_save_IFS
  6637. test -z "$as_dir" && as_dir=.
  6638. for ac_exec_ext in '' $ac_executable_extensions; do
  6639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6640. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6642. break 2
  6643. fi
  6644. done
  6645. done
  6646. IFS=$as_save_IFS
  6647. fi
  6648. fi
  6649. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6650. if test -n "$ac_ct_OBJDUMP"; then
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6652. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6653. else
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6655. $as_echo "no" >&6; }
  6656. fi
  6657. if test "x$ac_ct_OBJDUMP" = x; then
  6658. OBJDUMP="false"
  6659. else
  6660. case $cross_compiling:$ac_tool_warned in
  6661. yes:)
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6664. ac_tool_warned=yes ;;
  6665. esac
  6666. OBJDUMP=$ac_ct_OBJDUMP
  6667. fi
  6668. else
  6669. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6670. fi
  6671. ;;
  6672. esac
  6673. test -z "$AS" && AS=as
  6674. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6675. test -z "$OBJDUMP" && OBJDUMP=objdump
  6676. enable_dlopen=no
  6677. # Check whether --enable-shared was given.
  6678. if test "${enable_shared+set}" = set; then :
  6679. enableval=$enable_shared; p=${PACKAGE-default}
  6680. case $enableval in
  6681. yes) enable_shared=yes ;;
  6682. no) enable_shared=no ;;
  6683. *)
  6684. enable_shared=no
  6685. # Look at the argument we got. We use all the common list separators.
  6686. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6687. for pkg in $enableval; do
  6688. IFS="$lt_save_ifs"
  6689. if test "X$pkg" = "X$p"; then
  6690. enable_shared=yes
  6691. fi
  6692. done
  6693. IFS="$lt_save_ifs"
  6694. ;;
  6695. esac
  6696. else
  6697. enable_shared=yes
  6698. fi
  6699. # Check whether --enable-static was given.
  6700. if test "${enable_static+set}" = set; then :
  6701. enableval=$enable_static; p=${PACKAGE-default}
  6702. case $enableval in
  6703. yes) enable_static=yes ;;
  6704. no) enable_static=no ;;
  6705. *)
  6706. enable_static=no
  6707. # Look at the argument we got. We use all the common list separators.
  6708. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6709. for pkg in $enableval; do
  6710. IFS="$lt_save_ifs"
  6711. if test "X$pkg" = "X$p"; then
  6712. enable_static=yes
  6713. fi
  6714. done
  6715. IFS="$lt_save_ifs"
  6716. ;;
  6717. esac
  6718. else
  6719. enable_static=yes
  6720. fi
  6721. # Check whether --with-pic was given.
  6722. if test "${with_pic+set}" = set; then :
  6723. withval=$with_pic; lt_p=${PACKAGE-default}
  6724. case $withval in
  6725. yes|no) pic_mode=$withval ;;
  6726. *)
  6727. pic_mode=default
  6728. # Look at the argument we got. We use all the common list separators.
  6729. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6730. for lt_pkg in $withval; do
  6731. IFS="$lt_save_ifs"
  6732. if test "X$lt_pkg" = "X$lt_p"; then
  6733. pic_mode=yes
  6734. fi
  6735. done
  6736. IFS="$lt_save_ifs"
  6737. ;;
  6738. esac
  6739. else
  6740. pic_mode=default
  6741. fi
  6742. test -z "$pic_mode" && pic_mode=default
  6743. # Check whether --enable-fast-install was given.
  6744. if test "${enable_fast_install+set}" = set; then :
  6745. enableval=$enable_fast_install; p=${PACKAGE-default}
  6746. case $enableval in
  6747. yes) enable_fast_install=yes ;;
  6748. no) enable_fast_install=no ;;
  6749. *)
  6750. enable_fast_install=no
  6751. # Look at the argument we got. We use all the common list separators.
  6752. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6753. for pkg in $enableval; do
  6754. IFS="$lt_save_ifs"
  6755. if test "X$pkg" = "X$p"; then
  6756. enable_fast_install=yes
  6757. fi
  6758. done
  6759. IFS="$lt_save_ifs"
  6760. ;;
  6761. esac
  6762. else
  6763. enable_fast_install=yes
  6764. fi
  6765. # This can be used to rebuild libtool when needed
  6766. LIBTOOL_DEPS="$ltmain"
  6767. # Always use our own libtool.
  6768. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6769. test -z "$LN_S" && LN_S="ln -s"
  6770. if test -n "${ZSH_VERSION+set}" ; then
  6771. setopt NO_GLOB_SUBST
  6772. fi
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6774. $as_echo_n "checking for objdir... " >&6; }
  6775. if ${lt_cv_objdir+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. rm -f .libs 2>/dev/null
  6779. mkdir .libs 2>/dev/null
  6780. if test -d .libs; then
  6781. lt_cv_objdir=.libs
  6782. else
  6783. # MS-DOS does not allow filenames that begin with a dot.
  6784. lt_cv_objdir=_libs
  6785. fi
  6786. rmdir .libs 2>/dev/null
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6789. $as_echo "$lt_cv_objdir" >&6; }
  6790. objdir=$lt_cv_objdir
  6791. cat >>confdefs.h <<_ACEOF
  6792. #define LT_OBJDIR "$lt_cv_objdir/"
  6793. _ACEOF
  6794. case $host_os in
  6795. aix3*)
  6796. # AIX sometimes has problems with the GCC collect2 program. For some
  6797. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6798. # vanish in a puff of smoke.
  6799. if test "X${COLLECT_NAMES+set}" != Xset; then
  6800. COLLECT_NAMES=
  6801. export COLLECT_NAMES
  6802. fi
  6803. ;;
  6804. esac
  6805. # Global variables:
  6806. ofile=libtool
  6807. can_build_shared=yes
  6808. # All known linkers require a `.a' archive for static linking (except MSVC,
  6809. # which needs '.lib').
  6810. libext=a
  6811. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6812. old_CC="$CC"
  6813. old_CFLAGS="$CFLAGS"
  6814. # Set sane defaults for various variables
  6815. test -z "$CC" && CC=cc
  6816. test -z "$LTCC" && LTCC=$CC
  6817. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6818. test -z "$LD" && LD=ld
  6819. test -z "$ac_objext" && ac_objext=o
  6820. for cc_temp in $compiler""; do
  6821. case $cc_temp in
  6822. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6823. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6824. \-*) ;;
  6825. *) break;;
  6826. esac
  6827. done
  6828. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6829. # Only perform the check for file, if the check method requires it
  6830. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6831. case $deplibs_check_method in
  6832. file_magic*)
  6833. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6835. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6836. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. case $MAGIC_CMD in
  6840. [\\/*] | ?:[\\/]*)
  6841. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6842. ;;
  6843. *)
  6844. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6845. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6846. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6847. for ac_dir in $ac_dummy; do
  6848. IFS="$lt_save_ifs"
  6849. test -z "$ac_dir" && ac_dir=.
  6850. if test -f $ac_dir/${ac_tool_prefix}file; then
  6851. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6852. if test -n "$file_magic_test_file"; then
  6853. case $deplibs_check_method in
  6854. "file_magic "*)
  6855. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6856. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6857. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6858. $EGREP "$file_magic_regex" > /dev/null; then
  6859. :
  6860. else
  6861. cat <<_LT_EOF 1>&2
  6862. *** Warning: the command libtool uses to detect shared libraries,
  6863. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6864. *** The result is that libtool may fail to recognize shared libraries
  6865. *** as such. This will affect the creation of libtool libraries that
  6866. *** depend on shared libraries, but programs linked with such libtool
  6867. *** libraries will work regardless of this problem. Nevertheless, you
  6868. *** may want to report the problem to your system manager and/or to
  6869. *** bug-libtool@gnu.org
  6870. _LT_EOF
  6871. fi ;;
  6872. esac
  6873. fi
  6874. break
  6875. fi
  6876. done
  6877. IFS="$lt_save_ifs"
  6878. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6879. ;;
  6880. esac
  6881. fi
  6882. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6883. if test -n "$MAGIC_CMD"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6885. $as_echo "$MAGIC_CMD" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6891. if test -n "$ac_tool_prefix"; then
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6893. $as_echo_n "checking for file... " >&6; }
  6894. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. case $MAGIC_CMD in
  6898. [\\/*] | ?:[\\/]*)
  6899. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6900. ;;
  6901. *)
  6902. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6903. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6904. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6905. for ac_dir in $ac_dummy; do
  6906. IFS="$lt_save_ifs"
  6907. test -z "$ac_dir" && ac_dir=.
  6908. if test -f $ac_dir/file; then
  6909. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6910. if test -n "$file_magic_test_file"; then
  6911. case $deplibs_check_method in
  6912. "file_magic "*)
  6913. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6914. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6915. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6916. $EGREP "$file_magic_regex" > /dev/null; then
  6917. :
  6918. else
  6919. cat <<_LT_EOF 1>&2
  6920. *** Warning: the command libtool uses to detect shared libraries,
  6921. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6922. *** The result is that libtool may fail to recognize shared libraries
  6923. *** as such. This will affect the creation of libtool libraries that
  6924. *** depend on shared libraries, but programs linked with such libtool
  6925. *** libraries will work regardless of this problem. Nevertheless, you
  6926. *** may want to report the problem to your system manager and/or to
  6927. *** bug-libtool@gnu.org
  6928. _LT_EOF
  6929. fi ;;
  6930. esac
  6931. fi
  6932. break
  6933. fi
  6934. done
  6935. IFS="$lt_save_ifs"
  6936. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6937. ;;
  6938. esac
  6939. fi
  6940. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6941. if test -n "$MAGIC_CMD"; then
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6943. $as_echo "$MAGIC_CMD" >&6; }
  6944. else
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6946. $as_echo "no" >&6; }
  6947. fi
  6948. else
  6949. MAGIC_CMD=:
  6950. fi
  6951. fi
  6952. fi
  6953. ;;
  6954. esac
  6955. # Use C for the default configuration in the libtool script
  6956. lt_save_CC="$CC"
  6957. ac_ext=c
  6958. ac_cpp='$CPP $CPPFLAGS'
  6959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6962. # Source file extension for C test sources.
  6963. ac_ext=c
  6964. # Object file extension for compiled C test sources.
  6965. objext=o
  6966. objext=$objext
  6967. # Code to be used in simple compile tests
  6968. lt_simple_compile_test_code="int some_variable = 0;"
  6969. # Code to be used in simple link tests
  6970. lt_simple_link_test_code='int main(){return(0);}'
  6971. # If no C compiler was specified, use CC.
  6972. LTCC=${LTCC-"$CC"}
  6973. # If no C compiler flags were specified, use CFLAGS.
  6974. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6975. # Allow CC to be a program name with arguments.
  6976. compiler=$CC
  6977. # Save the default compiler, since it gets overwritten when the other
  6978. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6979. compiler_DEFAULT=$CC
  6980. # save warnings/boilerplate of simple test code
  6981. ac_outfile=conftest.$ac_objext
  6982. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6983. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6984. _lt_compiler_boilerplate=`cat conftest.err`
  6985. $RM conftest*
  6986. ac_outfile=conftest.$ac_objext
  6987. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6988. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6989. _lt_linker_boilerplate=`cat conftest.err`
  6990. $RM -r conftest*
  6991. ## CAVEAT EMPTOR:
  6992. ## There is no encapsulation within the following macros, do not change
  6993. ## the running order or otherwise move them around unless you know exactly
  6994. ## what you are doing...
  6995. if test -n "$compiler"; then
  6996. lt_prog_compiler_no_builtin_flag=
  6997. if test "$GCC" = yes; then
  6998. case $cc_basename in
  6999. nvcc*)
  7000. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7001. *)
  7002. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7003. esac
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7005. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7006. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. lt_cv_prog_compiler_rtti_exceptions=no
  7010. ac_outfile=conftest.$ac_objext
  7011. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7012. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7013. # Insert the option either (1) after the last *FLAGS variable, or
  7014. # (2) before a word containing "conftest.", or (3) at the end.
  7015. # Note that $ac_compile itself does not contain backslashes and begins
  7016. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7017. # The option is referenced via a variable to avoid confusing sed.
  7018. lt_compile=`echo "$ac_compile" | $SED \
  7019. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7020. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7021. -e 's:$: $lt_compiler_flag:'`
  7022. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7023. (eval "$lt_compile" 2>conftest.err)
  7024. ac_status=$?
  7025. cat conftest.err >&5
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. if (exit $ac_status) && test -s "$ac_outfile"; then
  7028. # The compiler can only warn and ignore the option if not recognized
  7029. # So say no if there are warnings other than the usual output.
  7030. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7031. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7032. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7033. lt_cv_prog_compiler_rtti_exceptions=yes
  7034. fi
  7035. fi
  7036. $RM conftest*
  7037. fi
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7039. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7040. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7041. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7042. else
  7043. :
  7044. fi
  7045. fi
  7046. lt_prog_compiler_wl=
  7047. lt_prog_compiler_pic=
  7048. lt_prog_compiler_static=
  7049. if test "$GCC" = yes; then
  7050. lt_prog_compiler_wl='-Wl,'
  7051. lt_prog_compiler_static='-static'
  7052. case $host_os in
  7053. aix*)
  7054. # All AIX code is PIC.
  7055. if test "$host_cpu" = ia64; then
  7056. # AIX 5 now supports IA64 processor
  7057. lt_prog_compiler_static='-Bstatic'
  7058. fi
  7059. ;;
  7060. amigaos*)
  7061. case $host_cpu in
  7062. powerpc)
  7063. # see comment about AmigaOS4 .so support
  7064. lt_prog_compiler_pic='-fPIC'
  7065. ;;
  7066. m68k)
  7067. # FIXME: we need at least 68020 code to build shared libraries, but
  7068. # adding the `-m68020' flag to GCC prevents building anything better,
  7069. # like `-m68040'.
  7070. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7071. ;;
  7072. esac
  7073. ;;
  7074. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7075. # PIC is the default for these OSes.
  7076. ;;
  7077. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7078. # This hack is so that the source file can tell whether it is being
  7079. # built for inclusion in a dll (and should export symbols for example).
  7080. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7081. # (--disable-auto-import) libraries
  7082. lt_prog_compiler_pic='-DDLL_EXPORT'
  7083. ;;
  7084. darwin* | rhapsody*)
  7085. # PIC is the default on this platform
  7086. # Common symbols not allowed in MH_DYLIB files
  7087. lt_prog_compiler_pic='-fno-common'
  7088. ;;
  7089. haiku*)
  7090. # PIC is the default for Haiku.
  7091. # The "-static" flag exists, but is broken.
  7092. lt_prog_compiler_static=
  7093. ;;
  7094. hpux*)
  7095. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7096. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7097. # sets the default TLS model and affects inlining.
  7098. case $host_cpu in
  7099. hppa*64*)
  7100. # +Z the default
  7101. ;;
  7102. *)
  7103. lt_prog_compiler_pic='-fPIC'
  7104. ;;
  7105. esac
  7106. ;;
  7107. interix[3-9]*)
  7108. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7109. # Instead, we relocate shared libraries at runtime.
  7110. ;;
  7111. msdosdjgpp*)
  7112. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7113. # on systems that don't support them.
  7114. lt_prog_compiler_can_build_shared=no
  7115. enable_shared=no
  7116. ;;
  7117. *nto* | *qnx*)
  7118. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7119. # it will coredump.
  7120. lt_prog_compiler_pic='-fPIC -shared'
  7121. ;;
  7122. sysv4*MP*)
  7123. if test -d /usr/nec; then
  7124. lt_prog_compiler_pic=-Kconform_pic
  7125. fi
  7126. ;;
  7127. *)
  7128. lt_prog_compiler_pic='-fPIC'
  7129. ;;
  7130. esac
  7131. case $cc_basename in
  7132. nvcc*) # Cuda Compiler Driver 2.2
  7133. lt_prog_compiler_wl='-Xlinker '
  7134. if test -n "$lt_prog_compiler_pic"; then
  7135. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7136. fi
  7137. ;;
  7138. esac
  7139. else
  7140. # PORTME Check for flag to pass linker flags through the system compiler.
  7141. case $host_os in
  7142. aix*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. if test "$host_cpu" = ia64; then
  7145. # AIX 5 now supports IA64 processor
  7146. lt_prog_compiler_static='-Bstatic'
  7147. else
  7148. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7149. fi
  7150. ;;
  7151. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7152. # This hack is so that the source file can tell whether it is being
  7153. # built for inclusion in a dll (and should export symbols for example).
  7154. lt_prog_compiler_pic='-DDLL_EXPORT'
  7155. ;;
  7156. hpux9* | hpux10* | hpux11*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7159. # not for PA HP-UX.
  7160. case $host_cpu in
  7161. hppa*64*|ia64*)
  7162. # +Z the default
  7163. ;;
  7164. *)
  7165. lt_prog_compiler_pic='+Z'
  7166. ;;
  7167. esac
  7168. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7169. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7170. ;;
  7171. irix5* | irix6* | nonstopux*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. # PIC (with -KPIC) is the default.
  7174. lt_prog_compiler_static='-non_shared'
  7175. ;;
  7176. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7177. case $cc_basename in
  7178. # old Intel for x86_64 which still supported -KPIC.
  7179. ecc*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-KPIC'
  7182. lt_prog_compiler_static='-static'
  7183. ;;
  7184. # icc used to be incompatible with GCC.
  7185. # ICC 10 doesn't accept -KPIC any more.
  7186. icc* | ifort*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-fPIC'
  7189. lt_prog_compiler_static='-static'
  7190. ;;
  7191. # Lahey Fortran 8.1.
  7192. lf95*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='--shared'
  7195. lt_prog_compiler_static='--static'
  7196. ;;
  7197. nagfor*)
  7198. # NAG Fortran compiler
  7199. lt_prog_compiler_wl='-Wl,-Wl,,'
  7200. lt_prog_compiler_pic='-PIC'
  7201. lt_prog_compiler_static='-Bstatic'
  7202. ;;
  7203. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7204. # Portland Group compilers (*not* the Pentium gcc compiler,
  7205. # which looks to be a dead project)
  7206. lt_prog_compiler_wl='-Wl,'
  7207. lt_prog_compiler_pic='-fpic'
  7208. lt_prog_compiler_static='-Bstatic'
  7209. ;;
  7210. ccc*)
  7211. lt_prog_compiler_wl='-Wl,'
  7212. # All Alpha code is PIC.
  7213. lt_prog_compiler_static='-non_shared'
  7214. ;;
  7215. xl* | bgxl* | bgf* | mpixl*)
  7216. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7217. lt_prog_compiler_wl='-Wl,'
  7218. lt_prog_compiler_pic='-qpic'
  7219. lt_prog_compiler_static='-qstaticlink'
  7220. ;;
  7221. *)
  7222. case `$CC -V 2>&1 | sed 5q` in
  7223. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7224. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7225. lt_prog_compiler_pic='-KPIC'
  7226. lt_prog_compiler_static='-Bstatic'
  7227. lt_prog_compiler_wl=''
  7228. ;;
  7229. *Sun\ F* | *Sun*Fortran*)
  7230. lt_prog_compiler_pic='-KPIC'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. lt_prog_compiler_wl='-Qoption ld '
  7233. ;;
  7234. *Sun\ C*)
  7235. # Sun C 5.9
  7236. lt_prog_compiler_pic='-KPIC'
  7237. lt_prog_compiler_static='-Bstatic'
  7238. lt_prog_compiler_wl='-Wl,'
  7239. ;;
  7240. *Intel*\ [CF]*Compiler*)
  7241. lt_prog_compiler_wl='-Wl,'
  7242. lt_prog_compiler_pic='-fPIC'
  7243. lt_prog_compiler_static='-static'
  7244. ;;
  7245. *Portland\ Group*)
  7246. lt_prog_compiler_wl='-Wl,'
  7247. lt_prog_compiler_pic='-fpic'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. ;;
  7250. esac
  7251. ;;
  7252. esac
  7253. ;;
  7254. newsos6)
  7255. lt_prog_compiler_pic='-KPIC'
  7256. lt_prog_compiler_static='-Bstatic'
  7257. ;;
  7258. *nto* | *qnx*)
  7259. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7260. # it will coredump.
  7261. lt_prog_compiler_pic='-fPIC -shared'
  7262. ;;
  7263. osf3* | osf4* | osf5*)
  7264. lt_prog_compiler_wl='-Wl,'
  7265. # All OSF/1 code is PIC.
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. rdos*)
  7269. lt_prog_compiler_static='-non_shared'
  7270. ;;
  7271. solaris*)
  7272. lt_prog_compiler_pic='-KPIC'
  7273. lt_prog_compiler_static='-Bstatic'
  7274. case $cc_basename in
  7275. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7276. lt_prog_compiler_wl='-Qoption ld ';;
  7277. *)
  7278. lt_prog_compiler_wl='-Wl,';;
  7279. esac
  7280. ;;
  7281. sunos4*)
  7282. lt_prog_compiler_wl='-Qoption ld '
  7283. lt_prog_compiler_pic='-PIC'
  7284. lt_prog_compiler_static='-Bstatic'
  7285. ;;
  7286. sysv4 | sysv4.2uw2* | sysv4.3*)
  7287. lt_prog_compiler_wl='-Wl,'
  7288. lt_prog_compiler_pic='-KPIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. ;;
  7291. sysv4*MP*)
  7292. if test -d /usr/nec ;then
  7293. lt_prog_compiler_pic='-Kconform_pic'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. fi
  7296. ;;
  7297. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7298. lt_prog_compiler_wl='-Wl,'
  7299. lt_prog_compiler_pic='-KPIC'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. unicos*)
  7303. lt_prog_compiler_wl='-Wl,'
  7304. lt_prog_compiler_can_build_shared=no
  7305. ;;
  7306. uts4*)
  7307. lt_prog_compiler_pic='-pic'
  7308. lt_prog_compiler_static='-Bstatic'
  7309. ;;
  7310. *)
  7311. lt_prog_compiler_can_build_shared=no
  7312. ;;
  7313. esac
  7314. fi
  7315. case $host_os in
  7316. # For platforms which do not support PIC, -DPIC is meaningless:
  7317. *djgpp*)
  7318. lt_prog_compiler_pic=
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7322. ;;
  7323. esac
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7325. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7326. if ${lt_cv_prog_compiler_pic+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7332. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7333. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7334. #
  7335. # Check to make sure the PIC flag actually works.
  7336. #
  7337. if test -n "$lt_prog_compiler_pic"; then
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7339. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7340. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7341. $as_echo_n "(cached) " >&6
  7342. else
  7343. lt_cv_prog_compiler_pic_works=no
  7344. ac_outfile=conftest.$ac_objext
  7345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7346. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7347. # Insert the option either (1) after the last *FLAGS variable, or
  7348. # (2) before a word containing "conftest.", or (3) at the end.
  7349. # Note that $ac_compile itself does not contain backslashes and begins
  7350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7351. # The option is referenced via a variable to avoid confusing sed.
  7352. lt_compile=`echo "$ac_compile" | $SED \
  7353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7355. -e 's:$: $lt_compiler_flag:'`
  7356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7357. (eval "$lt_compile" 2>conftest.err)
  7358. ac_status=$?
  7359. cat conftest.err >&5
  7360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7361. if (exit $ac_status) && test -s "$ac_outfile"; then
  7362. # The compiler can only warn and ignore the option if not recognized
  7363. # So say no if there are warnings other than the usual output.
  7364. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7366. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7367. lt_cv_prog_compiler_pic_works=yes
  7368. fi
  7369. fi
  7370. $RM conftest*
  7371. fi
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7373. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7374. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7375. case $lt_prog_compiler_pic in
  7376. "" | " "*) ;;
  7377. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7378. esac
  7379. else
  7380. lt_prog_compiler_pic=
  7381. lt_prog_compiler_can_build_shared=no
  7382. fi
  7383. fi
  7384. #
  7385. # Check to make sure the static flag actually works.
  7386. #
  7387. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7389. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7390. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7391. $as_echo_n "(cached) " >&6
  7392. else
  7393. lt_cv_prog_compiler_static_works=no
  7394. save_LDFLAGS="$LDFLAGS"
  7395. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7396. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7397. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7398. # The linker can only warn and ignore the option if not recognized
  7399. # So say no if there are warnings
  7400. if test -s conftest.err; then
  7401. # Append any errors to the config.log.
  7402. cat conftest.err 1>&5
  7403. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7404. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7405. if diff conftest.exp conftest.er2 >/dev/null; then
  7406. lt_cv_prog_compiler_static_works=yes
  7407. fi
  7408. else
  7409. lt_cv_prog_compiler_static_works=yes
  7410. fi
  7411. fi
  7412. $RM -r conftest*
  7413. LDFLAGS="$save_LDFLAGS"
  7414. fi
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7416. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7417. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7418. :
  7419. else
  7420. lt_prog_compiler_static=
  7421. fi
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7423. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7424. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. lt_cv_prog_compiler_c_o=no
  7428. $RM -r conftest 2>/dev/null
  7429. mkdir conftest
  7430. cd conftest
  7431. mkdir out
  7432. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7433. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7434. # Insert the option either (1) after the last *FLAGS variable, or
  7435. # (2) before a word containing "conftest.", or (3) at the end.
  7436. # Note that $ac_compile itself does not contain backslashes and begins
  7437. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7438. lt_compile=`echo "$ac_compile" | $SED \
  7439. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7440. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7441. -e 's:$: $lt_compiler_flag:'`
  7442. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7443. (eval "$lt_compile" 2>out/conftest.err)
  7444. ac_status=$?
  7445. cat out/conftest.err >&5
  7446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7448. then
  7449. # The compiler can only warn and ignore the option if not recognized
  7450. # So say no if there are warnings
  7451. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7452. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7453. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7454. lt_cv_prog_compiler_c_o=yes
  7455. fi
  7456. fi
  7457. chmod u+w . 2>&5
  7458. $RM conftest*
  7459. # SGI C++ compiler will create directory out/ii_files/ for
  7460. # template instantiation
  7461. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7462. $RM out/* && rmdir out
  7463. cd ..
  7464. $RM -r conftest
  7465. $RM conftest*
  7466. fi
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7468. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7470. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7471. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7472. $as_echo_n "(cached) " >&6
  7473. else
  7474. lt_cv_prog_compiler_c_o=no
  7475. $RM -r conftest 2>/dev/null
  7476. mkdir conftest
  7477. cd conftest
  7478. mkdir out
  7479. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7480. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7481. # Insert the option either (1) after the last *FLAGS variable, or
  7482. # (2) before a word containing "conftest.", or (3) at the end.
  7483. # Note that $ac_compile itself does not contain backslashes and begins
  7484. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7485. lt_compile=`echo "$ac_compile" | $SED \
  7486. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7487. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7488. -e 's:$: $lt_compiler_flag:'`
  7489. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7490. (eval "$lt_compile" 2>out/conftest.err)
  7491. ac_status=$?
  7492. cat out/conftest.err >&5
  7493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7494. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7495. then
  7496. # The compiler can only warn and ignore the option if not recognized
  7497. # So say no if there are warnings
  7498. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7499. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7500. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7501. lt_cv_prog_compiler_c_o=yes
  7502. fi
  7503. fi
  7504. chmod u+w . 2>&5
  7505. $RM conftest*
  7506. # SGI C++ compiler will create directory out/ii_files/ for
  7507. # template instantiation
  7508. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7509. $RM out/* && rmdir out
  7510. cd ..
  7511. $RM -r conftest
  7512. $RM conftest*
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7515. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7516. hard_links="nottested"
  7517. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7518. # do not overwrite the value of need_locks provided by the user
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7520. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7521. hard_links=yes
  7522. $RM conftest*
  7523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7524. touch conftest.a
  7525. ln conftest.a conftest.b 2>&5 || hard_links=no
  7526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7528. $as_echo "$hard_links" >&6; }
  7529. if test "$hard_links" = no; then
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7531. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7532. need_locks=warn
  7533. fi
  7534. else
  7535. need_locks=no
  7536. fi
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7538. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7539. runpath_var=
  7540. allow_undefined_flag=
  7541. always_export_symbols=no
  7542. archive_cmds=
  7543. archive_expsym_cmds=
  7544. compiler_needs_object=no
  7545. enable_shared_with_static_runtimes=no
  7546. export_dynamic_flag_spec=
  7547. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7548. hardcode_automatic=no
  7549. hardcode_direct=no
  7550. hardcode_direct_absolute=no
  7551. hardcode_libdir_flag_spec=
  7552. hardcode_libdir_separator=
  7553. hardcode_minus_L=no
  7554. hardcode_shlibpath_var=unsupported
  7555. inherit_rpath=no
  7556. link_all_deplibs=unknown
  7557. module_cmds=
  7558. module_expsym_cmds=
  7559. old_archive_from_new_cmds=
  7560. old_archive_from_expsyms_cmds=
  7561. thread_safe_flag_spec=
  7562. whole_archive_flag_spec=
  7563. # include_expsyms should be a list of space-separated symbols to be *always*
  7564. # included in the symbol list
  7565. include_expsyms=
  7566. # exclude_expsyms can be an extended regexp of symbols to exclude
  7567. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7568. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7569. # as well as any symbol that contains `d'.
  7570. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7571. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7572. # platforms (ab)use it in PIC code, but their linkers get confused if
  7573. # the symbol is explicitly referenced. Since portable code cannot
  7574. # rely on this symbol name, it's probably fine to never include it in
  7575. # preloaded symbol tables.
  7576. # Exclude shared library initialization/finalization symbols.
  7577. extract_expsyms_cmds=
  7578. case $host_os in
  7579. cygwin* | mingw* | pw32* | cegcc*)
  7580. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7581. # When not using gcc, we currently assume that we are using
  7582. # Microsoft Visual C++.
  7583. if test "$GCC" != yes; then
  7584. with_gnu_ld=no
  7585. fi
  7586. ;;
  7587. interix*)
  7588. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7589. with_gnu_ld=yes
  7590. ;;
  7591. openbsd*)
  7592. with_gnu_ld=no
  7593. ;;
  7594. esac
  7595. ld_shlibs=yes
  7596. # On some targets, GNU ld is compatible enough with the native linker
  7597. # that we're better off using the native interface for both.
  7598. lt_use_gnu_ld_interface=no
  7599. if test "$with_gnu_ld" = yes; then
  7600. case $host_os in
  7601. aix*)
  7602. # The AIX port of GNU ld has always aspired to compatibility
  7603. # with the native linker. However, as the warning in the GNU ld
  7604. # block says, versions before 2.19.5* couldn't really create working
  7605. # shared libraries, regardless of the interface used.
  7606. case `$LD -v 2>&1` in
  7607. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7608. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7609. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7610. *)
  7611. lt_use_gnu_ld_interface=yes
  7612. ;;
  7613. esac
  7614. ;;
  7615. *)
  7616. lt_use_gnu_ld_interface=yes
  7617. ;;
  7618. esac
  7619. fi
  7620. if test "$lt_use_gnu_ld_interface" = yes; then
  7621. # If archive_cmds runs LD, not CC, wlarc should be empty
  7622. wlarc='${wl}'
  7623. # Set some defaults for GNU ld with shared library support. These
  7624. # are reset later if shared libraries are not supported. Putting them
  7625. # here allows them to be overridden if necessary.
  7626. runpath_var=LD_RUN_PATH
  7627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7628. export_dynamic_flag_spec='${wl}--export-dynamic'
  7629. # ancient GNU ld didn't support --whole-archive et. al.
  7630. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7631. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7632. else
  7633. whole_archive_flag_spec=
  7634. fi
  7635. supports_anon_versioning=no
  7636. case `$LD -v 2>&1` in
  7637. *GNU\ gold*) supports_anon_versioning=yes ;;
  7638. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7639. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7640. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7641. *\ 2.11.*) ;; # other 2.11 versions
  7642. *) supports_anon_versioning=yes ;;
  7643. esac
  7644. # See if GNU ld supports shared libraries.
  7645. case $host_os in
  7646. aix[3-9]*)
  7647. # On AIX/PPC, the GNU linker is very broken
  7648. if test "$host_cpu" != ia64; then
  7649. ld_shlibs=no
  7650. cat <<_LT_EOF 1>&2
  7651. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7652. *** to be unable to reliably create shared libraries on AIX.
  7653. *** Therefore, libtool is disabling shared libraries support. If you
  7654. *** really care for shared libraries, you may want to install binutils
  7655. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7656. *** You will then need to restart the configuration process.
  7657. _LT_EOF
  7658. fi
  7659. ;;
  7660. amigaos*)
  7661. case $host_cpu in
  7662. powerpc)
  7663. # see comment about AmigaOS4 .so support
  7664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. archive_expsym_cmds=''
  7666. ;;
  7667. m68k)
  7668. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7669. hardcode_libdir_flag_spec='-L$libdir'
  7670. hardcode_minus_L=yes
  7671. ;;
  7672. esac
  7673. ;;
  7674. beos*)
  7675. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7676. allow_undefined_flag=unsupported
  7677. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7678. # support --undefined. This deserves some investigation. FIXME
  7679. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7680. else
  7681. ld_shlibs=no
  7682. fi
  7683. ;;
  7684. cygwin* | mingw* | pw32* | cegcc*)
  7685. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7686. # as there is no search path for DLLs.
  7687. hardcode_libdir_flag_spec='-L$libdir'
  7688. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7689. allow_undefined_flag=unsupported
  7690. always_export_symbols=no
  7691. enable_shared_with_static_runtimes=yes
  7692. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7693. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7694. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7696. # If the export-symbols file already is a .def file (1st line
  7697. # is EXPORTS), use it as is; otherwise, prepend...
  7698. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7699. cp $export_symbols $output_objdir/$soname.def;
  7700. else
  7701. echo EXPORTS > $output_objdir/$soname.def;
  7702. cat $export_symbols >> $output_objdir/$soname.def;
  7703. fi~
  7704. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. haiku*)
  7710. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. link_all_deplibs=yes
  7712. ;;
  7713. interix[3-9]*)
  7714. hardcode_direct=no
  7715. hardcode_shlibpath_var=no
  7716. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7717. export_dynamic_flag_spec='${wl}-E'
  7718. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7719. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7720. # default) and relocated if they conflict, which is a slow very memory
  7721. # consuming and fragmenting process. To avoid this, we pick a random,
  7722. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7723. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7724. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7725. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7726. ;;
  7727. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7728. tmp_diet=no
  7729. if test "$host_os" = linux-dietlibc; then
  7730. case $cc_basename in
  7731. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7732. esac
  7733. fi
  7734. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7735. && test "$tmp_diet" = no
  7736. then
  7737. tmp_addflag=' $pic_flag'
  7738. tmp_sharedflag='-shared'
  7739. case $cc_basename,$host_cpu in
  7740. pgcc*) # Portland Group C compiler
  7741. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7742. tmp_addflag=' $pic_flag'
  7743. ;;
  7744. pgf77* | pgf90* | pgf95* | pgfortran*)
  7745. # Portland Group f77 and f90 compilers
  7746. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7747. tmp_addflag=' $pic_flag -Mnomain' ;;
  7748. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7749. tmp_addflag=' -i_dynamic' ;;
  7750. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7751. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7752. ifc* | ifort*) # Intel Fortran compiler
  7753. tmp_addflag=' -nofor_main' ;;
  7754. lf95*) # Lahey Fortran 8.1
  7755. whole_archive_flag_spec=
  7756. tmp_sharedflag='--shared' ;;
  7757. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7758. tmp_sharedflag='-qmkshrobj'
  7759. tmp_addflag= ;;
  7760. nvcc*) # Cuda Compiler Driver 2.2
  7761. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7762. compiler_needs_object=yes
  7763. ;;
  7764. esac
  7765. case `$CC -V 2>&1 | sed 5q` in
  7766. *Sun\ C*) # Sun C 5.9
  7767. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7768. compiler_needs_object=yes
  7769. tmp_sharedflag='-G' ;;
  7770. *Sun\ F*) # Sun Fortran 8.3
  7771. tmp_sharedflag='-G' ;;
  7772. esac
  7773. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7774. if test "x$supports_anon_versioning" = xyes; then
  7775. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7776. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7777. echo "local: *; };" >> $output_objdir/$libname.ver~
  7778. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7779. fi
  7780. case $cc_basename in
  7781. xlf* | bgf* | bgxlf* | mpixlf*)
  7782. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7783. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7784. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7785. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7786. if test "x$supports_anon_versioning" = xyes; then
  7787. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7789. echo "local: *; };" >> $output_objdir/$libname.ver~
  7790. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7791. fi
  7792. ;;
  7793. esac
  7794. else
  7795. ld_shlibs=no
  7796. fi
  7797. ;;
  7798. netbsd*)
  7799. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7800. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7801. wlarc=
  7802. else
  7803. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7804. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7805. fi
  7806. ;;
  7807. solaris*)
  7808. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7809. ld_shlibs=no
  7810. cat <<_LT_EOF 1>&2
  7811. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7812. *** create shared libraries on Solaris systems. Therefore, libtool
  7813. *** is disabling shared libraries support. We urge you to upgrade GNU
  7814. *** binutils to release 2.9.1 or newer. Another option is to modify
  7815. *** your PATH or compiler configuration so that the native linker is
  7816. *** used, and then restart.
  7817. _LT_EOF
  7818. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7821. else
  7822. ld_shlibs=no
  7823. fi
  7824. ;;
  7825. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7826. case `$LD -v 2>&1` in
  7827. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7828. ld_shlibs=no
  7829. cat <<_LT_EOF 1>&2
  7830. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7831. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7832. *** is disabling shared libraries support. We urge you to upgrade GNU
  7833. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7834. *** your PATH or compiler configuration so that the native linker is
  7835. *** used, and then restart.
  7836. _LT_EOF
  7837. ;;
  7838. *)
  7839. # For security reasons, it is highly recommended that you always
  7840. # use absolute paths for naming shared libraries, and exclude the
  7841. # DT_RUNPATH tag from executables and libraries. But doing so
  7842. # requires that you compile everything twice, which is a pain.
  7843. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7844. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7845. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7846. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7847. else
  7848. ld_shlibs=no
  7849. fi
  7850. ;;
  7851. esac
  7852. ;;
  7853. sunos4*)
  7854. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7855. wlarc=
  7856. hardcode_direct=yes
  7857. hardcode_shlibpath_var=no
  7858. ;;
  7859. *)
  7860. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7861. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7862. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7863. else
  7864. ld_shlibs=no
  7865. fi
  7866. ;;
  7867. esac
  7868. if test "$ld_shlibs" = no; then
  7869. runpath_var=
  7870. hardcode_libdir_flag_spec=
  7871. export_dynamic_flag_spec=
  7872. whole_archive_flag_spec=
  7873. fi
  7874. else
  7875. # PORTME fill in a description of your system's linker (not GNU ld)
  7876. case $host_os in
  7877. aix3*)
  7878. allow_undefined_flag=unsupported
  7879. always_export_symbols=yes
  7880. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7881. # Note: this linker hardcodes the directories in LIBPATH if there
  7882. # are no directories specified by -L.
  7883. hardcode_minus_L=yes
  7884. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7885. # Neither direct hardcoding nor static linking is supported with a
  7886. # broken collect2.
  7887. hardcode_direct=unsupported
  7888. fi
  7889. ;;
  7890. aix[4-9]*)
  7891. if test "$host_cpu" = ia64; then
  7892. # On IA64, the linker does run time linking by default, so we don't
  7893. # have to do anything special.
  7894. aix_use_runtimelinking=no
  7895. exp_sym_flag='-Bexport'
  7896. no_entry_flag=""
  7897. else
  7898. # If we're using GNU nm, then we don't want the "-C" option.
  7899. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7900. # Also, AIX nm treats weak defined symbols like other global
  7901. # defined symbols, whereas GNU nm marks them as "W".
  7902. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7903. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7904. else
  7905. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7906. fi
  7907. aix_use_runtimelinking=no
  7908. # Test if we are trying to use run time linking or normal
  7909. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7910. # need to do runtime linking.
  7911. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7912. for ld_flag in $LDFLAGS; do
  7913. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7914. aix_use_runtimelinking=yes
  7915. break
  7916. fi
  7917. done
  7918. ;;
  7919. esac
  7920. exp_sym_flag='-bexport'
  7921. no_entry_flag='-bnoentry'
  7922. fi
  7923. # When large executables or shared objects are built, AIX ld can
  7924. # have problems creating the table of contents. If linking a library
  7925. # or program results in "error TOC overflow" add -mminimal-toc to
  7926. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7927. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7928. archive_cmds=''
  7929. hardcode_direct=yes
  7930. hardcode_direct_absolute=yes
  7931. hardcode_libdir_separator=':'
  7932. link_all_deplibs=yes
  7933. file_list_spec='${wl}-f,'
  7934. if test "$GCC" = yes; then
  7935. case $host_os in aix4.[012]|aix4.[012].*)
  7936. # We only want to do this on AIX 4.2 and lower, the check
  7937. # below for broken collect2 doesn't work under 4.3+
  7938. collect2name=`${CC} -print-prog-name=collect2`
  7939. if test -f "$collect2name" &&
  7940. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7941. then
  7942. # We have reworked collect2
  7943. :
  7944. else
  7945. # We have old collect2
  7946. hardcode_direct=unsupported
  7947. # It fails to find uninstalled libraries when the uninstalled
  7948. # path is not listed in the libpath. Setting hardcode_minus_L
  7949. # to unsupported forces relinking
  7950. hardcode_minus_L=yes
  7951. hardcode_libdir_flag_spec='-L$libdir'
  7952. hardcode_libdir_separator=
  7953. fi
  7954. ;;
  7955. esac
  7956. shared_flag='-shared'
  7957. if test "$aix_use_runtimelinking" = yes; then
  7958. shared_flag="$shared_flag "'${wl}-G'
  7959. fi
  7960. else
  7961. # not using gcc
  7962. if test "$host_cpu" = ia64; then
  7963. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7964. # chokes on -Wl,-G. The following line is correct:
  7965. shared_flag='-G'
  7966. else
  7967. if test "$aix_use_runtimelinking" = yes; then
  7968. shared_flag='${wl}-G'
  7969. else
  7970. shared_flag='${wl}-bM:SRE'
  7971. fi
  7972. fi
  7973. fi
  7974. export_dynamic_flag_spec='${wl}-bexpall'
  7975. # It seems that -bexpall does not export symbols beginning with
  7976. # underscore (_), so it is better to generate a list of symbols to export.
  7977. always_export_symbols=yes
  7978. if test "$aix_use_runtimelinking" = yes; then
  7979. # Warning - without using the other runtime loading flags (-brtl),
  7980. # -berok will link without error, but may produce a broken library.
  7981. allow_undefined_flag='-berok'
  7982. # Determine the default libpath from the value encoded in an
  7983. # empty executable.
  7984. if test "${lt_cv_aix_libpath+set}" = set; then
  7985. aix_libpath=$lt_cv_aix_libpath
  7986. else
  7987. if ${lt_cv_aix_libpath_+:} false; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7991. /* end confdefs.h. */
  7992. int
  7993. main ()
  7994. {
  7995. ;
  7996. return 0;
  7997. }
  7998. _ACEOF
  7999. if ac_fn_c_try_link "$LINENO"; then :
  8000. lt_aix_libpath_sed='
  8001. /Import File Strings/,/^$/ {
  8002. /^0/ {
  8003. s/^0 *\([^ ]*\) *$/\1/
  8004. p
  8005. }
  8006. }'
  8007. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. # Check for a 64-bit object if we didn't find anything.
  8009. if test -z "$lt_cv_aix_libpath_"; then
  8010. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8011. fi
  8012. fi
  8013. rm -f core conftest.err conftest.$ac_objext \
  8014. conftest$ac_exeext conftest.$ac_ext
  8015. if test -z "$lt_cv_aix_libpath_"; then
  8016. lt_cv_aix_libpath_="/usr/lib:/lib"
  8017. fi
  8018. fi
  8019. aix_libpath=$lt_cv_aix_libpath_
  8020. fi
  8021. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8022. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8023. else
  8024. if test "$host_cpu" = ia64; then
  8025. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8026. allow_undefined_flag="-z nodefs"
  8027. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8028. else
  8029. # Determine the default libpath from the value encoded in an
  8030. # empty executable.
  8031. if test "${lt_cv_aix_libpath+set}" = set; then
  8032. aix_libpath=$lt_cv_aix_libpath
  8033. else
  8034. if ${lt_cv_aix_libpath_+:} false; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8038. /* end confdefs.h. */
  8039. int
  8040. main ()
  8041. {
  8042. ;
  8043. return 0;
  8044. }
  8045. _ACEOF
  8046. if ac_fn_c_try_link "$LINENO"; then :
  8047. lt_aix_libpath_sed='
  8048. /Import File Strings/,/^$/ {
  8049. /^0/ {
  8050. s/^0 *\([^ ]*\) *$/\1/
  8051. p
  8052. }
  8053. }'
  8054. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. # Check for a 64-bit object if we didn't find anything.
  8056. if test -z "$lt_cv_aix_libpath_"; then
  8057. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8058. fi
  8059. fi
  8060. rm -f core conftest.err conftest.$ac_objext \
  8061. conftest$ac_exeext conftest.$ac_ext
  8062. if test -z "$lt_cv_aix_libpath_"; then
  8063. lt_cv_aix_libpath_="/usr/lib:/lib"
  8064. fi
  8065. fi
  8066. aix_libpath=$lt_cv_aix_libpath_
  8067. fi
  8068. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8069. # Warning - without using the other run time loading flags,
  8070. # -berok will link without error, but may produce a broken library.
  8071. no_undefined_flag=' ${wl}-bernotok'
  8072. allow_undefined_flag=' ${wl}-berok'
  8073. if test "$with_gnu_ld" = yes; then
  8074. # We only use this code for GNU lds that support --whole-archive.
  8075. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8076. else
  8077. # Exported symbols can be pulled into shared objects from archives
  8078. whole_archive_flag_spec='$convenience'
  8079. fi
  8080. archive_cmds_need_lc=yes
  8081. # This is similar to how AIX traditionally builds its shared libraries.
  8082. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8083. fi
  8084. fi
  8085. ;;
  8086. amigaos*)
  8087. case $host_cpu in
  8088. powerpc)
  8089. # see comment about AmigaOS4 .so support
  8090. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8091. archive_expsym_cmds=''
  8092. ;;
  8093. m68k)
  8094. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8095. hardcode_libdir_flag_spec='-L$libdir'
  8096. hardcode_minus_L=yes
  8097. ;;
  8098. esac
  8099. ;;
  8100. bsdi[45]*)
  8101. export_dynamic_flag_spec=-rdynamic
  8102. ;;
  8103. cygwin* | mingw* | pw32* | cegcc*)
  8104. # When not using gcc, we currently assume that we are using
  8105. # Microsoft Visual C++.
  8106. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8107. # no search path for DLLs.
  8108. case $cc_basename in
  8109. cl*)
  8110. # Native MSVC
  8111. hardcode_libdir_flag_spec=' '
  8112. allow_undefined_flag=unsupported
  8113. always_export_symbols=yes
  8114. file_list_spec='@'
  8115. # Tell ltmain to make .lib files, not .a files.
  8116. libext=lib
  8117. # Tell ltmain to make .dll files, not .so files.
  8118. shrext_cmds=".dll"
  8119. # FIXME: Setting linknames here is a bad hack.
  8120. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8121. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8122. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8123. else
  8124. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8125. fi~
  8126. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8127. linknames='
  8128. # The linker will not automatically build a static lib if we build a DLL.
  8129. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8130. enable_shared_with_static_runtimes=yes
  8131. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8132. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8133. # Don't use ranlib
  8134. old_postinstall_cmds='chmod 644 $oldlib'
  8135. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8136. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8137. case $lt_outputfile in
  8138. *.exe|*.EXE) ;;
  8139. *)
  8140. lt_outputfile="$lt_outputfile.exe"
  8141. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8142. ;;
  8143. esac~
  8144. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8145. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8146. $RM "$lt_outputfile.manifest";
  8147. fi'
  8148. ;;
  8149. *)
  8150. # Assume MSVC wrapper
  8151. hardcode_libdir_flag_spec=' '
  8152. allow_undefined_flag=unsupported
  8153. # Tell ltmain to make .lib files, not .a files.
  8154. libext=lib
  8155. # Tell ltmain to make .dll files, not .so files.
  8156. shrext_cmds=".dll"
  8157. # FIXME: Setting linknames here is a bad hack.
  8158. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8159. # The linker will automatically build a .lib file if we build a DLL.
  8160. old_archive_from_new_cmds='true'
  8161. # FIXME: Should let the user specify the lib program.
  8162. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8163. enable_shared_with_static_runtimes=yes
  8164. ;;
  8165. esac
  8166. ;;
  8167. darwin* | rhapsody*)
  8168. archive_cmds_need_lc=no
  8169. hardcode_direct=no
  8170. hardcode_automatic=yes
  8171. hardcode_shlibpath_var=unsupported
  8172. if test "$lt_cv_ld_force_load" = "yes"; then
  8173. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8174. else
  8175. whole_archive_flag_spec=''
  8176. fi
  8177. link_all_deplibs=yes
  8178. allow_undefined_flag="$_lt_dar_allow_undefined"
  8179. case $cc_basename in
  8180. ifort*) _lt_dar_can_shared=yes ;;
  8181. *) _lt_dar_can_shared=$GCC ;;
  8182. esac
  8183. if test "$_lt_dar_can_shared" = "yes"; then
  8184. output_verbose_link_cmd=func_echo_all
  8185. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8186. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8187. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8188. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8189. else
  8190. ld_shlibs=no
  8191. fi
  8192. ;;
  8193. dgux*)
  8194. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8195. hardcode_libdir_flag_spec='-L$libdir'
  8196. hardcode_shlibpath_var=no
  8197. ;;
  8198. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8199. # support. Future versions do this automatically, but an explicit c++rt0.o
  8200. # does not break anything, and helps significantly (at the cost of a little
  8201. # extra space).
  8202. freebsd2.2*)
  8203. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8204. hardcode_libdir_flag_spec='-R$libdir'
  8205. hardcode_direct=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8209. freebsd2.*)
  8210. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8211. hardcode_direct=yes
  8212. hardcode_minus_L=yes
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8216. freebsd* | dragonfly*)
  8217. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8218. hardcode_libdir_flag_spec='-R$libdir'
  8219. hardcode_direct=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. hpux9*)
  8223. if test "$GCC" = yes; then
  8224. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8225. else
  8226. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8227. fi
  8228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8229. hardcode_libdir_separator=:
  8230. hardcode_direct=yes
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. export_dynamic_flag_spec='${wl}-E'
  8235. ;;
  8236. hpux10*)
  8237. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8238. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8239. else
  8240. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8241. fi
  8242. if test "$with_gnu_ld" = no; then
  8243. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8244. hardcode_libdir_separator=:
  8245. hardcode_direct=yes
  8246. hardcode_direct_absolute=yes
  8247. export_dynamic_flag_spec='${wl}-E'
  8248. # hardcode_minus_L: Not really in the search PATH,
  8249. # but as the default location of the library.
  8250. hardcode_minus_L=yes
  8251. fi
  8252. ;;
  8253. hpux11*)
  8254. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8255. case $host_cpu in
  8256. hppa*64*)
  8257. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. ia64*)
  8260. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. *)
  8263. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8264. ;;
  8265. esac
  8266. else
  8267. case $host_cpu in
  8268. hppa*64*)
  8269. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. ia64*)
  8272. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8273. ;;
  8274. *)
  8275. # Older versions of the 11.00 compiler do not understand -b yet
  8276. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8278. $as_echo_n "checking if $CC understands -b... " >&6; }
  8279. if ${lt_cv_prog_compiler__b+:} false; then :
  8280. $as_echo_n "(cached) " >&6
  8281. else
  8282. lt_cv_prog_compiler__b=no
  8283. save_LDFLAGS="$LDFLAGS"
  8284. LDFLAGS="$LDFLAGS -b"
  8285. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8286. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8287. # The linker can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings
  8289. if test -s conftest.err; then
  8290. # Append any errors to the config.log.
  8291. cat conftest.err 1>&5
  8292. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8293. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8294. if diff conftest.exp conftest.er2 >/dev/null; then
  8295. lt_cv_prog_compiler__b=yes
  8296. fi
  8297. else
  8298. lt_cv_prog_compiler__b=yes
  8299. fi
  8300. fi
  8301. $RM -r conftest*
  8302. LDFLAGS="$save_LDFLAGS"
  8303. fi
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8305. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8306. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8307. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8308. else
  8309. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8310. fi
  8311. ;;
  8312. esac
  8313. fi
  8314. if test "$with_gnu_ld" = no; then
  8315. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8316. hardcode_libdir_separator=:
  8317. case $host_cpu in
  8318. hppa*64*|ia64*)
  8319. hardcode_direct=no
  8320. hardcode_shlibpath_var=no
  8321. ;;
  8322. *)
  8323. hardcode_direct=yes
  8324. hardcode_direct_absolute=yes
  8325. export_dynamic_flag_spec='${wl}-E'
  8326. # hardcode_minus_L: Not really in the search PATH,
  8327. # but as the default location of the library.
  8328. hardcode_minus_L=yes
  8329. ;;
  8330. esac
  8331. fi
  8332. ;;
  8333. irix5* | irix6* | nonstopux*)
  8334. if test "$GCC" = yes; then
  8335. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8336. # Try to use the -exported_symbol ld option, if it does not
  8337. # work, assume that -exports_file does not work either and
  8338. # implicitly export all symbols.
  8339. # This should be the same for all languages, so no per-tag cache variable.
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8341. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8342. if ${lt_cv_irix_exported_symbol+:} false; then :
  8343. $as_echo_n "(cached) " >&6
  8344. else
  8345. save_LDFLAGS="$LDFLAGS"
  8346. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8348. /* end confdefs.h. */
  8349. int foo (void) { return 0; }
  8350. _ACEOF
  8351. if ac_fn_c_try_link "$LINENO"; then :
  8352. lt_cv_irix_exported_symbol=yes
  8353. else
  8354. lt_cv_irix_exported_symbol=no
  8355. fi
  8356. rm -f core conftest.err conftest.$ac_objext \
  8357. conftest$ac_exeext conftest.$ac_ext
  8358. LDFLAGS="$save_LDFLAGS"
  8359. fi
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8361. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8362. if test "$lt_cv_irix_exported_symbol" = yes; then
  8363. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8364. fi
  8365. else
  8366. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8367. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8368. fi
  8369. archive_cmds_need_lc='no'
  8370. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8371. hardcode_libdir_separator=:
  8372. inherit_rpath=yes
  8373. link_all_deplibs=yes
  8374. ;;
  8375. netbsd*)
  8376. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8377. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8378. else
  8379. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8380. fi
  8381. hardcode_libdir_flag_spec='-R$libdir'
  8382. hardcode_direct=yes
  8383. hardcode_shlibpath_var=no
  8384. ;;
  8385. newsos6)
  8386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8387. hardcode_direct=yes
  8388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8389. hardcode_libdir_separator=:
  8390. hardcode_shlibpath_var=no
  8391. ;;
  8392. *nto* | *qnx*)
  8393. ;;
  8394. openbsd*)
  8395. if test -f /usr/libexec/ld.so; then
  8396. hardcode_direct=yes
  8397. hardcode_shlibpath_var=no
  8398. hardcode_direct_absolute=yes
  8399. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8400. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8401. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8402. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8403. export_dynamic_flag_spec='${wl}-E'
  8404. else
  8405. case $host_os in
  8406. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8407. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_libdir_flag_spec='-R$libdir'
  8409. ;;
  8410. *)
  8411. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8412. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8413. ;;
  8414. esac
  8415. fi
  8416. else
  8417. ld_shlibs=no
  8418. fi
  8419. ;;
  8420. os2*)
  8421. hardcode_libdir_flag_spec='-L$libdir'
  8422. hardcode_minus_L=yes
  8423. allow_undefined_flag=unsupported
  8424. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8425. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8426. ;;
  8427. osf3*)
  8428. if test "$GCC" = yes; then
  8429. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8430. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8431. else
  8432. allow_undefined_flag=' -expect_unresolved \*'
  8433. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8434. fi
  8435. archive_cmds_need_lc='no'
  8436. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8437. hardcode_libdir_separator=:
  8438. ;;
  8439. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8440. if test "$GCC" = yes; then
  8441. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8442. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8443. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8444. else
  8445. allow_undefined_flag=' -expect_unresolved \*'
  8446. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8447. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8448. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8449. # Both c and cxx compiler support -rpath directly
  8450. hardcode_libdir_flag_spec='-rpath $libdir'
  8451. fi
  8452. archive_cmds_need_lc='no'
  8453. hardcode_libdir_separator=:
  8454. ;;
  8455. solaris*)
  8456. no_undefined_flag=' -z defs'
  8457. if test "$GCC" = yes; then
  8458. wlarc='${wl}'
  8459. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8461. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8462. else
  8463. case `$CC -V 2>&1` in
  8464. *"Compilers 5.0"*)
  8465. wlarc=''
  8466. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8467. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8468. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8469. ;;
  8470. *)
  8471. wlarc='${wl}'
  8472. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8474. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8475. ;;
  8476. esac
  8477. fi
  8478. hardcode_libdir_flag_spec='-R$libdir'
  8479. hardcode_shlibpath_var=no
  8480. case $host_os in
  8481. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8482. *)
  8483. # The compiler driver will combine and reorder linker options,
  8484. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8485. # but is careful enough not to reorder.
  8486. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8487. if test "$GCC" = yes; then
  8488. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8489. else
  8490. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8491. fi
  8492. ;;
  8493. esac
  8494. link_all_deplibs=yes
  8495. ;;
  8496. sunos4*)
  8497. if test "x$host_vendor" = xsequent; then
  8498. # Use $CC to link under sequent, because it throws in some extra .o
  8499. # files that make .init and .fini sections work.
  8500. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8501. else
  8502. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8503. fi
  8504. hardcode_libdir_flag_spec='-L$libdir'
  8505. hardcode_direct=yes
  8506. hardcode_minus_L=yes
  8507. hardcode_shlibpath_var=no
  8508. ;;
  8509. sysv4)
  8510. case $host_vendor in
  8511. sni)
  8512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. hardcode_direct=yes # is this really true???
  8514. ;;
  8515. siemens)
  8516. ## LD is ld it makes a PLAMLIB
  8517. ## CC just makes a GrossModule.
  8518. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8519. reload_cmds='$CC -r -o $output$reload_objs'
  8520. hardcode_direct=no
  8521. ;;
  8522. motorola)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8525. ;;
  8526. esac
  8527. runpath_var='LD_RUN_PATH'
  8528. hardcode_shlibpath_var=no
  8529. ;;
  8530. sysv4.3*)
  8531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8532. hardcode_shlibpath_var=no
  8533. export_dynamic_flag_spec='-Bexport'
  8534. ;;
  8535. sysv4*MP*)
  8536. if test -d /usr/nec; then
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_shlibpath_var=no
  8539. runpath_var=LD_RUN_PATH
  8540. hardcode_runpath_var=yes
  8541. ld_shlibs=yes
  8542. fi
  8543. ;;
  8544. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8545. no_undefined_flag='${wl}-z,text'
  8546. archive_cmds_need_lc=no
  8547. hardcode_shlibpath_var=no
  8548. runpath_var='LD_RUN_PATH'
  8549. if test "$GCC" = yes; then
  8550. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. else
  8553. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. fi
  8556. ;;
  8557. sysv5* | sco3.2v5* | sco5v6*)
  8558. # Note: We can NOT use -z defs as we might desire, because we do not
  8559. # link with -lc, and that would cause any symbols used from libc to
  8560. # always be unresolved, which means just about no library would
  8561. # ever link correctly. If we're not using GNU ld we use -z text
  8562. # though, which does catch some bad symbols but isn't as heavy-handed
  8563. # as -z defs.
  8564. no_undefined_flag='${wl}-z,text'
  8565. allow_undefined_flag='${wl}-z,nodefs'
  8566. archive_cmds_need_lc=no
  8567. hardcode_shlibpath_var=no
  8568. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8569. hardcode_libdir_separator=':'
  8570. link_all_deplibs=yes
  8571. export_dynamic_flag_spec='${wl}-Bexport'
  8572. runpath_var='LD_RUN_PATH'
  8573. if test "$GCC" = yes; then
  8574. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. else
  8577. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. fi
  8580. ;;
  8581. uts4*)
  8582. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_shlibpath_var=no
  8585. ;;
  8586. *)
  8587. ld_shlibs=no
  8588. ;;
  8589. esac
  8590. if test x$host_vendor = xsni; then
  8591. case $host in
  8592. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8593. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8594. ;;
  8595. esac
  8596. fi
  8597. fi
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8599. $as_echo "$ld_shlibs" >&6; }
  8600. test "$ld_shlibs" = no && can_build_shared=no
  8601. with_gnu_ld=$with_gnu_ld
  8602. #
  8603. # Do we need to explicitly link libc?
  8604. #
  8605. case "x$archive_cmds_need_lc" in
  8606. x|xyes)
  8607. # Assume -lc should be added
  8608. archive_cmds_need_lc=yes
  8609. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8610. case $archive_cmds in
  8611. *'~'*)
  8612. # FIXME: we may have to deal with multi-command sequences.
  8613. ;;
  8614. '$CC '*)
  8615. # Test whether the compiler implicitly links with -lc since on some
  8616. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8617. # to ld, don't add -lc before -lgcc.
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8619. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8620. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. $RM conftest*
  8624. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8626. (eval $ac_compile) 2>&5
  8627. ac_status=$?
  8628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8629. test $ac_status = 0; } 2>conftest.err; then
  8630. soname=conftest
  8631. lib=conftest
  8632. libobjs=conftest.$ac_objext
  8633. deplibs=
  8634. wl=$lt_prog_compiler_wl
  8635. pic_flag=$lt_prog_compiler_pic
  8636. compiler_flags=-v
  8637. linker_flags=-v
  8638. verstring=
  8639. output_objdir=.
  8640. libname=conftest
  8641. lt_save_allow_undefined_flag=$allow_undefined_flag
  8642. allow_undefined_flag=
  8643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8644. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8645. ac_status=$?
  8646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8647. test $ac_status = 0; }
  8648. then
  8649. lt_cv_archive_cmds_need_lc=no
  8650. else
  8651. lt_cv_archive_cmds_need_lc=yes
  8652. fi
  8653. allow_undefined_flag=$lt_save_allow_undefined_flag
  8654. else
  8655. cat conftest.err 1>&5
  8656. fi
  8657. $RM conftest*
  8658. fi
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8660. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8661. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8662. ;;
  8663. esac
  8664. fi
  8665. ;;
  8666. esac
  8667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8668. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8669. if test "$GCC" = yes; then
  8670. case $host_os in
  8671. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8672. *) lt_awk_arg="/^libraries:/" ;;
  8673. esac
  8674. case $host_os in
  8675. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8676. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8677. esac
  8678. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8679. case $lt_search_path_spec in
  8680. *\;*)
  8681. # if the path contains ";" then we assume it to be the separator
  8682. # otherwise default to the standard path separator (i.e. ":") - it is
  8683. # assumed that no part of a normal pathname contains ";" but that should
  8684. # okay in the real world where ";" in dirpaths is itself problematic.
  8685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8686. ;;
  8687. *)
  8688. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8689. ;;
  8690. esac
  8691. # Ok, now we have the path, separated by spaces, we can step through it
  8692. # and add multilib dir if necessary...
  8693. lt_tmp_lt_search_path_spec=
  8694. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8695. # ...but if some path already ends with the multilib dir we assume
  8696. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8697. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8698. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8699. lt_multi_os_dir=
  8700. ;;
  8701. esac
  8702. for lt_sys_path in $lt_search_path_spec; do
  8703. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8704. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8705. elif test -n "$lt_multi_os_dir"; then
  8706. test -d "$lt_sys_path" && \
  8707. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8708. fi
  8709. done
  8710. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8711. BEGIN {RS=" "; FS="/|\n";} {
  8712. lt_foo="";
  8713. lt_count=0;
  8714. for (lt_i = NF; lt_i > 0; lt_i--) {
  8715. if ($lt_i != "" && $lt_i != ".") {
  8716. if ($lt_i == "..") {
  8717. lt_count++;
  8718. } else {
  8719. if (lt_count == 0) {
  8720. lt_foo="/" $lt_i lt_foo;
  8721. } else {
  8722. lt_count--;
  8723. }
  8724. }
  8725. }
  8726. }
  8727. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8728. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8729. }'`
  8730. # AWK program above erroneously prepends '/' to C:/dos/paths
  8731. # for these hosts.
  8732. case $host_os in
  8733. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8734. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8735. esac
  8736. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8737. else
  8738. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8739. fi
  8740. library_names_spec=
  8741. libname_spec='lib$name'
  8742. soname_spec=
  8743. shrext_cmds=".so"
  8744. postinstall_cmds=
  8745. postuninstall_cmds=
  8746. finish_cmds=
  8747. finish_eval=
  8748. shlibpath_var=
  8749. shlibpath_overrides_runpath=unknown
  8750. version_type=none
  8751. dynamic_linker="$host_os ld.so"
  8752. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8753. need_lib_prefix=unknown
  8754. hardcode_into_libs=no
  8755. # when you set need_version to no, make sure it does not cause -set_version
  8756. # flags to be left without arguments
  8757. need_version=unknown
  8758. case $host_os in
  8759. aix3*)
  8760. version_type=linux # correct to gnu/linux during the next big refactor
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8762. shlibpath_var=LIBPATH
  8763. # AIX 3 has no versioning support, so we append a major version to the name.
  8764. soname_spec='${libname}${release}${shared_ext}$major'
  8765. ;;
  8766. aix[4-9]*)
  8767. version_type=linux # correct to gnu/linux during the next big refactor
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. hardcode_into_libs=yes
  8771. if test "$host_cpu" = ia64; then
  8772. # AIX 5 supports IA64
  8773. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8774. shlibpath_var=LD_LIBRARY_PATH
  8775. else
  8776. # With GCC up to 2.95.x, collect2 would create an import file
  8777. # for dependence libraries. The import file would start with
  8778. # the line `#! .'. This would cause the generated library to
  8779. # depend on `.', always an invalid library. This was fixed in
  8780. # development snapshots of GCC prior to 3.0.
  8781. case $host_os in
  8782. aix4 | aix4.[01] | aix4.[01].*)
  8783. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8784. echo ' yes '
  8785. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8786. :
  8787. else
  8788. can_build_shared=no
  8789. fi
  8790. ;;
  8791. esac
  8792. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8793. # soname into executable. Probably we can add versioning support to
  8794. # collect2, so additional links can be useful in future.
  8795. if test "$aix_use_runtimelinking" = yes; then
  8796. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8797. # instead of lib<name>.a to let people know that these are not
  8798. # typical AIX shared libraries.
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. else
  8801. # We preserve .a as extension for shared libraries through AIX4.2
  8802. # and later when we are not doing run time linking.
  8803. library_names_spec='${libname}${release}.a $libname.a'
  8804. soname_spec='${libname}${release}${shared_ext}$major'
  8805. fi
  8806. shlibpath_var=LIBPATH
  8807. fi
  8808. ;;
  8809. amigaos*)
  8810. case $host_cpu in
  8811. powerpc)
  8812. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8813. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8815. ;;
  8816. m68k)
  8817. library_names_spec='$libname.ixlibrary $libname.a'
  8818. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8819. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8820. ;;
  8821. esac
  8822. ;;
  8823. beos*)
  8824. library_names_spec='${libname}${shared_ext}'
  8825. dynamic_linker="$host_os ld.so"
  8826. shlibpath_var=LIBRARY_PATH
  8827. ;;
  8828. bsdi[45]*)
  8829. version_type=linux # correct to gnu/linux during the next big refactor
  8830. need_version=no
  8831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8832. soname_spec='${libname}${release}${shared_ext}$major'
  8833. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8836. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8837. # the default ld.so.conf also contains /usr/contrib/lib and
  8838. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8839. # libtool to hard-code these into programs
  8840. ;;
  8841. cygwin* | mingw* | pw32* | cegcc*)
  8842. version_type=windows
  8843. shrext_cmds=".dll"
  8844. need_version=no
  8845. need_lib_prefix=no
  8846. case $GCC,$cc_basename in
  8847. yes,*)
  8848. # gcc
  8849. library_names_spec='$libname.dll.a'
  8850. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8851. postinstall_cmds='base_file=`basename \${file}`~
  8852. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8853. dldir=$destdir/`dirname \$dlpath`~
  8854. test -d \$dldir || mkdir -p \$dldir~
  8855. $install_prog $dir/$dlname \$dldir/$dlname~
  8856. chmod a+x \$dldir/$dlname~
  8857. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8858. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8859. fi'
  8860. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8861. dlpath=$dir/\$dldll~
  8862. $RM \$dlpath'
  8863. shlibpath_overrides_runpath=yes
  8864. case $host_os in
  8865. cygwin*)
  8866. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8867. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8868. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8869. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8870. ;;
  8871. mingw* | cegcc*)
  8872. # MinGW DLLs use traditional 'lib' prefix
  8873. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8874. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8875. ;;
  8876. pw32*)
  8877. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8878. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8879. ;;
  8880. esac
  8881. dynamic_linker='Win32 ld.exe'
  8882. ;;
  8883. *,cl*)
  8884. # Native MSVC
  8885. libname_spec='$name'
  8886. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8887. library_names_spec='${libname}.dll.lib'
  8888. case $build_os in
  8889. mingw*)
  8890. sys_lib_search_path_spec=
  8891. lt_save_ifs=$IFS
  8892. IFS=';'
  8893. for lt_path in $LIB
  8894. do
  8895. IFS=$lt_save_ifs
  8896. # Let DOS variable expansion print the short 8.3 style file name.
  8897. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8898. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8899. done
  8900. IFS=$lt_save_ifs
  8901. # Convert to MSYS style.
  8902. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8903. ;;
  8904. cygwin*)
  8905. # Convert to unix form, then to dos form, then back to unix form
  8906. # but this time dos style (no spaces!) so that the unix form looks
  8907. # like /cygdrive/c/PROGRA~1:/cygdr...
  8908. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8909. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8910. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8911. ;;
  8912. *)
  8913. sys_lib_search_path_spec="$LIB"
  8914. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8915. # It is most probably a Windows format PATH.
  8916. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8917. else
  8918. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8919. fi
  8920. # FIXME: find the short name or the path components, as spaces are
  8921. # common. (e.g. "Program Files" -> "PROGRA~1")
  8922. ;;
  8923. esac
  8924. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8925. postinstall_cmds='base_file=`basename \${file}`~
  8926. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8927. dldir=$destdir/`dirname \$dlpath`~
  8928. test -d \$dldir || mkdir -p \$dldir~
  8929. $install_prog $dir/$dlname \$dldir/$dlname'
  8930. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8931. dlpath=$dir/\$dldll~
  8932. $RM \$dlpath'
  8933. shlibpath_overrides_runpath=yes
  8934. dynamic_linker='Win32 link.exe'
  8935. ;;
  8936. *)
  8937. # Assume MSVC wrapper
  8938. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8939. dynamic_linker='Win32 ld.exe'
  8940. ;;
  8941. esac
  8942. # FIXME: first we should search . and the directory the executable is in
  8943. shlibpath_var=PATH
  8944. ;;
  8945. darwin* | rhapsody*)
  8946. dynamic_linker="$host_os dyld"
  8947. version_type=darwin
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8951. soname_spec='${libname}${release}${major}$shared_ext'
  8952. shlibpath_overrides_runpath=yes
  8953. shlibpath_var=DYLD_LIBRARY_PATH
  8954. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8955. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8957. ;;
  8958. dgux*)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. ;;
  8966. freebsd* | dragonfly*)
  8967. # DragonFly does not have aout. When/if they implement a new
  8968. # versioning mechanism, adjust this.
  8969. if test -x /usr/bin/objformat; then
  8970. objformat=`/usr/bin/objformat`
  8971. else
  8972. case $host_os in
  8973. freebsd[23].*) objformat=aout ;;
  8974. *) objformat=elf ;;
  8975. esac
  8976. fi
  8977. version_type=freebsd-$objformat
  8978. case $version_type in
  8979. freebsd-elf*)
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8981. need_version=no
  8982. need_lib_prefix=no
  8983. ;;
  8984. freebsd-*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8986. need_version=yes
  8987. ;;
  8988. esac
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. case $host_os in
  8991. freebsd2.*)
  8992. shlibpath_overrides_runpath=yes
  8993. ;;
  8994. freebsd3.[01]* | freebsdelf3.[01]*)
  8995. shlibpath_overrides_runpath=yes
  8996. hardcode_into_libs=yes
  8997. ;;
  8998. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8999. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9000. shlibpath_overrides_runpath=no
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. *) # from 4.6 on, and DragonFly
  9004. shlibpath_overrides_runpath=yes
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. esac
  9008. ;;
  9009. gnu*)
  9010. version_type=linux # correct to gnu/linux during the next big refactor
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. shlibpath_var=LD_LIBRARY_PATH
  9016. shlibpath_overrides_runpath=no
  9017. hardcode_into_libs=yes
  9018. ;;
  9019. haiku*)
  9020. version_type=linux # correct to gnu/linux during the next big refactor
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. dynamic_linker="$host_os runtime_loader"
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9025. soname_spec='${libname}${release}${shared_ext}$major'
  9026. shlibpath_var=LIBRARY_PATH
  9027. shlibpath_overrides_runpath=yes
  9028. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9029. hardcode_into_libs=yes
  9030. ;;
  9031. hpux9* | hpux10* | hpux11*)
  9032. # Give a soname corresponding to the major version so that dld.sl refuses to
  9033. # link against other versions.
  9034. version_type=sunos
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. case $host_cpu in
  9038. ia64*)
  9039. shrext_cmds='.so'
  9040. hardcode_into_libs=yes
  9041. dynamic_linker="$host_os dld.so"
  9042. shlibpath_var=LD_LIBRARY_PATH
  9043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9045. soname_spec='${libname}${release}${shared_ext}$major'
  9046. if test "X$HPUX_IA64_MODE" = X32; then
  9047. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9048. else
  9049. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9050. fi
  9051. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9052. ;;
  9053. hppa*64*)
  9054. shrext_cmds='.sl'
  9055. hardcode_into_libs=yes
  9056. dynamic_linker="$host_os dld.sl"
  9057. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9060. soname_spec='${libname}${release}${shared_ext}$major'
  9061. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9063. ;;
  9064. *)
  9065. shrext_cmds='.sl'
  9066. dynamic_linker="$host_os dld.sl"
  9067. shlibpath_var=SHLIB_PATH
  9068. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9070. soname_spec='${libname}${release}${shared_ext}$major'
  9071. ;;
  9072. esac
  9073. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9074. postinstall_cmds='chmod 555 $lib'
  9075. # or fails outright, so override atomically:
  9076. install_override_mode=555
  9077. ;;
  9078. interix[3-9]*)
  9079. version_type=linux # correct to gnu/linux during the next big refactor
  9080. need_lib_prefix=no
  9081. need_version=no
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. shlibpath_overrides_runpath=no
  9087. hardcode_into_libs=yes
  9088. ;;
  9089. irix5* | irix6* | nonstopux*)
  9090. case $host_os in
  9091. nonstopux*) version_type=nonstopux ;;
  9092. *)
  9093. if test "$lt_cv_prog_gnu_ld" = yes; then
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. else
  9096. version_type=irix
  9097. fi ;;
  9098. esac
  9099. need_lib_prefix=no
  9100. need_version=no
  9101. soname_spec='${libname}${release}${shared_ext}$major'
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9103. case $host_os in
  9104. irix5* | nonstopux*)
  9105. libsuff= shlibsuff=
  9106. ;;
  9107. *)
  9108. case $LD in # libtool.m4 will add one of these switches to LD
  9109. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9110. libsuff= shlibsuff= libmagic=32-bit;;
  9111. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9112. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9113. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9114. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9115. *) libsuff= shlibsuff= libmagic=never-match;;
  9116. esac
  9117. ;;
  9118. esac
  9119. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9120. shlibpath_overrides_runpath=no
  9121. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9122. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9123. hardcode_into_libs=yes
  9124. ;;
  9125. # No shared lib support for Linux oldld, aout, or coff.
  9126. linux*oldld* | linux*aout* | linux*coff*)
  9127. dynamic_linker=no
  9128. ;;
  9129. # This must be glibc/ELF.
  9130. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9131. version_type=linux # correct to gnu/linux during the next big refactor
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. shlibpath_overrides_runpath=no
  9139. # Some binutils ld are patched to set DT_RUNPATH
  9140. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9141. $as_echo_n "(cached) " >&6
  9142. else
  9143. lt_cv_shlibpath_overrides_runpath=no
  9144. save_LDFLAGS=$LDFLAGS
  9145. save_libdir=$libdir
  9146. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9147. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9149. /* end confdefs.h. */
  9150. int
  9151. main ()
  9152. {
  9153. ;
  9154. return 0;
  9155. }
  9156. _ACEOF
  9157. if ac_fn_c_try_link "$LINENO"; then :
  9158. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9159. lt_cv_shlibpath_overrides_runpath=yes
  9160. fi
  9161. fi
  9162. rm -f core conftest.err conftest.$ac_objext \
  9163. conftest$ac_exeext conftest.$ac_ext
  9164. LDFLAGS=$save_LDFLAGS
  9165. libdir=$save_libdir
  9166. fi
  9167. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9168. # This implies no fast_install, which is unacceptable.
  9169. # Some rework will be needed to allow for fast_install
  9170. # before this can be enabled.
  9171. hardcode_into_libs=yes
  9172. # Append ld.so.conf contents to the search path
  9173. if test -f /etc/ld.so.conf; then
  9174. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9175. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9176. fi
  9177. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9178. # powerpc, because MkLinux only supported shared libraries with the
  9179. # GNU dynamic linker. Since this was broken with cross compilers,
  9180. # most powerpc-linux boxes support dynamic linking these days and
  9181. # people can always --disable-shared, the test was removed, and we
  9182. # assume the GNU/Linux dynamic linker is in use.
  9183. dynamic_linker='GNU/Linux ld.so'
  9184. ;;
  9185. netbsd*)
  9186. version_type=sunos
  9187. need_lib_prefix=no
  9188. need_version=no
  9189. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9191. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9192. dynamic_linker='NetBSD (a.out) ld.so'
  9193. else
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. dynamic_linker='NetBSD ld.elf_so'
  9197. fi
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. shlibpath_overrides_runpath=yes
  9200. hardcode_into_libs=yes
  9201. ;;
  9202. newsos6)
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. shlibpath_overrides_runpath=yes
  9207. ;;
  9208. *nto* | *qnx*)
  9209. version_type=qnx
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. soname_spec='${libname}${release}${shared_ext}$major'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=no
  9216. hardcode_into_libs=yes
  9217. dynamic_linker='ldqnx.so'
  9218. ;;
  9219. openbsd*)
  9220. version_type=sunos
  9221. sys_lib_dlsearch_path_spec="/usr/lib"
  9222. need_lib_prefix=no
  9223. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9224. case $host_os in
  9225. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9226. *) need_version=no ;;
  9227. esac
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9229. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9232. case $host_os in
  9233. openbsd2.[89] | openbsd2.[89].*)
  9234. shlibpath_overrides_runpath=no
  9235. ;;
  9236. *)
  9237. shlibpath_overrides_runpath=yes
  9238. ;;
  9239. esac
  9240. else
  9241. shlibpath_overrides_runpath=yes
  9242. fi
  9243. ;;
  9244. os2*)
  9245. libname_spec='$name'
  9246. shrext_cmds=".dll"
  9247. need_lib_prefix=no
  9248. library_names_spec='$libname${shared_ext} $libname.a'
  9249. dynamic_linker='OS/2 ld.exe'
  9250. shlibpath_var=LIBPATH
  9251. ;;
  9252. osf3* | osf4* | osf5*)
  9253. version_type=osf
  9254. need_lib_prefix=no
  9255. need_version=no
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9258. shlibpath_var=LD_LIBRARY_PATH
  9259. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9260. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9261. ;;
  9262. rdos*)
  9263. dynamic_linker=no
  9264. ;;
  9265. solaris*)
  9266. version_type=linux # correct to gnu/linux during the next big refactor
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. shlibpath_overrides_runpath=yes
  9273. hardcode_into_libs=yes
  9274. # ldd complains unless libraries are executable
  9275. postinstall_cmds='chmod +x $lib'
  9276. ;;
  9277. sunos4*)
  9278. version_type=sunos
  9279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9280. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=yes
  9283. if test "$with_gnu_ld" = yes; then
  9284. need_lib_prefix=no
  9285. fi
  9286. need_version=yes
  9287. ;;
  9288. sysv4 | sysv4.3*)
  9289. version_type=linux # correct to gnu/linux during the next big refactor
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. shlibpath_var=LD_LIBRARY_PATH
  9293. case $host_vendor in
  9294. sni)
  9295. shlibpath_overrides_runpath=no
  9296. need_lib_prefix=no
  9297. runpath_var=LD_RUN_PATH
  9298. ;;
  9299. siemens)
  9300. need_lib_prefix=no
  9301. ;;
  9302. motorola)
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. shlibpath_overrides_runpath=no
  9306. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9307. ;;
  9308. esac
  9309. ;;
  9310. sysv4*MP*)
  9311. if test -d /usr/nec ;then
  9312. version_type=linux # correct to gnu/linux during the next big refactor
  9313. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9314. soname_spec='$libname${shared_ext}.$major'
  9315. shlibpath_var=LD_LIBRARY_PATH
  9316. fi
  9317. ;;
  9318. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9319. version_type=freebsd-elf
  9320. need_lib_prefix=no
  9321. need_version=no
  9322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9323. soname_spec='${libname}${release}${shared_ext}$major'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. shlibpath_overrides_runpath=yes
  9326. hardcode_into_libs=yes
  9327. if test "$with_gnu_ld" = yes; then
  9328. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9329. else
  9330. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9331. case $host_os in
  9332. sco3.2v5*)
  9333. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9334. ;;
  9335. esac
  9336. fi
  9337. sys_lib_dlsearch_path_spec='/usr/lib'
  9338. ;;
  9339. tpf*)
  9340. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9341. version_type=linux # correct to gnu/linux during the next big refactor
  9342. need_lib_prefix=no
  9343. need_version=no
  9344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. shlibpath_overrides_runpath=no
  9347. hardcode_into_libs=yes
  9348. ;;
  9349. uts4*)
  9350. version_type=linux # correct to gnu/linux during the next big refactor
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9352. soname_spec='${libname}${release}${shared_ext}$major'
  9353. shlibpath_var=LD_LIBRARY_PATH
  9354. ;;
  9355. *)
  9356. dynamic_linker=no
  9357. ;;
  9358. esac
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9360. $as_echo "$dynamic_linker" >&6; }
  9361. test "$dynamic_linker" = no && can_build_shared=no
  9362. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9363. if test "$GCC" = yes; then
  9364. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9365. fi
  9366. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9367. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9368. fi
  9369. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9370. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9373. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9374. hardcode_action=
  9375. if test -n "$hardcode_libdir_flag_spec" ||
  9376. test -n "$runpath_var" ||
  9377. test "X$hardcode_automatic" = "Xyes" ; then
  9378. # We can hardcode non-existent directories.
  9379. if test "$hardcode_direct" != no &&
  9380. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9381. # have to relink, otherwise we might link with an installed library
  9382. # when we should be linking with a yet-to-be-installed one
  9383. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9384. test "$hardcode_minus_L" != no; then
  9385. # Linking always hardcodes the temporary library directory.
  9386. hardcode_action=relink
  9387. else
  9388. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9389. hardcode_action=immediate
  9390. fi
  9391. else
  9392. # We cannot hardcode anything, or else we can only hardcode existing
  9393. # directories.
  9394. hardcode_action=unsupported
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9397. $as_echo "$hardcode_action" >&6; }
  9398. if test "$hardcode_action" = relink ||
  9399. test "$inherit_rpath" = yes; then
  9400. # Fast installation is not supported
  9401. enable_fast_install=no
  9402. elif test "$shlibpath_overrides_runpath" = yes ||
  9403. test "$enable_shared" = no; then
  9404. # Fast installation is not necessary
  9405. enable_fast_install=needless
  9406. fi
  9407. if test "x$enable_dlopen" != xyes; then
  9408. enable_dlopen=unknown
  9409. enable_dlopen_self=unknown
  9410. enable_dlopen_self_static=unknown
  9411. else
  9412. lt_cv_dlopen=no
  9413. lt_cv_dlopen_libs=
  9414. case $host_os in
  9415. beos*)
  9416. lt_cv_dlopen="load_add_on"
  9417. lt_cv_dlopen_libs=
  9418. lt_cv_dlopen_self=yes
  9419. ;;
  9420. mingw* | pw32* | cegcc*)
  9421. lt_cv_dlopen="LoadLibrary"
  9422. lt_cv_dlopen_libs=
  9423. ;;
  9424. cygwin*)
  9425. lt_cv_dlopen="dlopen"
  9426. lt_cv_dlopen_libs=
  9427. ;;
  9428. darwin*)
  9429. # if libdl is installed we need to link against it
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9431. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9432. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9433. $as_echo_n "(cached) " >&6
  9434. else
  9435. ac_check_lib_save_LIBS=$LIBS
  9436. LIBS="-ldl $LIBS"
  9437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9438. /* end confdefs.h. */
  9439. /* Override any GCC internal prototype to avoid an error.
  9440. Use char because int might match the return type of a GCC
  9441. builtin and then its argument prototype would still apply. */
  9442. #ifdef __cplusplus
  9443. extern "C"
  9444. #endif
  9445. char dlopen ();
  9446. int
  9447. main ()
  9448. {
  9449. return dlopen ();
  9450. ;
  9451. return 0;
  9452. }
  9453. _ACEOF
  9454. if ac_fn_c_try_link "$LINENO"; then :
  9455. ac_cv_lib_dl_dlopen=yes
  9456. else
  9457. ac_cv_lib_dl_dlopen=no
  9458. fi
  9459. rm -f core conftest.err conftest.$ac_objext \
  9460. conftest$ac_exeext conftest.$ac_ext
  9461. LIBS=$ac_check_lib_save_LIBS
  9462. fi
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9464. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9465. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9466. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9467. else
  9468. lt_cv_dlopen="dyld"
  9469. lt_cv_dlopen_libs=
  9470. lt_cv_dlopen_self=yes
  9471. fi
  9472. ;;
  9473. *)
  9474. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9475. if test "x$ac_cv_func_shl_load" = xyes; then :
  9476. lt_cv_dlopen="shl_load"
  9477. else
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9479. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9480. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9481. $as_echo_n "(cached) " >&6
  9482. else
  9483. ac_check_lib_save_LIBS=$LIBS
  9484. LIBS="-ldld $LIBS"
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. /* Override any GCC internal prototype to avoid an error.
  9488. Use char because int might match the return type of a GCC
  9489. builtin and then its argument prototype would still apply. */
  9490. #ifdef __cplusplus
  9491. extern "C"
  9492. #endif
  9493. char shl_load ();
  9494. int
  9495. main ()
  9496. {
  9497. return shl_load ();
  9498. ;
  9499. return 0;
  9500. }
  9501. _ACEOF
  9502. if ac_fn_c_try_link "$LINENO"; then :
  9503. ac_cv_lib_dld_shl_load=yes
  9504. else
  9505. ac_cv_lib_dld_shl_load=no
  9506. fi
  9507. rm -f core conftest.err conftest.$ac_objext \
  9508. conftest$ac_exeext conftest.$ac_ext
  9509. LIBS=$ac_check_lib_save_LIBS
  9510. fi
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9512. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9513. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9514. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9515. else
  9516. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9517. if test "x$ac_cv_func_dlopen" = xyes; then :
  9518. lt_cv_dlopen="dlopen"
  9519. else
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9521. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9522. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9523. $as_echo_n "(cached) " >&6
  9524. else
  9525. ac_check_lib_save_LIBS=$LIBS
  9526. LIBS="-ldl $LIBS"
  9527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9528. /* end confdefs.h. */
  9529. /* Override any GCC internal prototype to avoid an error.
  9530. Use char because int might match the return type of a GCC
  9531. builtin and then its argument prototype would still apply. */
  9532. #ifdef __cplusplus
  9533. extern "C"
  9534. #endif
  9535. char dlopen ();
  9536. int
  9537. main ()
  9538. {
  9539. return dlopen ();
  9540. ;
  9541. return 0;
  9542. }
  9543. _ACEOF
  9544. if ac_fn_c_try_link "$LINENO"; then :
  9545. ac_cv_lib_dl_dlopen=yes
  9546. else
  9547. ac_cv_lib_dl_dlopen=no
  9548. fi
  9549. rm -f core conftest.err conftest.$ac_objext \
  9550. conftest$ac_exeext conftest.$ac_ext
  9551. LIBS=$ac_check_lib_save_LIBS
  9552. fi
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9554. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9555. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9556. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9557. else
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9559. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9560. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9561. $as_echo_n "(cached) " >&6
  9562. else
  9563. ac_check_lib_save_LIBS=$LIBS
  9564. LIBS="-lsvld $LIBS"
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. /* Override any GCC internal prototype to avoid an error.
  9568. Use char because int might match the return type of a GCC
  9569. builtin and then its argument prototype would still apply. */
  9570. #ifdef __cplusplus
  9571. extern "C"
  9572. #endif
  9573. char dlopen ();
  9574. int
  9575. main ()
  9576. {
  9577. return dlopen ();
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. ac_cv_lib_svld_dlopen=yes
  9584. else
  9585. ac_cv_lib_svld_dlopen=no
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LIBS=$ac_check_lib_save_LIBS
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9592. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9593. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9594. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9595. else
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9597. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9598. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9599. $as_echo_n "(cached) " >&6
  9600. else
  9601. ac_check_lib_save_LIBS=$LIBS
  9602. LIBS="-ldld $LIBS"
  9603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9604. /* end confdefs.h. */
  9605. /* Override any GCC internal prototype to avoid an error.
  9606. Use char because int might match the return type of a GCC
  9607. builtin and then its argument prototype would still apply. */
  9608. #ifdef __cplusplus
  9609. extern "C"
  9610. #endif
  9611. char dld_link ();
  9612. int
  9613. main ()
  9614. {
  9615. return dld_link ();
  9616. ;
  9617. return 0;
  9618. }
  9619. _ACEOF
  9620. if ac_fn_c_try_link "$LINENO"; then :
  9621. ac_cv_lib_dld_dld_link=yes
  9622. else
  9623. ac_cv_lib_dld_dld_link=no
  9624. fi
  9625. rm -f core conftest.err conftest.$ac_objext \
  9626. conftest$ac_exeext conftest.$ac_ext
  9627. LIBS=$ac_check_lib_save_LIBS
  9628. fi
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9630. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9631. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9632. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. fi
  9639. ;;
  9640. esac
  9641. if test "x$lt_cv_dlopen" != xno; then
  9642. enable_dlopen=yes
  9643. else
  9644. enable_dlopen=no
  9645. fi
  9646. case $lt_cv_dlopen in
  9647. dlopen)
  9648. save_CPPFLAGS="$CPPFLAGS"
  9649. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9650. save_LDFLAGS="$LDFLAGS"
  9651. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9652. save_LIBS="$LIBS"
  9653. LIBS="$lt_cv_dlopen_libs $LIBS"
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9655. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9656. if ${lt_cv_dlopen_self+:} false; then :
  9657. $as_echo_n "(cached) " >&6
  9658. else
  9659. if test "$cross_compiling" = yes; then :
  9660. lt_cv_dlopen_self=cross
  9661. else
  9662. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9663. lt_status=$lt_dlunknown
  9664. cat > conftest.$ac_ext <<_LT_EOF
  9665. #line $LINENO "configure"
  9666. #include "confdefs.h"
  9667. #if HAVE_DLFCN_H
  9668. #include <dlfcn.h>
  9669. #endif
  9670. #include <stdio.h>
  9671. #ifdef RTLD_GLOBAL
  9672. # define LT_DLGLOBAL RTLD_GLOBAL
  9673. #else
  9674. # ifdef DL_GLOBAL
  9675. # define LT_DLGLOBAL DL_GLOBAL
  9676. # else
  9677. # define LT_DLGLOBAL 0
  9678. # endif
  9679. #endif
  9680. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9681. find out it does not work in some platform. */
  9682. #ifndef LT_DLLAZY_OR_NOW
  9683. # ifdef RTLD_LAZY
  9684. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9685. # else
  9686. # ifdef DL_LAZY
  9687. # define LT_DLLAZY_OR_NOW DL_LAZY
  9688. # else
  9689. # ifdef RTLD_NOW
  9690. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9691. # else
  9692. # ifdef DL_NOW
  9693. # define LT_DLLAZY_OR_NOW DL_NOW
  9694. # else
  9695. # define LT_DLLAZY_OR_NOW 0
  9696. # endif
  9697. # endif
  9698. # endif
  9699. # endif
  9700. #endif
  9701. /* When -fvisbility=hidden is used, assume the code has been annotated
  9702. correspondingly for the symbols needed. */
  9703. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9704. int fnord () __attribute__((visibility("default")));
  9705. #endif
  9706. int fnord () { return 42; }
  9707. int main ()
  9708. {
  9709. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9710. int status = $lt_dlunknown;
  9711. if (self)
  9712. {
  9713. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9714. else
  9715. {
  9716. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9717. else puts (dlerror ());
  9718. }
  9719. /* dlclose (self); */
  9720. }
  9721. else
  9722. puts (dlerror ());
  9723. return status;
  9724. }
  9725. _LT_EOF
  9726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9727. (eval $ac_link) 2>&5
  9728. ac_status=$?
  9729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9730. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9731. (./conftest; exit; ) >&5 2>/dev/null
  9732. lt_status=$?
  9733. case x$lt_status in
  9734. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9735. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9736. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9737. esac
  9738. else :
  9739. # compilation failed
  9740. lt_cv_dlopen_self=no
  9741. fi
  9742. fi
  9743. rm -fr conftest*
  9744. fi
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9746. $as_echo "$lt_cv_dlopen_self" >&6; }
  9747. if test "x$lt_cv_dlopen_self" = xyes; then
  9748. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9750. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9751. if ${lt_cv_dlopen_self_static+:} false; then :
  9752. $as_echo_n "(cached) " >&6
  9753. else
  9754. if test "$cross_compiling" = yes; then :
  9755. lt_cv_dlopen_self_static=cross
  9756. else
  9757. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9758. lt_status=$lt_dlunknown
  9759. cat > conftest.$ac_ext <<_LT_EOF
  9760. #line $LINENO "configure"
  9761. #include "confdefs.h"
  9762. #if HAVE_DLFCN_H
  9763. #include <dlfcn.h>
  9764. #endif
  9765. #include <stdio.h>
  9766. #ifdef RTLD_GLOBAL
  9767. # define LT_DLGLOBAL RTLD_GLOBAL
  9768. #else
  9769. # ifdef DL_GLOBAL
  9770. # define LT_DLGLOBAL DL_GLOBAL
  9771. # else
  9772. # define LT_DLGLOBAL 0
  9773. # endif
  9774. #endif
  9775. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9776. find out it does not work in some platform. */
  9777. #ifndef LT_DLLAZY_OR_NOW
  9778. # ifdef RTLD_LAZY
  9779. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9780. # else
  9781. # ifdef DL_LAZY
  9782. # define LT_DLLAZY_OR_NOW DL_LAZY
  9783. # else
  9784. # ifdef RTLD_NOW
  9785. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9786. # else
  9787. # ifdef DL_NOW
  9788. # define LT_DLLAZY_OR_NOW DL_NOW
  9789. # else
  9790. # define LT_DLLAZY_OR_NOW 0
  9791. # endif
  9792. # endif
  9793. # endif
  9794. # endif
  9795. #endif
  9796. /* When -fvisbility=hidden is used, assume the code has been annotated
  9797. correspondingly for the symbols needed. */
  9798. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9799. int fnord () __attribute__((visibility("default")));
  9800. #endif
  9801. int fnord () { return 42; }
  9802. int main ()
  9803. {
  9804. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9805. int status = $lt_dlunknown;
  9806. if (self)
  9807. {
  9808. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9809. else
  9810. {
  9811. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9812. else puts (dlerror ());
  9813. }
  9814. /* dlclose (self); */
  9815. }
  9816. else
  9817. puts (dlerror ());
  9818. return status;
  9819. }
  9820. _LT_EOF
  9821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9822. (eval $ac_link) 2>&5
  9823. ac_status=$?
  9824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9825. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9826. (./conftest; exit; ) >&5 2>/dev/null
  9827. lt_status=$?
  9828. case x$lt_status in
  9829. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9830. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9831. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9832. esac
  9833. else :
  9834. # compilation failed
  9835. lt_cv_dlopen_self_static=no
  9836. fi
  9837. fi
  9838. rm -fr conftest*
  9839. fi
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9841. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9842. fi
  9843. CPPFLAGS="$save_CPPFLAGS"
  9844. LDFLAGS="$save_LDFLAGS"
  9845. LIBS="$save_LIBS"
  9846. ;;
  9847. esac
  9848. case $lt_cv_dlopen_self in
  9849. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9850. *) enable_dlopen_self=unknown ;;
  9851. esac
  9852. case $lt_cv_dlopen_self_static in
  9853. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9854. *) enable_dlopen_self_static=unknown ;;
  9855. esac
  9856. fi
  9857. striplib=
  9858. old_striplib=
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9860. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9861. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9862. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9863. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9865. $as_echo "yes" >&6; }
  9866. else
  9867. # FIXME - insert some real tests, host_os isn't really good enough
  9868. case $host_os in
  9869. darwin*)
  9870. if test -n "$STRIP" ; then
  9871. striplib="$STRIP -x"
  9872. old_striplib="$STRIP -S"
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9874. $as_echo "yes" >&6; }
  9875. else
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. $as_echo "no" >&6; }
  9878. fi
  9879. ;;
  9880. *)
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9882. $as_echo "no" >&6; }
  9883. ;;
  9884. esac
  9885. fi
  9886. # Report which library types will actually be built
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9888. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9890. $as_echo "$can_build_shared" >&6; }
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9892. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9893. test "$can_build_shared" = "no" && enable_shared=no
  9894. # On AIX, shared libraries and static libraries use the same namespace, and
  9895. # are all built from PIC.
  9896. case $host_os in
  9897. aix3*)
  9898. test "$enable_shared" = yes && enable_static=no
  9899. if test -n "$RANLIB"; then
  9900. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9901. postinstall_cmds='$RANLIB $lib'
  9902. fi
  9903. ;;
  9904. aix[4-9]*)
  9905. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9906. test "$enable_shared" = yes && enable_static=no
  9907. fi
  9908. ;;
  9909. esac
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9911. $as_echo "$enable_shared" >&6; }
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9913. $as_echo_n "checking whether to build static libraries... " >&6; }
  9914. # Make sure either enable_shared or enable_static is yes.
  9915. test "$enable_shared" = yes || enable_static=yes
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9917. $as_echo "$enable_static" >&6; }
  9918. fi
  9919. ac_ext=c
  9920. ac_cpp='$CPP $CPPFLAGS'
  9921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9924. CC="$lt_save_CC"
  9925. ac_config_commands="$ac_config_commands libtool"
  9926. # Only expand once:
  9927. if test -n "$ac_tool_prefix"; then
  9928. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9929. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9931. $as_echo_n "checking for $ac_word... " >&6; }
  9932. if ${ac_cv_prog_RC+:} false; then :
  9933. $as_echo_n "(cached) " >&6
  9934. else
  9935. if test -n "$RC"; then
  9936. ac_cv_prog_RC="$RC" # Let the user override the test.
  9937. else
  9938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9939. for as_dir in $PATH
  9940. do
  9941. IFS=$as_save_IFS
  9942. test -z "$as_dir" && as_dir=.
  9943. for ac_exec_ext in '' $ac_executable_extensions; do
  9944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9945. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9947. break 2
  9948. fi
  9949. done
  9950. done
  9951. IFS=$as_save_IFS
  9952. fi
  9953. fi
  9954. RC=$ac_cv_prog_RC
  9955. if test -n "$RC"; then
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9957. $as_echo "$RC" >&6; }
  9958. else
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9960. $as_echo "no" >&6; }
  9961. fi
  9962. fi
  9963. if test -z "$ac_cv_prog_RC"; then
  9964. ac_ct_RC=$RC
  9965. # Extract the first word of "windres", so it can be a program name with args.
  9966. set dummy windres; ac_word=$2
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9968. $as_echo_n "checking for $ac_word... " >&6; }
  9969. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9970. $as_echo_n "(cached) " >&6
  9971. else
  9972. if test -n "$ac_ct_RC"; then
  9973. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9974. else
  9975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9976. for as_dir in $PATH
  9977. do
  9978. IFS=$as_save_IFS
  9979. test -z "$as_dir" && as_dir=.
  9980. for ac_exec_ext in '' $ac_executable_extensions; do
  9981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9982. ac_cv_prog_ac_ct_RC="windres"
  9983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9984. break 2
  9985. fi
  9986. done
  9987. done
  9988. IFS=$as_save_IFS
  9989. fi
  9990. fi
  9991. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9992. if test -n "$ac_ct_RC"; then
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9994. $as_echo "$ac_ct_RC" >&6; }
  9995. else
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9997. $as_echo "no" >&6; }
  9998. fi
  9999. if test "x$ac_ct_RC" = x; then
  10000. RC=""
  10001. else
  10002. case $cross_compiling:$ac_tool_warned in
  10003. yes:)
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10006. ac_tool_warned=yes ;;
  10007. esac
  10008. RC=$ac_ct_RC
  10009. fi
  10010. else
  10011. RC="$ac_cv_prog_RC"
  10012. fi
  10013. # Source file extension for RC test sources.
  10014. ac_ext=rc
  10015. # Object file extension for compiled RC test sources.
  10016. objext=o
  10017. objext_RC=$objext
  10018. # Code to be used in simple compile tests
  10019. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10020. # Code to be used in simple link tests
  10021. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10022. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10023. # If no C compiler was specified, use CC.
  10024. LTCC=${LTCC-"$CC"}
  10025. # If no C compiler flags were specified, use CFLAGS.
  10026. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10027. # Allow CC to be a program name with arguments.
  10028. compiler=$CC
  10029. # save warnings/boilerplate of simple test code
  10030. ac_outfile=conftest.$ac_objext
  10031. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10032. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10033. _lt_compiler_boilerplate=`cat conftest.err`
  10034. $RM conftest*
  10035. ac_outfile=conftest.$ac_objext
  10036. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10037. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10038. _lt_linker_boilerplate=`cat conftest.err`
  10039. $RM -r conftest*
  10040. # Allow CC to be a program name with arguments.
  10041. lt_save_CC="$CC"
  10042. lt_save_CFLAGS=$CFLAGS
  10043. lt_save_GCC=$GCC
  10044. GCC=
  10045. CC=${RC-"windres"}
  10046. CFLAGS=
  10047. compiler=$CC
  10048. compiler_RC=$CC
  10049. for cc_temp in $compiler""; do
  10050. case $cc_temp in
  10051. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10052. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10053. \-*) ;;
  10054. *) break;;
  10055. esac
  10056. done
  10057. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10058. lt_cv_prog_compiler_c_o_RC=yes
  10059. if test -n "$compiler"; then
  10060. :
  10061. fi
  10062. GCC=$lt_save_GCC
  10063. ac_ext=c
  10064. ac_cpp='$CPP $CPPFLAGS'
  10065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10068. CC=$lt_save_CC
  10069. CFLAGS=$lt_save_CFLAGS
  10070. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10071. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10072. LT_REVISION=$SDL_INTERFACE_AGE
  10073. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10074. ac_ext=c
  10075. ac_cpp='$CPP $CPPFLAGS'
  10076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10079. if test -n "$ac_tool_prefix"; then
  10080. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10081. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10083. $as_echo_n "checking for $ac_word... " >&6; }
  10084. if ${ac_cv_prog_CC+:} false; then :
  10085. $as_echo_n "(cached) " >&6
  10086. else
  10087. if test -n "$CC"; then
  10088. ac_cv_prog_CC="$CC" # Let the user override the test.
  10089. else
  10090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10091. for as_dir in $PATH
  10092. do
  10093. IFS=$as_save_IFS
  10094. test -z "$as_dir" && as_dir=.
  10095. for ac_exec_ext in '' $ac_executable_extensions; do
  10096. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10097. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10099. break 2
  10100. fi
  10101. done
  10102. done
  10103. IFS=$as_save_IFS
  10104. fi
  10105. fi
  10106. CC=$ac_cv_prog_CC
  10107. if test -n "$CC"; then
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10109. $as_echo "$CC" >&6; }
  10110. else
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10112. $as_echo "no" >&6; }
  10113. fi
  10114. fi
  10115. if test -z "$ac_cv_prog_CC"; then
  10116. ac_ct_CC=$CC
  10117. # Extract the first word of "gcc", so it can be a program name with args.
  10118. set dummy gcc; ac_word=$2
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10120. $as_echo_n "checking for $ac_word... " >&6; }
  10121. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. if test -n "$ac_ct_CC"; then
  10125. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10126. else
  10127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10128. for as_dir in $PATH
  10129. do
  10130. IFS=$as_save_IFS
  10131. test -z "$as_dir" && as_dir=.
  10132. for ac_exec_ext in '' $ac_executable_extensions; do
  10133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10134. ac_cv_prog_ac_ct_CC="gcc"
  10135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10136. break 2
  10137. fi
  10138. done
  10139. done
  10140. IFS=$as_save_IFS
  10141. fi
  10142. fi
  10143. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10144. if test -n "$ac_ct_CC"; then
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10146. $as_echo "$ac_ct_CC" >&6; }
  10147. else
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10149. $as_echo "no" >&6; }
  10150. fi
  10151. if test "x$ac_ct_CC" = x; then
  10152. CC=""
  10153. else
  10154. case $cross_compiling:$ac_tool_warned in
  10155. yes:)
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10158. ac_tool_warned=yes ;;
  10159. esac
  10160. CC=$ac_ct_CC
  10161. fi
  10162. else
  10163. CC="$ac_cv_prog_CC"
  10164. fi
  10165. if test -z "$CC"; then
  10166. if test -n "$ac_tool_prefix"; then
  10167. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10168. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10170. $as_echo_n "checking for $ac_word... " >&6; }
  10171. if ${ac_cv_prog_CC+:} false; then :
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. if test -n "$CC"; then
  10175. ac_cv_prog_CC="$CC" # Let the user override the test.
  10176. else
  10177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10178. for as_dir in $PATH
  10179. do
  10180. IFS=$as_save_IFS
  10181. test -z "$as_dir" && as_dir=.
  10182. for ac_exec_ext in '' $ac_executable_extensions; do
  10183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10184. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10186. break 2
  10187. fi
  10188. done
  10189. done
  10190. IFS=$as_save_IFS
  10191. fi
  10192. fi
  10193. CC=$ac_cv_prog_CC
  10194. if test -n "$CC"; then
  10195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10196. $as_echo "$CC" >&6; }
  10197. else
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10199. $as_echo "no" >&6; }
  10200. fi
  10201. fi
  10202. fi
  10203. if test -z "$CC"; then
  10204. # Extract the first word of "cc", so it can be a program name with args.
  10205. set dummy cc; ac_word=$2
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10207. $as_echo_n "checking for $ac_word... " >&6; }
  10208. if ${ac_cv_prog_CC+:} false; then :
  10209. $as_echo_n "(cached) " >&6
  10210. else
  10211. if test -n "$CC"; then
  10212. ac_cv_prog_CC="$CC" # Let the user override the test.
  10213. else
  10214. ac_prog_rejected=no
  10215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10216. for as_dir in $PATH
  10217. do
  10218. IFS=$as_save_IFS
  10219. test -z "$as_dir" && as_dir=.
  10220. for ac_exec_ext in '' $ac_executable_extensions; do
  10221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10222. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10223. ac_prog_rejected=yes
  10224. continue
  10225. fi
  10226. ac_cv_prog_CC="cc"
  10227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10228. break 2
  10229. fi
  10230. done
  10231. done
  10232. IFS=$as_save_IFS
  10233. if test $ac_prog_rejected = yes; then
  10234. # We found a bogon in the path, so make sure we never use it.
  10235. set dummy $ac_cv_prog_CC
  10236. shift
  10237. if test $# != 0; then
  10238. # We chose a different compiler from the bogus one.
  10239. # However, it has the same basename, so the bogon will be chosen
  10240. # first if we set CC to just the basename; use the full file name.
  10241. shift
  10242. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10243. fi
  10244. fi
  10245. fi
  10246. fi
  10247. CC=$ac_cv_prog_CC
  10248. if test -n "$CC"; then
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10250. $as_echo "$CC" >&6; }
  10251. else
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10253. $as_echo "no" >&6; }
  10254. fi
  10255. fi
  10256. if test -z "$CC"; then
  10257. if test -n "$ac_tool_prefix"; then
  10258. for ac_prog in cl.exe
  10259. do
  10260. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10261. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10263. $as_echo_n "checking for $ac_word... " >&6; }
  10264. if ${ac_cv_prog_CC+:} false; then :
  10265. $as_echo_n "(cached) " >&6
  10266. else
  10267. if test -n "$CC"; then
  10268. ac_cv_prog_CC="$CC" # Let the user override the test.
  10269. else
  10270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10271. for as_dir in $PATH
  10272. do
  10273. IFS=$as_save_IFS
  10274. test -z "$as_dir" && as_dir=.
  10275. for ac_exec_ext in '' $ac_executable_extensions; do
  10276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10277. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10279. break 2
  10280. fi
  10281. done
  10282. done
  10283. IFS=$as_save_IFS
  10284. fi
  10285. fi
  10286. CC=$ac_cv_prog_CC
  10287. if test -n "$CC"; then
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10289. $as_echo "$CC" >&6; }
  10290. else
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10292. $as_echo "no" >&6; }
  10293. fi
  10294. test -n "$CC" && break
  10295. done
  10296. fi
  10297. if test -z "$CC"; then
  10298. ac_ct_CC=$CC
  10299. for ac_prog in cl.exe
  10300. do
  10301. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10302. set dummy $ac_prog; ac_word=$2
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10304. $as_echo_n "checking for $ac_word... " >&6; }
  10305. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10306. $as_echo_n "(cached) " >&6
  10307. else
  10308. if test -n "$ac_ct_CC"; then
  10309. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10310. else
  10311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10312. for as_dir in $PATH
  10313. do
  10314. IFS=$as_save_IFS
  10315. test -z "$as_dir" && as_dir=.
  10316. for ac_exec_ext in '' $ac_executable_extensions; do
  10317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10318. ac_cv_prog_ac_ct_CC="$ac_prog"
  10319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10320. break 2
  10321. fi
  10322. done
  10323. done
  10324. IFS=$as_save_IFS
  10325. fi
  10326. fi
  10327. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10328. if test -n "$ac_ct_CC"; then
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10330. $as_echo "$ac_ct_CC" >&6; }
  10331. else
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10333. $as_echo "no" >&6; }
  10334. fi
  10335. test -n "$ac_ct_CC" && break
  10336. done
  10337. if test "x$ac_ct_CC" = x; then
  10338. CC=""
  10339. else
  10340. case $cross_compiling:$ac_tool_warned in
  10341. yes:)
  10342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10343. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10344. ac_tool_warned=yes ;;
  10345. esac
  10346. CC=$ac_ct_CC
  10347. fi
  10348. fi
  10349. fi
  10350. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10351. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10352. as_fn_error $? "no acceptable C compiler found in \$PATH
  10353. See \`config.log' for more details" "$LINENO" 5; }
  10354. # Provide some information about the compiler.
  10355. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10356. set X $ac_compile
  10357. ac_compiler=$2
  10358. for ac_option in --version -v -V -qversion; do
  10359. { { ac_try="$ac_compiler $ac_option >&5"
  10360. case "(($ac_try" in
  10361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10362. *) ac_try_echo=$ac_try;;
  10363. esac
  10364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10365. $as_echo "$ac_try_echo"; } >&5
  10366. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10367. ac_status=$?
  10368. if test -s conftest.err; then
  10369. sed '10a\
  10370. ... rest of stderr output deleted ...
  10371. 10q' conftest.err >conftest.er1
  10372. cat conftest.er1 >&5
  10373. fi
  10374. rm -f conftest.er1 conftest.err
  10375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10376. test $ac_status = 0; }
  10377. done
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10379. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10380. if ${ac_cv_c_compiler_gnu+:} false; then :
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10384. /* end confdefs.h. */
  10385. int
  10386. main ()
  10387. {
  10388. #ifndef __GNUC__
  10389. choke me
  10390. #endif
  10391. ;
  10392. return 0;
  10393. }
  10394. _ACEOF
  10395. if ac_fn_c_try_compile "$LINENO"; then :
  10396. ac_compiler_gnu=yes
  10397. else
  10398. ac_compiler_gnu=no
  10399. fi
  10400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10401. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10402. fi
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10404. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10405. if test $ac_compiler_gnu = yes; then
  10406. GCC=yes
  10407. else
  10408. GCC=
  10409. fi
  10410. ac_test_CFLAGS=${CFLAGS+set}
  10411. ac_save_CFLAGS=$CFLAGS
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10413. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10414. if ${ac_cv_prog_cc_g+:} false; then :
  10415. $as_echo_n "(cached) " >&6
  10416. else
  10417. ac_save_c_werror_flag=$ac_c_werror_flag
  10418. ac_c_werror_flag=yes
  10419. ac_cv_prog_cc_g=no
  10420. CFLAGS="-g"
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. int
  10424. main ()
  10425. {
  10426. ;
  10427. return 0;
  10428. }
  10429. _ACEOF
  10430. if ac_fn_c_try_compile "$LINENO"; then :
  10431. ac_cv_prog_cc_g=yes
  10432. else
  10433. CFLAGS=""
  10434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10435. /* end confdefs.h. */
  10436. int
  10437. main ()
  10438. {
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_c_try_compile "$LINENO"; then :
  10444. else
  10445. ac_c_werror_flag=$ac_save_c_werror_flag
  10446. CFLAGS="-g"
  10447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10448. /* end confdefs.h. */
  10449. int
  10450. main ()
  10451. {
  10452. ;
  10453. return 0;
  10454. }
  10455. _ACEOF
  10456. if ac_fn_c_try_compile "$LINENO"; then :
  10457. ac_cv_prog_cc_g=yes
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. fi
  10461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. ac_c_werror_flag=$ac_save_c_werror_flag
  10465. fi
  10466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10467. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10468. if test "$ac_test_CFLAGS" = set; then
  10469. CFLAGS=$ac_save_CFLAGS
  10470. elif test $ac_cv_prog_cc_g = yes; then
  10471. if test "$GCC" = yes; then
  10472. CFLAGS="-g -O2"
  10473. else
  10474. CFLAGS="-g"
  10475. fi
  10476. else
  10477. if test "$GCC" = yes; then
  10478. CFLAGS="-O2"
  10479. else
  10480. CFLAGS=
  10481. fi
  10482. fi
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10484. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10485. if ${ac_cv_prog_cc_c89+:} false; then :
  10486. $as_echo_n "(cached) " >&6
  10487. else
  10488. ac_cv_prog_cc_c89=no
  10489. ac_save_CC=$CC
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. #include <stdarg.h>
  10493. #include <stdio.h>
  10494. struct stat;
  10495. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10496. struct buf { int x; };
  10497. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10498. static char *e (p, i)
  10499. char **p;
  10500. int i;
  10501. {
  10502. return p[i];
  10503. }
  10504. static char *f (char * (*g) (char **, int), char **p, ...)
  10505. {
  10506. char *s;
  10507. va_list v;
  10508. va_start (v,p);
  10509. s = g (p, va_arg (v,int));
  10510. va_end (v);
  10511. return s;
  10512. }
  10513. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10514. function prototypes and stuff, but not '\xHH' hex character constants.
  10515. These don't provoke an error unfortunately, instead are silently treated
  10516. as 'x'. The following induces an error, until -std is added to get
  10517. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10518. array size at least. It's necessary to write '\x00'==0 to get something
  10519. that's true only with -std. */
  10520. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10521. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10522. inside strings and character constants. */
  10523. #define FOO(x) 'x'
  10524. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10525. int test (int i, double x);
  10526. struct s1 {int (*f) (int a);};
  10527. struct s2 {int (*f) (double a);};
  10528. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10529. int argc;
  10530. char **argv;
  10531. int
  10532. main ()
  10533. {
  10534. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10535. ;
  10536. return 0;
  10537. }
  10538. _ACEOF
  10539. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10540. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10541. do
  10542. CC="$ac_save_CC $ac_arg"
  10543. if ac_fn_c_try_compile "$LINENO"; then :
  10544. ac_cv_prog_cc_c89=$ac_arg
  10545. fi
  10546. rm -f core conftest.err conftest.$ac_objext
  10547. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10548. done
  10549. rm -f conftest.$ac_ext
  10550. CC=$ac_save_CC
  10551. fi
  10552. # AC_CACHE_VAL
  10553. case "x$ac_cv_prog_cc_c89" in
  10554. x)
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10556. $as_echo "none needed" >&6; } ;;
  10557. xno)
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10559. $as_echo "unsupported" >&6; } ;;
  10560. *)
  10561. CC="$CC $ac_cv_prog_cc_c89"
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10563. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10564. esac
  10565. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10566. fi
  10567. ac_ext=c
  10568. ac_cpp='$CPP $CPPFLAGS'
  10569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10572. ac_ext=cpp
  10573. ac_cpp='$CXXCPP $CPPFLAGS'
  10574. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10575. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10576. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10577. if test -z "$CXX"; then
  10578. if test -n "$CCC"; then
  10579. CXX=$CCC
  10580. else
  10581. if test -n "$ac_tool_prefix"; then
  10582. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10583. do
  10584. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10585. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10587. $as_echo_n "checking for $ac_word... " >&6; }
  10588. if ${ac_cv_prog_CXX+:} false; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. if test -n "$CXX"; then
  10592. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10593. else
  10594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10595. for as_dir in $PATH
  10596. do
  10597. IFS=$as_save_IFS
  10598. test -z "$as_dir" && as_dir=.
  10599. for ac_exec_ext in '' $ac_executable_extensions; do
  10600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10601. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10603. break 2
  10604. fi
  10605. done
  10606. done
  10607. IFS=$as_save_IFS
  10608. fi
  10609. fi
  10610. CXX=$ac_cv_prog_CXX
  10611. if test -n "$CXX"; then
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10613. $as_echo "$CXX" >&6; }
  10614. else
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10616. $as_echo "no" >&6; }
  10617. fi
  10618. test -n "$CXX" && break
  10619. done
  10620. fi
  10621. if test -z "$CXX"; then
  10622. ac_ct_CXX=$CXX
  10623. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10624. do
  10625. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10626. set dummy $ac_prog; ac_word=$2
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10628. $as_echo_n "checking for $ac_word... " >&6; }
  10629. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10630. $as_echo_n "(cached) " >&6
  10631. else
  10632. if test -n "$ac_ct_CXX"; then
  10633. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10634. else
  10635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10636. for as_dir in $PATH
  10637. do
  10638. IFS=$as_save_IFS
  10639. test -z "$as_dir" && as_dir=.
  10640. for ac_exec_ext in '' $ac_executable_extensions; do
  10641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10642. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10644. break 2
  10645. fi
  10646. done
  10647. done
  10648. IFS=$as_save_IFS
  10649. fi
  10650. fi
  10651. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10652. if test -n "$ac_ct_CXX"; then
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10654. $as_echo "$ac_ct_CXX" >&6; }
  10655. else
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10657. $as_echo "no" >&6; }
  10658. fi
  10659. test -n "$ac_ct_CXX" && break
  10660. done
  10661. if test "x$ac_ct_CXX" = x; then
  10662. CXX="g++"
  10663. else
  10664. case $cross_compiling:$ac_tool_warned in
  10665. yes:)
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10668. ac_tool_warned=yes ;;
  10669. esac
  10670. CXX=$ac_ct_CXX
  10671. fi
  10672. fi
  10673. fi
  10674. fi
  10675. # Provide some information about the compiler.
  10676. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10677. set X $ac_compile
  10678. ac_compiler=$2
  10679. for ac_option in --version -v -V -qversion; do
  10680. { { ac_try="$ac_compiler $ac_option >&5"
  10681. case "(($ac_try" in
  10682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10683. *) ac_try_echo=$ac_try;;
  10684. esac
  10685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10686. $as_echo "$ac_try_echo"; } >&5
  10687. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10688. ac_status=$?
  10689. if test -s conftest.err; then
  10690. sed '10a\
  10691. ... rest of stderr output deleted ...
  10692. 10q' conftest.err >conftest.er1
  10693. cat conftest.er1 >&5
  10694. fi
  10695. rm -f conftest.er1 conftest.err
  10696. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10697. test $ac_status = 0; }
  10698. done
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10700. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10701. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10702. $as_echo_n "(cached) " >&6
  10703. else
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. int
  10707. main ()
  10708. {
  10709. #ifndef __GNUC__
  10710. choke me
  10711. #endif
  10712. ;
  10713. return 0;
  10714. }
  10715. _ACEOF
  10716. if ac_fn_cxx_try_compile "$LINENO"; then :
  10717. ac_compiler_gnu=yes
  10718. else
  10719. ac_compiler_gnu=no
  10720. fi
  10721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10722. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10723. fi
  10724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10725. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10726. if test $ac_compiler_gnu = yes; then
  10727. GXX=yes
  10728. else
  10729. GXX=
  10730. fi
  10731. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10732. ac_save_CXXFLAGS=$CXXFLAGS
  10733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10734. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10735. if ${ac_cv_prog_cxx_g+:} false; then :
  10736. $as_echo_n "(cached) " >&6
  10737. else
  10738. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10739. ac_cxx_werror_flag=yes
  10740. ac_cv_prog_cxx_g=no
  10741. CXXFLAGS="-g"
  10742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10743. /* end confdefs.h. */
  10744. int
  10745. main ()
  10746. {
  10747. ;
  10748. return 0;
  10749. }
  10750. _ACEOF
  10751. if ac_fn_cxx_try_compile "$LINENO"; then :
  10752. ac_cv_prog_cxx_g=yes
  10753. else
  10754. CXXFLAGS=""
  10755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10756. /* end confdefs.h. */
  10757. int
  10758. main ()
  10759. {
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. if ac_fn_cxx_try_compile "$LINENO"; then :
  10765. else
  10766. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10767. CXXFLAGS="-g"
  10768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10769. /* end confdefs.h. */
  10770. int
  10771. main ()
  10772. {
  10773. ;
  10774. return 0;
  10775. }
  10776. _ACEOF
  10777. if ac_fn_cxx_try_compile "$LINENO"; then :
  10778. ac_cv_prog_cxx_g=yes
  10779. fi
  10780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10783. fi
  10784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10785. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10786. fi
  10787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10788. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10789. if test "$ac_test_CXXFLAGS" = set; then
  10790. CXXFLAGS=$ac_save_CXXFLAGS
  10791. elif test $ac_cv_prog_cxx_g = yes; then
  10792. if test "$GXX" = yes; then
  10793. CXXFLAGS="-g -O2"
  10794. else
  10795. CXXFLAGS="-g"
  10796. fi
  10797. else
  10798. if test "$GXX" = yes; then
  10799. CXXFLAGS="-O2"
  10800. else
  10801. CXXFLAGS=
  10802. fi
  10803. fi
  10804. ac_ext=c
  10805. ac_cpp='$CPP $CPPFLAGS'
  10806. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10807. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10808. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10809. func_stripname_cnf ()
  10810. {
  10811. case ${2} in
  10812. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10813. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10814. esac
  10815. } # func_stripname_cnf
  10816. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10817. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10818. (test "X$CXX" != "Xg++"))) ; then
  10819. ac_ext=cpp
  10820. ac_cpp='$CXXCPP $CPPFLAGS'
  10821. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10822. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10823. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10825. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10826. if test -z "$CXXCPP"; then
  10827. if ${ac_cv_prog_CXXCPP+:} false; then :
  10828. $as_echo_n "(cached) " >&6
  10829. else
  10830. # Double quotes because CXXCPP needs to be expanded
  10831. for CXXCPP in "$CXX -E" "/lib/cpp"
  10832. do
  10833. ac_preproc_ok=false
  10834. for ac_cxx_preproc_warn_flag in '' yes
  10835. do
  10836. # Use a header file that comes with gcc, so configuring glibc
  10837. # with a fresh cross-compiler works.
  10838. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10839. # <limits.h> exists even on freestanding compilers.
  10840. # On the NeXT, cc -E runs the code through the compiler's parser,
  10841. # not just through cpp. "Syntax error" is here to catch this case.
  10842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10843. /* end confdefs.h. */
  10844. #ifdef __STDC__
  10845. # include <limits.h>
  10846. #else
  10847. # include <assert.h>
  10848. #endif
  10849. Syntax error
  10850. _ACEOF
  10851. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10852. else
  10853. # Broken: fails on valid input.
  10854. continue
  10855. fi
  10856. rm -f conftest.err conftest.i conftest.$ac_ext
  10857. # OK, works on sane cases. Now check whether nonexistent headers
  10858. # can be detected and how.
  10859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10860. /* end confdefs.h. */
  10861. #include <ac_nonexistent.h>
  10862. _ACEOF
  10863. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10864. # Broken: success on invalid input.
  10865. continue
  10866. else
  10867. # Passes both tests.
  10868. ac_preproc_ok=:
  10869. break
  10870. fi
  10871. rm -f conftest.err conftest.i conftest.$ac_ext
  10872. done
  10873. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10874. rm -f conftest.i conftest.err conftest.$ac_ext
  10875. if $ac_preproc_ok; then :
  10876. break
  10877. fi
  10878. done
  10879. ac_cv_prog_CXXCPP=$CXXCPP
  10880. fi
  10881. CXXCPP=$ac_cv_prog_CXXCPP
  10882. else
  10883. ac_cv_prog_CXXCPP=$CXXCPP
  10884. fi
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10886. $as_echo "$CXXCPP" >&6; }
  10887. ac_preproc_ok=false
  10888. for ac_cxx_preproc_warn_flag in '' yes
  10889. do
  10890. # Use a header file that comes with gcc, so configuring glibc
  10891. # with a fresh cross-compiler works.
  10892. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10893. # <limits.h> exists even on freestanding compilers.
  10894. # On the NeXT, cc -E runs the code through the compiler's parser,
  10895. # not just through cpp. "Syntax error" is here to catch this case.
  10896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10897. /* end confdefs.h. */
  10898. #ifdef __STDC__
  10899. # include <limits.h>
  10900. #else
  10901. # include <assert.h>
  10902. #endif
  10903. Syntax error
  10904. _ACEOF
  10905. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10906. else
  10907. # Broken: fails on valid input.
  10908. continue
  10909. fi
  10910. rm -f conftest.err conftest.i conftest.$ac_ext
  10911. # OK, works on sane cases. Now check whether nonexistent headers
  10912. # can be detected and how.
  10913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10914. /* end confdefs.h. */
  10915. #include <ac_nonexistent.h>
  10916. _ACEOF
  10917. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10918. # Broken: success on invalid input.
  10919. continue
  10920. else
  10921. # Passes both tests.
  10922. ac_preproc_ok=:
  10923. break
  10924. fi
  10925. rm -f conftest.err conftest.i conftest.$ac_ext
  10926. done
  10927. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10928. rm -f conftest.i conftest.err conftest.$ac_ext
  10929. if $ac_preproc_ok; then :
  10930. else
  10931. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10932. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10933. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10934. See \`config.log' for more details" "$LINENO" 5; }
  10935. fi
  10936. ac_ext=c
  10937. ac_cpp='$CPP $CPPFLAGS'
  10938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10941. else
  10942. _lt_caught_CXX_error=yes
  10943. fi
  10944. ac_ext=cpp
  10945. ac_cpp='$CXXCPP $CPPFLAGS'
  10946. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10947. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10948. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10949. archive_cmds_need_lc_CXX=no
  10950. allow_undefined_flag_CXX=
  10951. always_export_symbols_CXX=no
  10952. archive_expsym_cmds_CXX=
  10953. compiler_needs_object_CXX=no
  10954. export_dynamic_flag_spec_CXX=
  10955. hardcode_direct_CXX=no
  10956. hardcode_direct_absolute_CXX=no
  10957. hardcode_libdir_flag_spec_CXX=
  10958. hardcode_libdir_separator_CXX=
  10959. hardcode_minus_L_CXX=no
  10960. hardcode_shlibpath_var_CXX=unsupported
  10961. hardcode_automatic_CXX=no
  10962. inherit_rpath_CXX=no
  10963. module_cmds_CXX=
  10964. module_expsym_cmds_CXX=
  10965. link_all_deplibs_CXX=unknown
  10966. old_archive_cmds_CXX=$old_archive_cmds
  10967. reload_flag_CXX=$reload_flag
  10968. reload_cmds_CXX=$reload_cmds
  10969. no_undefined_flag_CXX=
  10970. whole_archive_flag_spec_CXX=
  10971. enable_shared_with_static_runtimes_CXX=no
  10972. # Source file extension for C++ test sources.
  10973. ac_ext=cpp
  10974. # Object file extension for compiled C++ test sources.
  10975. objext=o
  10976. objext_CXX=$objext
  10977. # No sense in running all these tests if we already determined that
  10978. # the CXX compiler isn't working. Some variables (like enable_shared)
  10979. # are currently assumed to apply to all compilers on this platform,
  10980. # and will be corrupted by setting them based on a non-working compiler.
  10981. if test "$_lt_caught_CXX_error" != yes; then
  10982. # Code to be used in simple compile tests
  10983. lt_simple_compile_test_code="int some_variable = 0;"
  10984. # Code to be used in simple link tests
  10985. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10986. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10987. # If no C compiler was specified, use CC.
  10988. LTCC=${LTCC-"$CC"}
  10989. # If no C compiler flags were specified, use CFLAGS.
  10990. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10991. # Allow CC to be a program name with arguments.
  10992. compiler=$CC
  10993. # save warnings/boilerplate of simple test code
  10994. ac_outfile=conftest.$ac_objext
  10995. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10996. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10997. _lt_compiler_boilerplate=`cat conftest.err`
  10998. $RM conftest*
  10999. ac_outfile=conftest.$ac_objext
  11000. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11001. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11002. _lt_linker_boilerplate=`cat conftest.err`
  11003. $RM -r conftest*
  11004. # Allow CC to be a program name with arguments.
  11005. lt_save_CC=$CC
  11006. lt_save_CFLAGS=$CFLAGS
  11007. lt_save_LD=$LD
  11008. lt_save_GCC=$GCC
  11009. GCC=$GXX
  11010. lt_save_with_gnu_ld=$with_gnu_ld
  11011. lt_save_path_LD=$lt_cv_path_LD
  11012. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11013. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11014. else
  11015. $as_unset lt_cv_prog_gnu_ld
  11016. fi
  11017. if test -n "${lt_cv_path_LDCXX+set}"; then
  11018. lt_cv_path_LD=$lt_cv_path_LDCXX
  11019. else
  11020. $as_unset lt_cv_path_LD
  11021. fi
  11022. test -z "${LDCXX+set}" || LD=$LDCXX
  11023. CC=${CXX-"c++"}
  11024. CFLAGS=$CXXFLAGS
  11025. compiler=$CC
  11026. compiler_CXX=$CC
  11027. for cc_temp in $compiler""; do
  11028. case $cc_temp in
  11029. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11030. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11031. \-*) ;;
  11032. *) break;;
  11033. esac
  11034. done
  11035. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11036. if test -n "$compiler"; then
  11037. # We don't want -fno-exception when compiling C++ code, so set the
  11038. # no_builtin_flag separately
  11039. if test "$GXX" = yes; then
  11040. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11041. else
  11042. lt_prog_compiler_no_builtin_flag_CXX=
  11043. fi
  11044. if test "$GXX" = yes; then
  11045. # Set up default GNU C++ configuration
  11046. # Check whether --with-gnu-ld was given.
  11047. if test "${with_gnu_ld+set}" = set; then :
  11048. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11049. else
  11050. with_gnu_ld=no
  11051. fi
  11052. ac_prog=ld
  11053. if test "$GCC" = yes; then
  11054. # Check if gcc -print-prog-name=ld gives a path.
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11056. $as_echo_n "checking for ld used by $CC... " >&6; }
  11057. case $host in
  11058. *-*-mingw*)
  11059. # gcc leaves a trailing carriage return which upsets mingw
  11060. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11061. *)
  11062. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11063. esac
  11064. case $ac_prog in
  11065. # Accept absolute paths.
  11066. [\\/]* | ?:[\\/]*)
  11067. re_direlt='/[^/][^/]*/\.\./'
  11068. # Canonicalize the pathname of ld
  11069. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11070. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11071. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11072. done
  11073. test -z "$LD" && LD="$ac_prog"
  11074. ;;
  11075. "")
  11076. # If it fails, then pretend we aren't using GCC.
  11077. ac_prog=ld
  11078. ;;
  11079. *)
  11080. # If it is relative, then search for the first ld in PATH.
  11081. with_gnu_ld=unknown
  11082. ;;
  11083. esac
  11084. elif test "$with_gnu_ld" = yes; then
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11086. $as_echo_n "checking for GNU ld... " >&6; }
  11087. else
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11089. $as_echo_n "checking for non-GNU ld... " >&6; }
  11090. fi
  11091. if ${lt_cv_path_LD+:} false; then :
  11092. $as_echo_n "(cached) " >&6
  11093. else
  11094. if test -z "$LD"; then
  11095. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11096. for ac_dir in $PATH; do
  11097. IFS="$lt_save_ifs"
  11098. test -z "$ac_dir" && ac_dir=.
  11099. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11100. lt_cv_path_LD="$ac_dir/$ac_prog"
  11101. # Check to see if the program is GNU ld. I'd rather use --version,
  11102. # but apparently some variants of GNU ld only accept -v.
  11103. # Break only if it was the GNU/non-GNU ld that we prefer.
  11104. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11105. *GNU* | *'with BFD'*)
  11106. test "$with_gnu_ld" != no && break
  11107. ;;
  11108. *)
  11109. test "$with_gnu_ld" != yes && break
  11110. ;;
  11111. esac
  11112. fi
  11113. done
  11114. IFS="$lt_save_ifs"
  11115. else
  11116. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11117. fi
  11118. fi
  11119. LD="$lt_cv_path_LD"
  11120. if test -n "$LD"; then
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11122. $as_echo "$LD" >&6; }
  11123. else
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11125. $as_echo "no" >&6; }
  11126. fi
  11127. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11129. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11130. if ${lt_cv_prog_gnu_ld+:} false; then :
  11131. $as_echo_n "(cached) " >&6
  11132. else
  11133. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11134. case `$LD -v 2>&1 </dev/null` in
  11135. *GNU* | *'with BFD'*)
  11136. lt_cv_prog_gnu_ld=yes
  11137. ;;
  11138. *)
  11139. lt_cv_prog_gnu_ld=no
  11140. ;;
  11141. esac
  11142. fi
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11144. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11145. with_gnu_ld=$lt_cv_prog_gnu_ld
  11146. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11147. # archiving commands below assume that GNU ld is being used.
  11148. if test "$with_gnu_ld" = yes; then
  11149. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11150. 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'
  11151. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11152. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11153. # If archive_cmds runs LD, not CC, wlarc should be empty
  11154. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11155. # investigate it a little bit more. (MM)
  11156. wlarc='${wl}'
  11157. # ancient GNU ld didn't support --whole-archive et. al.
  11158. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11159. $GREP 'no-whole-archive' > /dev/null; then
  11160. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11161. else
  11162. whole_archive_flag_spec_CXX=
  11163. fi
  11164. else
  11165. with_gnu_ld=no
  11166. wlarc=
  11167. # A generic and very simple default shared library creation
  11168. # command for GNU C++ for the case where it uses the native
  11169. # linker, instead of GNU ld. If possible, this setting should
  11170. # overridden to take advantage of the native linker features on
  11171. # the platform it is being used on.
  11172. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11173. fi
  11174. # Commands to make compiler produce verbose output that lists
  11175. # what "hidden" libraries, object files and flags are used when
  11176. # linking a shared library.
  11177. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11178. else
  11179. GXX=no
  11180. with_gnu_ld=no
  11181. wlarc=
  11182. fi
  11183. # PORTME: fill in a description of your system's C++ link characteristics
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11185. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11186. ld_shlibs_CXX=yes
  11187. case $host_os in
  11188. aix3*)
  11189. # FIXME: insert proper C++ library support
  11190. ld_shlibs_CXX=no
  11191. ;;
  11192. aix[4-9]*)
  11193. if test "$host_cpu" = ia64; then
  11194. # On IA64, the linker does run time linking by default, so we don't
  11195. # have to do anything special.
  11196. aix_use_runtimelinking=no
  11197. exp_sym_flag='-Bexport'
  11198. no_entry_flag=""
  11199. else
  11200. aix_use_runtimelinking=no
  11201. # Test if we are trying to use run time linking or normal
  11202. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11203. # need to do runtime linking.
  11204. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11205. for ld_flag in $LDFLAGS; do
  11206. case $ld_flag in
  11207. *-brtl*)
  11208. aix_use_runtimelinking=yes
  11209. break
  11210. ;;
  11211. esac
  11212. done
  11213. ;;
  11214. esac
  11215. exp_sym_flag='-bexport'
  11216. no_entry_flag='-bnoentry'
  11217. fi
  11218. # When large executables or shared objects are built, AIX ld can
  11219. # have problems creating the table of contents. If linking a library
  11220. # or program results in "error TOC overflow" add -mminimal-toc to
  11221. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11222. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11223. archive_cmds_CXX=''
  11224. hardcode_direct_CXX=yes
  11225. hardcode_direct_absolute_CXX=yes
  11226. hardcode_libdir_separator_CXX=':'
  11227. link_all_deplibs_CXX=yes
  11228. file_list_spec_CXX='${wl}-f,'
  11229. if test "$GXX" = yes; then
  11230. case $host_os in aix4.[012]|aix4.[012].*)
  11231. # We only want to do this on AIX 4.2 and lower, the check
  11232. # below for broken collect2 doesn't work under 4.3+
  11233. collect2name=`${CC} -print-prog-name=collect2`
  11234. if test -f "$collect2name" &&
  11235. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11236. then
  11237. # We have reworked collect2
  11238. :
  11239. else
  11240. # We have old collect2
  11241. hardcode_direct_CXX=unsupported
  11242. # It fails to find uninstalled libraries when the uninstalled
  11243. # path is not listed in the libpath. Setting hardcode_minus_L
  11244. # to unsupported forces relinking
  11245. hardcode_minus_L_CXX=yes
  11246. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11247. hardcode_libdir_separator_CXX=
  11248. fi
  11249. esac
  11250. shared_flag='-shared'
  11251. if test "$aix_use_runtimelinking" = yes; then
  11252. shared_flag="$shared_flag "'${wl}-G'
  11253. fi
  11254. else
  11255. # not using gcc
  11256. if test "$host_cpu" = ia64; then
  11257. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11258. # chokes on -Wl,-G. The following line is correct:
  11259. shared_flag='-G'
  11260. else
  11261. if test "$aix_use_runtimelinking" = yes; then
  11262. shared_flag='${wl}-G'
  11263. else
  11264. shared_flag='${wl}-bM:SRE'
  11265. fi
  11266. fi
  11267. fi
  11268. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11269. # It seems that -bexpall does not export symbols beginning with
  11270. # underscore (_), so it is better to generate a list of symbols to
  11271. # export.
  11272. always_export_symbols_CXX=yes
  11273. if test "$aix_use_runtimelinking" = yes; then
  11274. # Warning - without using the other runtime loading flags (-brtl),
  11275. # -berok will link without error, but may produce a broken library.
  11276. allow_undefined_flag_CXX='-berok'
  11277. # Determine the default libpath from the value encoded in an empty
  11278. # executable.
  11279. if test "${lt_cv_aix_libpath+set}" = set; then
  11280. aix_libpath=$lt_cv_aix_libpath
  11281. else
  11282. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11283. $as_echo_n "(cached) " >&6
  11284. else
  11285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11286. /* end confdefs.h. */
  11287. int
  11288. main ()
  11289. {
  11290. ;
  11291. return 0;
  11292. }
  11293. _ACEOF
  11294. if ac_fn_cxx_try_link "$LINENO"; then :
  11295. lt_aix_libpath_sed='
  11296. /Import File Strings/,/^$/ {
  11297. /^0/ {
  11298. s/^0 *\([^ ]*\) *$/\1/
  11299. p
  11300. }
  11301. }'
  11302. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11303. # Check for a 64-bit object if we didn't find anything.
  11304. if test -z "$lt_cv_aix_libpath__CXX"; then
  11305. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11306. fi
  11307. fi
  11308. rm -f core conftest.err conftest.$ac_objext \
  11309. conftest$ac_exeext conftest.$ac_ext
  11310. if test -z "$lt_cv_aix_libpath__CXX"; then
  11311. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11312. fi
  11313. fi
  11314. aix_libpath=$lt_cv_aix_libpath__CXX
  11315. fi
  11316. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11317. 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"
  11318. else
  11319. if test "$host_cpu" = ia64; then
  11320. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11321. allow_undefined_flag_CXX="-z nodefs"
  11322. 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"
  11323. else
  11324. # Determine the default libpath from the value encoded in an
  11325. # empty executable.
  11326. if test "${lt_cv_aix_libpath+set}" = set; then
  11327. aix_libpath=$lt_cv_aix_libpath
  11328. else
  11329. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11330. $as_echo_n "(cached) " >&6
  11331. else
  11332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11333. /* end confdefs.h. */
  11334. int
  11335. main ()
  11336. {
  11337. ;
  11338. return 0;
  11339. }
  11340. _ACEOF
  11341. if ac_fn_cxx_try_link "$LINENO"; then :
  11342. lt_aix_libpath_sed='
  11343. /Import File Strings/,/^$/ {
  11344. /^0/ {
  11345. s/^0 *\([^ ]*\) *$/\1/
  11346. p
  11347. }
  11348. }'
  11349. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11350. # Check for a 64-bit object if we didn't find anything.
  11351. if test -z "$lt_cv_aix_libpath__CXX"; then
  11352. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11353. fi
  11354. fi
  11355. rm -f core conftest.err conftest.$ac_objext \
  11356. conftest$ac_exeext conftest.$ac_ext
  11357. if test -z "$lt_cv_aix_libpath__CXX"; then
  11358. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11359. fi
  11360. fi
  11361. aix_libpath=$lt_cv_aix_libpath__CXX
  11362. fi
  11363. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11364. # Warning - without using the other run time loading flags,
  11365. # -berok will link without error, but may produce a broken library.
  11366. no_undefined_flag_CXX=' ${wl}-bernotok'
  11367. allow_undefined_flag_CXX=' ${wl}-berok'
  11368. if test "$with_gnu_ld" = yes; then
  11369. # We only use this code for GNU lds that support --whole-archive.
  11370. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11371. else
  11372. # Exported symbols can be pulled into shared objects from archives
  11373. whole_archive_flag_spec_CXX='$convenience'
  11374. fi
  11375. archive_cmds_need_lc_CXX=yes
  11376. # This is similar to how AIX traditionally builds its shared
  11377. # libraries.
  11378. 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'
  11379. fi
  11380. fi
  11381. ;;
  11382. beos*)
  11383. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11384. allow_undefined_flag_CXX=unsupported
  11385. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11386. # support --undefined. This deserves some investigation. FIXME
  11387. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11388. else
  11389. ld_shlibs_CXX=no
  11390. fi
  11391. ;;
  11392. chorus*)
  11393. case $cc_basename in
  11394. *)
  11395. # FIXME: insert proper C++ library support
  11396. ld_shlibs_CXX=no
  11397. ;;
  11398. esac
  11399. ;;
  11400. cygwin* | mingw* | pw32* | cegcc*)
  11401. case $GXX,$cc_basename in
  11402. ,cl* | no,cl*)
  11403. # Native MSVC
  11404. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11405. # no search path for DLLs.
  11406. hardcode_libdir_flag_spec_CXX=' '
  11407. allow_undefined_flag_CXX=unsupported
  11408. always_export_symbols_CXX=yes
  11409. file_list_spec_CXX='@'
  11410. # Tell ltmain to make .lib files, not .a files.
  11411. libext=lib
  11412. # Tell ltmain to make .dll files, not .so files.
  11413. shrext_cmds=".dll"
  11414. # FIXME: Setting linknames here is a bad hack.
  11415. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11416. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11417. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11418. else
  11419. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11420. fi~
  11421. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11422. linknames='
  11423. # The linker will not automatically build a static lib if we build a DLL.
  11424. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11425. enable_shared_with_static_runtimes_CXX=yes
  11426. # Don't use ranlib
  11427. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11428. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11429. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11430. case $lt_outputfile in
  11431. *.exe|*.EXE) ;;
  11432. *)
  11433. lt_outputfile="$lt_outputfile.exe"
  11434. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11435. ;;
  11436. esac~
  11437. func_to_tool_file "$lt_outputfile"~
  11438. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11439. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11440. $RM "$lt_outputfile.manifest";
  11441. fi'
  11442. ;;
  11443. *)
  11444. # g++
  11445. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11446. # as there is no search path for DLLs.
  11447. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11448. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11449. allow_undefined_flag_CXX=unsupported
  11450. always_export_symbols_CXX=no
  11451. enable_shared_with_static_runtimes_CXX=yes
  11452. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11453. 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'
  11454. # If the export-symbols file already is a .def file (1st line
  11455. # is EXPORTS), use it as is; otherwise, prepend...
  11456. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11457. cp $export_symbols $output_objdir/$soname.def;
  11458. else
  11459. echo EXPORTS > $output_objdir/$soname.def;
  11460. cat $export_symbols >> $output_objdir/$soname.def;
  11461. fi~
  11462. $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'
  11463. else
  11464. ld_shlibs_CXX=no
  11465. fi
  11466. ;;
  11467. esac
  11468. ;;
  11469. darwin* | rhapsody*)
  11470. archive_cmds_need_lc_CXX=no
  11471. hardcode_direct_CXX=no
  11472. hardcode_automatic_CXX=yes
  11473. hardcode_shlibpath_var_CXX=unsupported
  11474. if test "$lt_cv_ld_force_load" = "yes"; then
  11475. 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\"`'
  11476. else
  11477. whole_archive_flag_spec_CXX=''
  11478. fi
  11479. link_all_deplibs_CXX=yes
  11480. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11481. case $cc_basename in
  11482. ifort*) _lt_dar_can_shared=yes ;;
  11483. *) _lt_dar_can_shared=$GCC ;;
  11484. esac
  11485. if test "$_lt_dar_can_shared" = "yes"; then
  11486. output_verbose_link_cmd=func_echo_all
  11487. 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}"
  11488. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11489. 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}"
  11490. 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}"
  11491. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11492. 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}"
  11493. 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}"
  11494. fi
  11495. else
  11496. ld_shlibs_CXX=no
  11497. fi
  11498. ;;
  11499. dgux*)
  11500. case $cc_basename in
  11501. ec++*)
  11502. # FIXME: insert proper C++ library support
  11503. ld_shlibs_CXX=no
  11504. ;;
  11505. ghcx*)
  11506. # Green Hills C++ Compiler
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. *)
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. esac
  11515. ;;
  11516. freebsd2.*)
  11517. # C++ shared libraries reported to be fairly broken before
  11518. # switch to ELF
  11519. ld_shlibs_CXX=no
  11520. ;;
  11521. freebsd-elf*)
  11522. archive_cmds_need_lc_CXX=no
  11523. ;;
  11524. freebsd* | dragonfly*)
  11525. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11526. # conventions
  11527. ld_shlibs_CXX=yes
  11528. ;;
  11529. gnu*)
  11530. ;;
  11531. haiku*)
  11532. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11533. link_all_deplibs_CXX=yes
  11534. ;;
  11535. hpux9*)
  11536. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11537. hardcode_libdir_separator_CXX=:
  11538. export_dynamic_flag_spec_CXX='${wl}-E'
  11539. hardcode_direct_CXX=yes
  11540. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11541. # but as the default
  11542. # location of the library.
  11543. case $cc_basename in
  11544. CC*)
  11545. # FIXME: insert proper C++ library support
  11546. ld_shlibs_CXX=no
  11547. ;;
  11548. aCC*)
  11549. 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'
  11550. # Commands to make compiler produce verbose output that lists
  11551. # what "hidden" libraries, object files and flags are used when
  11552. # linking a shared library.
  11553. #
  11554. # There doesn't appear to be a way to prevent this compiler from
  11555. # explicitly linking system object files so we need to strip them
  11556. # from the output so that they don't get included in the library
  11557. # dependencies.
  11558. output_verbose_link_cmd='templist=`($CC -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"'
  11559. ;;
  11560. *)
  11561. if test "$GXX" = yes; then
  11562. 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'
  11563. else
  11564. # FIXME: insert proper C++ library support
  11565. ld_shlibs_CXX=no
  11566. fi
  11567. ;;
  11568. esac
  11569. ;;
  11570. hpux10*|hpux11*)
  11571. if test $with_gnu_ld = no; then
  11572. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11573. hardcode_libdir_separator_CXX=:
  11574. case $host_cpu in
  11575. hppa*64*|ia64*)
  11576. ;;
  11577. *)
  11578. export_dynamic_flag_spec_CXX='${wl}-E'
  11579. ;;
  11580. esac
  11581. fi
  11582. case $host_cpu in
  11583. hppa*64*|ia64*)
  11584. hardcode_direct_CXX=no
  11585. hardcode_shlibpath_var_CXX=no
  11586. ;;
  11587. *)
  11588. hardcode_direct_CXX=yes
  11589. hardcode_direct_absolute_CXX=yes
  11590. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11591. # but as the default
  11592. # location of the library.
  11593. ;;
  11594. esac
  11595. case $cc_basename in
  11596. CC*)
  11597. # FIXME: insert proper C++ library support
  11598. ld_shlibs_CXX=no
  11599. ;;
  11600. aCC*)
  11601. case $host_cpu in
  11602. hppa*64*)
  11603. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11604. ;;
  11605. ia64*)
  11606. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11607. ;;
  11608. *)
  11609. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11610. ;;
  11611. esac
  11612. # Commands to make compiler produce verbose output that lists
  11613. # what "hidden" libraries, object files and flags are used when
  11614. # linking a shared library.
  11615. #
  11616. # There doesn't appear to be a way to prevent this compiler from
  11617. # explicitly linking system object files so we need to strip them
  11618. # from the output so that they don't get included in the library
  11619. # dependencies.
  11620. 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"'
  11621. ;;
  11622. *)
  11623. if test "$GXX" = yes; then
  11624. if test $with_gnu_ld = no; then
  11625. case $host_cpu in
  11626. hppa*64*)
  11627. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11628. ;;
  11629. ia64*)
  11630. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11631. ;;
  11632. *)
  11633. 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'
  11634. ;;
  11635. esac
  11636. fi
  11637. else
  11638. # FIXME: insert proper C++ library support
  11639. ld_shlibs_CXX=no
  11640. fi
  11641. ;;
  11642. esac
  11643. ;;
  11644. interix[3-9]*)
  11645. hardcode_direct_CXX=no
  11646. hardcode_shlibpath_var_CXX=no
  11647. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11648. export_dynamic_flag_spec_CXX='${wl}-E'
  11649. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11650. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11651. # default) and relocated if they conflict, which is a slow very memory
  11652. # consuming and fragmenting process. To avoid this, we pick a random,
  11653. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11654. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11655. 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'
  11656. 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'
  11657. ;;
  11658. irix5* | irix6*)
  11659. case $cc_basename in
  11660. CC*)
  11661. # SGI C++
  11662. 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'
  11663. # Archives containing C++ object files must be created using
  11664. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11665. # necessary to make sure instantiated templates are included
  11666. # in the archive.
  11667. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11668. ;;
  11669. *)
  11670. if test "$GXX" = yes; then
  11671. if test "$with_gnu_ld" = no; then
  11672. 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'
  11673. else
  11674. 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'
  11675. fi
  11676. fi
  11677. link_all_deplibs_CXX=yes
  11678. ;;
  11679. esac
  11680. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11681. hardcode_libdir_separator_CXX=:
  11682. inherit_rpath_CXX=yes
  11683. ;;
  11684. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11685. case $cc_basename in
  11686. KCC*)
  11687. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11688. # KCC will only create a shared library if the output file
  11689. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11690. # to its proper name (with version) after linking.
  11691. 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'
  11692. 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'
  11693. # Commands to make compiler produce verbose output that lists
  11694. # what "hidden" libraries, object files and flags are used when
  11695. # linking a shared library.
  11696. #
  11697. # There doesn't appear to be a way to prevent this compiler from
  11698. # explicitly linking system object files so we need to strip them
  11699. # from the output so that they don't get included in the library
  11700. # dependencies.
  11701. 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"'
  11702. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11703. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11704. # Archives containing C++ object files must be created using
  11705. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11706. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11707. ;;
  11708. icpc* | ecpc* )
  11709. # Intel C++
  11710. with_gnu_ld=yes
  11711. # version 8.0 and above of icpc choke on multiply defined symbols
  11712. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11713. # earlier do not add the objects themselves.
  11714. case `$CC -V 2>&1` in
  11715. *"Version 7."*)
  11716. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11717. 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'
  11718. ;;
  11719. *) # Version 8.0 or newer
  11720. tmp_idyn=
  11721. case $host_cpu in
  11722. ia64*) tmp_idyn=' -i_dynamic';;
  11723. esac
  11724. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11725. 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'
  11726. ;;
  11727. esac
  11728. archive_cmds_need_lc_CXX=no
  11729. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11730. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11731. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11732. ;;
  11733. pgCC* | pgcpp*)
  11734. # Portland Group C++ compiler
  11735. case `$CC -V` in
  11736. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11737. prelink_cmds_CXX='tpldir=Template.dir~
  11738. rm -rf $tpldir~
  11739. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11740. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11741. old_archive_cmds_CXX='tpldir=Template.dir~
  11742. rm -rf $tpldir~
  11743. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11744. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11745. $RANLIB $oldlib'
  11746. archive_cmds_CXX='tpldir=Template.dir~
  11747. rm -rf $tpldir~
  11748. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11749. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11750. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11751. rm -rf $tpldir~
  11752. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11753. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11754. ;;
  11755. *) # Version 6 and above use weak symbols
  11756. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11757. 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'
  11758. ;;
  11759. esac
  11760. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11761. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11762. 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'
  11763. ;;
  11764. cxx*)
  11765. # Compaq C++
  11766. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11767. 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'
  11768. runpath_var=LD_RUN_PATH
  11769. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11770. hardcode_libdir_separator_CXX=:
  11771. # Commands to make compiler produce verbose output that lists
  11772. # what "hidden" libraries, object files and flags are used when
  11773. # linking a shared library.
  11774. #
  11775. # There doesn't appear to be a way to prevent this compiler from
  11776. # explicitly linking system object files so we need to strip them
  11777. # from the output so that they don't get included in the library
  11778. # dependencies.
  11779. 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'
  11780. ;;
  11781. xl* | mpixl* | bgxl*)
  11782. # IBM XL 8.0 on PPC, with GNU ld
  11783. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11784. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11785. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11786. if test "x$supports_anon_versioning" = xyes; then
  11787. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11789. echo "local: *; };" >> $output_objdir/$libname.ver~
  11790. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11791. fi
  11792. ;;
  11793. *)
  11794. case `$CC -V 2>&1 | sed 5q` in
  11795. *Sun\ C*)
  11796. # Sun C++ 5.9
  11797. no_undefined_flag_CXX=' -zdefs'
  11798. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11799. 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'
  11800. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11801. 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'
  11802. compiler_needs_object_CXX=yes
  11803. # Not sure whether something based on
  11804. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11805. # would be better.
  11806. output_verbose_link_cmd='func_echo_all'
  11807. # Archives containing C++ object files must be created using
  11808. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11809. # necessary to make sure instantiated templates are included
  11810. # in the archive.
  11811. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11812. ;;
  11813. esac
  11814. ;;
  11815. esac
  11816. ;;
  11817. lynxos*)
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. m88k*)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. mvs*)
  11826. case $cc_basename in
  11827. cxx*)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. *)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. esac
  11836. ;;
  11837. netbsd*)
  11838. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11839. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11840. wlarc=
  11841. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11842. hardcode_direct_CXX=yes
  11843. hardcode_shlibpath_var_CXX=no
  11844. fi
  11845. # Workaround some broken pre-1.5 toolchains
  11846. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11847. ;;
  11848. *nto* | *qnx*)
  11849. ld_shlibs_CXX=yes
  11850. ;;
  11851. openbsd2*)
  11852. # C++ shared libraries are fairly broken
  11853. ld_shlibs_CXX=no
  11854. ;;
  11855. openbsd*)
  11856. if test -f /usr/libexec/ld.so; then
  11857. hardcode_direct_CXX=yes
  11858. hardcode_shlibpath_var_CXX=no
  11859. hardcode_direct_absolute_CXX=yes
  11860. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11861. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11862. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11863. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11864. export_dynamic_flag_spec_CXX='${wl}-E'
  11865. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11866. fi
  11867. output_verbose_link_cmd=func_echo_all
  11868. else
  11869. ld_shlibs_CXX=no
  11870. fi
  11871. ;;
  11872. osf3* | osf4* | osf5*)
  11873. case $cc_basename in
  11874. KCC*)
  11875. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11876. # KCC will only create a shared library if the output file
  11877. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11878. # to its proper name (with version) after linking.
  11879. 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'
  11880. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11881. hardcode_libdir_separator_CXX=:
  11882. # Archives containing C++ object files must be created using
  11883. # the KAI C++ compiler.
  11884. case $host in
  11885. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11886. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11887. esac
  11888. ;;
  11889. RCC*)
  11890. # Rational C++ 2.4.1
  11891. # FIXME: insert proper C++ library support
  11892. ld_shlibs_CXX=no
  11893. ;;
  11894. cxx*)
  11895. case $host in
  11896. osf3*)
  11897. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11898. 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'
  11899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11900. ;;
  11901. *)
  11902. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11903. 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'
  11904. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11905. echo "-hidden">> $lib.exp~
  11906. $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~
  11907. $RM $lib.exp'
  11908. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11909. ;;
  11910. esac
  11911. hardcode_libdir_separator_CXX=:
  11912. # Commands to make compiler produce verbose output that lists
  11913. # what "hidden" libraries, object files and flags are used when
  11914. # linking a shared library.
  11915. #
  11916. # There doesn't appear to be a way to prevent this compiler from
  11917. # explicitly linking system object files so we need to strip them
  11918. # from the output so that they don't get included in the library
  11919. # dependencies.
  11920. 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"'
  11921. ;;
  11922. *)
  11923. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11924. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11925. case $host in
  11926. osf3*)
  11927. 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'
  11928. ;;
  11929. *)
  11930. 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'
  11931. ;;
  11932. esac
  11933. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11934. hardcode_libdir_separator_CXX=:
  11935. # Commands to make compiler produce verbose output that lists
  11936. # what "hidden" libraries, object files and flags are used when
  11937. # linking a shared library.
  11938. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11939. else
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. fi
  11943. ;;
  11944. esac
  11945. ;;
  11946. psos*)
  11947. # FIXME: insert proper C++ library support
  11948. ld_shlibs_CXX=no
  11949. ;;
  11950. sunos4*)
  11951. case $cc_basename in
  11952. CC*)
  11953. # Sun C++ 4.x
  11954. # FIXME: insert proper C++ library support
  11955. ld_shlibs_CXX=no
  11956. ;;
  11957. lcc*)
  11958. # Lucid
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. *)
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. esac
  11967. ;;
  11968. solaris*)
  11969. case $cc_basename in
  11970. CC* | sunCC*)
  11971. # Sun C++ 4.2, 5.x and Centerline C++
  11972. archive_cmds_need_lc_CXX=yes
  11973. no_undefined_flag_CXX=' -zdefs'
  11974. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11975. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11976. $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'
  11977. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11978. hardcode_shlibpath_var_CXX=no
  11979. case $host_os in
  11980. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11981. *)
  11982. # The compiler driver will combine and reorder linker options,
  11983. # but understands `-z linker_flag'.
  11984. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11985. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11986. ;;
  11987. esac
  11988. link_all_deplibs_CXX=yes
  11989. output_verbose_link_cmd='func_echo_all'
  11990. # Archives containing C++ object files must be created using
  11991. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11992. # necessary to make sure instantiated templates are included
  11993. # in the archive.
  11994. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11995. ;;
  11996. gcx*)
  11997. # Green Hills C++ Compiler
  11998. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11999. # The C++ compiler must be used to create the archive.
  12000. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12001. ;;
  12002. *)
  12003. # GNU C++ compiler with Solaris linker
  12004. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12005. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12006. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12007. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12008. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12009. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12010. # Commands to make compiler produce verbose output that lists
  12011. # what "hidden" libraries, object files and flags are used when
  12012. # linking a shared library.
  12013. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12014. else
  12015. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12016. # platform.
  12017. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12018. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12019. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12020. # Commands to make compiler produce verbose output that lists
  12021. # what "hidden" libraries, object files and flags are used when
  12022. # linking a shared library.
  12023. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12024. fi
  12025. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12026. case $host_os in
  12027. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12028. *)
  12029. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12030. ;;
  12031. esac
  12032. fi
  12033. ;;
  12034. esac
  12035. ;;
  12036. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12037. no_undefined_flag_CXX='${wl}-z,text'
  12038. archive_cmds_need_lc_CXX=no
  12039. hardcode_shlibpath_var_CXX=no
  12040. runpath_var='LD_RUN_PATH'
  12041. case $cc_basename in
  12042. CC*)
  12043. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12044. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12045. ;;
  12046. *)
  12047. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12048. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12049. ;;
  12050. esac
  12051. ;;
  12052. sysv5* | sco3.2v5* | sco5v6*)
  12053. # Note: We can NOT use -z defs as we might desire, because we do not
  12054. # link with -lc, and that would cause any symbols used from libc to
  12055. # always be unresolved, which means just about no library would
  12056. # ever link correctly. If we're not using GNU ld we use -z text
  12057. # though, which does catch some bad symbols but isn't as heavy-handed
  12058. # as -z defs.
  12059. no_undefined_flag_CXX='${wl}-z,text'
  12060. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12061. archive_cmds_need_lc_CXX=no
  12062. hardcode_shlibpath_var_CXX=no
  12063. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12064. hardcode_libdir_separator_CXX=':'
  12065. link_all_deplibs_CXX=yes
  12066. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12067. runpath_var='LD_RUN_PATH'
  12068. case $cc_basename in
  12069. CC*)
  12070. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12071. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12073. '"$old_archive_cmds_CXX"
  12074. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12075. '"$reload_cmds_CXX"
  12076. ;;
  12077. *)
  12078. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12079. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12080. ;;
  12081. esac
  12082. ;;
  12083. tandem*)
  12084. case $cc_basename in
  12085. NCC*)
  12086. # NonStop-UX NCC 3.20
  12087. # FIXME: insert proper C++ library support
  12088. ld_shlibs_CXX=no
  12089. ;;
  12090. *)
  12091. # FIXME: insert proper C++ library support
  12092. ld_shlibs_CXX=no
  12093. ;;
  12094. esac
  12095. ;;
  12096. vxworks*)
  12097. # FIXME: insert proper C++ library support
  12098. ld_shlibs_CXX=no
  12099. ;;
  12100. *)
  12101. # FIXME: insert proper C++ library support
  12102. ld_shlibs_CXX=no
  12103. ;;
  12104. esac
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12106. $as_echo "$ld_shlibs_CXX" >&6; }
  12107. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12108. GCC_CXX="$GXX"
  12109. LD_CXX="$LD"
  12110. ## CAVEAT EMPTOR:
  12111. ## There is no encapsulation within the following macros, do not change
  12112. ## the running order or otherwise move them around unless you know exactly
  12113. ## what you are doing...
  12114. # Dependencies to place before and after the object being linked:
  12115. predep_objects_CXX=
  12116. postdep_objects_CXX=
  12117. predeps_CXX=
  12118. postdeps_CXX=
  12119. compiler_lib_search_path_CXX=
  12120. cat > conftest.$ac_ext <<_LT_EOF
  12121. class Foo
  12122. {
  12123. public:
  12124. Foo (void) { a = 0; }
  12125. private:
  12126. int a;
  12127. };
  12128. _LT_EOF
  12129. _lt_libdeps_save_CFLAGS=$CFLAGS
  12130. case "$CC $CFLAGS " in #(
  12131. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12132. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12133. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12134. esac
  12135. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12136. (eval $ac_compile) 2>&5
  12137. ac_status=$?
  12138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12139. test $ac_status = 0; }; then
  12140. # Parse the compiler output and extract the necessary
  12141. # objects, libraries and library flags.
  12142. # Sentinel used to keep track of whether or not we are before
  12143. # the conftest object file.
  12144. pre_test_object_deps_done=no
  12145. for p in `eval "$output_verbose_link_cmd"`; do
  12146. case ${prev}${p} in
  12147. -L* | -R* | -l*)
  12148. # Some compilers place space between "-{L,R}" and the path.
  12149. # Remove the space.
  12150. if test $p = "-L" ||
  12151. test $p = "-R"; then
  12152. prev=$p
  12153. continue
  12154. fi
  12155. # Expand the sysroot to ease extracting the directories later.
  12156. if test -z "$prev"; then
  12157. case $p in
  12158. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12159. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12160. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12161. esac
  12162. fi
  12163. case $p in
  12164. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12165. esac
  12166. if test "$pre_test_object_deps_done" = no; then
  12167. case ${prev} in
  12168. -L | -R)
  12169. # Internal compiler library paths should come after those
  12170. # provided the user. The postdeps already come after the
  12171. # user supplied libs so there is no need to process them.
  12172. if test -z "$compiler_lib_search_path_CXX"; then
  12173. compiler_lib_search_path_CXX="${prev}${p}"
  12174. else
  12175. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12176. fi
  12177. ;;
  12178. # The "-l" case would never come before the object being
  12179. # linked, so don't bother handling this case.
  12180. esac
  12181. else
  12182. if test -z "$postdeps_CXX"; then
  12183. postdeps_CXX="${prev}${p}"
  12184. else
  12185. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12186. fi
  12187. fi
  12188. prev=
  12189. ;;
  12190. *.lto.$objext) ;; # Ignore GCC LTO objects
  12191. *.$objext)
  12192. # This assumes that the test object file only shows up
  12193. # once in the compiler output.
  12194. if test "$p" = "conftest.$objext"; then
  12195. pre_test_object_deps_done=yes
  12196. continue
  12197. fi
  12198. if test "$pre_test_object_deps_done" = no; then
  12199. if test -z "$predep_objects_CXX"; then
  12200. predep_objects_CXX="$p"
  12201. else
  12202. predep_objects_CXX="$predep_objects_CXX $p"
  12203. fi
  12204. else
  12205. if test -z "$postdep_objects_CXX"; then
  12206. postdep_objects_CXX="$p"
  12207. else
  12208. postdep_objects_CXX="$postdep_objects_CXX $p"
  12209. fi
  12210. fi
  12211. ;;
  12212. *) ;; # Ignore the rest.
  12213. esac
  12214. done
  12215. # Clean up.
  12216. rm -f a.out a.exe
  12217. else
  12218. echo "libtool.m4: error: problem compiling CXX test program"
  12219. fi
  12220. $RM -f confest.$objext
  12221. CFLAGS=$_lt_libdeps_save_CFLAGS
  12222. # PORTME: override above test on systems where it is broken
  12223. case $host_os in
  12224. interix[3-9]*)
  12225. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12226. # hack all around it, let's just trust "g++" to DTRT.
  12227. predep_objects_CXX=
  12228. postdep_objects_CXX=
  12229. postdeps_CXX=
  12230. ;;
  12231. linux*)
  12232. case `$CC -V 2>&1 | sed 5q` in
  12233. *Sun\ C*)
  12234. # Sun C++ 5.9
  12235. # The more standards-conforming stlport4 library is
  12236. # incompatible with the Cstd library. Avoid specifying
  12237. # it if it's in CXXFLAGS. Ignore libCrun as
  12238. # -library=stlport4 depends on it.
  12239. case " $CXX $CXXFLAGS " in
  12240. *" -library=stlport4 "*)
  12241. solaris_use_stlport4=yes
  12242. ;;
  12243. esac
  12244. if test "$solaris_use_stlport4" != yes; then
  12245. postdeps_CXX='-library=Cstd -library=Crun'
  12246. fi
  12247. ;;
  12248. esac
  12249. ;;
  12250. solaris*)
  12251. case $cc_basename in
  12252. CC* | sunCC*)
  12253. # The more standards-conforming stlport4 library is
  12254. # incompatible with the Cstd library. Avoid specifying
  12255. # it if it's in CXXFLAGS. Ignore libCrun as
  12256. # -library=stlport4 depends on it.
  12257. case " $CXX $CXXFLAGS " in
  12258. *" -library=stlport4 "*)
  12259. solaris_use_stlport4=yes
  12260. ;;
  12261. esac
  12262. # Adding this requires a known-good setup of shared libraries for
  12263. # Sun compiler versions before 5.6, else PIC objects from an old
  12264. # archive will be linked into the output, leading to subtle bugs.
  12265. if test "$solaris_use_stlport4" != yes; then
  12266. postdeps_CXX='-library=Cstd -library=Crun'
  12267. fi
  12268. ;;
  12269. esac
  12270. ;;
  12271. esac
  12272. case " $postdeps_CXX " in
  12273. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12274. esac
  12275. compiler_lib_search_dirs_CXX=
  12276. if test -n "${compiler_lib_search_path_CXX}"; then
  12277. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12278. fi
  12279. lt_prog_compiler_wl_CXX=
  12280. lt_prog_compiler_pic_CXX=
  12281. lt_prog_compiler_static_CXX=
  12282. # C++ specific cases for pic, static, wl, etc.
  12283. if test "$GXX" = yes; then
  12284. lt_prog_compiler_wl_CXX='-Wl,'
  12285. lt_prog_compiler_static_CXX='-static'
  12286. case $host_os in
  12287. aix*)
  12288. # All AIX code is PIC.
  12289. if test "$host_cpu" = ia64; then
  12290. # AIX 5 now supports IA64 processor
  12291. lt_prog_compiler_static_CXX='-Bstatic'
  12292. fi
  12293. ;;
  12294. amigaos*)
  12295. case $host_cpu in
  12296. powerpc)
  12297. # see comment about AmigaOS4 .so support
  12298. lt_prog_compiler_pic_CXX='-fPIC'
  12299. ;;
  12300. m68k)
  12301. # FIXME: we need at least 68020 code to build shared libraries, but
  12302. # adding the `-m68020' flag to GCC prevents building anything better,
  12303. # like `-m68040'.
  12304. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12305. ;;
  12306. esac
  12307. ;;
  12308. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12309. # PIC is the default for these OSes.
  12310. ;;
  12311. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12312. # This hack is so that the source file can tell whether it is being
  12313. # built for inclusion in a dll (and should export symbols for example).
  12314. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12315. # (--disable-auto-import) libraries
  12316. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12317. ;;
  12318. darwin* | rhapsody*)
  12319. # PIC is the default on this platform
  12320. # Common symbols not allowed in MH_DYLIB files
  12321. lt_prog_compiler_pic_CXX='-fno-common'
  12322. ;;
  12323. *djgpp*)
  12324. # DJGPP does not support shared libraries at all
  12325. lt_prog_compiler_pic_CXX=
  12326. ;;
  12327. haiku*)
  12328. # PIC is the default for Haiku.
  12329. # The "-static" flag exists, but is broken.
  12330. lt_prog_compiler_static_CXX=
  12331. ;;
  12332. interix[3-9]*)
  12333. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12334. # Instead, we relocate shared libraries at runtime.
  12335. ;;
  12336. sysv4*MP*)
  12337. if test -d /usr/nec; then
  12338. lt_prog_compiler_pic_CXX=-Kconform_pic
  12339. fi
  12340. ;;
  12341. hpux*)
  12342. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12343. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12344. # sets the default TLS model and affects inlining.
  12345. case $host_cpu in
  12346. hppa*64*)
  12347. ;;
  12348. *)
  12349. lt_prog_compiler_pic_CXX='-fPIC'
  12350. ;;
  12351. esac
  12352. ;;
  12353. *qnx* | *nto*)
  12354. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12355. # it will coredump.
  12356. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12357. ;;
  12358. *)
  12359. lt_prog_compiler_pic_CXX='-fPIC'
  12360. ;;
  12361. esac
  12362. else
  12363. case $host_os in
  12364. aix[4-9]*)
  12365. # All AIX code is PIC.
  12366. if test "$host_cpu" = ia64; then
  12367. # AIX 5 now supports IA64 processor
  12368. lt_prog_compiler_static_CXX='-Bstatic'
  12369. else
  12370. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12371. fi
  12372. ;;
  12373. chorus*)
  12374. case $cc_basename in
  12375. cxch68*)
  12376. # Green Hills C++ Compiler
  12377. # _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"
  12378. ;;
  12379. esac
  12380. ;;
  12381. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12382. # This hack is so that the source file can tell whether it is being
  12383. # built for inclusion in a dll (and should export symbols for example).
  12384. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12385. ;;
  12386. dgux*)
  12387. case $cc_basename in
  12388. ec++*)
  12389. lt_prog_compiler_pic_CXX='-KPIC'
  12390. ;;
  12391. ghcx*)
  12392. # Green Hills C++ Compiler
  12393. lt_prog_compiler_pic_CXX='-pic'
  12394. ;;
  12395. *)
  12396. ;;
  12397. esac
  12398. ;;
  12399. freebsd* | dragonfly*)
  12400. # FreeBSD uses GNU C++
  12401. ;;
  12402. hpux9* | hpux10* | hpux11*)
  12403. case $cc_basename in
  12404. CC*)
  12405. lt_prog_compiler_wl_CXX='-Wl,'
  12406. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12407. if test "$host_cpu" != ia64; then
  12408. lt_prog_compiler_pic_CXX='+Z'
  12409. fi
  12410. ;;
  12411. aCC*)
  12412. lt_prog_compiler_wl_CXX='-Wl,'
  12413. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12414. case $host_cpu in
  12415. hppa*64*|ia64*)
  12416. # +Z the default
  12417. ;;
  12418. *)
  12419. lt_prog_compiler_pic_CXX='+Z'
  12420. ;;
  12421. esac
  12422. ;;
  12423. *)
  12424. ;;
  12425. esac
  12426. ;;
  12427. interix*)
  12428. # This is c89, which is MS Visual C++ (no shared libs)
  12429. # Anyone wants to do a port?
  12430. ;;
  12431. irix5* | irix6* | nonstopux*)
  12432. case $cc_basename in
  12433. CC*)
  12434. lt_prog_compiler_wl_CXX='-Wl,'
  12435. lt_prog_compiler_static_CXX='-non_shared'
  12436. # CC pic flag -KPIC is the default.
  12437. ;;
  12438. *)
  12439. ;;
  12440. esac
  12441. ;;
  12442. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12443. case $cc_basename in
  12444. KCC*)
  12445. # KAI C++ Compiler
  12446. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12447. lt_prog_compiler_pic_CXX='-fPIC'
  12448. ;;
  12449. ecpc* )
  12450. # old Intel C++ for x86_64 which still supported -KPIC.
  12451. lt_prog_compiler_wl_CXX='-Wl,'
  12452. lt_prog_compiler_pic_CXX='-KPIC'
  12453. lt_prog_compiler_static_CXX='-static'
  12454. ;;
  12455. icpc* )
  12456. # Intel C++, used to be incompatible with GCC.
  12457. # ICC 10 doesn't accept -KPIC any more.
  12458. lt_prog_compiler_wl_CXX='-Wl,'
  12459. lt_prog_compiler_pic_CXX='-fPIC'
  12460. lt_prog_compiler_static_CXX='-static'
  12461. ;;
  12462. pgCC* | pgcpp*)
  12463. # Portland Group C++ compiler
  12464. lt_prog_compiler_wl_CXX='-Wl,'
  12465. lt_prog_compiler_pic_CXX='-fpic'
  12466. lt_prog_compiler_static_CXX='-Bstatic'
  12467. ;;
  12468. cxx*)
  12469. # Compaq C++
  12470. # Make sure the PIC flag is empty. It appears that all Alpha
  12471. # Linux and Compaq Tru64 Unix objects are PIC.
  12472. lt_prog_compiler_pic_CXX=
  12473. lt_prog_compiler_static_CXX='-non_shared'
  12474. ;;
  12475. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12476. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12477. lt_prog_compiler_wl_CXX='-Wl,'
  12478. lt_prog_compiler_pic_CXX='-qpic'
  12479. lt_prog_compiler_static_CXX='-qstaticlink'
  12480. ;;
  12481. *)
  12482. case `$CC -V 2>&1 | sed 5q` in
  12483. *Sun\ C*)
  12484. # Sun C++ 5.9
  12485. lt_prog_compiler_pic_CXX='-KPIC'
  12486. lt_prog_compiler_static_CXX='-Bstatic'
  12487. lt_prog_compiler_wl_CXX='-Qoption ld '
  12488. ;;
  12489. esac
  12490. ;;
  12491. esac
  12492. ;;
  12493. lynxos*)
  12494. ;;
  12495. m88k*)
  12496. ;;
  12497. mvs*)
  12498. case $cc_basename in
  12499. cxx*)
  12500. lt_prog_compiler_pic_CXX='-W c,exportall'
  12501. ;;
  12502. *)
  12503. ;;
  12504. esac
  12505. ;;
  12506. netbsd*)
  12507. ;;
  12508. *qnx* | *nto*)
  12509. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12510. # it will coredump.
  12511. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12512. ;;
  12513. osf3* | osf4* | osf5*)
  12514. case $cc_basename in
  12515. KCC*)
  12516. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12517. ;;
  12518. RCC*)
  12519. # Rational C++ 2.4.1
  12520. lt_prog_compiler_pic_CXX='-pic'
  12521. ;;
  12522. cxx*)
  12523. # Digital/Compaq C++
  12524. lt_prog_compiler_wl_CXX='-Wl,'
  12525. # Make sure the PIC flag is empty. It appears that all Alpha
  12526. # Linux and Compaq Tru64 Unix objects are PIC.
  12527. lt_prog_compiler_pic_CXX=
  12528. lt_prog_compiler_static_CXX='-non_shared'
  12529. ;;
  12530. *)
  12531. ;;
  12532. esac
  12533. ;;
  12534. psos*)
  12535. ;;
  12536. solaris*)
  12537. case $cc_basename in
  12538. CC* | sunCC*)
  12539. # Sun C++ 4.2, 5.x and Centerline C++
  12540. lt_prog_compiler_pic_CXX='-KPIC'
  12541. lt_prog_compiler_static_CXX='-Bstatic'
  12542. lt_prog_compiler_wl_CXX='-Qoption ld '
  12543. ;;
  12544. gcx*)
  12545. # Green Hills C++ Compiler
  12546. lt_prog_compiler_pic_CXX='-PIC'
  12547. ;;
  12548. *)
  12549. ;;
  12550. esac
  12551. ;;
  12552. sunos4*)
  12553. case $cc_basename in
  12554. CC*)
  12555. # Sun C++ 4.x
  12556. lt_prog_compiler_pic_CXX='-pic'
  12557. lt_prog_compiler_static_CXX='-Bstatic'
  12558. ;;
  12559. lcc*)
  12560. # Lucid
  12561. lt_prog_compiler_pic_CXX='-pic'
  12562. ;;
  12563. *)
  12564. ;;
  12565. esac
  12566. ;;
  12567. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12568. case $cc_basename in
  12569. CC*)
  12570. lt_prog_compiler_wl_CXX='-Wl,'
  12571. lt_prog_compiler_pic_CXX='-KPIC'
  12572. lt_prog_compiler_static_CXX='-Bstatic'
  12573. ;;
  12574. esac
  12575. ;;
  12576. tandem*)
  12577. case $cc_basename in
  12578. NCC*)
  12579. # NonStop-UX NCC 3.20
  12580. lt_prog_compiler_pic_CXX='-KPIC'
  12581. ;;
  12582. *)
  12583. ;;
  12584. esac
  12585. ;;
  12586. vxworks*)
  12587. ;;
  12588. *)
  12589. lt_prog_compiler_can_build_shared_CXX=no
  12590. ;;
  12591. esac
  12592. fi
  12593. case $host_os in
  12594. # For platforms which do not support PIC, -DPIC is meaningless:
  12595. *djgpp*)
  12596. lt_prog_compiler_pic_CXX=
  12597. ;;
  12598. *)
  12599. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12600. ;;
  12601. esac
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12603. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12604. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12605. $as_echo_n "(cached) " >&6
  12606. else
  12607. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12608. fi
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12610. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12611. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12612. #
  12613. # Check to make sure the PIC flag actually works.
  12614. #
  12615. if test -n "$lt_prog_compiler_pic_CXX"; then
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12617. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12618. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12619. $as_echo_n "(cached) " >&6
  12620. else
  12621. lt_cv_prog_compiler_pic_works_CXX=no
  12622. ac_outfile=conftest.$ac_objext
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12625. # Insert the option either (1) after the last *FLAGS variable, or
  12626. # (2) before a word containing "conftest.", or (3) at the end.
  12627. # Note that $ac_compile itself does not contain backslashes and begins
  12628. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12629. # The option is referenced via a variable to avoid confusing sed.
  12630. lt_compile=`echo "$ac_compile" | $SED \
  12631. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12632. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12633. -e 's:$: $lt_compiler_flag:'`
  12634. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12635. (eval "$lt_compile" 2>conftest.err)
  12636. ac_status=$?
  12637. cat conftest.err >&5
  12638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12639. if (exit $ac_status) && test -s "$ac_outfile"; then
  12640. # The compiler can only warn and ignore the option if not recognized
  12641. # So say no if there are warnings other than the usual output.
  12642. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12643. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12644. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12645. lt_cv_prog_compiler_pic_works_CXX=yes
  12646. fi
  12647. fi
  12648. $RM conftest*
  12649. fi
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12651. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12652. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12653. case $lt_prog_compiler_pic_CXX in
  12654. "" | " "*) ;;
  12655. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12656. esac
  12657. else
  12658. lt_prog_compiler_pic_CXX=
  12659. lt_prog_compiler_can_build_shared_CXX=no
  12660. fi
  12661. fi
  12662. #
  12663. # Check to make sure the static flag actually works.
  12664. #
  12665. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12667. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12668. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12669. $as_echo_n "(cached) " >&6
  12670. else
  12671. lt_cv_prog_compiler_static_works_CXX=no
  12672. save_LDFLAGS="$LDFLAGS"
  12673. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12674. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12675. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12676. # The linker can only warn and ignore the option if not recognized
  12677. # So say no if there are warnings
  12678. if test -s conftest.err; then
  12679. # Append any errors to the config.log.
  12680. cat conftest.err 1>&5
  12681. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12682. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12683. if diff conftest.exp conftest.er2 >/dev/null; then
  12684. lt_cv_prog_compiler_static_works_CXX=yes
  12685. fi
  12686. else
  12687. lt_cv_prog_compiler_static_works_CXX=yes
  12688. fi
  12689. fi
  12690. $RM -r conftest*
  12691. LDFLAGS="$save_LDFLAGS"
  12692. fi
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12694. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12695. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12696. :
  12697. else
  12698. lt_prog_compiler_static_CXX=
  12699. fi
  12700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12701. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12702. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12703. $as_echo_n "(cached) " >&6
  12704. else
  12705. lt_cv_prog_compiler_c_o_CXX=no
  12706. $RM -r conftest 2>/dev/null
  12707. mkdir conftest
  12708. cd conftest
  12709. mkdir out
  12710. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12711. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12712. # Insert the option either (1) after the last *FLAGS variable, or
  12713. # (2) before a word containing "conftest.", or (3) at the end.
  12714. # Note that $ac_compile itself does not contain backslashes and begins
  12715. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12716. lt_compile=`echo "$ac_compile" | $SED \
  12717. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12718. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12719. -e 's:$: $lt_compiler_flag:'`
  12720. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12721. (eval "$lt_compile" 2>out/conftest.err)
  12722. ac_status=$?
  12723. cat out/conftest.err >&5
  12724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12725. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12726. then
  12727. # The compiler can only warn and ignore the option if not recognized
  12728. # So say no if there are warnings
  12729. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12730. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12731. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12732. lt_cv_prog_compiler_c_o_CXX=yes
  12733. fi
  12734. fi
  12735. chmod u+w . 2>&5
  12736. $RM conftest*
  12737. # SGI C++ compiler will create directory out/ii_files/ for
  12738. # template instantiation
  12739. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12740. $RM out/* && rmdir out
  12741. cd ..
  12742. $RM -r conftest
  12743. $RM conftest*
  12744. fi
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12746. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12748. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12749. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12750. $as_echo_n "(cached) " >&6
  12751. else
  12752. lt_cv_prog_compiler_c_o_CXX=no
  12753. $RM -r conftest 2>/dev/null
  12754. mkdir conftest
  12755. cd conftest
  12756. mkdir out
  12757. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12758. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12759. # Insert the option either (1) after the last *FLAGS variable, or
  12760. # (2) before a word containing "conftest.", or (3) at the end.
  12761. # Note that $ac_compile itself does not contain backslashes and begins
  12762. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12763. lt_compile=`echo "$ac_compile" | $SED \
  12764. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12765. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12766. -e 's:$: $lt_compiler_flag:'`
  12767. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12768. (eval "$lt_compile" 2>out/conftest.err)
  12769. ac_status=$?
  12770. cat out/conftest.err >&5
  12771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12772. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12773. then
  12774. # The compiler can only warn and ignore the option if not recognized
  12775. # So say no if there are warnings
  12776. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12777. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12778. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12779. lt_cv_prog_compiler_c_o_CXX=yes
  12780. fi
  12781. fi
  12782. chmod u+w . 2>&5
  12783. $RM conftest*
  12784. # SGI C++ compiler will create directory out/ii_files/ for
  12785. # template instantiation
  12786. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12787. $RM out/* && rmdir out
  12788. cd ..
  12789. $RM -r conftest
  12790. $RM conftest*
  12791. fi
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12793. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12794. hard_links="nottested"
  12795. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12796. # do not overwrite the value of need_locks provided by the user
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12798. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12799. hard_links=yes
  12800. $RM conftest*
  12801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12802. touch conftest.a
  12803. ln conftest.a conftest.b 2>&5 || hard_links=no
  12804. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12806. $as_echo "$hard_links" >&6; }
  12807. if test "$hard_links" = no; then
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12809. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12810. need_locks=warn
  12811. fi
  12812. else
  12813. need_locks=no
  12814. fi
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12816. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12817. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12818. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12819. case $host_os in
  12820. aix[4-9]*)
  12821. # If we're using GNU nm, then we don't want the "-C" option.
  12822. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12823. # Also, AIX nm treats weak defined symbols like other global defined
  12824. # symbols, whereas GNU nm marks them as "W".
  12825. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12826. 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'
  12827. else
  12828. 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'
  12829. fi
  12830. ;;
  12831. pw32*)
  12832. export_symbols_cmds_CXX="$ltdll_cmds"
  12833. ;;
  12834. cygwin* | mingw* | cegcc*)
  12835. case $cc_basename in
  12836. cl*)
  12837. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12838. ;;
  12839. *)
  12840. 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'
  12841. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12842. ;;
  12843. esac
  12844. ;;
  12845. *)
  12846. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12847. ;;
  12848. esac
  12849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12850. $as_echo "$ld_shlibs_CXX" >&6; }
  12851. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12852. with_gnu_ld_CXX=$with_gnu_ld
  12853. #
  12854. # Do we need to explicitly link libc?
  12855. #
  12856. case "x$archive_cmds_need_lc_CXX" in
  12857. x|xyes)
  12858. # Assume -lc should be added
  12859. archive_cmds_need_lc_CXX=yes
  12860. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12861. case $archive_cmds_CXX in
  12862. *'~'*)
  12863. # FIXME: we may have to deal with multi-command sequences.
  12864. ;;
  12865. '$CC '*)
  12866. # Test whether the compiler implicitly links with -lc since on some
  12867. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12868. # to ld, don't add -lc before -lgcc.
  12869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12870. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12871. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12872. $as_echo_n "(cached) " >&6
  12873. else
  12874. $RM conftest*
  12875. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12876. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12877. (eval $ac_compile) 2>&5
  12878. ac_status=$?
  12879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12880. test $ac_status = 0; } 2>conftest.err; then
  12881. soname=conftest
  12882. lib=conftest
  12883. libobjs=conftest.$ac_objext
  12884. deplibs=
  12885. wl=$lt_prog_compiler_wl_CXX
  12886. pic_flag=$lt_prog_compiler_pic_CXX
  12887. compiler_flags=-v
  12888. linker_flags=-v
  12889. verstring=
  12890. output_objdir=.
  12891. libname=conftest
  12892. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12893. allow_undefined_flag_CXX=
  12894. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12895. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12896. ac_status=$?
  12897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12898. test $ac_status = 0; }
  12899. then
  12900. lt_cv_archive_cmds_need_lc_CXX=no
  12901. else
  12902. lt_cv_archive_cmds_need_lc_CXX=yes
  12903. fi
  12904. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12905. else
  12906. cat conftest.err 1>&5
  12907. fi
  12908. $RM conftest*
  12909. fi
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12911. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12912. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12913. ;;
  12914. esac
  12915. fi
  12916. ;;
  12917. esac
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12919. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12920. library_names_spec=
  12921. libname_spec='lib$name'
  12922. soname_spec=
  12923. shrext_cmds=".so"
  12924. postinstall_cmds=
  12925. postuninstall_cmds=
  12926. finish_cmds=
  12927. finish_eval=
  12928. shlibpath_var=
  12929. shlibpath_overrides_runpath=unknown
  12930. version_type=none
  12931. dynamic_linker="$host_os ld.so"
  12932. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12933. need_lib_prefix=unknown
  12934. hardcode_into_libs=no
  12935. # when you set need_version to no, make sure it does not cause -set_version
  12936. # flags to be left without arguments
  12937. need_version=unknown
  12938. case $host_os in
  12939. aix3*)
  12940. version_type=linux # correct to gnu/linux during the next big refactor
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12942. shlibpath_var=LIBPATH
  12943. # AIX 3 has no versioning support, so we append a major version to the name.
  12944. soname_spec='${libname}${release}${shared_ext}$major'
  12945. ;;
  12946. aix[4-9]*)
  12947. version_type=linux # correct to gnu/linux during the next big refactor
  12948. need_lib_prefix=no
  12949. need_version=no
  12950. hardcode_into_libs=yes
  12951. if test "$host_cpu" = ia64; then
  12952. # AIX 5 supports IA64
  12953. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12954. shlibpath_var=LD_LIBRARY_PATH
  12955. else
  12956. # With GCC up to 2.95.x, collect2 would create an import file
  12957. # for dependence libraries. The import file would start with
  12958. # the line `#! .'. This would cause the generated library to
  12959. # depend on `.', always an invalid library. This was fixed in
  12960. # development snapshots of GCC prior to 3.0.
  12961. case $host_os in
  12962. aix4 | aix4.[01] | aix4.[01].*)
  12963. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12964. echo ' yes '
  12965. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12966. :
  12967. else
  12968. can_build_shared=no
  12969. fi
  12970. ;;
  12971. esac
  12972. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12973. # soname into executable. Probably we can add versioning support to
  12974. # collect2, so additional links can be useful in future.
  12975. if test "$aix_use_runtimelinking" = yes; then
  12976. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12977. # instead of lib<name>.a to let people know that these are not
  12978. # typical AIX shared libraries.
  12979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12980. else
  12981. # We preserve .a as extension for shared libraries through AIX4.2
  12982. # and later when we are not doing run time linking.
  12983. library_names_spec='${libname}${release}.a $libname.a'
  12984. soname_spec='${libname}${release}${shared_ext}$major'
  12985. fi
  12986. shlibpath_var=LIBPATH
  12987. fi
  12988. ;;
  12989. amigaos*)
  12990. case $host_cpu in
  12991. powerpc)
  12992. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12993. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12995. ;;
  12996. m68k)
  12997. library_names_spec='$libname.ixlibrary $libname.a'
  12998. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12999. 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'
  13000. ;;
  13001. esac
  13002. ;;
  13003. beos*)
  13004. library_names_spec='${libname}${shared_ext}'
  13005. dynamic_linker="$host_os ld.so"
  13006. shlibpath_var=LIBRARY_PATH
  13007. ;;
  13008. bsdi[45]*)
  13009. version_type=linux # correct to gnu/linux during the next big refactor
  13010. need_version=no
  13011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13014. shlibpath_var=LD_LIBRARY_PATH
  13015. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13016. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13017. # the default ld.so.conf also contains /usr/contrib/lib and
  13018. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13019. # libtool to hard-code these into programs
  13020. ;;
  13021. cygwin* | mingw* | pw32* | cegcc*)
  13022. version_type=windows
  13023. shrext_cmds=".dll"
  13024. need_version=no
  13025. need_lib_prefix=no
  13026. case $GCC,$cc_basename in
  13027. yes,*)
  13028. # gcc
  13029. library_names_spec='$libname.dll.a'
  13030. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13031. postinstall_cmds='base_file=`basename \${file}`~
  13032. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13033. dldir=$destdir/`dirname \$dlpath`~
  13034. test -d \$dldir || mkdir -p \$dldir~
  13035. $install_prog $dir/$dlname \$dldir/$dlname~
  13036. chmod a+x \$dldir/$dlname~
  13037. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13038. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13039. fi'
  13040. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13041. dlpath=$dir/\$dldll~
  13042. $RM \$dlpath'
  13043. shlibpath_overrides_runpath=yes
  13044. case $host_os in
  13045. cygwin*)
  13046. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13047. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13048. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13049. ;;
  13050. mingw* | cegcc*)
  13051. # MinGW DLLs use traditional 'lib' prefix
  13052. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13053. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13054. ;;
  13055. pw32*)
  13056. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13057. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13058. ;;
  13059. esac
  13060. dynamic_linker='Win32 ld.exe'
  13061. ;;
  13062. *,cl*)
  13063. # Native MSVC
  13064. libname_spec='$name'
  13065. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13066. library_names_spec='${libname}.dll.lib'
  13067. case $build_os in
  13068. mingw*)
  13069. sys_lib_search_path_spec=
  13070. lt_save_ifs=$IFS
  13071. IFS=';'
  13072. for lt_path in $LIB
  13073. do
  13074. IFS=$lt_save_ifs
  13075. # Let DOS variable expansion print the short 8.3 style file name.
  13076. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13077. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13078. done
  13079. IFS=$lt_save_ifs
  13080. # Convert to MSYS style.
  13081. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13082. ;;
  13083. cygwin*)
  13084. # Convert to unix form, then to dos form, then back to unix form
  13085. # but this time dos style (no spaces!) so that the unix form looks
  13086. # like /cygdrive/c/PROGRA~1:/cygdr...
  13087. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13088. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13089. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13090. ;;
  13091. *)
  13092. sys_lib_search_path_spec="$LIB"
  13093. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13094. # It is most probably a Windows format PATH.
  13095. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13096. else
  13097. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13098. fi
  13099. # FIXME: find the short name or the path components, as spaces are
  13100. # common. (e.g. "Program Files" -> "PROGRA~1")
  13101. ;;
  13102. esac
  13103. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13104. postinstall_cmds='base_file=`basename \${file}`~
  13105. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13106. dldir=$destdir/`dirname \$dlpath`~
  13107. test -d \$dldir || mkdir -p \$dldir~
  13108. $install_prog $dir/$dlname \$dldir/$dlname'
  13109. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13110. dlpath=$dir/\$dldll~
  13111. $RM \$dlpath'
  13112. shlibpath_overrides_runpath=yes
  13113. dynamic_linker='Win32 link.exe'
  13114. ;;
  13115. *)
  13116. # Assume MSVC wrapper
  13117. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13118. dynamic_linker='Win32 ld.exe'
  13119. ;;
  13120. esac
  13121. # FIXME: first we should search . and the directory the executable is in
  13122. shlibpath_var=PATH
  13123. ;;
  13124. darwin* | rhapsody*)
  13125. dynamic_linker="$host_os dyld"
  13126. version_type=darwin
  13127. need_lib_prefix=no
  13128. need_version=no
  13129. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13130. soname_spec='${libname}${release}${major}$shared_ext'
  13131. shlibpath_overrides_runpath=yes
  13132. shlibpath_var=DYLD_LIBRARY_PATH
  13133. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13134. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13135. ;;
  13136. dgux*)
  13137. version_type=linux # correct to gnu/linux during the next big refactor
  13138. need_lib_prefix=no
  13139. need_version=no
  13140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13141. soname_spec='${libname}${release}${shared_ext}$major'
  13142. shlibpath_var=LD_LIBRARY_PATH
  13143. ;;
  13144. freebsd* | dragonfly*)
  13145. # DragonFly does not have aout. When/if they implement a new
  13146. # versioning mechanism, adjust this.
  13147. if test -x /usr/bin/objformat; then
  13148. objformat=`/usr/bin/objformat`
  13149. else
  13150. case $host_os in
  13151. freebsd[23].*) objformat=aout ;;
  13152. *) objformat=elf ;;
  13153. esac
  13154. fi
  13155. version_type=freebsd-$objformat
  13156. case $version_type in
  13157. freebsd-elf*)
  13158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13159. need_version=no
  13160. need_lib_prefix=no
  13161. ;;
  13162. freebsd-*)
  13163. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13164. need_version=yes
  13165. ;;
  13166. esac
  13167. shlibpath_var=LD_LIBRARY_PATH
  13168. case $host_os in
  13169. freebsd2.*)
  13170. shlibpath_overrides_runpath=yes
  13171. ;;
  13172. freebsd3.[01]* | freebsdelf3.[01]*)
  13173. shlibpath_overrides_runpath=yes
  13174. hardcode_into_libs=yes
  13175. ;;
  13176. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13177. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13178. shlibpath_overrides_runpath=no
  13179. hardcode_into_libs=yes
  13180. ;;
  13181. *) # from 4.6 on, and DragonFly
  13182. shlibpath_overrides_runpath=yes
  13183. hardcode_into_libs=yes
  13184. ;;
  13185. esac
  13186. ;;
  13187. gnu*)
  13188. version_type=linux # correct to gnu/linux during the next big refactor
  13189. need_lib_prefix=no
  13190. need_version=no
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13192. soname_spec='${libname}${release}${shared_ext}$major'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. shlibpath_overrides_runpath=no
  13195. hardcode_into_libs=yes
  13196. ;;
  13197. haiku*)
  13198. version_type=linux # correct to gnu/linux during the next big refactor
  13199. need_lib_prefix=no
  13200. need_version=no
  13201. dynamic_linker="$host_os runtime_loader"
  13202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13203. soname_spec='${libname}${release}${shared_ext}$major'
  13204. shlibpath_var=LIBRARY_PATH
  13205. shlibpath_overrides_runpath=yes
  13206. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13207. hardcode_into_libs=yes
  13208. ;;
  13209. hpux9* | hpux10* | hpux11*)
  13210. # Give a soname corresponding to the major version so that dld.sl refuses to
  13211. # link against other versions.
  13212. version_type=sunos
  13213. need_lib_prefix=no
  13214. need_version=no
  13215. case $host_cpu in
  13216. ia64*)
  13217. shrext_cmds='.so'
  13218. hardcode_into_libs=yes
  13219. dynamic_linker="$host_os dld.so"
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13223. soname_spec='${libname}${release}${shared_ext}$major'
  13224. if test "X$HPUX_IA64_MODE" = X32; then
  13225. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13226. else
  13227. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13228. fi
  13229. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13230. ;;
  13231. hppa*64*)
  13232. shrext_cmds='.sl'
  13233. hardcode_into_libs=yes
  13234. dynamic_linker="$host_os dld.sl"
  13235. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13236. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13238. soname_spec='${libname}${release}${shared_ext}$major'
  13239. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13240. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13241. ;;
  13242. *)
  13243. shrext_cmds='.sl'
  13244. dynamic_linker="$host_os dld.sl"
  13245. shlibpath_var=SHLIB_PATH
  13246. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13248. soname_spec='${libname}${release}${shared_ext}$major'
  13249. ;;
  13250. esac
  13251. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13252. postinstall_cmds='chmod 555 $lib'
  13253. # or fails outright, so override atomically:
  13254. install_override_mode=555
  13255. ;;
  13256. interix[3-9]*)
  13257. version_type=linux # correct to gnu/linux during the next big refactor
  13258. need_lib_prefix=no
  13259. need_version=no
  13260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13261. soname_spec='${libname}${release}${shared_ext}$major'
  13262. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13263. shlibpath_var=LD_LIBRARY_PATH
  13264. shlibpath_overrides_runpath=no
  13265. hardcode_into_libs=yes
  13266. ;;
  13267. irix5* | irix6* | nonstopux*)
  13268. case $host_os in
  13269. nonstopux*) version_type=nonstopux ;;
  13270. *)
  13271. if test "$lt_cv_prog_gnu_ld" = yes; then
  13272. version_type=linux # correct to gnu/linux during the next big refactor
  13273. else
  13274. version_type=irix
  13275. fi ;;
  13276. esac
  13277. need_lib_prefix=no
  13278. need_version=no
  13279. soname_spec='${libname}${release}${shared_ext}$major'
  13280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13281. case $host_os in
  13282. irix5* | nonstopux*)
  13283. libsuff= shlibsuff=
  13284. ;;
  13285. *)
  13286. case $LD in # libtool.m4 will add one of these switches to LD
  13287. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13288. libsuff= shlibsuff= libmagic=32-bit;;
  13289. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13290. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13291. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13292. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13293. *) libsuff= shlibsuff= libmagic=never-match;;
  13294. esac
  13295. ;;
  13296. esac
  13297. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13298. shlibpath_overrides_runpath=no
  13299. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13300. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13301. hardcode_into_libs=yes
  13302. ;;
  13303. # No shared lib support for Linux oldld, aout, or coff.
  13304. linux*oldld* | linux*aout* | linux*coff*)
  13305. dynamic_linker=no
  13306. ;;
  13307. # This must be glibc/ELF.
  13308. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13309. version_type=linux # correct to gnu/linux during the next big refactor
  13310. need_lib_prefix=no
  13311. need_version=no
  13312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13313. soname_spec='${libname}${release}${shared_ext}$major'
  13314. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13315. shlibpath_var=LD_LIBRARY_PATH
  13316. shlibpath_overrides_runpath=no
  13317. # Some binutils ld are patched to set DT_RUNPATH
  13318. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13319. $as_echo_n "(cached) " >&6
  13320. else
  13321. lt_cv_shlibpath_overrides_runpath=no
  13322. save_LDFLAGS=$LDFLAGS
  13323. save_libdir=$libdir
  13324. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13325. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13327. /* end confdefs.h. */
  13328. int
  13329. main ()
  13330. {
  13331. ;
  13332. return 0;
  13333. }
  13334. _ACEOF
  13335. if ac_fn_cxx_try_link "$LINENO"; then :
  13336. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13337. lt_cv_shlibpath_overrides_runpath=yes
  13338. fi
  13339. fi
  13340. rm -f core conftest.err conftest.$ac_objext \
  13341. conftest$ac_exeext conftest.$ac_ext
  13342. LDFLAGS=$save_LDFLAGS
  13343. libdir=$save_libdir
  13344. fi
  13345. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13346. # This implies no fast_install, which is unacceptable.
  13347. # Some rework will be needed to allow for fast_install
  13348. # before this can be enabled.
  13349. hardcode_into_libs=yes
  13350. # Append ld.so.conf contents to the search path
  13351. if test -f /etc/ld.so.conf; then
  13352. 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' ' '`
  13353. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13354. fi
  13355. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13356. # powerpc, because MkLinux only supported shared libraries with the
  13357. # GNU dynamic linker. Since this was broken with cross compilers,
  13358. # most powerpc-linux boxes support dynamic linking these days and
  13359. # people can always --disable-shared, the test was removed, and we
  13360. # assume the GNU/Linux dynamic linker is in use.
  13361. dynamic_linker='GNU/Linux ld.so'
  13362. ;;
  13363. netbsd*)
  13364. version_type=sunos
  13365. need_lib_prefix=no
  13366. need_version=no
  13367. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13369. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13370. dynamic_linker='NetBSD (a.out) ld.so'
  13371. else
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13373. soname_spec='${libname}${release}${shared_ext}$major'
  13374. dynamic_linker='NetBSD ld.elf_so'
  13375. fi
  13376. shlibpath_var=LD_LIBRARY_PATH
  13377. shlibpath_overrides_runpath=yes
  13378. hardcode_into_libs=yes
  13379. ;;
  13380. newsos6)
  13381. version_type=linux # correct to gnu/linux during the next big refactor
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13383. shlibpath_var=LD_LIBRARY_PATH
  13384. shlibpath_overrides_runpath=yes
  13385. ;;
  13386. *nto* | *qnx*)
  13387. version_type=qnx
  13388. need_lib_prefix=no
  13389. need_version=no
  13390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13391. soname_spec='${libname}${release}${shared_ext}$major'
  13392. shlibpath_var=LD_LIBRARY_PATH
  13393. shlibpath_overrides_runpath=no
  13394. hardcode_into_libs=yes
  13395. dynamic_linker='ldqnx.so'
  13396. ;;
  13397. openbsd*)
  13398. version_type=sunos
  13399. sys_lib_dlsearch_path_spec="/usr/lib"
  13400. need_lib_prefix=no
  13401. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13402. case $host_os in
  13403. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13404. *) need_version=no ;;
  13405. esac
  13406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13407. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13408. shlibpath_var=LD_LIBRARY_PATH
  13409. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13410. case $host_os in
  13411. openbsd2.[89] | openbsd2.[89].*)
  13412. shlibpath_overrides_runpath=no
  13413. ;;
  13414. *)
  13415. shlibpath_overrides_runpath=yes
  13416. ;;
  13417. esac
  13418. else
  13419. shlibpath_overrides_runpath=yes
  13420. fi
  13421. ;;
  13422. os2*)
  13423. libname_spec='$name'
  13424. shrext_cmds=".dll"
  13425. need_lib_prefix=no
  13426. library_names_spec='$libname${shared_ext} $libname.a'
  13427. dynamic_linker='OS/2 ld.exe'
  13428. shlibpath_var=LIBPATH
  13429. ;;
  13430. osf3* | osf4* | osf5*)
  13431. version_type=osf
  13432. need_lib_prefix=no
  13433. need_version=no
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13438. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13439. ;;
  13440. rdos*)
  13441. dynamic_linker=no
  13442. ;;
  13443. solaris*)
  13444. version_type=linux # correct to gnu/linux during the next big refactor
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13448. soname_spec='${libname}${release}${shared_ext}$major'
  13449. shlibpath_var=LD_LIBRARY_PATH
  13450. shlibpath_overrides_runpath=yes
  13451. hardcode_into_libs=yes
  13452. # ldd complains unless libraries are executable
  13453. postinstall_cmds='chmod +x $lib'
  13454. ;;
  13455. sunos4*)
  13456. version_type=sunos
  13457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13458. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13459. shlibpath_var=LD_LIBRARY_PATH
  13460. shlibpath_overrides_runpath=yes
  13461. if test "$with_gnu_ld" = yes; then
  13462. need_lib_prefix=no
  13463. fi
  13464. need_version=yes
  13465. ;;
  13466. sysv4 | sysv4.3*)
  13467. version_type=linux # correct to gnu/linux during the next big refactor
  13468. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13469. soname_spec='${libname}${release}${shared_ext}$major'
  13470. shlibpath_var=LD_LIBRARY_PATH
  13471. case $host_vendor in
  13472. sni)
  13473. shlibpath_overrides_runpath=no
  13474. need_lib_prefix=no
  13475. runpath_var=LD_RUN_PATH
  13476. ;;
  13477. siemens)
  13478. need_lib_prefix=no
  13479. ;;
  13480. motorola)
  13481. need_lib_prefix=no
  13482. need_version=no
  13483. shlibpath_overrides_runpath=no
  13484. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13485. ;;
  13486. esac
  13487. ;;
  13488. sysv4*MP*)
  13489. if test -d /usr/nec ;then
  13490. version_type=linux # correct to gnu/linux during the next big refactor
  13491. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13492. soname_spec='$libname${shared_ext}.$major'
  13493. shlibpath_var=LD_LIBRARY_PATH
  13494. fi
  13495. ;;
  13496. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13497. version_type=freebsd-elf
  13498. need_lib_prefix=no
  13499. need_version=no
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13501. soname_spec='${libname}${release}${shared_ext}$major'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. shlibpath_overrides_runpath=yes
  13504. hardcode_into_libs=yes
  13505. if test "$with_gnu_ld" = yes; then
  13506. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13507. else
  13508. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13509. case $host_os in
  13510. sco3.2v5*)
  13511. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13512. ;;
  13513. esac
  13514. fi
  13515. sys_lib_dlsearch_path_spec='/usr/lib'
  13516. ;;
  13517. tpf*)
  13518. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13519. version_type=linux # correct to gnu/linux during the next big refactor
  13520. need_lib_prefix=no
  13521. need_version=no
  13522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13523. shlibpath_var=LD_LIBRARY_PATH
  13524. shlibpath_overrides_runpath=no
  13525. hardcode_into_libs=yes
  13526. ;;
  13527. uts4*)
  13528. version_type=linux # correct to gnu/linux during the next big refactor
  13529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13530. soname_spec='${libname}${release}${shared_ext}$major'
  13531. shlibpath_var=LD_LIBRARY_PATH
  13532. ;;
  13533. *)
  13534. dynamic_linker=no
  13535. ;;
  13536. esac
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13538. $as_echo "$dynamic_linker" >&6; }
  13539. test "$dynamic_linker" = no && can_build_shared=no
  13540. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13541. if test "$GCC" = yes; then
  13542. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13543. fi
  13544. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13545. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13546. fi
  13547. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13548. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13549. fi
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13551. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13552. hardcode_action_CXX=
  13553. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13554. test -n "$runpath_var_CXX" ||
  13555. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13556. # We can hardcode non-existent directories.
  13557. if test "$hardcode_direct_CXX" != no &&
  13558. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13559. # have to relink, otherwise we might link with an installed library
  13560. # when we should be linking with a yet-to-be-installed one
  13561. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13562. test "$hardcode_minus_L_CXX" != no; then
  13563. # Linking always hardcodes the temporary library directory.
  13564. hardcode_action_CXX=relink
  13565. else
  13566. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13567. hardcode_action_CXX=immediate
  13568. fi
  13569. else
  13570. # We cannot hardcode anything, or else we can only hardcode existing
  13571. # directories.
  13572. hardcode_action_CXX=unsupported
  13573. fi
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13575. $as_echo "$hardcode_action_CXX" >&6; }
  13576. if test "$hardcode_action_CXX" = relink ||
  13577. test "$inherit_rpath_CXX" = yes; then
  13578. # Fast installation is not supported
  13579. enable_fast_install=no
  13580. elif test "$shlibpath_overrides_runpath" = yes ||
  13581. test "$enable_shared" = no; then
  13582. # Fast installation is not necessary
  13583. enable_fast_install=needless
  13584. fi
  13585. fi # test -n "$compiler"
  13586. CC=$lt_save_CC
  13587. CFLAGS=$lt_save_CFLAGS
  13588. LDCXX=$LD
  13589. LD=$lt_save_LD
  13590. GCC=$lt_save_GCC
  13591. with_gnu_ld=$lt_save_with_gnu_ld
  13592. lt_cv_path_LDCXX=$lt_cv_path_LD
  13593. lt_cv_path_LD=$lt_save_path_LD
  13594. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13595. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13596. fi # test "$_lt_caught_CXX_error" != yes
  13597. ac_ext=c
  13598. ac_cpp='$CPP $CPPFLAGS'
  13599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13602. # Find a good install program. We prefer a C program (faster),
  13603. # so one script is as good as another. But avoid the broken or
  13604. # incompatible versions:
  13605. # SysV /etc/install, /usr/sbin/install
  13606. # SunOS /usr/etc/install
  13607. # IRIX /sbin/install
  13608. # AIX /bin/install
  13609. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13610. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13611. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13612. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13613. # OS/2's system install, which has a completely different semantic
  13614. # ./install, which can be erroneously created by make from ./install.sh.
  13615. # Reject install programs that cannot install multiple files.
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13617. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13618. if test -z "$INSTALL"; then
  13619. if ${ac_cv_path_install+:} false; then :
  13620. $as_echo_n "(cached) " >&6
  13621. else
  13622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13623. for as_dir in $PATH
  13624. do
  13625. IFS=$as_save_IFS
  13626. test -z "$as_dir" && as_dir=.
  13627. # Account for people who put trailing slashes in PATH elements.
  13628. case $as_dir/ in #((
  13629. ./ | .// | /[cC]/* | \
  13630. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13631. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13632. /usr/ucb/* ) ;;
  13633. *)
  13634. # OSF1 and SCO ODT 3.0 have their own names for install.
  13635. # Don't use installbsd from OSF since it installs stuff as root
  13636. # by default.
  13637. for ac_prog in ginstall scoinst install; do
  13638. for ac_exec_ext in '' $ac_executable_extensions; do
  13639. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13640. if test $ac_prog = install &&
  13641. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13642. # AIX install. It has an incompatible calling convention.
  13643. :
  13644. elif test $ac_prog = install &&
  13645. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13646. # program-specific install script used by HP pwplus--don't use.
  13647. :
  13648. else
  13649. rm -rf conftest.one conftest.two conftest.dir
  13650. echo one > conftest.one
  13651. echo two > conftest.two
  13652. mkdir conftest.dir
  13653. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13654. test -s conftest.one && test -s conftest.two &&
  13655. test -s conftest.dir/conftest.one &&
  13656. test -s conftest.dir/conftest.two
  13657. then
  13658. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13659. break 3
  13660. fi
  13661. fi
  13662. fi
  13663. done
  13664. done
  13665. ;;
  13666. esac
  13667. done
  13668. IFS=$as_save_IFS
  13669. rm -rf conftest.one conftest.two conftest.dir
  13670. fi
  13671. if test "${ac_cv_path_install+set}" = set; then
  13672. INSTALL=$ac_cv_path_install
  13673. else
  13674. # As a last resort, use the slow shell script. Don't cache a
  13675. # value for INSTALL within a source directory, because that will
  13676. # break other packages using the cache if that directory is
  13677. # removed, or if the value is a relative name.
  13678. INSTALL=$ac_install_sh
  13679. fi
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13682. $as_echo "$INSTALL" >&6; }
  13683. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13684. # It thinks the first close brace ends the variable substitution.
  13685. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13686. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13687. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13689. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13690. set x ${MAKE-make}
  13691. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13692. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13693. $as_echo_n "(cached) " >&6
  13694. else
  13695. cat >conftest.make <<\_ACEOF
  13696. SHELL = /bin/sh
  13697. all:
  13698. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13699. _ACEOF
  13700. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13701. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13702. *@@@%%%=?*=@@@%%%*)
  13703. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13704. *)
  13705. eval ac_cv_prog_make_${ac_make}_set=no;;
  13706. esac
  13707. rm -f conftest.make
  13708. fi
  13709. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13711. $as_echo "yes" >&6; }
  13712. SET_MAKE=
  13713. else
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13715. $as_echo "no" >&6; }
  13716. SET_MAKE="MAKE=${MAKE-make}"
  13717. fi
  13718. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13719. if test -n "$ac_tool_prefix"; then
  13720. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13721. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13723. $as_echo_n "checking for $ac_word... " >&6; }
  13724. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. case $PKG_CONFIG in
  13728. [\\/]* | ?:[\\/]*)
  13729. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13730. ;;
  13731. *)
  13732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13733. for as_dir in $PATH
  13734. do
  13735. IFS=$as_save_IFS
  13736. test -z "$as_dir" && as_dir=.
  13737. for ac_exec_ext in '' $ac_executable_extensions; do
  13738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13739. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13741. break 2
  13742. fi
  13743. done
  13744. done
  13745. IFS=$as_save_IFS
  13746. ;;
  13747. esac
  13748. fi
  13749. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13750. if test -n "$PKG_CONFIG"; then
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13752. $as_echo "$PKG_CONFIG" >&6; }
  13753. else
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13755. $as_echo "no" >&6; }
  13756. fi
  13757. fi
  13758. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13759. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13760. # Extract the first word of "pkg-config", so it can be a program name with args.
  13761. set dummy pkg-config; ac_word=$2
  13762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13763. $as_echo_n "checking for $ac_word... " >&6; }
  13764. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13765. $as_echo_n "(cached) " >&6
  13766. else
  13767. case $ac_pt_PKG_CONFIG in
  13768. [\\/]* | ?:[\\/]*)
  13769. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13770. ;;
  13771. *)
  13772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13773. for as_dir in $PATH
  13774. do
  13775. IFS=$as_save_IFS
  13776. test -z "$as_dir" && as_dir=.
  13777. for ac_exec_ext in '' $ac_executable_extensions; do
  13778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13779. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13781. break 2
  13782. fi
  13783. done
  13784. done
  13785. IFS=$as_save_IFS
  13786. ;;
  13787. esac
  13788. fi
  13789. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13790. if test -n "$ac_pt_PKG_CONFIG"; then
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13792. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13793. else
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13795. $as_echo "no" >&6; }
  13796. fi
  13797. if test "x$ac_pt_PKG_CONFIG" = x; then
  13798. PKG_CONFIG=""
  13799. else
  13800. case $cross_compiling:$ac_tool_warned in
  13801. yes:)
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13804. ac_tool_warned=yes ;;
  13805. esac
  13806. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13807. fi
  13808. else
  13809. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13810. fi
  13811. fi
  13812. if test -n "$PKG_CONFIG"; then
  13813. _pkg_min_version=0.9.0
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13815. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13816. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13818. $as_echo "yes" >&6; }
  13819. else
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13821. $as_echo "no" >&6; }
  13822. PKG_CONFIG=""
  13823. fi
  13824. fi
  13825. case "$host" in
  13826. *-*-mingw32*)
  13827. # Except on msys, where make can't handle full pathnames (bug 1972)
  13828. ;;
  13829. *)
  13830. srcdir=`cd $srcdir && pwd`
  13831. ;;
  13832. esac
  13833. INCLUDE="-I$srcdir/include"
  13834. case "$host" in
  13835. *-*-nto-qnx*)
  13836. ;;
  13837. *)
  13838. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13839. ;;
  13840. esac
  13841. if test x$srcdir != x.; then
  13842. INCLUDE="-Iinclude $INCLUDE"
  13843. elif test -d .hg; then
  13844. as_fn_error $? "
  13845. *** When building from Mercurial you should configure and build in a
  13846. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13847. " "$LINENO" 5
  13848. fi
  13849. BASE_CFLAGS=""
  13850. BASE_LDFLAGS=""
  13851. case "$host" in
  13852. *-*-cygwin*)
  13853. # We build SDL on cygwin without the UNIX emulation layer
  13854. save_CFLAGS="$CFLAGS"
  13855. have_no_cygwin=no
  13856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13857. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13858. CFLAGS="$save_CFLAGS -mno-cygwin"
  13859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13860. /* end confdefs.h. */
  13861. int
  13862. main ()
  13863. {
  13864. ;
  13865. return 0;
  13866. }
  13867. _ACEOF
  13868. if ac_fn_c_try_compile "$LINENO"; then :
  13869. have_no_cygwin=yes
  13870. fi
  13871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13873. $as_echo "$have_no_cygwin" >&6; }
  13874. CFLAGS="$save_CFLAGS"
  13875. if test x$have_no_cygwin = xyes; then
  13876. BASE_CFLAGS="-mno-cygwin"
  13877. BASE_LDFLAGS="-mno-cygwin"
  13878. fi
  13879. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13880. ;;
  13881. esac
  13882. # Uncomment the following line if you want to force SDL and applications
  13883. # built with it to be compiled for a particular architecture.
  13884. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13885. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13886. # The default optimization for SDL is -O3 (Bug #31)
  13887. if test "x$orig_CFLAGS" = x; then
  13888. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13889. fi
  13890. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13891. BUILD_LDFLAGS="$LDFLAGS"
  13892. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13893. ## These are common directories to find software packages
  13894. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13895. # if test -d $path/include; then
  13896. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13897. # fi
  13898. # if test -d $path/lib; then
  13899. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13900. # fi
  13901. #done
  13902. SDL_CFLAGS="$BASE_CFLAGS"
  13903. SDL_LIBS="-lSDL2"
  13904. if test "x$BASE_LDFLAGS" != x; then
  13905. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13906. fi
  13907. if test "x$EXTRA_CFLAGS" != x; then
  13908. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13909. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13910. fi
  13911. if test "x$EXTRA_LDFLAGS" != x; then
  13912. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13913. fi
  13914. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13915. find_lib()
  13916. {
  13917. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13918. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13919. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13920. if test "$cross_compiling" = yes; then
  13921. host_lib_path=""
  13922. else
  13923. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13924. fi
  13925. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13926. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13927. if test x$lib != x; then
  13928. echo $lib
  13929. return
  13930. fi
  13931. done
  13932. # Try again, this time allowing more than one version digit after the .so
  13933. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13934. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13935. if test x$lib != x; then
  13936. echo $lib
  13937. return
  13938. fi
  13939. done
  13940. }
  13941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13942. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13943. if ${ac_cv_c_const+:} false; then :
  13944. $as_echo_n "(cached) " >&6
  13945. else
  13946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13947. /* end confdefs.h. */
  13948. int
  13949. main ()
  13950. {
  13951. #ifndef __cplusplus
  13952. /* Ultrix mips cc rejects this sort of thing. */
  13953. typedef int charset[2];
  13954. const charset cs = { 0, 0 };
  13955. /* SunOS 4.1.1 cc rejects this. */
  13956. char const *const *pcpcc;
  13957. char **ppc;
  13958. /* NEC SVR4.0.2 mips cc rejects this. */
  13959. struct point {int x, y;};
  13960. static struct point const zero = {0,0};
  13961. /* AIX XL C 1.02.0.0 rejects this.
  13962. It does not let you subtract one const X* pointer from another in
  13963. an arm of an if-expression whose if-part is not a constant
  13964. expression */
  13965. const char *g = "string";
  13966. pcpcc = &g + (g ? g-g : 0);
  13967. /* HPUX 7.0 cc rejects these. */
  13968. ++pcpcc;
  13969. ppc = (char**) pcpcc;
  13970. pcpcc = (char const *const *) ppc;
  13971. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13972. char tx;
  13973. char *t = &tx;
  13974. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13975. *t++ = 0;
  13976. if (s) return 0;
  13977. }
  13978. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13979. int x[] = {25, 17};
  13980. const int *foo = &x[0];
  13981. ++foo;
  13982. }
  13983. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13984. typedef const int *iptr;
  13985. iptr p = 0;
  13986. ++p;
  13987. }
  13988. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13989. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13990. struct s { int j; const int *ap[3]; } bx;
  13991. struct s *b = &bx; b->j = 5;
  13992. }
  13993. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13994. const int foo = 10;
  13995. if (!foo) return 0;
  13996. }
  13997. return !cs[0] && !zero.x;
  13998. #endif
  13999. ;
  14000. return 0;
  14001. }
  14002. _ACEOF
  14003. if ac_fn_c_try_compile "$LINENO"; then :
  14004. ac_cv_c_const=yes
  14005. else
  14006. ac_cv_c_const=no
  14007. fi
  14008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14009. fi
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14011. $as_echo "$ac_cv_c_const" >&6; }
  14012. if test $ac_cv_c_const = no; then
  14013. $as_echo "#define const /**/" >>confdefs.h
  14014. fi
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14016. $as_echo_n "checking for inline... " >&6; }
  14017. if ${ac_cv_c_inline+:} false; then :
  14018. $as_echo_n "(cached) " >&6
  14019. else
  14020. ac_cv_c_inline=no
  14021. for ac_kw in inline __inline__ __inline; do
  14022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14023. /* end confdefs.h. */
  14024. #ifndef __cplusplus
  14025. typedef int foo_t;
  14026. static $ac_kw foo_t static_foo () {return 0; }
  14027. $ac_kw foo_t foo () {return 0; }
  14028. #endif
  14029. _ACEOF
  14030. if ac_fn_c_try_compile "$LINENO"; then :
  14031. ac_cv_c_inline=$ac_kw
  14032. fi
  14033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14034. test "$ac_cv_c_inline" != no && break
  14035. done
  14036. fi
  14037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14038. $as_echo "$ac_cv_c_inline" >&6; }
  14039. case $ac_cv_c_inline in
  14040. inline | yes) ;;
  14041. *)
  14042. case $ac_cv_c_inline in
  14043. no) ac_val=;;
  14044. *) ac_val=$ac_cv_c_inline;;
  14045. esac
  14046. cat >>confdefs.h <<_ACEOF
  14047. #ifndef __cplusplus
  14048. #define inline $ac_val
  14049. #endif
  14050. _ACEOF
  14051. ;;
  14052. esac
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14054. $as_echo_n "checking for working volatile... " >&6; }
  14055. if ${ac_cv_c_volatile+:} false; then :
  14056. $as_echo_n "(cached) " >&6
  14057. else
  14058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14059. /* end confdefs.h. */
  14060. int
  14061. main ()
  14062. {
  14063. volatile int x;
  14064. int * volatile y = (int *) 0;
  14065. return !x && !y;
  14066. ;
  14067. return 0;
  14068. }
  14069. _ACEOF
  14070. if ac_fn_c_try_compile "$LINENO"; then :
  14071. ac_cv_c_volatile=yes
  14072. else
  14073. ac_cv_c_volatile=no
  14074. fi
  14075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14076. fi
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14078. $as_echo "$ac_cv_c_volatile" >&6; }
  14079. if test $ac_cv_c_volatile = no; then
  14080. $as_echo "#define volatile /**/" >>confdefs.h
  14081. fi
  14082. # Check whether --enable-assertions was given.
  14083. if test "${enable_assertions+set}" = set; then :
  14084. enableval=$enable_assertions;
  14085. else
  14086. enable_assertions=auto
  14087. fi
  14088. case "$enable_assertions" in
  14089. auto) # Use optimization settings to determine assertion level
  14090. ;;
  14091. disabled)
  14092. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14093. ;;
  14094. release)
  14095. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14096. ;;
  14097. enabled)
  14098. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14099. ;;
  14100. paranoid)
  14101. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14102. ;;
  14103. *)
  14104. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14105. ;;
  14106. esac
  14107. # Check whether --enable-dependency-tracking was given.
  14108. if test "${enable_dependency_tracking+set}" = set; then :
  14109. enableval=$enable_dependency_tracking;
  14110. else
  14111. enable_dependency_tracking=yes
  14112. fi
  14113. if test x$enable_dependency_tracking = xyes; then
  14114. have_gcc_mmd_mt=no
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14116. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14118. /* end confdefs.h. */
  14119. #if !defined(__GNUC__) || __GNUC__ < 3
  14120. #error Dependency tracking requires GCC 3.0 or newer
  14121. #endif
  14122. int
  14123. main ()
  14124. {
  14125. ;
  14126. return 0;
  14127. }
  14128. _ACEOF
  14129. if ac_fn_c_try_compile "$LINENO"; then :
  14130. have_gcc_mmd_mt=yes
  14131. fi
  14132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14134. $as_echo "$have_gcc_mmd_mt" >&6; }
  14135. if test x$have_gcc_mmd_mt = xyes; then
  14136. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14137. fi
  14138. fi
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14140. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14141. have_no_undefined=no
  14142. case "$host" in
  14143. *-*-openbsd*)
  14144. ;;
  14145. *)
  14146. save_LDFLAGS="$LDFLAGS"
  14147. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14149. /* end confdefs.h. */
  14150. int
  14151. main ()
  14152. {
  14153. ;
  14154. return 0;
  14155. }
  14156. _ACEOF
  14157. if ac_fn_c_try_link "$LINENO"; then :
  14158. have_no_undefined=yes
  14159. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14160. fi
  14161. rm -f core conftest.err conftest.$ac_objext \
  14162. conftest$ac_exeext conftest.$ac_ext
  14163. LDFLAGS="$save_LDFLAGS"
  14164. ;;
  14165. esac
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14167. $as_echo "$have_no_undefined" >&6; }
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14169. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14170. have_dynamicbase=no
  14171. case "$host" in
  14172. *)
  14173. save_LDFLAGS="$LDFLAGS"
  14174. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14176. /* end confdefs.h. */
  14177. int
  14178. main ()
  14179. {
  14180. ;
  14181. return 0;
  14182. }
  14183. _ACEOF
  14184. if ac_fn_c_try_link "$LINENO"; then :
  14185. have_dynamicbase=yes
  14186. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14187. fi
  14188. rm -f core conftest.err conftest.$ac_objext \
  14189. conftest$ac_exeext conftest.$ac_ext
  14190. LDFLAGS="$save_LDFLAGS"
  14191. ;;
  14192. esac
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14194. $as_echo "$have_dynamicbase" >&6; }
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14196. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14197. have_nxcompat=no
  14198. case "$host" in
  14199. *)
  14200. save_LDFLAGS="$LDFLAGS"
  14201. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14203. /* end confdefs.h. */
  14204. int
  14205. main ()
  14206. {
  14207. ;
  14208. return 0;
  14209. }
  14210. _ACEOF
  14211. if ac_fn_c_try_link "$LINENO"; then :
  14212. have_nxcompat=yes
  14213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14214. fi
  14215. rm -f core conftest.err conftest.$ac_objext \
  14216. conftest$ac_exeext conftest.$ac_ext
  14217. LDFLAGS="$save_LDFLAGS"
  14218. ;;
  14219. esac
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14221. $as_echo "$have_nxcompat" >&6; }
  14222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14223. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14224. have_high_entropy_va=no
  14225. case "$host" in
  14226. *)
  14227. save_LDFLAGS="$LDFLAGS"
  14228. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14230. /* end confdefs.h. */
  14231. int
  14232. main ()
  14233. {
  14234. ;
  14235. return 0;
  14236. }
  14237. _ACEOF
  14238. if ac_fn_c_try_link "$LINENO"; then :
  14239. have_high_entropy_va=yes
  14240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14241. fi
  14242. rm -f core conftest.err conftest.$ac_objext \
  14243. conftest$ac_exeext conftest.$ac_ext
  14244. LDFLAGS="$save_LDFLAGS"
  14245. ;;
  14246. esac
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14248. $as_echo "$have_high_entropy_va" >&6; }
  14249. # Check whether --enable-libc was given.
  14250. if test "${enable_libc+set}" = set; then :
  14251. enableval=$enable_libc;
  14252. else
  14253. enable_libc=yes
  14254. fi
  14255. if test x$enable_libc = xyes; then
  14256. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14258. $as_echo_n "checking for ANSI C header files... " >&6; }
  14259. if ${ac_cv_header_stdc+:} false; then :
  14260. $as_echo_n "(cached) " >&6
  14261. else
  14262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14263. /* end confdefs.h. */
  14264. #include <stdlib.h>
  14265. #include <stdarg.h>
  14266. #include <string.h>
  14267. #include <float.h>
  14268. int
  14269. main ()
  14270. {
  14271. ;
  14272. return 0;
  14273. }
  14274. _ACEOF
  14275. if ac_fn_c_try_compile "$LINENO"; then :
  14276. ac_cv_header_stdc=yes
  14277. else
  14278. ac_cv_header_stdc=no
  14279. fi
  14280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14281. if test $ac_cv_header_stdc = yes; then
  14282. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14284. /* end confdefs.h. */
  14285. #include <string.h>
  14286. _ACEOF
  14287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14288. $EGREP "memchr" >/dev/null 2>&1; then :
  14289. else
  14290. ac_cv_header_stdc=no
  14291. fi
  14292. rm -f conftest*
  14293. fi
  14294. if test $ac_cv_header_stdc = yes; then
  14295. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. #include <stdlib.h>
  14299. _ACEOF
  14300. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14301. $EGREP "free" >/dev/null 2>&1; then :
  14302. else
  14303. ac_cv_header_stdc=no
  14304. fi
  14305. rm -f conftest*
  14306. fi
  14307. if test $ac_cv_header_stdc = yes; then
  14308. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14309. if test "$cross_compiling" = yes; then :
  14310. :
  14311. else
  14312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14313. /* end confdefs.h. */
  14314. #include <ctype.h>
  14315. #include <stdlib.h>
  14316. #if ((' ' & 0x0FF) == 0x020)
  14317. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14318. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14319. #else
  14320. # define ISLOWER(c) \
  14321. (('a' <= (c) && (c) <= 'i') \
  14322. || ('j' <= (c) && (c) <= 'r') \
  14323. || ('s' <= (c) && (c) <= 'z'))
  14324. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14325. #endif
  14326. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14327. int
  14328. main ()
  14329. {
  14330. int i;
  14331. for (i = 0; i < 256; i++)
  14332. if (XOR (islower (i), ISLOWER (i))
  14333. || toupper (i) != TOUPPER (i))
  14334. return 2;
  14335. return 0;
  14336. }
  14337. _ACEOF
  14338. if ac_fn_c_try_run "$LINENO"; then :
  14339. else
  14340. ac_cv_header_stdc=no
  14341. fi
  14342. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14343. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14344. fi
  14345. fi
  14346. fi
  14347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14348. $as_echo "$ac_cv_header_stdc" >&6; }
  14349. if test $ac_cv_header_stdc = yes; then
  14350. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14351. fi
  14352. 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
  14353. do :
  14354. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14355. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14356. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14357. cat >>confdefs.h <<_ACEOF
  14358. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14359. _ACEOF
  14360. fi
  14361. done
  14362. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14363. if test "x$ac_cv_type_size_t" = xyes; then :
  14364. else
  14365. cat >>confdefs.h <<_ACEOF
  14366. #define size_t unsigned int
  14367. _ACEOF
  14368. fi
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14370. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14371. if ${ac_cv_define_M_PI+:} false; then :
  14372. $as_echo_n "(cached) " >&6
  14373. else
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. #include <math.h>
  14377. #ifdef M_PI
  14378. YES_IS_DEFINED
  14379. #endif
  14380. _ACEOF
  14381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14382. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14383. ac_cv_define_M_PI=yes
  14384. else
  14385. ac_cv_define_M_PI=no
  14386. fi
  14387. rm -f conftest*
  14388. fi
  14389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14390. $as_echo "$ac_cv_define_M_PI" >&6; }
  14391. if test "$ac_cv_define_M_PI" = "yes" ; then
  14392. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14393. fi
  14394. case "$host" in
  14395. *-*-cygwin* | *-*-mingw32*)
  14396. ;;
  14397. *)
  14398. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14399. # for constant arguments. Useless!
  14400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14401. $as_echo_n "checking for working alloca.h... " >&6; }
  14402. if ${ac_cv_working_alloca_h+:} false; then :
  14403. $as_echo_n "(cached) " >&6
  14404. else
  14405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14406. /* end confdefs.h. */
  14407. #include <alloca.h>
  14408. int
  14409. main ()
  14410. {
  14411. char *p = (char *) alloca (2 * sizeof (int));
  14412. if (p) return 0;
  14413. ;
  14414. return 0;
  14415. }
  14416. _ACEOF
  14417. if ac_fn_c_try_link "$LINENO"; then :
  14418. ac_cv_working_alloca_h=yes
  14419. else
  14420. ac_cv_working_alloca_h=no
  14421. fi
  14422. rm -f core conftest.err conftest.$ac_objext \
  14423. conftest$ac_exeext conftest.$ac_ext
  14424. fi
  14425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14426. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14427. if test $ac_cv_working_alloca_h = yes; then
  14428. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14429. fi
  14430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14431. $as_echo_n "checking for alloca... " >&6; }
  14432. if ${ac_cv_func_alloca_works+:} false; then :
  14433. $as_echo_n "(cached) " >&6
  14434. else
  14435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14436. /* end confdefs.h. */
  14437. #ifdef __GNUC__
  14438. # define alloca __builtin_alloca
  14439. #else
  14440. # ifdef _MSC_VER
  14441. # include <malloc.h>
  14442. # define alloca _alloca
  14443. # else
  14444. # ifdef HAVE_ALLOCA_H
  14445. # include <alloca.h>
  14446. # else
  14447. # ifdef _AIX
  14448. #pragma alloca
  14449. # else
  14450. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14451. void *alloca (size_t);
  14452. # endif
  14453. # endif
  14454. # endif
  14455. # endif
  14456. #endif
  14457. int
  14458. main ()
  14459. {
  14460. char *p = (char *) alloca (1);
  14461. if (p) return 0;
  14462. ;
  14463. return 0;
  14464. }
  14465. _ACEOF
  14466. if ac_fn_c_try_link "$LINENO"; then :
  14467. ac_cv_func_alloca_works=yes
  14468. else
  14469. ac_cv_func_alloca_works=no
  14470. fi
  14471. rm -f core conftest.err conftest.$ac_objext \
  14472. conftest$ac_exeext conftest.$ac_ext
  14473. fi
  14474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14475. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14476. if test $ac_cv_func_alloca_works = yes; then
  14477. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14478. else
  14479. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14480. # that cause trouble. Some versions do not even contain alloca or
  14481. # contain a buggy version. If you still want to use their alloca,
  14482. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14483. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14484. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14486. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14487. if ${ac_cv_os_cray+:} false; then :
  14488. $as_echo_n "(cached) " >&6
  14489. else
  14490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14491. /* end confdefs.h. */
  14492. #if defined CRAY && ! defined CRAY2
  14493. webecray
  14494. #else
  14495. wenotbecray
  14496. #endif
  14497. _ACEOF
  14498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14499. $EGREP "webecray" >/dev/null 2>&1; then :
  14500. ac_cv_os_cray=yes
  14501. else
  14502. ac_cv_os_cray=no
  14503. fi
  14504. rm -f conftest*
  14505. fi
  14506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14507. $as_echo "$ac_cv_os_cray" >&6; }
  14508. if test $ac_cv_os_cray = yes; then
  14509. for ac_func in _getb67 GETB67 getb67; do
  14510. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14511. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14512. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14513. cat >>confdefs.h <<_ACEOF
  14514. #define CRAY_STACKSEG_END $ac_func
  14515. _ACEOF
  14516. break
  14517. fi
  14518. done
  14519. fi
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14521. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14522. if ${ac_cv_c_stack_direction+:} false; then :
  14523. $as_echo_n "(cached) " >&6
  14524. else
  14525. if test "$cross_compiling" = yes; then :
  14526. ac_cv_c_stack_direction=0
  14527. else
  14528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14529. /* end confdefs.h. */
  14530. $ac_includes_default
  14531. int
  14532. find_stack_direction (int *addr, int depth)
  14533. {
  14534. int dir, dummy = 0;
  14535. if (! addr)
  14536. addr = &dummy;
  14537. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14538. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14539. return dir + dummy;
  14540. }
  14541. int
  14542. main (int argc, char **argv)
  14543. {
  14544. return find_stack_direction (0, argc + !argv + 20) < 0;
  14545. }
  14546. _ACEOF
  14547. if ac_fn_c_try_run "$LINENO"; then :
  14548. ac_cv_c_stack_direction=1
  14549. else
  14550. ac_cv_c_stack_direction=-1
  14551. fi
  14552. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14553. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14554. fi
  14555. fi
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14557. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14558. cat >>confdefs.h <<_ACEOF
  14559. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14560. _ACEOF
  14561. fi
  14562. ;;
  14563. esac
  14564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14565. $as_echo_n "checking for working memcmp... " >&6; }
  14566. if ${ac_cv_func_memcmp_working+:} false; then :
  14567. $as_echo_n "(cached) " >&6
  14568. else
  14569. if test "$cross_compiling" = yes; then :
  14570. ac_cv_func_memcmp_working=no
  14571. else
  14572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14573. /* end confdefs.h. */
  14574. $ac_includes_default
  14575. int
  14576. main ()
  14577. {
  14578. /* Some versions of memcmp are not 8-bit clean. */
  14579. char c0 = '\100', c1 = '\200', c2 = '\201';
  14580. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14581. return 1;
  14582. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14583. or more and with at least one buffer not starting on a 4-byte boundary.
  14584. William Lewis provided this test program. */
  14585. {
  14586. char foo[21];
  14587. char bar[21];
  14588. int i;
  14589. for (i = 0; i < 4; i++)
  14590. {
  14591. char *a = foo + i;
  14592. char *b = bar + i;
  14593. strcpy (a, "--------01111111");
  14594. strcpy (b, "--------10000000");
  14595. if (memcmp (a, b, 16) >= 0)
  14596. return 1;
  14597. }
  14598. return 0;
  14599. }
  14600. ;
  14601. return 0;
  14602. }
  14603. _ACEOF
  14604. if ac_fn_c_try_run "$LINENO"; then :
  14605. ac_cv_func_memcmp_working=yes
  14606. else
  14607. ac_cv_func_memcmp_working=no
  14608. fi
  14609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14610. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14611. fi
  14612. fi
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14614. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14615. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14616. *" memcmp.$ac_objext "* ) ;;
  14617. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14618. ;;
  14619. esac
  14620. if test x$ac_cv_func_memcmp_working = xyes; then
  14621. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14622. fi
  14623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14624. $as_echo_n "checking for working strtod... " >&6; }
  14625. if ${ac_cv_func_strtod+:} false; then :
  14626. $as_echo_n "(cached) " >&6
  14627. else
  14628. if test "$cross_compiling" = yes; then :
  14629. ac_cv_func_strtod=no
  14630. else
  14631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14632. /* end confdefs.h. */
  14633. $ac_includes_default
  14634. #ifndef strtod
  14635. double strtod ();
  14636. #endif
  14637. int
  14638. main()
  14639. {
  14640. {
  14641. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14642. char *string = " +69";
  14643. char *term;
  14644. double value;
  14645. value = strtod (string, &term);
  14646. if (value != 69 || term != (string + 4))
  14647. return 1;
  14648. }
  14649. {
  14650. /* Under Solaris 2.4, strtod returns the wrong value for the
  14651. terminating character under some conditions. */
  14652. char *string = "NaN";
  14653. char *term;
  14654. strtod (string, &term);
  14655. if (term != string && *(term - 1) == 0)
  14656. return 1;
  14657. }
  14658. return 0;
  14659. }
  14660. _ACEOF
  14661. if ac_fn_c_try_run "$LINENO"; then :
  14662. ac_cv_func_strtod=yes
  14663. else
  14664. ac_cv_func_strtod=no
  14665. fi
  14666. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14667. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14668. fi
  14669. fi
  14670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14671. $as_echo "$ac_cv_func_strtod" >&6; }
  14672. if test $ac_cv_func_strtod = no; then
  14673. case " $LIBOBJS " in
  14674. *" strtod.$ac_objext "* ) ;;
  14675. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14676. ;;
  14677. esac
  14678. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14679. if test "x$ac_cv_func_pow" = xyes; then :
  14680. fi
  14681. if test $ac_cv_func_pow = no; then
  14682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14683. $as_echo_n "checking for pow in -lm... " >&6; }
  14684. if ${ac_cv_lib_m_pow+:} false; then :
  14685. $as_echo_n "(cached) " >&6
  14686. else
  14687. ac_check_lib_save_LIBS=$LIBS
  14688. LIBS="-lm $LIBS"
  14689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14690. /* end confdefs.h. */
  14691. /* Override any GCC internal prototype to avoid an error.
  14692. Use char because int might match the return type of a GCC
  14693. builtin and then its argument prototype would still apply. */
  14694. #ifdef __cplusplus
  14695. extern "C"
  14696. #endif
  14697. char pow ();
  14698. int
  14699. main ()
  14700. {
  14701. return pow ();
  14702. ;
  14703. return 0;
  14704. }
  14705. _ACEOF
  14706. if ac_fn_c_try_link "$LINENO"; then :
  14707. ac_cv_lib_m_pow=yes
  14708. else
  14709. ac_cv_lib_m_pow=no
  14710. fi
  14711. rm -f core conftest.err conftest.$ac_objext \
  14712. conftest$ac_exeext conftest.$ac_ext
  14713. LIBS=$ac_check_lib_save_LIBS
  14714. fi
  14715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14716. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14717. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14718. POW_LIB=-lm
  14719. else
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14721. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14722. fi
  14723. fi
  14724. fi
  14725. if test x$ac_cv_func_strtod = xyes; then
  14726. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14727. fi
  14728. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14729. if test "x$ac_cv_func_mprotect" = xyes; then :
  14730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14731. /* end confdefs.h. */
  14732. #include <sys/types.h>
  14733. #include <sys/mman.h>
  14734. int
  14735. main ()
  14736. {
  14737. ;
  14738. return 0;
  14739. }
  14740. _ACEOF
  14741. if ac_fn_c_try_compile "$LINENO"; then :
  14742. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14743. fi
  14744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14745. fi
  14746. 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
  14747. do :
  14748. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14749. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14750. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14751. cat >>confdefs.h <<_ACEOF
  14752. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14753. _ACEOF
  14754. fi
  14755. done
  14756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14757. $as_echo_n "checking for pow in -lm... " >&6; }
  14758. if ${ac_cv_lib_m_pow+:} false; then :
  14759. $as_echo_n "(cached) " >&6
  14760. else
  14761. ac_check_lib_save_LIBS=$LIBS
  14762. LIBS="-lm $LIBS"
  14763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14764. /* end confdefs.h. */
  14765. /* Override any GCC internal prototype to avoid an error.
  14766. Use char because int might match the return type of a GCC
  14767. builtin and then its argument prototype would still apply. */
  14768. #ifdef __cplusplus
  14769. extern "C"
  14770. #endif
  14771. char pow ();
  14772. int
  14773. main ()
  14774. {
  14775. return pow ();
  14776. ;
  14777. return 0;
  14778. }
  14779. _ACEOF
  14780. if ac_fn_c_try_link "$LINENO"; then :
  14781. ac_cv_lib_m_pow=yes
  14782. else
  14783. ac_cv_lib_m_pow=no
  14784. fi
  14785. rm -f core conftest.err conftest.$ac_objext \
  14786. conftest$ac_exeext conftest.$ac_ext
  14787. LIBS=$ac_check_lib_save_LIBS
  14788. fi
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14790. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14791. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14792. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14793. fi
  14794. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14795. do :
  14796. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14797. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14798. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14799. cat >>confdefs.h <<_ACEOF
  14800. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14801. _ACEOF
  14802. fi
  14803. done
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14805. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14806. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14807. $as_echo_n "(cached) " >&6
  14808. else
  14809. ac_check_lib_save_LIBS=$LIBS
  14810. LIBS="-liconv $LIBS"
  14811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14812. /* end confdefs.h. */
  14813. /* Override any GCC internal prototype to avoid an error.
  14814. Use char because int might match the return type of a GCC
  14815. builtin and then its argument prototype would still apply. */
  14816. #ifdef __cplusplus
  14817. extern "C"
  14818. #endif
  14819. char iconv_open ();
  14820. int
  14821. main ()
  14822. {
  14823. return iconv_open ();
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. if ac_fn_c_try_link "$LINENO"; then :
  14829. ac_cv_lib_iconv_iconv_open=yes
  14830. else
  14831. ac_cv_lib_iconv_iconv_open=no
  14832. fi
  14833. rm -f core conftest.err conftest.$ac_objext \
  14834. conftest$ac_exeext conftest.$ac_ext
  14835. LIBS=$ac_check_lib_save_LIBS
  14836. fi
  14837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14838. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14839. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14840. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14841. fi
  14842. for ac_func in iconv
  14843. do :
  14844. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14845. if test "x$ac_cv_func_iconv" = xyes; then :
  14846. cat >>confdefs.h <<_ACEOF
  14847. #define HAVE_ICONV 1
  14848. _ACEOF
  14849. fi
  14850. done
  14851. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14852. "
  14853. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14854. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14855. fi
  14856. for ac_header in libunwind.h
  14857. do :
  14858. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14859. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14860. cat >>confdefs.h <<_ACEOF
  14861. #define HAVE_LIBUNWIND_H 1
  14862. _ACEOF
  14863. fi
  14864. done
  14865. fi
  14866. # Check whether --enable-gcc-atomics was given.
  14867. if test "${enable_gcc_atomics+set}" = set; then :
  14868. enableval=$enable_gcc_atomics;
  14869. else
  14870. enable_gcc_atomics=yes
  14871. fi
  14872. if test x$enable_gcc_atomics = xyes; then
  14873. have_gcc_atomics=no
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14875. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14877. /* end confdefs.h. */
  14878. int
  14879. main ()
  14880. {
  14881. int a;
  14882. void *x, *y, *z;
  14883. __sync_lock_test_and_set(&a, 4);
  14884. __sync_lock_test_and_set(&x, y);
  14885. __sync_fetch_and_add(&a, 1);
  14886. __sync_bool_compare_and_swap(&a, 5, 10);
  14887. __sync_bool_compare_and_swap(&x, y, z);
  14888. ;
  14889. return 0;
  14890. }
  14891. _ACEOF
  14892. if ac_fn_c_try_link "$LINENO"; then :
  14893. have_gcc_atomics=yes
  14894. fi
  14895. rm -f core conftest.err conftest.$ac_objext \
  14896. conftest$ac_exeext conftest.$ac_ext
  14897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14898. $as_echo "$have_gcc_atomics" >&6; }
  14899. if test x$have_gcc_atomics = xyes; then
  14900. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14901. else
  14902. # See if we have the minimum operation needed for GCC atomics
  14903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14904. /* end confdefs.h. */
  14905. int
  14906. main ()
  14907. {
  14908. int a;
  14909. __sync_lock_test_and_set(&a, 1);
  14910. __sync_lock_release(&a);
  14911. ;
  14912. return 0;
  14913. }
  14914. _ACEOF
  14915. if ac_fn_c_try_link "$LINENO"; then :
  14916. have_gcc_sync_lock_test_and_set=yes
  14917. fi
  14918. rm -f core conftest.err conftest.$ac_objext \
  14919. conftest$ac_exeext conftest.$ac_ext
  14920. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14921. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14922. fi
  14923. fi
  14924. fi
  14925. # Standard C sources
  14926. SOURCES="$SOURCES $srcdir/src/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14936. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14937. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14938. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14939. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14940. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14948. # Check whether --enable-atomic was given.
  14949. if test "${enable_atomic+set}" = set; then :
  14950. enableval=$enable_atomic;
  14951. else
  14952. enable_atomic=yes
  14953. fi
  14954. if test x$enable_atomic != xyes; then
  14955. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14956. else
  14957. SUMMARY_modules="${SUMMARY_modules} atomic"
  14958. fi
  14959. # Check whether --enable-audio was given.
  14960. if test "${enable_audio+set}" = set; then :
  14961. enableval=$enable_audio;
  14962. else
  14963. enable_audio=yes
  14964. fi
  14965. if test x$enable_audio != xyes; then
  14966. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14967. else
  14968. SUMMARY_modules="${SUMMARY_modules} audio"
  14969. fi
  14970. # Check whether --enable-video was given.
  14971. if test "${enable_video+set}" = set; then :
  14972. enableval=$enable_video;
  14973. else
  14974. enable_video=yes
  14975. fi
  14976. if test x$enable_video != xyes; then
  14977. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14978. else
  14979. SUMMARY_modules="${SUMMARY_modules} video"
  14980. fi
  14981. # Check whether --enable-render was given.
  14982. if test "${enable_render+set}" = set; then :
  14983. enableval=$enable_render;
  14984. else
  14985. enable_render=yes
  14986. fi
  14987. if test x$enable_render != xyes; then
  14988. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14989. else
  14990. SUMMARY_modules="${SUMMARY_modules} render"
  14991. fi
  14992. # Check whether --enable-events was given.
  14993. if test "${enable_events+set}" = set; then :
  14994. enableval=$enable_events;
  14995. else
  14996. enable_events=yes
  14997. fi
  14998. if test x$enable_events != xyes; then
  14999. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15000. else
  15001. SUMMARY_modules="${SUMMARY_modules} events"
  15002. fi
  15003. # Check whether --enable-joystick was given.
  15004. if test "${enable_joystick+set}" = set; then :
  15005. enableval=$enable_joystick;
  15006. else
  15007. enable_joystick=yes
  15008. fi
  15009. if test x$enable_joystick != xyes; then
  15010. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15011. else
  15012. SUMMARY_modules="${SUMMARY_modules} joystick"
  15013. fi
  15014. # Check whether --enable-haptic was given.
  15015. if test "${enable_haptic+set}" = set; then :
  15016. enableval=$enable_haptic;
  15017. else
  15018. enable_haptic=yes
  15019. fi
  15020. if test x$enable_haptic != xyes; then
  15021. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15022. else
  15023. SUMMARY_modules="${SUMMARY_modules} haptic"
  15024. fi
  15025. # Check whether --enable-sensor was given.
  15026. if test "${enable_sensor+set}" = set; then :
  15027. enableval=$enable_sensor;
  15028. else
  15029. enable_sensor=yes
  15030. fi
  15031. if test x$enable_sensor != xyes; then
  15032. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15033. else
  15034. SUMMARY_modules="${SUMMARY_modules} sensor"
  15035. fi
  15036. # Check whether --enable-power was given.
  15037. if test "${enable_power+set}" = set; then :
  15038. enableval=$enable_power;
  15039. else
  15040. enable_power=yes
  15041. fi
  15042. if test x$enable_power != xyes; then
  15043. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15044. else
  15045. SUMMARY_modules="${SUMMARY_modules} power"
  15046. fi
  15047. # Check whether --enable-filesystem was given.
  15048. if test "${enable_filesystem+set}" = set; then :
  15049. enableval=$enable_filesystem;
  15050. else
  15051. enable_filesystem=yes
  15052. fi
  15053. if test x$enable_filesystem != xyes; then
  15054. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15055. else
  15056. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15057. fi
  15058. # Check whether --enable-threads was given.
  15059. if test "${enable_threads+set}" = set; then :
  15060. enableval=$enable_threads;
  15061. else
  15062. enable_threads=yes
  15063. fi
  15064. if test x$enable_threads != xyes; then
  15065. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15066. else
  15067. SUMMARY_modules="${SUMMARY_modules} threads"
  15068. fi
  15069. # Check whether --enable-timers was given.
  15070. if test "${enable_timers+set}" = set; then :
  15071. enableval=$enable_timers;
  15072. else
  15073. enable_timers=yes
  15074. fi
  15075. if test x$enable_timers != xyes; then
  15076. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15077. else
  15078. SUMMARY_modules="${SUMMARY_modules} timers"
  15079. fi
  15080. # Check whether --enable-file was given.
  15081. if test "${enable_file+set}" = set; then :
  15082. enableval=$enable_file;
  15083. else
  15084. enable_file=yes
  15085. fi
  15086. if test x$enable_file != xyes; then
  15087. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15088. else
  15089. SUMMARY_modules="${SUMMARY_modules} file"
  15090. fi
  15091. # Check whether --enable-loadso was given.
  15092. if test "${enable_loadso+set}" = set; then :
  15093. enableval=$enable_loadso;
  15094. else
  15095. enable_loadso=yes
  15096. fi
  15097. if test x$enable_loadso != xyes; then
  15098. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15099. else
  15100. SUMMARY_modules="${SUMMARY_modules} loadso"
  15101. fi
  15102. # Check whether --enable-cpuinfo was given.
  15103. if test "${enable_cpuinfo+set}" = set; then :
  15104. enableval=$enable_cpuinfo;
  15105. else
  15106. enable_cpuinfo=yes
  15107. fi
  15108. if test x$enable_cpuinfo != xyes; then
  15109. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15110. else
  15111. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15112. fi
  15113. # Check whether --enable-assembly was given.
  15114. if test "${enable_assembly+set}" = set; then :
  15115. enableval=$enable_assembly;
  15116. else
  15117. enable_assembly=yes
  15118. fi
  15119. if test x$enable_assembly = xyes; then
  15120. SUMMARY_modules="${SUMMARY_modules} assembly"
  15121. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15122. # Make sure that we don't generate floating point code that would
  15123. # cause illegal instruction exceptions on older processors
  15124. case "$host" in
  15125. *-*-darwin*)
  15126. # Don't need to worry about Apple hardware, it's all SSE capable
  15127. default_ssemath=yes
  15128. ;;
  15129. *64-*-*)
  15130. # x86 64-bit architectures all have SSE instructions
  15131. default_ssemath=yes
  15132. ;;
  15133. *)
  15134. default_ssemath=no
  15135. ;;
  15136. esac
  15137. # Check whether --enable-ssemath was given.
  15138. if test "${enable_ssemath+set}" = set; then :
  15139. enableval=$enable_ssemath;
  15140. else
  15141. enable_ssemath=$default_ssemath
  15142. fi
  15143. if test x$enable_ssemath = xno; then
  15144. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15145. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15146. fi
  15147. fi
  15148. # Check whether --enable-mmx was given.
  15149. if test "${enable_mmx+set}" = set; then :
  15150. enableval=$enable_mmx;
  15151. else
  15152. enable_mmx=yes
  15153. fi
  15154. if test x$enable_mmx = xyes; then
  15155. save_CFLAGS="$CFLAGS"
  15156. have_gcc_mmx=no
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15158. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15159. mmx_CFLAGS="-mmmx"
  15160. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15162. /* end confdefs.h. */
  15163. #ifdef __MINGW32__
  15164. #include <_mingw.h>
  15165. #ifdef __MINGW64_VERSION_MAJOR
  15166. #include <intrin.h>
  15167. #else
  15168. #include <mmintrin.h>
  15169. #endif
  15170. #else
  15171. #include <mmintrin.h>
  15172. #endif
  15173. #ifndef __MMX__
  15174. #error Assembler CPP flag not enabled
  15175. #endif
  15176. int
  15177. main ()
  15178. {
  15179. ;
  15180. return 0;
  15181. }
  15182. _ACEOF
  15183. if ac_fn_c_try_compile "$LINENO"; then :
  15184. have_gcc_mmx=yes
  15185. fi
  15186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15188. $as_echo "$have_gcc_mmx" >&6; }
  15189. CFLAGS="$save_CFLAGS"
  15190. if test x$have_gcc_mmx = xyes; then
  15191. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15192. SUMMARY_math="${SUMMARY_math} mmx"
  15193. fi
  15194. fi
  15195. # Check whether --enable-3dnow was given.
  15196. if test "${enable_3dnow+set}" = set; then :
  15197. enableval=$enable_3dnow;
  15198. else
  15199. enable_3dnow=yes
  15200. fi
  15201. if test x$enable_3dnow = xyes; then
  15202. save_CFLAGS="$CFLAGS"
  15203. have_gcc_3dnow=no
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15205. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15206. amd3dnow_CFLAGS="-m3dnow"
  15207. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15209. /* end confdefs.h. */
  15210. #include <mm3dnow.h>
  15211. #ifndef __3dNOW__
  15212. #error Assembler CPP flag not enabled
  15213. #endif
  15214. int
  15215. main ()
  15216. {
  15217. void *p = 0;
  15218. _m_prefetch(p);
  15219. ;
  15220. return 0;
  15221. }
  15222. _ACEOF
  15223. if ac_fn_c_try_link "$LINENO"; then :
  15224. have_gcc_3dnow=yes
  15225. fi
  15226. rm -f core conftest.err conftest.$ac_objext \
  15227. conftest$ac_exeext conftest.$ac_ext
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15229. $as_echo "$have_gcc_3dnow" >&6; }
  15230. CFLAGS="$save_CFLAGS"
  15231. if test x$have_gcc_3dnow = xyes; then
  15232. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15233. SUMMARY_math="${SUMMARY_math} 3dnow"
  15234. fi
  15235. fi
  15236. # Check whether --enable-sse was given.
  15237. if test "${enable_sse+set}" = set; then :
  15238. enableval=$enable_sse;
  15239. else
  15240. enable_sse=yes
  15241. fi
  15242. if test x$enable_sse = xyes; then
  15243. save_CFLAGS="$CFLAGS"
  15244. have_gcc_sse=no
  15245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15246. $as_echo_n "checking for GCC -msse option... " >&6; }
  15247. sse_CFLAGS="-msse"
  15248. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15250. /* end confdefs.h. */
  15251. #ifdef __MINGW32__
  15252. #include <_mingw.h>
  15253. #ifdef __MINGW64_VERSION_MAJOR
  15254. #include <intrin.h>
  15255. #else
  15256. #include <xmmintrin.h>
  15257. #endif
  15258. #else
  15259. #include <xmmintrin.h>
  15260. #endif
  15261. #ifndef __SSE__
  15262. #error Assembler CPP flag not enabled
  15263. #endif
  15264. int
  15265. main ()
  15266. {
  15267. ;
  15268. return 0;
  15269. }
  15270. _ACEOF
  15271. if ac_fn_c_try_compile "$LINENO"; then :
  15272. have_gcc_sse=yes
  15273. fi
  15274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15276. $as_echo "$have_gcc_sse" >&6; }
  15277. CFLAGS="$save_CFLAGS"
  15278. if test x$have_gcc_sse = xyes; then
  15279. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15280. SUMMARY_math="${SUMMARY_math} sse"
  15281. fi
  15282. fi
  15283. # Check whether --enable-sse2 was given.
  15284. if test "${enable_sse2+set}" = set; then :
  15285. enableval=$enable_sse2;
  15286. else
  15287. enable_sse2=$default_ssemath
  15288. fi
  15289. if test x$enable_sse2 = xyes; then
  15290. save_CFLAGS="$CFLAGS"
  15291. have_gcc_sse2=no
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15293. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15294. sse2_CFLAGS="-msse2"
  15295. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15297. /* end confdefs.h. */
  15298. #ifdef __MINGW32__
  15299. #include <_mingw.h>
  15300. #ifdef __MINGW64_VERSION_MAJOR
  15301. #include <intrin.h>
  15302. #else
  15303. #include <emmintrin.h>
  15304. #endif
  15305. #else
  15306. #include <emmintrin.h>
  15307. #endif
  15308. #ifndef __SSE2__
  15309. #error Assembler CPP flag not enabled
  15310. #endif
  15311. int
  15312. main ()
  15313. {
  15314. ;
  15315. return 0;
  15316. }
  15317. _ACEOF
  15318. if ac_fn_c_try_compile "$LINENO"; then :
  15319. have_gcc_sse2=yes
  15320. fi
  15321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15323. $as_echo "$have_gcc_sse2" >&6; }
  15324. CFLAGS="$save_CFLAGS"
  15325. if test x$have_gcc_sse2 = xyes; then
  15326. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15327. SUMMARY_math="${SUMMARY_math} sse2"
  15328. fi
  15329. fi
  15330. # Check whether --enable-sse3 was given.
  15331. if test "${enable_sse3+set}" = set; then :
  15332. enableval=$enable_sse3;
  15333. else
  15334. enable_sse3=$default_ssemath
  15335. fi
  15336. if test x$enable_sse3 = xyes; then
  15337. save_CFLAGS="$CFLAGS"
  15338. have_gcc_sse3=no
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15340. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15341. sse3_CFLAGS="-msse3"
  15342. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15344. /* end confdefs.h. */
  15345. #ifdef __MINGW32__
  15346. #include <_mingw.h>
  15347. #ifdef __MINGW64_VERSION_MAJOR
  15348. #include <intrin.h>
  15349. #else
  15350. #include <pmmintrin.h>
  15351. #endif
  15352. #else
  15353. #include <pmmintrin.h>
  15354. #endif
  15355. #ifndef __SSE2__
  15356. #error Assembler CPP flag not enabled
  15357. #endif
  15358. int
  15359. main ()
  15360. {
  15361. ;
  15362. return 0;
  15363. }
  15364. _ACEOF
  15365. if ac_fn_c_try_compile "$LINENO"; then :
  15366. have_gcc_sse3=yes
  15367. fi
  15368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15370. $as_echo "$have_gcc_sse3" >&6; }
  15371. CFLAGS="$save_CFLAGS"
  15372. if test x$have_gcc_sse3 = xyes; then
  15373. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15374. SUMMARY_math="${SUMMARY_math} sse3"
  15375. fi
  15376. fi
  15377. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15378. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15379. have_immintrin_h_hdr=yes
  15380. else
  15381. have_immintrin_h_hdr=no
  15382. fi
  15383. if test x$have_immintrin_h_hdr = xyes; then
  15384. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15385. fi
  15386. # Check whether --enable-altivec was given.
  15387. if test "${enable_altivec+set}" = set; then :
  15388. enableval=$enable_altivec;
  15389. else
  15390. enable_altivec=yes
  15391. fi
  15392. if test x$enable_altivec = xyes; then
  15393. save_CFLAGS="$CFLAGS"
  15394. have_gcc_altivec=no
  15395. have_altivec_h_hdr=no
  15396. altivec_CFLAGS="-maltivec"
  15397. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15399. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15401. /* end confdefs.h. */
  15402. #include <altivec.h>
  15403. vector unsigned int vzero() {
  15404. return vec_splat_u32(0);
  15405. }
  15406. int
  15407. main ()
  15408. {
  15409. ;
  15410. return 0;
  15411. }
  15412. _ACEOF
  15413. if ac_fn_c_try_compile "$LINENO"; then :
  15414. have_gcc_altivec=yes
  15415. have_altivec_h_hdr=yes
  15416. fi
  15417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15419. $as_echo "$have_gcc_altivec" >&6; }
  15420. if test x$have_gcc_altivec = xno; then
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15422. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15424. /* end confdefs.h. */
  15425. vector unsigned int vzero() {
  15426. return vec_splat_u32(0);
  15427. }
  15428. int
  15429. main ()
  15430. {
  15431. ;
  15432. return 0;
  15433. }
  15434. _ACEOF
  15435. if ac_fn_c_try_compile "$LINENO"; then :
  15436. have_gcc_altivec=yes
  15437. fi
  15438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15440. $as_echo "$have_gcc_altivec" >&6; }
  15441. fi
  15442. if test x$have_gcc_altivec = xno; then
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15444. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15445. altivec_CFLAGS="-faltivec"
  15446. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15448. /* end confdefs.h. */
  15449. #include <altivec.h>
  15450. vector unsigned int vzero() {
  15451. return vec_splat_u32(0);
  15452. }
  15453. int
  15454. main ()
  15455. {
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_c_try_compile "$LINENO"; then :
  15461. have_gcc_altivec=yes
  15462. have_altivec_h_hdr=yes
  15463. fi
  15464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15466. $as_echo "$have_gcc_altivec" >&6; }
  15467. fi
  15468. if test x$have_gcc_altivec = xno; then
  15469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15470. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15472. /* end confdefs.h. */
  15473. vector unsigned int vzero() {
  15474. return vec_splat_u32(0);
  15475. }
  15476. int
  15477. main ()
  15478. {
  15479. ;
  15480. return 0;
  15481. }
  15482. _ACEOF
  15483. if ac_fn_c_try_compile "$LINENO"; then :
  15484. have_gcc_altivec=yes
  15485. fi
  15486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15488. $as_echo "$have_gcc_altivec" >&6; }
  15489. fi
  15490. CFLAGS="$save_CFLAGS"
  15491. if test x$have_gcc_altivec = xyes; then
  15492. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15493. if test x$have_altivec_h_hdr = xyes; then
  15494. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15495. fi
  15496. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15497. SUMMARY_math="${SUMMARY_math} altivec"
  15498. fi
  15499. fi
  15500. fi
  15501. CheckOSS()
  15502. {
  15503. # Check whether --enable-oss was given.
  15504. if test "${enable_oss+set}" = set; then :
  15505. enableval=$enable_oss;
  15506. else
  15507. enable_oss=maybe
  15508. fi
  15509. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15510. # use sndio instead. So on there, we default to disabled. You can force
  15511. # it on if you really want, though.
  15512. if test x$enable_oss = xmaybe; then
  15513. enable_oss=yes
  15514. case "$host" in
  15515. *-*-openbsd*)
  15516. enable_oss=no;;
  15517. esac
  15518. fi
  15519. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15521. $as_echo_n "checking for OSS audio support... " >&6; }
  15522. have_oss=no
  15523. if test x$have_oss != xyes; then
  15524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15525. /* end confdefs.h. */
  15526. #include <sys/soundcard.h>
  15527. int
  15528. main ()
  15529. {
  15530. int arg = SNDCTL_DSP_SETFRAGMENT;
  15531. ;
  15532. return 0;
  15533. }
  15534. _ACEOF
  15535. if ac_fn_c_try_compile "$LINENO"; then :
  15536. have_oss=yes
  15537. fi
  15538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15539. fi
  15540. if test x$have_oss != xyes; then
  15541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15542. /* end confdefs.h. */
  15543. #include <soundcard.h>
  15544. int
  15545. main ()
  15546. {
  15547. int arg = SNDCTL_DSP_SETFRAGMENT;
  15548. ;
  15549. return 0;
  15550. }
  15551. _ACEOF
  15552. if ac_fn_c_try_compile "$LINENO"; then :
  15553. have_oss=yes
  15554. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15555. fi
  15556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15557. fi
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15559. $as_echo "$have_oss" >&6; }
  15560. if test x$have_oss = xyes; then
  15561. SUMMARY_audio="${SUMMARY_audio} oss"
  15562. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15563. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15564. have_audio=yes
  15565. # We may need to link with ossaudio emulation library
  15566. case "$host" in
  15567. *-*-openbsd*|*-*-netbsd*)
  15568. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15569. esac
  15570. fi
  15571. fi
  15572. }
  15573. CheckALSA()
  15574. {
  15575. # Check whether --enable-alsa was given.
  15576. if test "${enable_alsa+set}" = set; then :
  15577. enableval=$enable_alsa;
  15578. else
  15579. enable_alsa=yes
  15580. fi
  15581. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15582. alsa_save_CFLAGS="$CFLAGS"
  15583. alsa_save_LDFLAGS="$LDFLAGS"
  15584. alsa_save_LIBS="$LIBS"
  15585. alsa_found=yes
  15586. # Check whether --with-alsa-prefix was given.
  15587. if test "${with_alsa_prefix+set}" = set; then :
  15588. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15589. else
  15590. alsa_prefix=""
  15591. fi
  15592. # Check whether --with-alsa-inc-prefix was given.
  15593. if test "${with_alsa_inc_prefix+set}" = set; then :
  15594. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15595. else
  15596. alsa_inc_prefix=""
  15597. fi
  15598. # Check whether --enable-alsatest was given.
  15599. if test "${enable_alsatest+set}" = set; then :
  15600. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15601. else
  15602. enable_alsatest=yes
  15603. fi
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15605. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15606. if test "$alsa_inc_prefix" != "" ; then
  15607. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15608. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15609. fi
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15611. $as_echo "$ALSA_CFLAGS" >&6; }
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15613. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15614. if test "$alsa_prefix" != "" ; then
  15615. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15616. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15617. fi
  15618. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15619. LIBS=`echo $LIBS | sed 's/-lm//'`
  15620. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15621. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15622. LIBS=`echo $LIBS | sed 's/ //'`
  15623. LIBS="$ALSA_LIBS $LIBS"
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15625. $as_echo "$ALSA_LIBS" >&6; }
  15626. min_alsa_version=1.0.11
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15628. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15629. no_alsa=""
  15630. alsa_min_major_version=`echo $min_alsa_version | \
  15631. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15632. alsa_min_minor_version=`echo $min_alsa_version | \
  15633. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15634. alsa_min_micro_version=`echo $min_alsa_version | \
  15635. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15636. ac_ext=c
  15637. ac_cpp='$CPP $CPPFLAGS'
  15638. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15639. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15640. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15642. /* end confdefs.h. */
  15643. #include <alsa/asoundlib.h>
  15644. int
  15645. main ()
  15646. {
  15647. /* ensure backward compatibility */
  15648. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15649. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15650. #endif
  15651. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15652. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15653. #endif
  15654. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15655. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15656. #endif
  15657. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15658. exit(0);
  15659. # else
  15660. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15661. # error not present
  15662. # endif
  15663. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15664. exit(0);
  15665. # else
  15666. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15667. # error not present
  15668. # endif
  15669. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15670. # error not present
  15671. # endif
  15672. # endif
  15673. # endif
  15674. exit(0);
  15675. ;
  15676. return 0;
  15677. }
  15678. _ACEOF
  15679. if ac_fn_c_try_compile "$LINENO"; then :
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15681. $as_echo "found." >&6; }
  15682. else
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15684. $as_echo "not present." >&6; }
  15685. alsa_found=no
  15686. fi
  15687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15688. ac_ext=c
  15689. ac_cpp='$CPP $CPPFLAGS'
  15690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15693. if test "x$enable_alsatest" = "xyes"; then
  15694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15695. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15696. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15697. $as_echo_n "(cached) " >&6
  15698. else
  15699. ac_check_lib_save_LIBS=$LIBS
  15700. LIBS="-lasound $LIBS"
  15701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15702. /* end confdefs.h. */
  15703. /* Override any GCC internal prototype to avoid an error.
  15704. Use char because int might match the return type of a GCC
  15705. builtin and then its argument prototype would still apply. */
  15706. #ifdef __cplusplus
  15707. extern "C"
  15708. #endif
  15709. char snd_ctl_open ();
  15710. int
  15711. main ()
  15712. {
  15713. return snd_ctl_open ();
  15714. ;
  15715. return 0;
  15716. }
  15717. _ACEOF
  15718. if ac_fn_c_try_link "$LINENO"; then :
  15719. ac_cv_lib_asound_snd_ctl_open=yes
  15720. else
  15721. ac_cv_lib_asound_snd_ctl_open=no
  15722. fi
  15723. rm -f core conftest.err conftest.$ac_objext \
  15724. conftest$ac_exeext conftest.$ac_ext
  15725. LIBS=$ac_check_lib_save_LIBS
  15726. fi
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15728. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15729. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15730. cat >>confdefs.h <<_ACEOF
  15731. #define HAVE_LIBASOUND 1
  15732. _ACEOF
  15733. LIBS="-lasound $LIBS"
  15734. else
  15735. alsa_found=no
  15736. fi
  15737. fi
  15738. if test "x$alsa_found" = "xyes" ; then
  15739. have_alsa=yes
  15740. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15741. LIBS=`echo $LIBS | sed 's/ //'`
  15742. LIBS="-lasound $LIBS"
  15743. fi
  15744. if test "x$alsa_found" = "xno" ; then
  15745. have_alsa=no
  15746. CFLAGS="$alsa_save_CFLAGS"
  15747. LDFLAGS="$alsa_save_LDFLAGS"
  15748. LIBS="$alsa_save_LIBS"
  15749. ALSA_CFLAGS=""
  15750. ALSA_LIBS=""
  15751. fi
  15752. # Restore all flags from before the ALSA detection runs
  15753. CFLAGS="$alsa_save_CFLAGS"
  15754. LDFLAGS="$alsa_save_LDFLAGS"
  15755. LIBS="$alsa_save_LIBS"
  15756. if test x$have_alsa = xyes; then
  15757. # Check whether --enable-alsa-shared was given.
  15758. if test "${enable_alsa_shared+set}" = set; then :
  15759. enableval=$enable_alsa_shared;
  15760. else
  15761. enable_alsa_shared=yes
  15762. fi
  15763. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15764. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15765. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15766. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15767. if test x$have_loadso != xyes && \
  15768. test x$enable_alsa_shared = xyes; then
  15769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15770. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15771. fi
  15772. if test x$have_loadso = xyes && \
  15773. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15774. echo "-- dynamic libasound -> $alsa_lib"
  15775. cat >>confdefs.h <<_ACEOF
  15776. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15777. _ACEOF
  15778. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15779. else
  15780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15781. SUMMARY_audio="${SUMMARY_audio} alsa"
  15782. fi
  15783. have_audio=yes
  15784. fi
  15785. fi
  15786. }
  15787. CheckJACK()
  15788. {
  15789. # Check whether --enable-jack was given.
  15790. if test "${enable_jack+set}" = set; then :
  15791. enableval=$enable_jack;
  15792. else
  15793. enable_jack=yes
  15794. fi
  15795. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15796. pkg_failed=no
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15798. $as_echo_n "checking for JACK... " >&6; }
  15799. if test -n "$JACK_CFLAGS"; then
  15800. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15801. elif test -n "$PKG_CONFIG"; then
  15802. if test -n "$PKG_CONFIG" && \
  15803. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15804. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15805. ac_status=$?
  15806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15807. test $ac_status = 0; }; then
  15808. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15809. else
  15810. pkg_failed=yes
  15811. fi
  15812. else
  15813. pkg_failed=untried
  15814. fi
  15815. if test -n "$JACK_LIBS"; then
  15816. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15817. elif test -n "$PKG_CONFIG"; then
  15818. if test -n "$PKG_CONFIG" && \
  15819. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15820. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15821. ac_status=$?
  15822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15823. test $ac_status = 0; }; then
  15824. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15825. else
  15826. pkg_failed=yes
  15827. fi
  15828. else
  15829. pkg_failed=untried
  15830. fi
  15831. if test $pkg_failed = yes; then
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15833. $as_echo "no" >&6; }
  15834. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15835. _pkg_short_errors_supported=yes
  15836. else
  15837. _pkg_short_errors_supported=no
  15838. fi
  15839. if test $_pkg_short_errors_supported = yes; then
  15840. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15841. else
  15842. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15843. fi
  15844. # Put the nasty error message in config.log where it belongs
  15845. echo "$JACK_PKG_ERRORS" >&5
  15846. audio_jack=no
  15847. elif test $pkg_failed = untried; then
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15849. $as_echo "no" >&6; }
  15850. audio_jack=no
  15851. else
  15852. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15853. JACK_LIBS=$pkg_cv_JACK_LIBS
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15855. $as_echo "yes" >&6; }
  15856. audio_jack=yes
  15857. fi
  15858. if test x$audio_jack = xyes; then
  15859. # Check whether --enable-jack-shared was given.
  15860. if test "${enable_jack_shared+set}" = set; then :
  15861. enableval=$enable_jack_shared;
  15862. else
  15863. enable_jack_shared=yes
  15864. fi
  15865. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15866. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15867. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15868. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15869. if test x$have_loadso != xyes && \
  15870. test x$enable_jack_shared = xyes; then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15872. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15873. fi
  15874. if test x$have_loadso = xyes && \
  15875. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15876. echo "-- dynamic libjack -> $jack_lib"
  15877. cat >>confdefs.h <<_ACEOF
  15878. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15879. _ACEOF
  15880. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15881. case "$host" in
  15882. # On Solaris, jack must be linked deferred explicitly
  15883. # to prevent undefined symbol failures.
  15884. *-*-solaris*)
  15885. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15886. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15887. esac
  15888. else
  15889. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15890. SUMMARY_audio="${SUMMARY_audio} jack"
  15891. fi
  15892. have_audio=yes
  15893. fi
  15894. fi
  15895. }
  15896. CheckESD()
  15897. {
  15898. # Check whether --enable-esd was given.
  15899. if test "${enable_esd+set}" = set; then :
  15900. enableval=$enable_esd;
  15901. else
  15902. enable_esd=yes
  15903. fi
  15904. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15905. # Check whether --with-esd-prefix was given.
  15906. if test "${with_esd_prefix+set}" = set; then :
  15907. withval=$with_esd_prefix; esd_prefix="$withval"
  15908. else
  15909. esd_prefix=""
  15910. fi
  15911. # Check whether --with-esd-exec-prefix was given.
  15912. if test "${with_esd_exec_prefix+set}" = set; then :
  15913. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15914. else
  15915. esd_exec_prefix=""
  15916. fi
  15917. # Check whether --enable-esdtest was given.
  15918. if test "${enable_esdtest+set}" = set; then :
  15919. enableval=$enable_esdtest;
  15920. else
  15921. enable_esdtest=yes
  15922. fi
  15923. if test x$esd_exec_prefix != x ; then
  15924. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15925. if test x${ESD_CONFIG+set} != xset ; then
  15926. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15927. fi
  15928. fi
  15929. if test x$esd_prefix != x ; then
  15930. esd_args="$esd_args --prefix=$esd_prefix"
  15931. if test x${ESD_CONFIG+set} != xset ; then
  15932. ESD_CONFIG=$esd_prefix/bin/esd-config
  15933. fi
  15934. fi
  15935. # Extract the first word of "esd-config", so it can be a program name with args.
  15936. set dummy esd-config; ac_word=$2
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15938. $as_echo_n "checking for $ac_word... " >&6; }
  15939. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15940. $as_echo_n "(cached) " >&6
  15941. else
  15942. case $ESD_CONFIG in
  15943. [\\/]* | ?:[\\/]*)
  15944. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15945. ;;
  15946. *)
  15947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15948. for as_dir in $PATH
  15949. do
  15950. IFS=$as_save_IFS
  15951. test -z "$as_dir" && as_dir=.
  15952. for ac_exec_ext in '' $ac_executable_extensions; do
  15953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15954. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15956. break 2
  15957. fi
  15958. done
  15959. done
  15960. IFS=$as_save_IFS
  15961. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15962. ;;
  15963. esac
  15964. fi
  15965. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15966. if test -n "$ESD_CONFIG"; then
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15968. $as_echo "$ESD_CONFIG" >&6; }
  15969. else
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15971. $as_echo "no" >&6; }
  15972. fi
  15973. min_esd_version=0.2.8
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15975. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15976. no_esd=""
  15977. if test "$ESD_CONFIG" = "no" ; then
  15978. no_esd=yes
  15979. else
  15980. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15981. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15982. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15983. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15984. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15985. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15986. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15987. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15988. if test "x$enable_esdtest" = "xyes" ; then
  15989. ac_save_CFLAGS="$CFLAGS"
  15990. ac_save_LIBS="$LIBS"
  15991. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15992. LIBS="$LIBS $ESD_LIBS"
  15993. rm -f conf.esdtest
  15994. if test "$cross_compiling" = yes; then :
  15995. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15996. else
  15997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15998. /* end confdefs.h. */
  15999. #include <stdio.h>
  16000. #include <stdlib.h>
  16001. #include <string.h>
  16002. #include <esd.h>
  16003. char*
  16004. my_strdup (char *str)
  16005. {
  16006. char *new_str;
  16007. if (str)
  16008. {
  16009. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  16010. strcpy (new_str, str);
  16011. }
  16012. else
  16013. new_str = NULL;
  16014. return new_str;
  16015. }
  16016. int main ()
  16017. {
  16018. int major, minor, micro;
  16019. char *tmp_version;
  16020. system ("touch conf.esdtest");
  16021. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16022. tmp_version = my_strdup("$min_esd_version");
  16023. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16024. printf("%s, bad version string\n", "$min_esd_version");
  16025. exit(1);
  16026. }
  16027. if (($esd_major_version > major) ||
  16028. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16029. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16030. {
  16031. return 0;
  16032. }
  16033. else
  16034. {
  16035. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16036. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16037. printf("*** best to upgrade to the required version.\n");
  16038. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16039. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16040. printf("*** config.cache before re-running configure\n");
  16041. return 1;
  16042. }
  16043. }
  16044. _ACEOF
  16045. if ac_fn_c_try_run "$LINENO"; then :
  16046. else
  16047. no_esd=yes
  16048. fi
  16049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16051. fi
  16052. CFLAGS="$ac_save_CFLAGS"
  16053. LIBS="$ac_save_LIBS"
  16054. fi
  16055. fi
  16056. if test "x$no_esd" = x ; then
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16058. $as_echo "yes" >&6; }
  16059. have_esd=yes
  16060. else
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16062. $as_echo "no" >&6; }
  16063. if test "$ESD_CONFIG" = "no" ; then
  16064. echo "*** The esd-config script installed by ESD could not be found"
  16065. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16066. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16067. echo "*** full path to esd-config."
  16068. else
  16069. if test -f conf.esdtest ; then
  16070. :
  16071. else
  16072. echo "*** Could not run ESD test program, checking why..."
  16073. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16074. LIBS="$LIBS $ESD_LIBS"
  16075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16076. /* end confdefs.h. */
  16077. #include <stdio.h>
  16078. #include <esd.h>
  16079. int
  16080. main ()
  16081. {
  16082. return 0;
  16083. ;
  16084. return 0;
  16085. }
  16086. _ACEOF
  16087. if ac_fn_c_try_link "$LINENO"; then :
  16088. echo "*** The test program compiled, but did not run. This usually means"
  16089. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16090. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16091. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16092. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16093. echo "*** is required on your system"
  16094. echo "***"
  16095. echo "*** If you have an old version installed, it is best to remove it, although"
  16096. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16097. else
  16098. echo "*** The test program failed to compile or link. See the file config.log for the"
  16099. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16100. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16101. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16102. fi
  16103. rm -f core conftest.err conftest.$ac_objext \
  16104. conftest$ac_exeext conftest.$ac_ext
  16105. CFLAGS="$ac_save_CFLAGS"
  16106. LIBS="$ac_save_LIBS"
  16107. fi
  16108. fi
  16109. ESD_CFLAGS=""
  16110. ESD_LIBS=""
  16111. have_esd=no
  16112. fi
  16113. rm -f conf.esdtest
  16114. if test x$have_esd = xyes; then
  16115. # Check whether --enable-esd-shared was given.
  16116. if test "${enable_esd_shared+set}" = set; then :
  16117. enableval=$enable_esd_shared;
  16118. else
  16119. enable_esd_shared=yes
  16120. fi
  16121. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16122. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16123. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16124. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16125. if test x$have_loadso != xyes && \
  16126. test x$enable_esd_shared = xyes; then
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16128. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16129. fi
  16130. if test x$have_loadso = xyes && \
  16131. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16132. echo "-- dynamic libesd -> $esd_lib"
  16133. cat >>confdefs.h <<_ACEOF
  16134. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16135. _ACEOF
  16136. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16137. else
  16138. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16139. SUMMARY_audio="${SUMMARY_audio} esd"
  16140. fi
  16141. have_audio=yes
  16142. fi
  16143. fi
  16144. }
  16145. CheckPulseAudio()
  16146. {
  16147. # Check whether --enable-pulseaudio was given.
  16148. if test "${enable_pulseaudio+set}" = set; then :
  16149. enableval=$enable_pulseaudio;
  16150. else
  16151. enable_pulseaudio=yes
  16152. fi
  16153. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16154. pkg_failed=no
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16156. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16157. if test -n "$PULSEAUDIO_CFLAGS"; then
  16158. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16159. elif test -n "$PKG_CONFIG"; then
  16160. if test -n "$PKG_CONFIG" && \
  16161. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16162. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16163. ac_status=$?
  16164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16165. test $ac_status = 0; }; then
  16166. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16167. else
  16168. pkg_failed=yes
  16169. fi
  16170. else
  16171. pkg_failed=untried
  16172. fi
  16173. if test -n "$PULSEAUDIO_LIBS"; then
  16174. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16175. elif test -n "$PKG_CONFIG"; then
  16176. if test -n "$PKG_CONFIG" && \
  16177. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16178. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16179. ac_status=$?
  16180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16181. test $ac_status = 0; }; then
  16182. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16183. else
  16184. pkg_failed=yes
  16185. fi
  16186. else
  16187. pkg_failed=untried
  16188. fi
  16189. if test $pkg_failed = yes; then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16191. $as_echo "no" >&6; }
  16192. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16193. _pkg_short_errors_supported=yes
  16194. else
  16195. _pkg_short_errors_supported=no
  16196. fi
  16197. if test $_pkg_short_errors_supported = yes; then
  16198. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16199. else
  16200. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16201. fi
  16202. # Put the nasty error message in config.log where it belongs
  16203. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16204. audio_pulseaudio=no
  16205. elif test $pkg_failed = untried; then
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16207. $as_echo "no" >&6; }
  16208. audio_pulseaudio=no
  16209. else
  16210. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16211. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16213. $as_echo "yes" >&6; }
  16214. audio_pulseaudio=yes
  16215. fi
  16216. if test x$audio_pulseaudio = xyes; then
  16217. # Check whether --enable-pulseaudio-shared was given.
  16218. if test "${enable_pulseaudio_shared+set}" = set; then :
  16219. enableval=$enable_pulseaudio_shared;
  16220. else
  16221. enable_pulseaudio_shared=yes
  16222. fi
  16223. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16224. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16225. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16226. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16227. if test x$have_loadso != xyes && \
  16228. test x$enable_pulseaudio_shared = xyes; then
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16230. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16231. fi
  16232. if test x$have_loadso = xyes && \
  16233. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16234. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16235. cat >>confdefs.h <<_ACEOF
  16236. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16237. _ACEOF
  16238. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16239. case "$host" in
  16240. # On Solaris, pulseaudio must be linked deferred explicitly
  16241. # to prevent undefined symbol failures.
  16242. *-*-solaris*)
  16243. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16244. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16245. esac
  16246. else
  16247. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16248. SUMMARY_audio="${SUMMARY_audio} pulse"
  16249. fi
  16250. have_audio=yes
  16251. fi
  16252. fi
  16253. }
  16254. CheckARTSC()
  16255. {
  16256. # Check whether --enable-arts was given.
  16257. if test "${enable_arts+set}" = set; then :
  16258. enableval=$enable_arts;
  16259. else
  16260. enable_arts=yes
  16261. fi
  16262. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16263. # Extract the first word of "artsc-config", so it can be a program name with args.
  16264. set dummy artsc-config; ac_word=$2
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16266. $as_echo_n "checking for $ac_word... " >&6; }
  16267. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16268. $as_echo_n "(cached) " >&6
  16269. else
  16270. case $ARTSCONFIG in
  16271. [\\/]* | ?:[\\/]*)
  16272. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16273. ;;
  16274. *)
  16275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16276. for as_dir in $PATH
  16277. do
  16278. IFS=$as_save_IFS
  16279. test -z "$as_dir" && as_dir=.
  16280. for ac_exec_ext in '' $ac_executable_extensions; do
  16281. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16282. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16284. break 2
  16285. fi
  16286. done
  16287. done
  16288. IFS=$as_save_IFS
  16289. ;;
  16290. esac
  16291. fi
  16292. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16293. if test -n "$ARTSCONFIG"; then
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16295. $as_echo "$ARTSCONFIG" >&6; }
  16296. else
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16298. $as_echo "no" >&6; }
  16299. fi
  16300. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16301. : # arts isn't installed
  16302. else
  16303. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16304. ARTS_LIBS=`$ARTSCONFIG --libs`
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16306. $as_echo_n "checking for aRts development environment... " >&6; }
  16307. audio_arts=no
  16308. save_CFLAGS="$CFLAGS"
  16309. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16311. /* end confdefs.h. */
  16312. #include <artsc.h>
  16313. int
  16314. main ()
  16315. {
  16316. arts_stream_t stream;
  16317. ;
  16318. return 0;
  16319. }
  16320. _ACEOF
  16321. if ac_fn_c_try_compile "$LINENO"; then :
  16322. audio_arts=yes
  16323. fi
  16324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16325. CFLAGS="$save_CFLAGS"
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16327. $as_echo "$audio_arts" >&6; }
  16328. if test x$audio_arts = xyes; then
  16329. # Check whether --enable-arts-shared was given.
  16330. if test "${enable_arts_shared+set}" = set; then :
  16331. enableval=$enable_arts_shared;
  16332. else
  16333. enable_arts_shared=yes
  16334. fi
  16335. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16336. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16337. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16338. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16339. if test x$have_loadso != xyes && \
  16340. test x$enable_arts_shared = xyes; then
  16341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16342. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16343. fi
  16344. if test x$have_loadso = xyes && \
  16345. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16346. echo "-- dynamic libartsc -> $arts_lib"
  16347. cat >>confdefs.h <<_ACEOF
  16348. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16349. _ACEOF
  16350. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16351. else
  16352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16353. SUMMARY_audio="${SUMMARY_audio} arts"
  16354. fi
  16355. have_audio=yes
  16356. fi
  16357. fi
  16358. fi
  16359. }
  16360. CheckNAS()
  16361. {
  16362. # Check whether --enable-nas was given.
  16363. if test "${enable_nas+set}" = set; then :
  16364. enableval=$enable_nas;
  16365. else
  16366. enable_nas=yes
  16367. fi
  16368. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16369. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16370. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16371. have_nas_hdr=yes
  16372. fi
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16374. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16375. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16376. $as_echo_n "(cached) " >&6
  16377. else
  16378. ac_check_lib_save_LIBS=$LIBS
  16379. LIBS="-laudio $LIBS"
  16380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16381. /* end confdefs.h. */
  16382. /* Override any GCC internal prototype to avoid an error.
  16383. Use char because int might match the return type of a GCC
  16384. builtin and then its argument prototype would still apply. */
  16385. #ifdef __cplusplus
  16386. extern "C"
  16387. #endif
  16388. char AuOpenServer ();
  16389. int
  16390. main ()
  16391. {
  16392. return AuOpenServer ();
  16393. ;
  16394. return 0;
  16395. }
  16396. _ACEOF
  16397. if ac_fn_c_try_link "$LINENO"; then :
  16398. ac_cv_lib_audio_AuOpenServer=yes
  16399. else
  16400. ac_cv_lib_audio_AuOpenServer=no
  16401. fi
  16402. rm -f core conftest.err conftest.$ac_objext \
  16403. conftest$ac_exeext conftest.$ac_ext
  16404. LIBS=$ac_check_lib_save_LIBS
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16407. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16408. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16409. have_nas_lib=yes
  16410. fi
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16412. $as_echo_n "checking for NAS audio support... " >&6; }
  16413. have_nas=no
  16414. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16415. have_nas=yes
  16416. NAS_LIBS="-laudio"
  16417. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16418. have_nas=yes
  16419. NAS_CFLAGS="-I/usr/X11R6/include/"
  16420. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16421. fi
  16422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16423. $as_echo "$have_nas" >&6; }
  16424. if test x$have_nas = xyes; then
  16425. # Check whether --enable-nas-shared was given.
  16426. if test "${enable_nas_shared+set}" = set; then :
  16427. enableval=$enable_nas_shared;
  16428. else
  16429. enable_nas_shared=yes
  16430. fi
  16431. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16432. if test x$have_loadso != xyes && \
  16433. test x$enable_nas_shared = xyes; then
  16434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16435. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16436. fi
  16437. if test x$have_loadso = xyes && \
  16438. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16439. echo "-- dynamic libaudio -> $nas_lib"
  16440. cat >>confdefs.h <<_ACEOF
  16441. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16442. _ACEOF
  16443. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16444. else
  16445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16446. SUMMARY_audio="${SUMMARY_audio} nas"
  16447. fi
  16448. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16449. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16450. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16451. have_audio=yes
  16452. fi
  16453. fi
  16454. }
  16455. CheckSNDIO()
  16456. {
  16457. # Check whether --enable-sndio was given.
  16458. if test "${enable_sndio+set}" = set; then :
  16459. enableval=$enable_sndio;
  16460. else
  16461. enable_sndio=yes
  16462. fi
  16463. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16464. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16465. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16466. have_sndio_hdr=yes
  16467. fi
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16469. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16470. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16471. $as_echo_n "(cached) " >&6
  16472. else
  16473. ac_check_lib_save_LIBS=$LIBS
  16474. LIBS="-lsndio $LIBS"
  16475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16476. /* end confdefs.h. */
  16477. /* Override any GCC internal prototype to avoid an error.
  16478. Use char because int might match the return type of a GCC
  16479. builtin and then its argument prototype would still apply. */
  16480. #ifdef __cplusplus
  16481. extern "C"
  16482. #endif
  16483. char sio_open ();
  16484. int
  16485. main ()
  16486. {
  16487. return sio_open ();
  16488. ;
  16489. return 0;
  16490. }
  16491. _ACEOF
  16492. if ac_fn_c_try_link "$LINENO"; then :
  16493. ac_cv_lib_sndio_sio_open=yes
  16494. else
  16495. ac_cv_lib_sndio_sio_open=no
  16496. fi
  16497. rm -f core conftest.err conftest.$ac_objext \
  16498. conftest$ac_exeext conftest.$ac_ext
  16499. LIBS=$ac_check_lib_save_LIBS
  16500. fi
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16502. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16503. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16504. have_sndio_lib=yes
  16505. fi
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16507. $as_echo_n "checking for sndio audio support... " >&6; }
  16508. have_sndio=no
  16509. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16510. have_sndio=yes
  16511. SNDIO_LIBS="-lsndio"
  16512. fi
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16514. $as_echo "$have_sndio" >&6; }
  16515. if test x$have_sndio = xyes; then
  16516. # Check whether --enable-sndio-shared was given.
  16517. if test "${enable_sndio_shared+set}" = set; then :
  16518. enableval=$enable_sndio_shared;
  16519. else
  16520. enable_sndio_shared=yes
  16521. fi
  16522. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16523. if test x$have_loadso != xyes && \
  16524. test x$enable_sndio_shared = xyes; then
  16525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16526. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16527. fi
  16528. if test x$have_loadso = xyes && \
  16529. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16530. echo "-- dynamic libsndio -> $sndio_lib"
  16531. cat >>confdefs.h <<_ACEOF
  16532. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16533. _ACEOF
  16534. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16535. else
  16536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16537. SUMMARY_audio="${SUMMARY_audio} sndio"
  16538. fi
  16539. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16540. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16541. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16542. have_audio=yes
  16543. fi
  16544. fi
  16545. }
  16546. CheckFusionSound()
  16547. {
  16548. # Check whether --enable-fusionsound was given.
  16549. if test "${enable_fusionsound+set}" = set; then :
  16550. enableval=$enable_fusionsound;
  16551. else
  16552. enable_fusionsound=no
  16553. fi
  16554. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16555. pkg_failed=no
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16557. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16558. if test -n "$FUSIONSOUND_CFLAGS"; then
  16559. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16560. elif test -n "$PKG_CONFIG"; then
  16561. if test -n "$PKG_CONFIG" && \
  16562. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16563. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16564. ac_status=$?
  16565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16566. test $ac_status = 0; }; then
  16567. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16568. else
  16569. pkg_failed=yes
  16570. fi
  16571. else
  16572. pkg_failed=untried
  16573. fi
  16574. if test -n "$FUSIONSOUND_LIBS"; then
  16575. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16576. elif test -n "$PKG_CONFIG"; then
  16577. if test -n "$PKG_CONFIG" && \
  16578. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16579. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16580. ac_status=$?
  16581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16582. test $ac_status = 0; }; then
  16583. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16584. else
  16585. pkg_failed=yes
  16586. fi
  16587. else
  16588. pkg_failed=untried
  16589. fi
  16590. if test $pkg_failed = yes; then
  16591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16592. $as_echo "no" >&6; }
  16593. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16594. _pkg_short_errors_supported=yes
  16595. else
  16596. _pkg_short_errors_supported=no
  16597. fi
  16598. if test $_pkg_short_errors_supported = yes; then
  16599. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16600. else
  16601. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16602. fi
  16603. # Put the nasty error message in config.log where it belongs
  16604. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16605. fusionsound=no
  16606. elif test $pkg_failed = untried; then
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16608. $as_echo "no" >&6; }
  16609. fusionsound=no
  16610. else
  16611. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16612. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16614. $as_echo "yes" >&6; }
  16615. fusionsound=yes
  16616. fi
  16617. if test x$fusionsound = xyes; then
  16618. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16619. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16620. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16621. # Check whether --enable-fusionsound-shared was given.
  16622. if test "${enable_fusionsound_shared+set}" = set; then :
  16623. enableval=$enable_fusionsound_shared;
  16624. else
  16625. enable_fusionsound_shared=yes
  16626. fi
  16627. fusionsound_shared=no
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16629. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16630. if test x$have_loadso != xyes && \
  16631. test x$enable_fusionsound_shared = xyes; then
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16633. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16634. fi
  16635. if test x$have_loadso = xyes && \
  16636. test x$enable_fusionsound_shared = xyes; then
  16637. cat >>confdefs.h <<_ACEOF
  16638. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16639. _ACEOF
  16640. fusionsound_shared=yes
  16641. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16642. else
  16643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16644. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16645. fi
  16646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16647. $as_echo "$fusionsound_shared" >&6; }
  16648. have_audio=yes
  16649. fi
  16650. fi
  16651. }
  16652. CheckDiskAudio()
  16653. {
  16654. # Check whether --enable-diskaudio was given.
  16655. if test "${enable_diskaudio+set}" = set; then :
  16656. enableval=$enable_diskaudio;
  16657. else
  16658. enable_diskaudio=yes
  16659. fi
  16660. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16661. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16662. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16663. SUMMARY_audio="${SUMMARY_audio} disk"
  16664. fi
  16665. }
  16666. CheckDummyAudio()
  16667. {
  16668. # Check whether --enable-dummyaudio was given.
  16669. if test "${enable_dummyaudio+set}" = set; then :
  16670. enableval=$enable_dummyaudio;
  16671. else
  16672. enable_dummyaudio=yes
  16673. fi
  16674. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16675. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16676. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16677. SUMMARY_audio="${SUMMARY_audio} dummy"
  16678. fi
  16679. }
  16680. CheckLibSampleRate()
  16681. {
  16682. # Check whether --enable-libsamplerate was given.
  16683. if test "${enable_libsamplerate+set}" = set; then :
  16684. enableval=$enable_libsamplerate;
  16685. else
  16686. enable_libsamplerate=yes
  16687. fi
  16688. if test x$enable_libsamplerate = xyes; then
  16689. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16690. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16691. have_samplerate_h_hdr=yes
  16692. else
  16693. have_samplerate_h_hdr=no
  16694. fi
  16695. if test x$have_samplerate_h_hdr = xyes; then
  16696. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16697. # Check whether --enable-libsamplerate-shared was given.
  16698. if test "${enable_libsamplerate_shared+set}" = set; then :
  16699. enableval=$enable_libsamplerate_shared;
  16700. else
  16701. enable_libsamplerate_shared=yes
  16702. fi
  16703. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16704. if test x$have_loadso != xyes && \
  16705. test x$enable_libsamplerate_shared = xyes; then
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16707. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16708. fi
  16709. if test x$have_loadso = xyes && \
  16710. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16711. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16712. cat >>confdefs.h <<_ACEOF
  16713. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16714. _ACEOF
  16715. else
  16716. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16717. fi
  16718. fi
  16719. fi
  16720. }
  16721. CheckARM()
  16722. {
  16723. # Check whether --enable-arm-simd was given.
  16724. if test "${enable_arm_simd+set}" = set; then :
  16725. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16726. else
  16727. enable_arm_simd=no
  16728. fi
  16729. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16730. save_CFLAGS="$CFLAGS"
  16731. have_arm_simd=no
  16732. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16734. $as_echo_n "checking for ARM SIMD... " >&6; }
  16735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16736. /* end confdefs.h. */
  16737. .text
  16738. .arch armv6
  16739. .object_arch armv4
  16740. .arm
  16741. .altmacro
  16742. #ifndef __ARM_EABI__
  16743. #error EABI is required (to be sure that calling conventions are compatible)
  16744. #endif
  16745. pld [r0]
  16746. uqadd8 r0, r0, r0
  16747. _ACEOF
  16748. if ac_fn_c_try_compile "$LINENO"; then :
  16749. have_arm_simd=yes
  16750. fi
  16751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16753. $as_echo "$have_arm_simd" >&6; }
  16754. CFLAGS="$save_CFLAGS"
  16755. if test x$have_arm_simd = xyes; then
  16756. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16757. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16758. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16759. fi
  16760. fi
  16761. }
  16762. CheckNEON()
  16763. {
  16764. # Check whether --enable-arm-neon was given.
  16765. if test "${enable_arm_neon+set}" = set; then :
  16766. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16767. else
  16768. enable_arm_neon=no
  16769. fi
  16770. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16771. save_CFLAGS="$CFLAGS"
  16772. have_arm_neon=no
  16773. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16775. $as_echo_n "checking for ARM NEON... " >&6; }
  16776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16777. /* end confdefs.h. */
  16778. .text
  16779. .fpu neon
  16780. .arch armv7a
  16781. .object_arch armv4
  16782. .eabi_attribute 10, 0
  16783. .arm
  16784. .altmacro
  16785. #ifndef __ARM_EABI__
  16786. #error EABI is required (to be sure that calling conventions are compatible)
  16787. #endif
  16788. pld [r0]
  16789. vmovn.u16 d0, q0
  16790. _ACEOF
  16791. if ac_fn_c_try_compile "$LINENO"; then :
  16792. have_arm_neon=yes
  16793. fi
  16794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16796. $as_echo "$have_arm_neon" >&6; }
  16797. CFLAGS="$save_CFLAGS"
  16798. if test x$have_arm_neon = xyes; then
  16799. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16800. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16801. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16802. fi
  16803. fi
  16804. }
  16805. CheckVisibilityHidden()
  16806. {
  16807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16808. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16809. have_gcc_fvisibility=no
  16810. visibility_CFLAGS="-fvisibility=hidden"
  16811. save_CFLAGS="$CFLAGS"
  16812. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16814. /* end confdefs.h. */
  16815. #if !defined(__GNUC__) || __GNUC__ < 4
  16816. #error SDL only uses visibility attributes in GCC 4 or newer
  16817. #endif
  16818. int
  16819. main ()
  16820. {
  16821. ;
  16822. return 0;
  16823. }
  16824. _ACEOF
  16825. if ac_fn_c_try_compile "$LINENO"; then :
  16826. have_gcc_fvisibility=yes
  16827. fi
  16828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16830. $as_echo "$have_gcc_fvisibility" >&6; }
  16831. CFLAGS="$save_CFLAGS"
  16832. if test x$have_gcc_fvisibility = xyes; then
  16833. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16834. fi
  16835. }
  16836. CheckNoStrictAliasing()
  16837. {
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16839. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16840. have_gcc_no_strict_aliasing=no
  16841. save_CFLAGS="$CFLAGS"
  16842. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16844. /* end confdefs.h. */
  16845. int x = 0;
  16846. int
  16847. main ()
  16848. {
  16849. ;
  16850. return 0;
  16851. }
  16852. _ACEOF
  16853. if ac_fn_c_try_compile "$LINENO"; then :
  16854. have_gcc_no_strict_aliasing=yes
  16855. fi
  16856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16858. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16859. CFLAGS="$save_CFLAGS"
  16860. if test x$have_gcc_no_strict_aliasing = xyes; then
  16861. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16862. fi
  16863. }
  16864. CheckStackBoundary()
  16865. {
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16867. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16868. have_gcc_preferred_stack_boundary=no
  16869. save_CFLAGS="$CFLAGS"
  16870. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16872. /* end confdefs.h. */
  16873. int x = 0;
  16874. int
  16875. main ()
  16876. {
  16877. ;
  16878. return 0;
  16879. }
  16880. _ACEOF
  16881. if ac_fn_c_try_compile "$LINENO"; then :
  16882. have_gcc_preferred_stack_boundary=yes
  16883. fi
  16884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16886. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16887. CFLAGS="$save_CFLAGS"
  16888. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16889. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16890. fi
  16891. }
  16892. CheckDeclarationAfterStatement()
  16893. {
  16894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16895. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16896. have_gcc_declaration_after_statement=no
  16897. save_CFLAGS="$CFLAGS"
  16898. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16900. /* end confdefs.h. */
  16901. int x = 0;
  16902. int
  16903. main ()
  16904. {
  16905. ;
  16906. return 0;
  16907. }
  16908. _ACEOF
  16909. if ac_fn_c_try_compile "$LINENO"; then :
  16910. have_gcc_declaration_after_statement=yes
  16911. fi
  16912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16914. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16915. CFLAGS="$save_CFLAGS"
  16916. if test x$have_gcc_declaration_after_statement = xyes; then
  16917. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16918. fi
  16919. }
  16920. CheckWarnAll()
  16921. {
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16923. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16924. have_gcc_Wall=no
  16925. save_CFLAGS="$CFLAGS"
  16926. CFLAGS="$save_CFLAGS -Wall"
  16927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16928. /* end confdefs.h. */
  16929. int x = 0;
  16930. int
  16931. main ()
  16932. {
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_compile "$LINENO"; then :
  16938. have_gcc_Wall=yes
  16939. fi
  16940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16942. $as_echo "$have_gcc_Wall" >&6; }
  16943. CFLAGS="$save_CFLAGS"
  16944. if test x$have_gcc_Wall = xyes; then
  16945. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16947. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16948. need_gcc_Wno_multichar=no
  16949. case "$host" in
  16950. *-*-haiku*)
  16951. need_gcc_Wno_multichar=yes
  16952. ;;
  16953. esac
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16955. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16956. if test x$need_gcc_Wno_multichar = xyes; then
  16957. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16958. fi
  16959. fi
  16960. }
  16961. CheckWayland()
  16962. {
  16963. # Check whether --enable-video-wayland was given.
  16964. if test "${enable_video_wayland+set}" = set; then :
  16965. enableval=$enable_video_wayland;
  16966. else
  16967. enable_video_wayland=yes
  16968. fi
  16969. # Check whether --enable-video-wayland-qt-touch was given.
  16970. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16971. enableval=$enable_video_wayland_qt_touch;
  16972. else
  16973. enable_video_wayland_qt_touch=yes
  16974. fi
  16975. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16977. $as_echo_n "checking for Wayland support... " >&6; }
  16978. video_wayland=no
  16979. if test x$video_opengl_egl = xyes && \
  16980. test x$video_opengles_v2 = xyes; then
  16981. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16982. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16983. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16984. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16985. video_wayland=yes
  16986. fi
  16987. fi
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16989. $as_echo "$video_wayland" >&6; }
  16990. if test x$video_wayland = xyes; then
  16991. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16992. if test x$enable_video_wayland_qt_touch = xyes; then
  16993. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16994. fi
  16995. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16996. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16997. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16998. # Check whether --enable-wayland-shared was given.
  16999. if test "${enable_wayland_shared+set}" = set; then :
  17000. enableval=$enable_wayland_shared;
  17001. else
  17002. enable_wayland_shared=maybe
  17003. fi
  17004. case "$host" in
  17005. *)
  17006. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17007. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17008. if test x$wayland_egl_lib = x; then
  17009. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17010. fi
  17011. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17012. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17013. ;;
  17014. esac
  17015. if test x$enable_wayland_shared = xmaybe; then
  17016. enable_wayland_shared=yes
  17017. fi
  17018. if test x$have_loadso != xyes && \
  17019. test x$enable_wayland_shared = xyes; then
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17021. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17022. enable_wayland_shared=no
  17023. fi
  17024. if test x$have_loadso = xyes && \
  17025. test x$enable_wayland_shared = xyes && \
  17026. test x$wayland_client_lib != x && \
  17027. test x$wayland_egl_lib != x && \
  17028. test x$wayland_cursor_lib != x && \
  17029. test x$xkbcommon_lib != x; then
  17030. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17031. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17032. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17033. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17034. cat >>confdefs.h <<_ACEOF
  17035. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17036. _ACEOF
  17037. cat >>confdefs.h <<_ACEOF
  17038. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17039. _ACEOF
  17040. cat >>confdefs.h <<_ACEOF
  17041. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17042. _ACEOF
  17043. cat >>confdefs.h <<_ACEOF
  17044. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17045. _ACEOF
  17046. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17047. else
  17048. enable_wayland_shared=no
  17049. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17050. SUMMARY_video="${SUMMARY_video} wayland"
  17051. fi
  17052. have_video=yes
  17053. fi
  17054. fi
  17055. }
  17056. CheckNativeClient()
  17057. {
  17058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17059. /* end confdefs.h. */
  17060. #if !defined(__native_client__)
  17061. #error "NO NACL"
  17062. #endif
  17063. int
  17064. main ()
  17065. {
  17066. ;
  17067. return 0;
  17068. }
  17069. _ACEOF
  17070. if ac_fn_c_try_compile "$LINENO"; then :
  17071. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17072. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17073. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17074. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17075. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17076. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17077. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17078. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17079. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17080. SUMMARY_audio="${SUMMARY_audio} nacl"
  17081. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17082. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17083. fi
  17084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17085. }
  17086. CheckRPI()
  17087. {
  17088. # Check whether --enable-video-rpi was given.
  17089. if test "${enable_video_rpi+set}" = set; then :
  17090. enableval=$enable_video_rpi;
  17091. else
  17092. enable_video_rpi=yes
  17093. fi
  17094. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17095. pkg_failed=no
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17097. $as_echo_n "checking for RPI... " >&6; }
  17098. if test -n "$RPI_CFLAGS"; then
  17099. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17100. elif test -n "$PKG_CONFIG"; then
  17101. if test -n "$PKG_CONFIG" && \
  17102. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17103. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17104. ac_status=$?
  17105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17106. test $ac_status = 0; }; then
  17107. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17108. else
  17109. pkg_failed=yes
  17110. fi
  17111. else
  17112. pkg_failed=untried
  17113. fi
  17114. if test -n "$RPI_LIBS"; then
  17115. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17116. elif test -n "$PKG_CONFIG"; then
  17117. if test -n "$PKG_CONFIG" && \
  17118. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17119. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17120. ac_status=$?
  17121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17122. test $ac_status = 0; }; then
  17123. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17124. else
  17125. pkg_failed=yes
  17126. fi
  17127. else
  17128. pkg_failed=untried
  17129. fi
  17130. if test $pkg_failed = yes; then
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17132. $as_echo "no" >&6; }
  17133. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17134. _pkg_short_errors_supported=yes
  17135. else
  17136. _pkg_short_errors_supported=no
  17137. fi
  17138. if test $_pkg_short_errors_supported = yes; then
  17139. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17140. else
  17141. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17142. fi
  17143. # Put the nasty error message in config.log where it belongs
  17144. echo "$RPI_PKG_ERRORS" >&5
  17145. video_rpi=no
  17146. elif test $pkg_failed = untried; then
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17148. $as_echo "no" >&6; }
  17149. video_rpi=no
  17150. else
  17151. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17152. RPI_LIBS=$pkg_cv_RPI_LIBS
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17154. $as_echo "yes" >&6; }
  17155. video_rpi=yes
  17156. fi
  17157. if test x$video_rpi = xno; then
  17158. if test x$ARCH = xnetbsd; then
  17159. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17160. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17161. else
  17162. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17163. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17164. fi
  17165. fi
  17166. # Save the original compiler flags and libraries
  17167. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17168. # Add the Raspberry Pi compiler flags and libraries
  17169. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17171. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17172. have_video_rpi=no
  17173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17174. /* end confdefs.h. */
  17175. #include <bcm_host.h>
  17176. int
  17177. main ()
  17178. {
  17179. bcm_host_init();
  17180. ;
  17181. return 0;
  17182. }
  17183. _ACEOF
  17184. if ac_fn_c_try_link "$LINENO"; then :
  17185. have_video_rpi=yes
  17186. fi
  17187. rm -f core conftest.err conftest.$ac_objext \
  17188. conftest$ac_exeext conftest.$ac_ext
  17189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17190. $as_echo "$have_video_rpi" >&6; }
  17191. # Restore the compiler flags and libraries
  17192. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17193. if test x$have_video_rpi = xyes; then
  17194. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17195. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17196. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17198. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17199. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17200. SUMMARY_video="${SUMMARY_video} rpi"
  17201. fi
  17202. fi
  17203. }
  17204. CheckX11()
  17205. {
  17206. # Check whether --enable-video-x11 was given.
  17207. if test "${enable_video_x11+set}" = set; then :
  17208. enableval=$enable_video_x11;
  17209. else
  17210. enable_video_x11=yes
  17211. fi
  17212. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17213. case "$host" in
  17214. *-*-darwin*)
  17215. # This isn't necessary for X11, but fixes GLX detection
  17216. if test "x$x_includes" = xNONE && \
  17217. test "x$x_libraries" = xNONE && \
  17218. test -d /opt/X11/include && \
  17219. test -d /opt/X11/lib; then
  17220. x_includes="/opt/X11/include"
  17221. x_libraries="/opt/X11/lib"
  17222. fi
  17223. ;;
  17224. esac
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17226. $as_echo_n "checking for X... " >&6; }
  17227. # Check whether --with-x was given.
  17228. if test "${with_x+set}" = set; then :
  17229. withval=$with_x;
  17230. fi
  17231. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17232. if test "x$with_x" = xno; then
  17233. # The user explicitly disabled X.
  17234. have_x=disabled
  17235. else
  17236. case $x_includes,$x_libraries in #(
  17237. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17238. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17239. $as_echo_n "(cached) " >&6
  17240. else
  17241. # One or both of the vars are not set, and there is no cached value.
  17242. ac_x_includes=no ac_x_libraries=no
  17243. rm -f -r conftest.dir
  17244. if mkdir conftest.dir; then
  17245. cd conftest.dir
  17246. cat >Imakefile <<'_ACEOF'
  17247. incroot:
  17248. @echo incroot='${INCROOT}'
  17249. usrlibdir:
  17250. @echo usrlibdir='${USRLIBDIR}'
  17251. libdir:
  17252. @echo libdir='${LIBDIR}'
  17253. _ACEOF
  17254. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17255. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17256. for ac_var in incroot usrlibdir libdir; do
  17257. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17258. done
  17259. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17260. for ac_extension in a so sl dylib la dll; do
  17261. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17262. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17263. ac_im_usrlibdir=$ac_im_libdir; break
  17264. fi
  17265. done
  17266. # Screen out bogus values from the imake configuration. They are
  17267. # bogus both because they are the default anyway, and because
  17268. # using them would break gcc on systems where it needs fixed includes.
  17269. case $ac_im_incroot in
  17270. /usr/include) ac_x_includes= ;;
  17271. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17272. esac
  17273. case $ac_im_usrlibdir in
  17274. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17275. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17276. esac
  17277. fi
  17278. cd ..
  17279. rm -f -r conftest.dir
  17280. fi
  17281. # Standard set of common directories for X headers.
  17282. # Check X11 before X11Rn because it is often a symlink to the current release.
  17283. ac_x_header_dirs='
  17284. /usr/X11/include
  17285. /usr/X11R7/include
  17286. /usr/X11R6/include
  17287. /usr/X11R5/include
  17288. /usr/X11R4/include
  17289. /usr/include/X11
  17290. /usr/include/X11R7
  17291. /usr/include/X11R6
  17292. /usr/include/X11R5
  17293. /usr/include/X11R4
  17294. /usr/local/X11/include
  17295. /usr/local/X11R7/include
  17296. /usr/local/X11R6/include
  17297. /usr/local/X11R5/include
  17298. /usr/local/X11R4/include
  17299. /usr/local/include/X11
  17300. /usr/local/include/X11R7
  17301. /usr/local/include/X11R6
  17302. /usr/local/include/X11R5
  17303. /usr/local/include/X11R4
  17304. /usr/X386/include
  17305. /usr/x386/include
  17306. /usr/XFree86/include/X11
  17307. /usr/include
  17308. /usr/local/include
  17309. /usr/unsupported/include
  17310. /usr/athena/include
  17311. /usr/local/x11r5/include
  17312. /usr/lpp/Xamples/include
  17313. /usr/openwin/include
  17314. /usr/openwin/share/include'
  17315. if test "$ac_x_includes" = no; then
  17316. # Guess where to find include files, by looking for Xlib.h.
  17317. # First, try using that file with no special directory specified.
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. #include <X11/Xlib.h>
  17321. _ACEOF
  17322. if ac_fn_c_try_cpp "$LINENO"; then :
  17323. # We can compile using X headers with no special include directory.
  17324. ac_x_includes=
  17325. else
  17326. for ac_dir in $ac_x_header_dirs; do
  17327. if test -r "$ac_dir/X11/Xlib.h"; then
  17328. ac_x_includes=$ac_dir
  17329. break
  17330. fi
  17331. done
  17332. fi
  17333. rm -f conftest.err conftest.i conftest.$ac_ext
  17334. fi # $ac_x_includes = no
  17335. if test "$ac_x_libraries" = no; then
  17336. # Check for the libraries.
  17337. # See if we find them without any special options.
  17338. # Don't add to $LIBS permanently.
  17339. ac_save_LIBS=$LIBS
  17340. LIBS="-lX11 $LIBS"
  17341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17342. /* end confdefs.h. */
  17343. #include <X11/Xlib.h>
  17344. int
  17345. main ()
  17346. {
  17347. XrmInitialize ()
  17348. ;
  17349. return 0;
  17350. }
  17351. _ACEOF
  17352. if ac_fn_c_try_link "$LINENO"; then :
  17353. LIBS=$ac_save_LIBS
  17354. # We can link X programs with no special library path.
  17355. ac_x_libraries=
  17356. else
  17357. LIBS=$ac_save_LIBS
  17358. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17359. do
  17360. # Don't even attempt the hair of trying to link an X program!
  17361. for ac_extension in a so sl dylib la dll; do
  17362. if test -r "$ac_dir/libX11.$ac_extension"; then
  17363. ac_x_libraries=$ac_dir
  17364. break 2
  17365. fi
  17366. done
  17367. done
  17368. fi
  17369. rm -f core conftest.err conftest.$ac_objext \
  17370. conftest$ac_exeext conftest.$ac_ext
  17371. fi # $ac_x_libraries = no
  17372. case $ac_x_includes,$ac_x_libraries in #(
  17373. no,* | *,no | *\'*)
  17374. # Didn't find X, or a directory has "'" in its name.
  17375. ac_cv_have_x="have_x=no";; #(
  17376. *)
  17377. # Record where we found X for the cache.
  17378. ac_cv_have_x="have_x=yes\
  17379. ac_x_includes='$ac_x_includes'\
  17380. ac_x_libraries='$ac_x_libraries'"
  17381. esac
  17382. fi
  17383. ;; #(
  17384. *) have_x=yes;;
  17385. esac
  17386. eval "$ac_cv_have_x"
  17387. fi # $with_x != no
  17388. if test "$have_x" != yes; then
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17390. $as_echo "$have_x" >&6; }
  17391. no_x=yes
  17392. else
  17393. # If each of the values was on the command line, it overrides each guess.
  17394. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17395. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17396. # Update the cache value to reflect the command line values.
  17397. ac_cv_have_x="have_x=yes\
  17398. ac_x_includes='$x_includes'\
  17399. ac_x_libraries='$x_libraries'"
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17401. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17402. fi
  17403. if test "$no_x" = yes; then
  17404. # Not all programs may use this symbol, but it does not hurt to define it.
  17405. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17406. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17407. else
  17408. if test -n "$x_includes"; then
  17409. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17410. fi
  17411. # It would also be nice to do this for all -L options, not just this one.
  17412. if test -n "$x_libraries"; then
  17413. X_LIBS="$X_LIBS -L$x_libraries"
  17414. # For Solaris; some versions of Sun CC require a space after -R and
  17415. # others require no space. Words are not sufficient . . . .
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17417. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17418. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17419. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17420. ac_c_werror_flag=yes
  17421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17422. /* end confdefs.h. */
  17423. int
  17424. main ()
  17425. {
  17426. ;
  17427. return 0;
  17428. }
  17429. _ACEOF
  17430. if ac_fn_c_try_link "$LINENO"; then :
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17432. $as_echo "no" >&6; }
  17433. X_LIBS="$X_LIBS -R$x_libraries"
  17434. else
  17435. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17437. /* end confdefs.h. */
  17438. int
  17439. main ()
  17440. {
  17441. ;
  17442. return 0;
  17443. }
  17444. _ACEOF
  17445. if ac_fn_c_try_link "$LINENO"; then :
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17447. $as_echo "yes" >&6; }
  17448. X_LIBS="$X_LIBS -R $x_libraries"
  17449. else
  17450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17451. $as_echo "neither works" >&6; }
  17452. fi
  17453. rm -f core conftest.err conftest.$ac_objext \
  17454. conftest$ac_exeext conftest.$ac_ext
  17455. fi
  17456. rm -f core conftest.err conftest.$ac_objext \
  17457. conftest$ac_exeext conftest.$ac_ext
  17458. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17459. LIBS=$ac_xsave_LIBS
  17460. fi
  17461. # Check for system-dependent libraries X programs must link with.
  17462. # Do this before checking for the system-independent R6 libraries
  17463. # (-lICE), since we may need -lsocket or whatever for X linking.
  17464. if test "$ISC" = yes; then
  17465. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17466. else
  17467. # Martyn Johnson says this is needed for Ultrix, if the X
  17468. # libraries were built with DECnet support. And Karl Berry says
  17469. # the Alpha needs dnet_stub (dnet does not exist).
  17470. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17472. /* end confdefs.h. */
  17473. /* Override any GCC internal prototype to avoid an error.
  17474. Use char because int might match the return type of a GCC
  17475. builtin and then its argument prototype would still apply. */
  17476. #ifdef __cplusplus
  17477. extern "C"
  17478. #endif
  17479. char XOpenDisplay ();
  17480. int
  17481. main ()
  17482. {
  17483. return XOpenDisplay ();
  17484. ;
  17485. return 0;
  17486. }
  17487. _ACEOF
  17488. if ac_fn_c_try_link "$LINENO"; then :
  17489. else
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17491. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17492. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17493. $as_echo_n "(cached) " >&6
  17494. else
  17495. ac_check_lib_save_LIBS=$LIBS
  17496. LIBS="-ldnet $LIBS"
  17497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17498. /* end confdefs.h. */
  17499. /* Override any GCC internal prototype to avoid an error.
  17500. Use char because int might match the return type of a GCC
  17501. builtin and then its argument prototype would still apply. */
  17502. #ifdef __cplusplus
  17503. extern "C"
  17504. #endif
  17505. char dnet_ntoa ();
  17506. int
  17507. main ()
  17508. {
  17509. return dnet_ntoa ();
  17510. ;
  17511. return 0;
  17512. }
  17513. _ACEOF
  17514. if ac_fn_c_try_link "$LINENO"; then :
  17515. ac_cv_lib_dnet_dnet_ntoa=yes
  17516. else
  17517. ac_cv_lib_dnet_dnet_ntoa=no
  17518. fi
  17519. rm -f core conftest.err conftest.$ac_objext \
  17520. conftest$ac_exeext conftest.$ac_ext
  17521. LIBS=$ac_check_lib_save_LIBS
  17522. fi
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17524. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17525. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17526. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17527. fi
  17528. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17530. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17531. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17532. $as_echo_n "(cached) " >&6
  17533. else
  17534. ac_check_lib_save_LIBS=$LIBS
  17535. LIBS="-ldnet_stub $LIBS"
  17536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17537. /* end confdefs.h. */
  17538. /* Override any GCC internal prototype to avoid an error.
  17539. Use char because int might match the return type of a GCC
  17540. builtin and then its argument prototype would still apply. */
  17541. #ifdef __cplusplus
  17542. extern "C"
  17543. #endif
  17544. char dnet_ntoa ();
  17545. int
  17546. main ()
  17547. {
  17548. return dnet_ntoa ();
  17549. ;
  17550. return 0;
  17551. }
  17552. _ACEOF
  17553. if ac_fn_c_try_link "$LINENO"; then :
  17554. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17555. else
  17556. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17557. fi
  17558. rm -f core conftest.err conftest.$ac_objext \
  17559. conftest$ac_exeext conftest.$ac_ext
  17560. LIBS=$ac_check_lib_save_LIBS
  17561. fi
  17562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17563. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17564. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17565. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17566. fi
  17567. fi
  17568. fi
  17569. rm -f core conftest.err conftest.$ac_objext \
  17570. conftest$ac_exeext conftest.$ac_ext
  17571. LIBS="$ac_xsave_LIBS"
  17572. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17573. # to get the SysV transport functions.
  17574. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17575. # needs -lnsl.
  17576. # The nsl library prevents programs from opening the X display
  17577. # on Irix 5.2, according to T.E. Dickey.
  17578. # The functions gethostbyname, getservbyname, and inet_addr are
  17579. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17580. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17581. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17582. fi
  17583. if test $ac_cv_func_gethostbyname = no; then
  17584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17585. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17586. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17587. $as_echo_n "(cached) " >&6
  17588. else
  17589. ac_check_lib_save_LIBS=$LIBS
  17590. LIBS="-lnsl $LIBS"
  17591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17592. /* end confdefs.h. */
  17593. /* Override any GCC internal prototype to avoid an error.
  17594. Use char because int might match the return type of a GCC
  17595. builtin and then its argument prototype would still apply. */
  17596. #ifdef __cplusplus
  17597. extern "C"
  17598. #endif
  17599. char gethostbyname ();
  17600. int
  17601. main ()
  17602. {
  17603. return gethostbyname ();
  17604. ;
  17605. return 0;
  17606. }
  17607. _ACEOF
  17608. if ac_fn_c_try_link "$LINENO"; then :
  17609. ac_cv_lib_nsl_gethostbyname=yes
  17610. else
  17611. ac_cv_lib_nsl_gethostbyname=no
  17612. fi
  17613. rm -f core conftest.err conftest.$ac_objext \
  17614. conftest$ac_exeext conftest.$ac_ext
  17615. LIBS=$ac_check_lib_save_LIBS
  17616. fi
  17617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17618. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17619. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17620. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17621. fi
  17622. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17624. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17625. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17626. $as_echo_n "(cached) " >&6
  17627. else
  17628. ac_check_lib_save_LIBS=$LIBS
  17629. LIBS="-lbsd $LIBS"
  17630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17631. /* end confdefs.h. */
  17632. /* Override any GCC internal prototype to avoid an error.
  17633. Use char because int might match the return type of a GCC
  17634. builtin and then its argument prototype would still apply. */
  17635. #ifdef __cplusplus
  17636. extern "C"
  17637. #endif
  17638. char gethostbyname ();
  17639. int
  17640. main ()
  17641. {
  17642. return gethostbyname ();
  17643. ;
  17644. return 0;
  17645. }
  17646. _ACEOF
  17647. if ac_fn_c_try_link "$LINENO"; then :
  17648. ac_cv_lib_bsd_gethostbyname=yes
  17649. else
  17650. ac_cv_lib_bsd_gethostbyname=no
  17651. fi
  17652. rm -f core conftest.err conftest.$ac_objext \
  17653. conftest$ac_exeext conftest.$ac_ext
  17654. LIBS=$ac_check_lib_save_LIBS
  17655. fi
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17657. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17658. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17659. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17660. fi
  17661. fi
  17662. fi
  17663. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17664. # socket/setsockopt and other routines are undefined under SCO ODT
  17665. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17666. # on later versions), says Simon Leinen: it contains gethostby*
  17667. # variants that don't use the name server (or something). -lsocket
  17668. # must be given before -lnsl if both are needed. We assume that
  17669. # if connect needs -lnsl, so does gethostbyname.
  17670. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17671. if test "x$ac_cv_func_connect" = xyes; then :
  17672. fi
  17673. if test $ac_cv_func_connect = no; then
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17675. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17676. if ${ac_cv_lib_socket_connect+:} false; then :
  17677. $as_echo_n "(cached) " >&6
  17678. else
  17679. ac_check_lib_save_LIBS=$LIBS
  17680. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17682. /* end confdefs.h. */
  17683. /* Override any GCC internal prototype to avoid an error.
  17684. Use char because int might match the return type of a GCC
  17685. builtin and then its argument prototype would still apply. */
  17686. #ifdef __cplusplus
  17687. extern "C"
  17688. #endif
  17689. char connect ();
  17690. int
  17691. main ()
  17692. {
  17693. return connect ();
  17694. ;
  17695. return 0;
  17696. }
  17697. _ACEOF
  17698. if ac_fn_c_try_link "$LINENO"; then :
  17699. ac_cv_lib_socket_connect=yes
  17700. else
  17701. ac_cv_lib_socket_connect=no
  17702. fi
  17703. rm -f core conftest.err conftest.$ac_objext \
  17704. conftest$ac_exeext conftest.$ac_ext
  17705. LIBS=$ac_check_lib_save_LIBS
  17706. fi
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17708. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17709. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17710. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17711. fi
  17712. fi
  17713. # Guillermo Gomez says -lposix is necessary on A/UX.
  17714. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17715. if test "x$ac_cv_func_remove" = xyes; then :
  17716. fi
  17717. if test $ac_cv_func_remove = no; then
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17719. $as_echo_n "checking for remove in -lposix... " >&6; }
  17720. if ${ac_cv_lib_posix_remove+:} false; then :
  17721. $as_echo_n "(cached) " >&6
  17722. else
  17723. ac_check_lib_save_LIBS=$LIBS
  17724. LIBS="-lposix $LIBS"
  17725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17726. /* end confdefs.h. */
  17727. /* Override any GCC internal prototype to avoid an error.
  17728. Use char because int might match the return type of a GCC
  17729. builtin and then its argument prototype would still apply. */
  17730. #ifdef __cplusplus
  17731. extern "C"
  17732. #endif
  17733. char remove ();
  17734. int
  17735. main ()
  17736. {
  17737. return remove ();
  17738. ;
  17739. return 0;
  17740. }
  17741. _ACEOF
  17742. if ac_fn_c_try_link "$LINENO"; then :
  17743. ac_cv_lib_posix_remove=yes
  17744. else
  17745. ac_cv_lib_posix_remove=no
  17746. fi
  17747. rm -f core conftest.err conftest.$ac_objext \
  17748. conftest$ac_exeext conftest.$ac_ext
  17749. LIBS=$ac_check_lib_save_LIBS
  17750. fi
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17752. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17753. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17754. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17755. fi
  17756. fi
  17757. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17758. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17759. if test "x$ac_cv_func_shmat" = xyes; then :
  17760. fi
  17761. if test $ac_cv_func_shmat = no; then
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17763. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17764. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17765. $as_echo_n "(cached) " >&6
  17766. else
  17767. ac_check_lib_save_LIBS=$LIBS
  17768. LIBS="-lipc $LIBS"
  17769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17770. /* end confdefs.h. */
  17771. /* Override any GCC internal prototype to avoid an error.
  17772. Use char because int might match the return type of a GCC
  17773. builtin and then its argument prototype would still apply. */
  17774. #ifdef __cplusplus
  17775. extern "C"
  17776. #endif
  17777. char shmat ();
  17778. int
  17779. main ()
  17780. {
  17781. return shmat ();
  17782. ;
  17783. return 0;
  17784. }
  17785. _ACEOF
  17786. if ac_fn_c_try_link "$LINENO"; then :
  17787. ac_cv_lib_ipc_shmat=yes
  17788. else
  17789. ac_cv_lib_ipc_shmat=no
  17790. fi
  17791. rm -f core conftest.err conftest.$ac_objext \
  17792. conftest$ac_exeext conftest.$ac_ext
  17793. LIBS=$ac_check_lib_save_LIBS
  17794. fi
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17796. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17797. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17798. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17799. fi
  17800. fi
  17801. fi
  17802. # Check for libraries that X11R6 Xt/Xaw programs need.
  17803. ac_save_LDFLAGS=$LDFLAGS
  17804. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17805. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17806. # check for ICE first), but we must link in the order -lSM -lICE or
  17807. # we get undefined symbols. So assume we have SM if we have ICE.
  17808. # These have to be linked with before -lX11, unlike the other
  17809. # libraries we check for below, so use a different variable.
  17810. # John Interrante, Karl Berry
  17811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17812. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17813. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17814. $as_echo_n "(cached) " >&6
  17815. else
  17816. ac_check_lib_save_LIBS=$LIBS
  17817. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17819. /* end confdefs.h. */
  17820. /* Override any GCC internal prototype to avoid an error.
  17821. Use char because int might match the return type of a GCC
  17822. builtin and then its argument prototype would still apply. */
  17823. #ifdef __cplusplus
  17824. extern "C"
  17825. #endif
  17826. char IceConnectionNumber ();
  17827. int
  17828. main ()
  17829. {
  17830. return IceConnectionNumber ();
  17831. ;
  17832. return 0;
  17833. }
  17834. _ACEOF
  17835. if ac_fn_c_try_link "$LINENO"; then :
  17836. ac_cv_lib_ICE_IceConnectionNumber=yes
  17837. else
  17838. ac_cv_lib_ICE_IceConnectionNumber=no
  17839. fi
  17840. rm -f core conftest.err conftest.$ac_objext \
  17841. conftest$ac_exeext conftest.$ac_ext
  17842. LIBS=$ac_check_lib_save_LIBS
  17843. fi
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17845. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17846. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17847. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17848. fi
  17849. LDFLAGS=$ac_save_LDFLAGS
  17850. fi
  17851. if test x$have_x = xyes; then
  17852. # Check whether --enable-x11-shared was given.
  17853. if test "${enable_x11_shared+set}" = set; then :
  17854. enableval=$enable_x11_shared;
  17855. else
  17856. enable_x11_shared=maybe
  17857. fi
  17858. case "$host" in
  17859. *-*-darwin*)
  17860. # Apple now puts this in /opt/X11
  17861. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17862. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17863. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17864. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17865. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17866. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17867. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17868. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17869. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17870. ;;
  17871. *-*-openbsd*)
  17872. x11_lib='libX11.so'
  17873. x11ext_lib='libXext.so'
  17874. xcursor_lib='libXcursor.so'
  17875. xinerama_lib='libXinerama.so'
  17876. xinput_lib='libXi.so'
  17877. xrandr_lib='libXrandr.so'
  17878. xrender_lib='libXrender.so'
  17879. xss_lib='libXss.so'
  17880. xvidmode_lib='libXxf86vm.so'
  17881. ;;
  17882. *)
  17883. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17884. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17885. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17886. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17887. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17888. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17889. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17890. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17891. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17892. ;;
  17893. esac
  17894. if test x$ac_cv_func_shmat != xyes; then
  17895. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17896. fi
  17897. CFLAGS="$CFLAGS $X_CFLAGS"
  17898. LDFLAGS="$LDFLAGS $X_LIBS"
  17899. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17900. #include <X11/Xproto.h>
  17901. "
  17902. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17903. have_xext_h_hdr=yes
  17904. else
  17905. have_xext_h_hdr=no
  17906. fi
  17907. if test x$have_xext_h_hdr != xyes; then
  17908. as_fn_error $? "
  17909. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17910. " "$LINENO" 5
  17911. fi
  17912. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17913. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17914. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17915. # Needed so SDL applications can include SDL_syswm.h
  17916. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17917. if test x$enable_x11_shared = xmaybe; then
  17918. enable_x11_shared=yes
  17919. fi
  17920. if test x$have_loadso != xyes && \
  17921. test x$enable_x11_shared = xyes; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17923. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17924. enable_x11_shared=no
  17925. fi
  17926. if test x$have_loadso = xyes && \
  17927. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17928. echo "-- dynamic libX11 -> $x11_lib"
  17929. echo "-- dynamic libX11ext -> $x11ext_lib"
  17930. cat >>confdefs.h <<_ACEOF
  17931. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17932. _ACEOF
  17933. cat >>confdefs.h <<_ACEOF
  17934. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17935. _ACEOF
  17936. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17937. else
  17938. enable_x11_shared=no
  17939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17940. SUMMARY_video="${SUMMARY_video} x11"
  17941. fi
  17942. have_video=yes
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17944. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17945. have_const_param_XextAddDisplay=no
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #include <X11/Xlib.h>
  17949. #include <X11/Xproto.h>
  17950. #include <X11/extensions/Xext.h>
  17951. #include <X11/extensions/extutil.h>
  17952. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17953. int
  17954. main ()
  17955. {
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. if ac_fn_c_try_compile "$LINENO"; then :
  17961. have_const_param_XextAddDisplay=yes
  17962. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17963. fi
  17964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17966. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17968. $as_echo_n "checking for XGenericEvent... " >&6; }
  17969. have_XGenericEvent=no
  17970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17971. /* end confdefs.h. */
  17972. #include <X11/Xlib.h>
  17973. int
  17974. main ()
  17975. {
  17976. Display *display;
  17977. XEvent event;
  17978. XGenericEventCookie *cookie = &event.xcookie;
  17979. XNextEvent(display, &event);
  17980. XGetEventData(display, cookie);
  17981. XFreeEventData(display, cookie);
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_compile "$LINENO"; then :
  17987. have_XGenericEvent=yes
  17988. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17989. fi
  17990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17992. $as_echo "$have_XGenericEvent" >&6; }
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17994. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17995. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17996. $as_echo_n "(cached) " >&6
  17997. else
  17998. ac_check_lib_save_LIBS=$LIBS
  17999. LIBS="-lX11 $LIBS"
  18000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18001. /* end confdefs.h. */
  18002. /* Override any GCC internal prototype to avoid an error.
  18003. Use char because int might match the return type of a GCC
  18004. builtin and then its argument prototype would still apply. */
  18005. #ifdef __cplusplus
  18006. extern "C"
  18007. #endif
  18008. char XkbKeycodeToKeysym ();
  18009. int
  18010. main ()
  18011. {
  18012. return XkbKeycodeToKeysym ();
  18013. ;
  18014. return 0;
  18015. }
  18016. _ACEOF
  18017. if ac_fn_c_try_link "$LINENO"; then :
  18018. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18019. else
  18020. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18021. fi
  18022. rm -f core conftest.err conftest.$ac_objext \
  18023. conftest$ac_exeext conftest.$ac_ext
  18024. LIBS=$ac_check_lib_save_LIBS
  18025. fi
  18026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18027. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18028. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18029. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18030. fi
  18031. # Check whether --enable-video-x11-xcursor was given.
  18032. if test "${enable_video_x11_xcursor+set}" = set; then :
  18033. enableval=$enable_video_x11_xcursor;
  18034. else
  18035. enable_video_x11_xcursor=yes
  18036. fi
  18037. if test x$enable_video_x11_xcursor = xyes; then
  18038. definitely_enable_video_x11_xcursor=no
  18039. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18040. "
  18041. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18042. have_xcursor_h_hdr=yes
  18043. else
  18044. have_xcursor_h_hdr=no
  18045. fi
  18046. if test x$have_xcursor_h_hdr = xyes; then
  18047. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18048. echo "-- dynamic libXcursor -> $xcursor_lib"
  18049. cat >>confdefs.h <<_ACEOF
  18050. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18051. _ACEOF
  18052. definitely_enable_video_x11_xcursor=yes
  18053. else
  18054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18055. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18056. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18057. $as_echo_n "(cached) " >&6
  18058. else
  18059. ac_check_lib_save_LIBS=$LIBS
  18060. LIBS="-lXcursor $LIBS"
  18061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18062. /* end confdefs.h. */
  18063. /* Override any GCC internal prototype to avoid an error.
  18064. Use char because int might match the return type of a GCC
  18065. builtin and then its argument prototype would still apply. */
  18066. #ifdef __cplusplus
  18067. extern "C"
  18068. #endif
  18069. char XcursorImageCreate ();
  18070. int
  18071. main ()
  18072. {
  18073. return XcursorImageCreate ();
  18074. ;
  18075. return 0;
  18076. }
  18077. _ACEOF
  18078. if ac_fn_c_try_link "$LINENO"; then :
  18079. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18080. else
  18081. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18082. fi
  18083. rm -f core conftest.err conftest.$ac_objext \
  18084. conftest$ac_exeext conftest.$ac_ext
  18085. LIBS=$ac_check_lib_save_LIBS
  18086. fi
  18087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18088. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18089. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18090. have_xcursor_lib=yes
  18091. fi
  18092. if test x$have_xcursor_lib = xyes ; then
  18093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18094. definitely_enable_video_x11_xcursor=yes
  18095. fi
  18096. fi
  18097. fi
  18098. fi
  18099. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18100. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18101. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18102. fi
  18103. # Check whether --enable-video-x11-xdbe was given.
  18104. if test "${enable_video_x11_xdbe+set}" = set; then :
  18105. enableval=$enable_video_x11_xdbe;
  18106. else
  18107. enable_video_x11_xdbe=yes
  18108. fi
  18109. if test x$enable_video_x11_xdbe = xyes; then
  18110. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18111. "
  18112. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18113. have_dbe_h_hdr=yes
  18114. else
  18115. have_dbe_h_hdr=no
  18116. fi
  18117. if test x$have_dbe_h_hdr = xyes; then
  18118. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18119. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18120. fi
  18121. fi
  18122. # Check whether --enable-video-x11-xinerama was given.
  18123. if test "${enable_video_x11_xinerama+set}" = set; then :
  18124. enableval=$enable_video_x11_xinerama;
  18125. else
  18126. enable_video_x11_xinerama=yes
  18127. fi
  18128. if test x$enable_video_x11_xinerama = xyes; then
  18129. definitely_enable_video_x11_xinerama=no
  18130. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18131. "
  18132. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18133. have_xinerama_h_hdr=yes
  18134. else
  18135. have_xinerama_h_hdr=no
  18136. fi
  18137. if test x$have_xinerama_h_hdr = xyes; then
  18138. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18139. echo "-- dynamic libXinerama -> $xinerama_lib"
  18140. cat >>confdefs.h <<_ACEOF
  18141. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18142. _ACEOF
  18143. definitely_enable_video_x11_xinerama=yes
  18144. else
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18146. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18147. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18148. $as_echo_n "(cached) " >&6
  18149. else
  18150. ac_check_lib_save_LIBS=$LIBS
  18151. LIBS="-lXinerama $LIBS"
  18152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18153. /* end confdefs.h. */
  18154. /* Override any GCC internal prototype to avoid an error.
  18155. Use char because int might match the return type of a GCC
  18156. builtin and then its argument prototype would still apply. */
  18157. #ifdef __cplusplus
  18158. extern "C"
  18159. #endif
  18160. char XineramaQueryExtension ();
  18161. int
  18162. main ()
  18163. {
  18164. return XineramaQueryExtension ();
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_link "$LINENO"; then :
  18170. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18171. else
  18172. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18173. fi
  18174. rm -f core conftest.err conftest.$ac_objext \
  18175. conftest$ac_exeext conftest.$ac_ext
  18176. LIBS=$ac_check_lib_save_LIBS
  18177. fi
  18178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18179. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18180. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18181. have_xinerama_lib=yes
  18182. fi
  18183. if test x$have_xinerama_lib = xyes ; then
  18184. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18185. definitely_enable_video_x11_xinerama=yes
  18186. fi
  18187. fi
  18188. fi
  18189. fi
  18190. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18191. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18192. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18193. fi
  18194. # Check whether --enable-video-x11-xinput was given.
  18195. if test "${enable_video_x11_xinput+set}" = set; then :
  18196. enableval=$enable_video_x11_xinput;
  18197. else
  18198. enable_video_x11_xinput=yes
  18199. fi
  18200. if test x$enable_video_x11_xinput = xyes; then
  18201. definitely_enable_video_x11_xinput=no
  18202. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18203. "
  18204. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18205. have_xinput_h_hdr=yes
  18206. else
  18207. have_xinput_h_hdr=no
  18208. fi
  18209. if test x$have_xinput_h_hdr = xyes; then
  18210. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18211. echo "-- dynamic libXi -> $xinput_lib"
  18212. cat >>confdefs.h <<_ACEOF
  18213. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18214. _ACEOF
  18215. definitely_enable_video_x11_xinput=yes
  18216. else
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18218. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18219. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18220. $as_echo_n "(cached) " >&6
  18221. else
  18222. ac_check_lib_save_LIBS=$LIBS
  18223. LIBS="-lXi $LIBS"
  18224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18225. /* end confdefs.h. */
  18226. /* Override any GCC internal prototype to avoid an error.
  18227. Use char because int might match the return type of a GCC
  18228. builtin and then its argument prototype would still apply. */
  18229. #ifdef __cplusplus
  18230. extern "C"
  18231. #endif
  18232. char XOpenDevice ();
  18233. int
  18234. main ()
  18235. {
  18236. return XOpenDevice ();
  18237. ;
  18238. return 0;
  18239. }
  18240. _ACEOF
  18241. if ac_fn_c_try_link "$LINENO"; then :
  18242. ac_cv_lib_Xi_XOpenDevice=yes
  18243. else
  18244. ac_cv_lib_Xi_XOpenDevice=no
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext \
  18247. conftest$ac_exeext conftest.$ac_ext
  18248. LIBS=$ac_check_lib_save_LIBS
  18249. fi
  18250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18251. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18252. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18253. have_xinput_lib=yes
  18254. fi
  18255. if test x$have_xinput_lib = xyes ; then
  18256. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18257. definitely_enable_video_x11_xinput=yes
  18258. fi
  18259. fi
  18260. fi
  18261. fi
  18262. if test x$definitely_enable_video_x11_xinput = xyes; then
  18263. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18264. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18266. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18267. have_xinput2_multitouch=no
  18268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18269. /* end confdefs.h. */
  18270. #include <X11/Xlib.h>
  18271. #include <X11/Xproto.h>
  18272. #include <X11/extensions/XInput2.h>
  18273. int
  18274. main ()
  18275. {
  18276. int event_type = XI_TouchBegin;
  18277. XITouchClassInfo *t;
  18278. ;
  18279. return 0;
  18280. }
  18281. _ACEOF
  18282. if ac_fn_c_try_compile "$LINENO"; then :
  18283. have_xinput2_multitouch=yes
  18284. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18285. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18289. $as_echo "$have_xinput2_multitouch" >&6; }
  18290. fi
  18291. # Check whether --enable-video-x11-xrandr was given.
  18292. if test "${enable_video_x11_xrandr+set}" = set; then :
  18293. enableval=$enable_video_x11_xrandr;
  18294. else
  18295. enable_video_x11_xrandr=yes
  18296. fi
  18297. if test x$enable_video_x11_xrandr = xyes; then
  18298. definitely_enable_video_x11_xrandr=no
  18299. have_xrandr_h_hdr=no
  18300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18301. /* end confdefs.h. */
  18302. #include <X11/Xlib.h>
  18303. #include <X11/extensions/Xrandr.h>
  18304. int
  18305. main ()
  18306. {
  18307. XRRScreenResources *res = NULL;
  18308. ;
  18309. return 0;
  18310. }
  18311. _ACEOF
  18312. if ac_fn_c_try_compile "$LINENO"; then :
  18313. have_xrandr_h_hdr=yes
  18314. fi
  18315. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18316. if test x$have_xrandr_h_hdr = xyes; then
  18317. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18318. echo "-- dynamic libXrandr -> $xrandr_lib"
  18319. cat >>confdefs.h <<_ACEOF
  18320. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18321. _ACEOF
  18322. definitely_enable_video_x11_xrandr=yes
  18323. else
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18325. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18326. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18327. $as_echo_n "(cached) " >&6
  18328. else
  18329. ac_check_lib_save_LIBS=$LIBS
  18330. LIBS="-lXrandr $LIBS"
  18331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18332. /* end confdefs.h. */
  18333. /* Override any GCC internal prototype to avoid an error.
  18334. Use char because int might match the return type of a GCC
  18335. builtin and then its argument prototype would still apply. */
  18336. #ifdef __cplusplus
  18337. extern "C"
  18338. #endif
  18339. char XRRQueryExtension ();
  18340. int
  18341. main ()
  18342. {
  18343. return XRRQueryExtension ();
  18344. ;
  18345. return 0;
  18346. }
  18347. _ACEOF
  18348. if ac_fn_c_try_link "$LINENO"; then :
  18349. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18350. else
  18351. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18352. fi
  18353. rm -f core conftest.err conftest.$ac_objext \
  18354. conftest$ac_exeext conftest.$ac_ext
  18355. LIBS=$ac_check_lib_save_LIBS
  18356. fi
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18358. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18359. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18360. have_xrandr_lib=yes
  18361. fi
  18362. if test x$have_xrandr_lib = xyes ; then
  18363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18364. definitely_enable_video_x11_xrandr=yes
  18365. fi
  18366. fi
  18367. fi
  18368. fi
  18369. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18370. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18371. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18372. fi
  18373. # Check whether --enable-video-x11-scrnsaver was given.
  18374. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18375. enableval=$enable_video_x11_scrnsaver;
  18376. else
  18377. enable_video_x11_scrnsaver=yes
  18378. fi
  18379. if test x$enable_video_x11_scrnsaver = xyes; then
  18380. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18381. "
  18382. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18383. have_scrnsaver_h_hdr=yes
  18384. else
  18385. have_scrnsaver_h_hdr=no
  18386. fi
  18387. if test x$have_scrnsaver_h_hdr = xyes; then
  18388. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18389. echo "-- dynamic libXss -> $xss_lib"
  18390. cat >>confdefs.h <<_ACEOF
  18391. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18392. _ACEOF
  18393. definitely_enable_video_x11_scrnsaver=yes
  18394. else
  18395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18396. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18397. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18398. $as_echo_n "(cached) " >&6
  18399. else
  18400. ac_check_lib_save_LIBS=$LIBS
  18401. LIBS="-lXss $LIBS"
  18402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h. */
  18404. /* Override any GCC internal prototype to avoid an error.
  18405. Use char because int might match the return type of a GCC
  18406. builtin and then its argument prototype would still apply. */
  18407. #ifdef __cplusplus
  18408. extern "C"
  18409. #endif
  18410. char XScreenSaverSuspend ();
  18411. int
  18412. main ()
  18413. {
  18414. return XScreenSaverSuspend ();
  18415. ;
  18416. return 0;
  18417. }
  18418. _ACEOF
  18419. if ac_fn_c_try_link "$LINENO"; then :
  18420. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18421. else
  18422. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext \
  18425. conftest$ac_exeext conftest.$ac_ext
  18426. LIBS=$ac_check_lib_save_LIBS
  18427. fi
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18429. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18430. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18431. have_xss_lib=yes
  18432. fi
  18433. if test x$have_xss_lib = xyes ; then
  18434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18435. definitely_enable_video_x11_scrnsaver=yes
  18436. fi
  18437. fi
  18438. fi
  18439. fi
  18440. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18441. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18442. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18443. fi
  18444. # Check whether --enable-video-x11-xshape was given.
  18445. if test "${enable_video_x11_xshape+set}" = set; then :
  18446. enableval=$enable_video_x11_xshape;
  18447. else
  18448. enable_video_x11_xshape=yes
  18449. fi
  18450. if test x$enable_video_x11_xshape = xyes; then
  18451. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18452. "
  18453. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18454. have_shape_h_hdr=yes
  18455. else
  18456. have_shape_h_hdr=no
  18457. fi
  18458. if test x$have_shape_h_hdr = xyes; then
  18459. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18460. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18461. fi
  18462. fi
  18463. # Check whether --enable-video-x11-vm was given.
  18464. if test "${enable_video_x11_vm+set}" = set; then :
  18465. enableval=$enable_video_x11_vm;
  18466. else
  18467. enable_video_x11_vm=yes
  18468. fi
  18469. if test x$enable_video_x11_vm = xyes; then
  18470. definitely_enable_video_x11_vm=no
  18471. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18472. "
  18473. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18474. have_vm_h_hdr=yes
  18475. else
  18476. have_vm_h_hdr=no
  18477. fi
  18478. if test x$have_vm_h_hdr = xyes; then
  18479. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18480. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18481. cat >>confdefs.h <<_ACEOF
  18482. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18483. _ACEOF
  18484. definitely_enable_video_x11_vm=yes
  18485. else
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18487. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18488. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18489. $as_echo_n "(cached) " >&6
  18490. else
  18491. ac_check_lib_save_LIBS=$LIBS
  18492. LIBS="-lXxf86vm $LIBS"
  18493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18494. /* end confdefs.h. */
  18495. /* Override any GCC internal prototype to avoid an error.
  18496. Use char because int might match the return type of a GCC
  18497. builtin and then its argument prototype would still apply. */
  18498. #ifdef __cplusplus
  18499. extern "C"
  18500. #endif
  18501. char XF86VidModeQueryVersion ();
  18502. int
  18503. main ()
  18504. {
  18505. return XF86VidModeQueryVersion ();
  18506. ;
  18507. return 0;
  18508. }
  18509. _ACEOF
  18510. if ac_fn_c_try_link "$LINENO"; then :
  18511. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18512. else
  18513. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18514. fi
  18515. rm -f core conftest.err conftest.$ac_objext \
  18516. conftest$ac_exeext conftest.$ac_ext
  18517. LIBS=$ac_check_lib_save_LIBS
  18518. fi
  18519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18520. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18521. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18522. have_vm_lib=yes
  18523. fi
  18524. if test x$have_vm_lib = xyes ; then
  18525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18526. definitely_enable_video_x11_vm=yes
  18527. fi
  18528. fi
  18529. fi
  18530. fi
  18531. if test x$definitely_enable_video_x11_vm = xyes; then
  18532. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18533. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18534. fi
  18535. fi
  18536. else
  18537. # Prevent Mesa from including X11 headers
  18538. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18539. fi
  18540. }
  18541. CheckVivanteVideo()
  18542. {
  18543. # Check whether --enable-video-vivante was given.
  18544. if test "${enable_video_vivante+set}" = set; then :
  18545. enableval=$enable_video_vivante;
  18546. else
  18547. enable_video_vivante=yes
  18548. fi
  18549. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18551. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18552. have_vivante_vdk=no
  18553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18554. /* end confdefs.h. */
  18555. #define LINUX
  18556. #define EGL_API_FB
  18557. #include <gc_vdk.h>
  18558. int
  18559. main ()
  18560. {
  18561. ;
  18562. return 0;
  18563. }
  18564. _ACEOF
  18565. if ac_fn_c_try_compile "$LINENO"; then :
  18566. have_vivante_vdk=yes
  18567. fi
  18568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18570. $as_echo "$have_vivante_vdk" >&6; }
  18571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18572. $as_echo_n "checking for Vivante FB API... " >&6; }
  18573. have_vivante_egl=no
  18574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18575. /* end confdefs.h. */
  18576. #define LINUX
  18577. #define EGL_API_FB
  18578. #include <EGL/eglvivante.h>
  18579. int
  18580. main ()
  18581. {
  18582. ;
  18583. return 0;
  18584. }
  18585. _ACEOF
  18586. if ac_fn_c_try_compile "$LINENO"; then :
  18587. have_vivante_egl=yes
  18588. fi
  18589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18591. $as_echo "$have_vivante_egl" >&6; }
  18592. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18593. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18594. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18595. if test x$have_vivante_vdk = xyes; then
  18596. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18597. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18598. fi
  18599. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18600. SUMMARY_video="${SUMMARY_video} vivante"
  18601. have_video=yes
  18602. fi
  18603. fi
  18604. }
  18605. CheckHaikuVideo()
  18606. {
  18607. if test x$enable_video = xyes; then
  18608. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18609. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18610. have_video=yes
  18611. SUMMARY_video="${SUMMARY_video} haiku"
  18612. fi
  18613. }
  18614. CheckCOCOA()
  18615. {
  18616. # Check whether --enable-video-cocoa was given.
  18617. if test "${enable_video_cocoa+set}" = set; then :
  18618. enableval=$enable_video_cocoa;
  18619. else
  18620. enable_video_cocoa=yes
  18621. fi
  18622. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18623. save_CFLAGS="$CFLAGS"
  18624. CFLAGS="$CFLAGS -x objective-c"
  18625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18626. $as_echo_n "checking for Cocoa framework... " >&6; }
  18627. have_cocoa=no
  18628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18629. /* end confdefs.h. */
  18630. #import <Cocoa/Cocoa.h>
  18631. int
  18632. main ()
  18633. {
  18634. ;
  18635. return 0;
  18636. }
  18637. _ACEOF
  18638. if ac_fn_c_try_compile "$LINENO"; then :
  18639. have_cocoa=yes
  18640. fi
  18641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18643. $as_echo "$have_cocoa" >&6; }
  18644. CFLAGS="$save_CFLAGS"
  18645. if test x$have_cocoa = xyes; then
  18646. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18647. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18648. SUMMARY_video="${SUMMARY_video} cocoa"
  18649. have_video=yes
  18650. fi
  18651. fi
  18652. }
  18653. CheckMETAL()
  18654. {
  18655. # Check whether --enable-video-metal was given.
  18656. if test "${enable_video_metal+set}" = set; then :
  18657. enableval=$enable_video_metal;
  18658. else
  18659. enable_video_metal=yes
  18660. fi
  18661. # Check whether --enable-render-metal was given.
  18662. if test "${enable_render_metal+set}" = set; then :
  18663. enableval=$enable_render_metal;
  18664. else
  18665. enable_render_metal=yes
  18666. fi
  18667. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18668. save_CFLAGS="$CFLAGS"
  18669. CFLAGS="$CFLAGS -x objective-c"
  18670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18671. $as_echo_n "checking for Metal framework... " >&6; }
  18672. have_metal=no
  18673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18674. /* end confdefs.h. */
  18675. #import <Cocoa/Cocoa.h>
  18676. #import <Metal/Metal.h>
  18677. #import <QuartzCore/CAMetalLayer.h>
  18678. #if TARGET_CPU_X86
  18679. #error Metal doesn't work on this configuration
  18680. #endif
  18681. int
  18682. main ()
  18683. {
  18684. ;
  18685. return 0;
  18686. }
  18687. _ACEOF
  18688. if ac_fn_c_try_compile "$LINENO"; then :
  18689. have_metal=yes
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18692. CFLAGS="$save_CFLAGS"
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18694. $as_echo "$have_metal" >&6; }
  18695. if test x$have_metal = xyes; then
  18696. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18697. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18698. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18699. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18700. fi
  18701. SUMMARY_video="${SUMMARY_video} metal"
  18702. else
  18703. enable_video_metal=no
  18704. enable_render_metal=no
  18705. fi
  18706. fi
  18707. }
  18708. CheckDirectFB()
  18709. {
  18710. # Check whether --enable-video-directfb was given.
  18711. if test "${enable_video_directfb+set}" = set; then :
  18712. enableval=$enable_video_directfb;
  18713. else
  18714. enable_video_directfb=no
  18715. fi
  18716. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18717. pkg_failed=no
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18719. $as_echo_n "checking for DIRECTFB... " >&6; }
  18720. if test -n "$DIRECTFB_CFLAGS"; then
  18721. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18722. elif test -n "$PKG_CONFIG"; then
  18723. if test -n "$PKG_CONFIG" && \
  18724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18725. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18726. ac_status=$?
  18727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18728. test $ac_status = 0; }; then
  18729. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18730. else
  18731. pkg_failed=yes
  18732. fi
  18733. else
  18734. pkg_failed=untried
  18735. fi
  18736. if test -n "$DIRECTFB_LIBS"; then
  18737. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18738. elif test -n "$PKG_CONFIG"; then
  18739. if test -n "$PKG_CONFIG" && \
  18740. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18741. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18742. ac_status=$?
  18743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18744. test $ac_status = 0; }; then
  18745. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18746. else
  18747. pkg_failed=yes
  18748. fi
  18749. else
  18750. pkg_failed=untried
  18751. fi
  18752. if test $pkg_failed = yes; then
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18754. $as_echo "no" >&6; }
  18755. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18756. _pkg_short_errors_supported=yes
  18757. else
  18758. _pkg_short_errors_supported=no
  18759. fi
  18760. if test $_pkg_short_errors_supported = yes; then
  18761. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18762. else
  18763. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18764. fi
  18765. # Put the nasty error message in config.log where it belongs
  18766. echo "$DIRECTFB_PKG_ERRORS" >&5
  18767. video_directfb=no
  18768. elif test $pkg_failed = untried; then
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18770. $as_echo "no" >&6; }
  18771. video_directfb=no
  18772. else
  18773. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18774. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18776. $as_echo "yes" >&6; }
  18777. video_directfb=yes
  18778. fi
  18779. if test x$video_directfb = xyes; then
  18780. # SuSE 11.1 installs directfb-config without directfb-devel
  18781. save_CPPFLAGS="$CPPFLAGS"
  18782. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18783. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18784. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18785. have_directfb_hdr=yes
  18786. else
  18787. have_directfb_hdr=no
  18788. fi
  18789. CPPFLAGS="$save_CPPFLAGS"
  18790. video_directfb=$have_directfb_hdr
  18791. fi
  18792. if test x$video_directfb = xyes; then
  18793. # Check whether --enable-directfb-shared was given.
  18794. if test "${enable_directfb_shared+set}" = set; then :
  18795. enableval=$enable_directfb_shared;
  18796. else
  18797. enable_directfb_shared=yes
  18798. fi
  18799. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18800. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18801. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18802. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18804. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18805. directfb_shared=no
  18806. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18807. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18809. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18810. if test x$have_loadso != xyes && \
  18811. test x$enable_directfb_shared = xyes; then
  18812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18813. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18814. fi
  18815. if test x$have_loadso = xyes && \
  18816. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18817. directfb_shared=yes
  18818. echo "-- $directfb_lib_spec -> $directfb_lib"
  18819. cat >>confdefs.h <<_ACEOF
  18820. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18821. _ACEOF
  18822. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18823. else
  18824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18825. SUMMARY_video="${SUMMARY_video} directfb"
  18826. fi
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18828. $as_echo "$directfb_shared" >&6; }
  18829. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18830. have_video=yes
  18831. fi
  18832. fi
  18833. }
  18834. CheckKMSDRM()
  18835. {
  18836. # Check whether --enable-video-kmsdrm was given.
  18837. if test "${enable_video_kmsdrm+set}" = set; then :
  18838. enableval=$enable_video_kmsdrm;
  18839. else
  18840. enable_video_kmsdrm=no
  18841. fi
  18842. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18843. video_kmsdrm=no
  18844. pkg_failed=no
  18845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18846. $as_echo_n "checking for LIBDRM... " >&6; }
  18847. if test -n "$LIBDRM_CFLAGS"; then
  18848. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18849. elif test -n "$PKG_CONFIG"; then
  18850. if test -n "$PKG_CONFIG" && \
  18851. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18852. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18853. ac_status=$?
  18854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18855. test $ac_status = 0; }; then
  18856. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18857. else
  18858. pkg_failed=yes
  18859. fi
  18860. else
  18861. pkg_failed=untried
  18862. fi
  18863. if test -n "$LIBDRM_LIBS"; then
  18864. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18865. elif test -n "$PKG_CONFIG"; then
  18866. if test -n "$PKG_CONFIG" && \
  18867. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18868. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18869. ac_status=$?
  18870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18871. test $ac_status = 0; }; then
  18872. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  18873. else
  18874. pkg_failed=yes
  18875. fi
  18876. else
  18877. pkg_failed=untried
  18878. fi
  18879. if test $pkg_failed = yes; then
  18880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18881. $as_echo "no" >&6; }
  18882. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18883. _pkg_short_errors_supported=yes
  18884. else
  18885. _pkg_short_errors_supported=no
  18886. fi
  18887. if test $_pkg_short_errors_supported = yes; then
  18888. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1`
  18889. else
  18890. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1`
  18891. fi
  18892. # Put the nasty error message in config.log where it belongs
  18893. echo "$LIBDRM_PKG_ERRORS" >&5
  18894. libdrm_avail=no
  18895. elif test $pkg_failed = untried; then
  18896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18897. $as_echo "no" >&6; }
  18898. libdrm_avail=no
  18899. else
  18900. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18901. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18903. $as_echo "yes" >&6; }
  18904. libdrm_avail=yes
  18905. fi
  18906. pkg_failed=no
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18908. $as_echo_n "checking for LIBGBM... " >&6; }
  18909. if test -n "$LIBGBM_CFLAGS"; then
  18910. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18911. elif test -n "$PKG_CONFIG"; then
  18912. if test -n "$PKG_CONFIG" && \
  18913. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18914. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18915. ac_status=$?
  18916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18917. test $ac_status = 0; }; then
  18918. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  18919. else
  18920. pkg_failed=yes
  18921. fi
  18922. else
  18923. pkg_failed=untried
  18924. fi
  18925. if test -n "$LIBGBM_LIBS"; then
  18926. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18927. elif test -n "$PKG_CONFIG"; then
  18928. if test -n "$PKG_CONFIG" && \
  18929. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18930. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18931. ac_status=$?
  18932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18933. test $ac_status = 0; }; then
  18934. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  18935. else
  18936. pkg_failed=yes
  18937. fi
  18938. else
  18939. pkg_failed=untried
  18940. fi
  18941. if test $pkg_failed = yes; then
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18943. $as_echo "no" >&6; }
  18944. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18945. _pkg_short_errors_supported=yes
  18946. else
  18947. _pkg_short_errors_supported=no
  18948. fi
  18949. if test $_pkg_short_errors_supported = yes; then
  18950. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1`
  18951. else
  18952. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1`
  18953. fi
  18954. # Put the nasty error message in config.log where it belongs
  18955. echo "$LIBGBM_PKG_ERRORS" >&5
  18956. libgbm_avail=no
  18957. elif test $pkg_failed = untried; then
  18958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18959. $as_echo "no" >&6; }
  18960. libgbm_avail=no
  18961. else
  18962. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18963. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18965. $as_echo "yes" >&6; }
  18966. libgbm_avail=yes
  18967. fi
  18968. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18969. video_kmsdrm=yes
  18970. fi
  18971. if test x$video_kmsdrm = xyes; then
  18972. # Check whether --enable-kmsdrm-shared was given.
  18973. if test "${enable_kmsdrm_shared+set}" = set; then :
  18974. enableval=$enable_kmsdrm_shared;
  18975. else
  18976. enable_kmsdrm_shared=yes
  18977. fi
  18978. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18979. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18980. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18982. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18983. kmsdrm_shared=no
  18984. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18985. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18986. if test x$have_loadso != xyes && \
  18987. test x$enable_kmsdrm_shared = xyes; then
  18988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18989. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18990. fi
  18991. if test x$have_loadso = xyes && \
  18992. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18993. kmsdrm_shared=yes
  18994. cat >>confdefs.h <<_ACEOF
  18995. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18996. _ACEOF
  18997. cat >>confdefs.h <<_ACEOF
  18998. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18999. _ACEOF
  19000. cat >>confdefs.h <<_ACEOF
  19001. #define HAVE_KMSDRM_SHARED "TRUE"
  19002. _ACEOF
  19003. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19004. else
  19005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19006. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19007. fi
  19008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19009. $as_echo "$kmsdrm_shared" >&6; }
  19010. have_video=yes
  19011. fi
  19012. fi
  19013. }
  19014. CheckDummyVideo()
  19015. {
  19016. # Check whether --enable-video-dummy was given.
  19017. if test "${enable_video_dummy+set}" = set; then :
  19018. enableval=$enable_video_dummy;
  19019. else
  19020. enable_video_dummy=yes
  19021. fi
  19022. if test x$enable_video_dummy = xyes; then
  19023. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19024. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19025. have_video=yes
  19026. SUMMARY_video="${SUMMARY_video} dummy"
  19027. fi
  19028. }
  19029. CheckQNXVideo()
  19030. {
  19031. if test x$enable_video = xyes; then
  19032. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19033. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19034. have_video=yes
  19035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19036. SUMMARY_video="${SUMMARY_video} qnx"
  19037. fi
  19038. }
  19039. CheckQNXAudio()
  19040. {
  19041. if test x$enable_audio = xyes; then
  19042. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19043. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19044. have_audio=yes
  19045. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19046. SUMMARY_audio="${SUMMARY_audio} qsa"
  19047. fi
  19048. }
  19049. # Check whether --enable-video-opengl was given.
  19050. if test "${enable_video_opengl+set}" = set; then :
  19051. enableval=$enable_video_opengl;
  19052. else
  19053. enable_video_opengl=yes
  19054. fi
  19055. CheckOpenGLX11()
  19056. {
  19057. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19059. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19060. video_opengl=no
  19061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19062. /* end confdefs.h. */
  19063. #include <GL/gl.h>
  19064. #include <GL/glx.h>
  19065. int
  19066. main ()
  19067. {
  19068. ;
  19069. return 0;
  19070. }
  19071. _ACEOF
  19072. if ac_fn_c_try_compile "$LINENO"; then :
  19073. video_opengl=yes
  19074. fi
  19075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19077. $as_echo "$video_opengl" >&6; }
  19078. if test x$video_opengl = xyes; then
  19079. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19080. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19081. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19082. SUMMARY_video="${SUMMARY_video} opengl"
  19083. fi
  19084. fi
  19085. }
  19086. # Check whether --enable-video-opengles was given.
  19087. if test "${enable_video_opengles+set}" = set; then :
  19088. enableval=$enable_video_opengles;
  19089. else
  19090. enable_video_opengles=yes
  19091. fi
  19092. # Check whether --enable-video-opengles1 was given.
  19093. if test "${enable_video_opengles1+set}" = set; then :
  19094. enableval=$enable_video_opengles1;
  19095. else
  19096. enable_video_opengles1=yes
  19097. fi
  19098. # Check whether --enable-video-opengles2 was given.
  19099. if test "${enable_video_opengles2+set}" = set; then :
  19100. enableval=$enable_video_opengles2;
  19101. else
  19102. enable_video_opengles2=yes
  19103. fi
  19104. CheckOpenGLESX11()
  19105. {
  19106. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19108. $as_echo_n "checking for EGL support... " >&6; }
  19109. video_opengl_egl=no
  19110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19111. /* end confdefs.h. */
  19112. #define LINUX
  19113. #define EGL_API_FB
  19114. #define MESA_EGL_NO_X11_HEADERS
  19115. #define EGL_NO_X11
  19116. #include <EGL/egl.h>
  19117. #include <EGL/eglext.h>
  19118. int
  19119. main ()
  19120. {
  19121. ;
  19122. return 0;
  19123. }
  19124. _ACEOF
  19125. if ac_fn_c_try_compile "$LINENO"; then :
  19126. video_opengl_egl=yes
  19127. fi
  19128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19130. $as_echo "$video_opengl_egl" >&6; }
  19131. if test x$video_opengl_egl = xyes; then
  19132. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19133. fi
  19134. if test x$enable_video_opengles1 = xyes; then
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19136. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19137. video_opengles_v1=no
  19138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19139. /* end confdefs.h. */
  19140. #include <GLES/gl.h>
  19141. #include <GLES/glext.h>
  19142. int
  19143. main ()
  19144. {
  19145. ;
  19146. return 0;
  19147. }
  19148. _ACEOF
  19149. if ac_fn_c_try_compile "$LINENO"; then :
  19150. video_opengles_v1=yes
  19151. fi
  19152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19154. $as_echo "$video_opengles_v1" >&6; }
  19155. if test x$video_opengles_v1 = xyes; then
  19156. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19157. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19158. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19159. fi
  19160. fi
  19161. if test x$enable_video_opengles2 = xyes; then
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19163. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19164. video_opengles_v2=no
  19165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19166. /* end confdefs.h. */
  19167. #include <GLES2/gl2.h>
  19168. #include <GLES2/gl2ext.h>
  19169. int
  19170. main ()
  19171. {
  19172. ;
  19173. return 0;
  19174. }
  19175. _ACEOF
  19176. if ac_fn_c_try_compile "$LINENO"; then :
  19177. video_opengles_v2=yes
  19178. fi
  19179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19181. $as_echo "$video_opengles_v2" >&6; }
  19182. if test x$video_opengles_v2 = xyes; then
  19183. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19184. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19185. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19186. fi
  19187. fi
  19188. fi
  19189. }
  19190. CheckWINDOWSGL()
  19191. {
  19192. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19193. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19194. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19195. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19196. SUMMARY_video="${SUMMARY_video} opengl"
  19197. fi
  19198. }
  19199. CheckWINDOWSGLES()
  19200. {
  19201. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19203. $as_echo_n "checking for EGL support... " >&6; }
  19204. video_opengl_egl=no
  19205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19206. /* end confdefs.h. */
  19207. #include <EGL/egl.h>
  19208. int
  19209. main ()
  19210. {
  19211. ;
  19212. return 0;
  19213. }
  19214. _ACEOF
  19215. if ac_fn_c_try_compile "$LINENO"; then :
  19216. video_opengl_egl=yes
  19217. fi
  19218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19220. $as_echo "$video_opengl_egl" >&6; }
  19221. if test x$video_opengl_egl = xyes; then
  19222. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19223. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19224. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19225. fi
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19227. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19228. video_opengles_v2=no
  19229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19230. /* end confdefs.h. */
  19231. #include <GLES2/gl2.h>
  19232. #include <GLES2/gl2ext.h>
  19233. int
  19234. main ()
  19235. {
  19236. ;
  19237. return 0;
  19238. }
  19239. _ACEOF
  19240. if ac_fn_c_try_compile "$LINENO"; then :
  19241. video_opengles_v2=yes
  19242. fi
  19243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19245. $as_echo "$video_opengles_v2" >&6; }
  19246. if test x$video_opengles_v2 = xyes; then
  19247. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19248. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19249. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19250. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19251. fi
  19252. fi
  19253. }
  19254. CheckHaikuGL()
  19255. {
  19256. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19257. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19258. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19259. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19261. SUMMARY_video="${SUMMARY_video} opengl"
  19262. fi
  19263. }
  19264. CheckMacGL()
  19265. {
  19266. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19267. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19268. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19269. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19270. SUMMARY_video="${SUMMARY_video} opengl"
  19271. fi
  19272. }
  19273. CheckMacGLES()
  19274. {
  19275. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19276. video_opengl_egl=yes
  19277. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19278. video_opengles_v2=yes
  19279. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19280. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19281. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19282. fi
  19283. }
  19284. CheckEmscriptenGLES()
  19285. {
  19286. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19288. $as_echo_n "checking for EGL support... " >&6; }
  19289. video_opengl_egl=no
  19290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19291. /* end confdefs.h. */
  19292. #include <EGL/egl.h>
  19293. int
  19294. main ()
  19295. {
  19296. ;
  19297. return 0;
  19298. }
  19299. _ACEOF
  19300. if ac_fn_c_try_compile "$LINENO"; then :
  19301. video_opengl_egl=yes
  19302. fi
  19303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19305. $as_echo "$video_opengl_egl" >&6; }
  19306. if test x$video_opengl_egl = xyes; then
  19307. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19308. fi
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19310. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19311. video_opengles_v2=no
  19312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19313. /* end confdefs.h. */
  19314. #include <GLES2/gl2.h>
  19315. #include <GLES2/gl2ext.h>
  19316. int
  19317. main ()
  19318. {
  19319. ;
  19320. return 0;
  19321. }
  19322. _ACEOF
  19323. if ac_fn_c_try_compile "$LINENO"; then :
  19324. video_opengles_v2=yes
  19325. fi
  19326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19328. $as_echo "$video_opengles_v2" >&6; }
  19329. if test x$video_opengles_v2 = xyes; then
  19330. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19331. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19332. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19333. fi
  19334. fi
  19335. }
  19336. # Check whether --enable-video-vulkan was given.
  19337. if test "${enable_video_vulkan+set}" = set; then :
  19338. enableval=$enable_video_vulkan;
  19339. else
  19340. enable_video_vulkan=yes
  19341. fi
  19342. CheckVulkan()
  19343. {
  19344. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19345. case "$host" in
  19346. *-*-android*)
  19347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19348. /* end confdefs.h. */
  19349. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19350. #error Vulkan doesn't work on this configuration
  19351. #endif
  19352. int
  19353. main ()
  19354. {
  19355. ;
  19356. return 0;
  19357. }
  19358. _ACEOF
  19359. if ac_fn_c_try_compile "$LINENO"; then :
  19360. else
  19361. enable_video_vulkan=no
  19362. fi
  19363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19364. ;;
  19365. *-*-darwin*)
  19366. save_CFLAGS="$CFLAGS"
  19367. CFLAGS="$CFLAGS -x objective-c"
  19368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19369. /* end confdefs.h. */
  19370. #include <Cocoa/Cocoa.h>
  19371. #include <Metal/Metal.h>
  19372. #include <QuartzCore/CAMetalLayer.h>
  19373. #if TARGET_CPU_X86
  19374. #error Vulkan doesn't work on this configuration
  19375. #endif
  19376. int
  19377. main ()
  19378. {
  19379. ;
  19380. return 0;
  19381. }
  19382. _ACEOF
  19383. if ac_fn_c_try_compile "$LINENO"; then :
  19384. else
  19385. enable_video_vulkan=no
  19386. fi
  19387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19388. CFLAGS="$save_CFLAGS"
  19389. ;;
  19390. *)
  19391. ;;
  19392. esac
  19393. if test x$enable_video_vulkan = xno; then
  19394. # For reasons I am totally unable to see, I get an undefined macro error if
  19395. # I put this in the AC_TRY_COMPILE.
  19396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19397. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19398. fi
  19399. fi
  19400. if test x$enable_video_vulkan = xyes; then
  19401. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19402. SUMMARY_video="${SUMMARY_video} vulkan"
  19403. fi
  19404. }
  19405. CheckInputEvents()
  19406. {
  19407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19408. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19409. use_input_events=no
  19410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19411. /* end confdefs.h. */
  19412. #include <linux/input.h>
  19413. int
  19414. main ()
  19415. {
  19416. #ifndef EVIOCGNAME
  19417. #error EVIOCGNAME() ioctl not available
  19418. #endif
  19419. ;
  19420. return 0;
  19421. }
  19422. _ACEOF
  19423. if ac_fn_c_try_compile "$LINENO"; then :
  19424. use_input_events=yes
  19425. fi
  19426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19428. $as_echo "$use_input_events" >&6; }
  19429. if test x$use_input_events = xyes; then
  19430. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19431. SUMMARY_input="${SUMMARY_input} linuxev"
  19432. fi
  19433. }
  19434. CheckInputKD()
  19435. {
  19436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19437. $as_echo_n "checking for Linux kd.h... " >&6; }
  19438. use_input_kd=no
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. #include <linux/kd.h>
  19442. #include <linux/keyboard.h>
  19443. int
  19444. main ()
  19445. {
  19446. struct kbentry kbe;
  19447. kbe.kb_table = KG_CTRL;
  19448. ioctl(0, KDGKBENT, &kbe);
  19449. ;
  19450. return 0;
  19451. }
  19452. _ACEOF
  19453. if ac_fn_c_try_compile "$LINENO"; then :
  19454. use_input_kd=yes
  19455. fi
  19456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19458. $as_echo "$use_input_kd" >&6; }
  19459. if test x$use_input_kd = xyes; then
  19460. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19461. SUMMARY_input="${SUMMARY_input} linuxkd"
  19462. fi
  19463. }
  19464. CheckInputKBIO()
  19465. {
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19467. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19468. use_input_kbio=no
  19469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19470. /* end confdefs.h. */
  19471. #include <sys/kbio.h>
  19472. #include <sys/ioctl.h>
  19473. int
  19474. main ()
  19475. {
  19476. accentmap_t accTable;
  19477. ioctl(0, KDENABIO, 1);
  19478. ;
  19479. return 0;
  19480. }
  19481. _ACEOF
  19482. if ac_fn_c_try_compile "$LINENO"; then :
  19483. use_input_kbio=yes
  19484. fi
  19485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19487. $as_echo "$use_input_kbio" >&6; }
  19488. if test x$use_input_kbio = xyes; then
  19489. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19490. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19491. fi
  19492. }
  19493. CheckLibUDev()
  19494. {
  19495. # Check whether --enable-libudev was given.
  19496. if test "${enable_libudev+set}" = set; then :
  19497. enableval=$enable_libudev;
  19498. else
  19499. enable_libudev=yes
  19500. fi
  19501. if test x$enable_libudev = xyes; then
  19502. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19503. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19504. have_libudev_h_hdr=yes
  19505. else
  19506. have_libudev_h_hdr=no
  19507. fi
  19508. if test x$have_libudev_h_hdr = xyes; then
  19509. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19510. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19511. if test x$udev_lib != x; then
  19512. echo "-- dynamic udev -> $udev_lib"
  19513. cat >>confdefs.h <<_ACEOF
  19514. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19515. _ACEOF
  19516. fi
  19517. fi
  19518. fi
  19519. }
  19520. CheckDBus()
  19521. {
  19522. # Check whether --enable-dbus was given.
  19523. if test "${enable_dbus+set}" = set; then :
  19524. enableval=$enable_dbus;
  19525. else
  19526. enable_dbus=yes
  19527. fi
  19528. if test x$enable_dbus = xyes; then
  19529. pkg_failed=no
  19530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19531. $as_echo_n "checking for DBUS... " >&6; }
  19532. if test -n "$DBUS_CFLAGS"; then
  19533. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19534. elif test -n "$PKG_CONFIG"; then
  19535. if test -n "$PKG_CONFIG" && \
  19536. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19537. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19538. ac_status=$?
  19539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19540. test $ac_status = 0; }; then
  19541. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19542. else
  19543. pkg_failed=yes
  19544. fi
  19545. else
  19546. pkg_failed=untried
  19547. fi
  19548. if test -n "$DBUS_LIBS"; then
  19549. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19550. elif test -n "$PKG_CONFIG"; then
  19551. if test -n "$PKG_CONFIG" && \
  19552. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19553. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19554. ac_status=$?
  19555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19556. test $ac_status = 0; }; then
  19557. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19558. else
  19559. pkg_failed=yes
  19560. fi
  19561. else
  19562. pkg_failed=untried
  19563. fi
  19564. if test $pkg_failed = yes; then
  19565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19566. $as_echo "no" >&6; }
  19567. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19568. _pkg_short_errors_supported=yes
  19569. else
  19570. _pkg_short_errors_supported=no
  19571. fi
  19572. if test $_pkg_short_errors_supported = yes; then
  19573. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19574. else
  19575. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19576. fi
  19577. # Put the nasty error message in config.log where it belongs
  19578. echo "$DBUS_PKG_ERRORS" >&5
  19579. have_dbus=no
  19580. elif test $pkg_failed = untried; then
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19582. $as_echo "no" >&6; }
  19583. have_dbus=no
  19584. else
  19585. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19586. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19588. $as_echo "yes" >&6; }
  19589. have_dbus=yes
  19590. fi
  19591. save_CFLAGS="$CFLAGS"
  19592. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19593. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19594. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19595. have_dbus_dbus_h_hdr=yes
  19596. else
  19597. have_dbus_dbus_h_hdr=no
  19598. fi
  19599. CFLAGS="$save_CFLAGS"
  19600. if test x$have_dbus_dbus_h_hdr = xyes; then
  19601. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19602. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19603. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19604. fi
  19605. fi
  19606. }
  19607. CheckIME()
  19608. {
  19609. # Check whether --enable-ime was given.
  19610. if test "${enable_ime+set}" = set; then :
  19611. enableval=$enable_ime;
  19612. else
  19613. enable_ime=yes
  19614. fi
  19615. if test x$enable_ime = xyes; then
  19616. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19617. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19618. fi
  19619. }
  19620. CheckIBus()
  19621. {
  19622. # Check whether --enable-ibus was given.
  19623. if test "${enable_ibus+set}" = set; then :
  19624. enableval=$enable_ibus;
  19625. else
  19626. enable_ibus=yes
  19627. fi
  19628. if test x$enable_ibus = xyes; then
  19629. pkg_failed=no
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19631. $as_echo_n "checking for IBUS... " >&6; }
  19632. if test -n "$IBUS_CFLAGS"; then
  19633. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19634. elif test -n "$PKG_CONFIG"; then
  19635. if test -n "$PKG_CONFIG" && \
  19636. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19637. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19638. ac_status=$?
  19639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19640. test $ac_status = 0; }; then
  19641. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19642. else
  19643. pkg_failed=yes
  19644. fi
  19645. else
  19646. pkg_failed=untried
  19647. fi
  19648. if test -n "$IBUS_LIBS"; then
  19649. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19650. elif test -n "$PKG_CONFIG"; then
  19651. if test -n "$PKG_CONFIG" && \
  19652. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19653. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19654. ac_status=$?
  19655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19656. test $ac_status = 0; }; then
  19657. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19658. else
  19659. pkg_failed=yes
  19660. fi
  19661. else
  19662. pkg_failed=untried
  19663. fi
  19664. if test $pkg_failed = yes; then
  19665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19666. $as_echo "no" >&6; }
  19667. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19668. _pkg_short_errors_supported=yes
  19669. else
  19670. _pkg_short_errors_supported=no
  19671. fi
  19672. if test $_pkg_short_errors_supported = yes; then
  19673. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19674. else
  19675. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19676. fi
  19677. # Put the nasty error message in config.log where it belongs
  19678. echo "$IBUS_PKG_ERRORS" >&5
  19679. have_ibus=no
  19680. elif test $pkg_failed = untried; then
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19682. $as_echo "no" >&6; }
  19683. have_ibus=no
  19684. else
  19685. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19686. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19688. $as_echo "yes" >&6; }
  19689. have_ibus=yes
  19690. fi
  19691. save_CFLAGS="$CFLAGS"
  19692. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19693. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19694. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19695. have_ibus_ibus_h_hdr=yes
  19696. else
  19697. have_ibus_ibus_h_hdr=no
  19698. fi
  19699. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19700. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19701. have_inotify_inotify_h_hdr=yes
  19702. else
  19703. have_inotify_inotify_h_hdr=no
  19704. fi
  19705. CFLAGS="$save_CFLAGS"
  19706. if test x$have_ibus_ibus_h_hdr = xyes; then
  19707. if test x$enable_ime != xyes; then
  19708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19709. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19710. have_ibus_ibus_h_hdr=no
  19711. elif test x$enable_dbus != xyes; then
  19712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19713. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19714. have_ibus_ibus_h_hdr=no
  19715. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19717. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19718. have_ibus_ibus_h_hdr=no
  19719. else
  19720. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19721. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19722. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19723. fi
  19724. fi
  19725. fi
  19726. }
  19727. CheckFcitx()
  19728. {
  19729. # Check whether --enable-fcitx was given.
  19730. if test "${enable_fcitx+set}" = set; then :
  19731. enableval=$enable_fcitx;
  19732. else
  19733. enable_fcitx=yes
  19734. fi
  19735. if test x$enable_fcitx = xyes; then
  19736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19737. $as_echo_n "checking for fcitx support... " >&6; }
  19738. have_fcitx=no
  19739. if test x$enable_ime != xyes; then
  19740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19741. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19742. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19744. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19745. else
  19746. have_fcitx=yes
  19747. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19748. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19749. fi
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19751. $as_echo "$have_fcitx" >&6; }
  19752. fi
  19753. }
  19754. CheckTslib()
  19755. {
  19756. # Check whether --enable-input-tslib was given.
  19757. if test "${enable_input_tslib+set}" = set; then :
  19758. enableval=$enable_input_tslib;
  19759. else
  19760. enable_input_tslib=yes
  19761. fi
  19762. if test x$enable_input_tslib = xyes; then
  19763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19764. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19765. enable_input_tslib=no
  19766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19767. /* end confdefs.h. */
  19768. #include "tslib.h"
  19769. int
  19770. main ()
  19771. {
  19772. ;
  19773. return 0;
  19774. }
  19775. _ACEOF
  19776. if ac_fn_c_try_compile "$LINENO"; then :
  19777. enable_input_tslib=yes
  19778. fi
  19779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19781. $as_echo "$enable_input_tslib" >&6; }
  19782. if test x$enable_input_tslib = xyes; then
  19783. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19784. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19785. SUMMARY_input="${SUMMARY_input} ts"
  19786. fi
  19787. fi
  19788. }
  19789. CheckPTHREAD()
  19790. {
  19791. # Check whether --enable-pthreads was given.
  19792. if test "${enable_pthreads+set}" = set; then :
  19793. enableval=$enable_pthreads;
  19794. else
  19795. enable_pthreads=yes
  19796. fi
  19797. # Check whether --enable-pthread-sem was given.
  19798. if test "${enable_pthread_sem+set}" = set; then :
  19799. enableval=$enable_pthread_sem;
  19800. else
  19801. enable_pthread_sem=yes
  19802. fi
  19803. case "$host" in
  19804. *-*-android*)
  19805. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19806. pthread_lib=""
  19807. ;;
  19808. *-*-linux*|*-*-uclinux*)
  19809. pthread_cflags="-D_REENTRANT"
  19810. pthread_lib="-lpthread"
  19811. ;;
  19812. *-*-bsdi*)
  19813. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19814. pthread_lib=""
  19815. ;;
  19816. *-*-darwin*)
  19817. pthread_cflags="-D_THREAD_SAFE"
  19818. # causes Carbon.p complaints?
  19819. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19820. ;;
  19821. *-*-freebsd*|*-*-dragonfly*)
  19822. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19823. pthread_lib="-pthread"
  19824. ;;
  19825. *-*-netbsd*)
  19826. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19827. pthread_lib="-lpthread"
  19828. ;;
  19829. *-*-openbsd*)
  19830. pthread_cflags="-D_REENTRANT"
  19831. pthread_lib="-pthread"
  19832. ;;
  19833. *-*-solaris2.9)
  19834. # From Solaris 9+, posix4's preferred name is rt.
  19835. pthread_cflags="-D_REENTRANT"
  19836. pthread_lib="-lpthread -lrt"
  19837. ;;
  19838. *-*-solaris2.10)
  19839. # Solaris 10+ merged pthread into libc.
  19840. pthread_cflags="-D_REENTRANT"
  19841. pthread_lib="-lrt"
  19842. ;;
  19843. *-*-solaris*)
  19844. # Solaris 11+ merged rt into libc.
  19845. pthread_cflags="-D_REENTRANT"
  19846. pthread_lib=""
  19847. ;;
  19848. *-*-sysv5*)
  19849. pthread_cflags="-D_REENTRANT -Kthread"
  19850. pthread_lib=""
  19851. ;;
  19852. *-*-aix*)
  19853. pthread_cflags="-D_REENTRANT -mthreads"
  19854. pthread_lib="-lpthread"
  19855. ;;
  19856. *-*-hpux11*)
  19857. pthread_cflags="-D_REENTRANT"
  19858. pthread_lib="-L/usr/lib -lpthread"
  19859. ;;
  19860. *-*-haiku*)
  19861. pthread_cflags="-D_REENTRANT"
  19862. pthread_lib=""
  19863. ;;
  19864. *-*-nto*)
  19865. pthread_cflags="-D_REENTRANT"
  19866. pthread_lib=""
  19867. ;;
  19868. *)
  19869. pthread_cflags="-D_REENTRANT"
  19870. pthread_lib="-lpthread"
  19871. ;;
  19872. esac
  19873. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19874. # Save the original compiler flags and libraries
  19875. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19876. # Add the pthread compiler flags and libraries
  19877. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19878. # Check to see if we have pthread support on this system
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19880. $as_echo_n "checking for pthreads... " >&6; }
  19881. use_pthreads=no
  19882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19883. /* end confdefs.h. */
  19884. #include <pthread.h>
  19885. int
  19886. main ()
  19887. {
  19888. pthread_attr_t type;
  19889. pthread_attr_init(&type);
  19890. ;
  19891. return 0;
  19892. }
  19893. _ACEOF
  19894. if ac_fn_c_try_link "$LINENO"; then :
  19895. use_pthreads=yes
  19896. fi
  19897. rm -f core conftest.err conftest.$ac_objext \
  19898. conftest$ac_exeext conftest.$ac_ext
  19899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19900. $as_echo "$use_pthreads" >&6; }
  19901. # Restore the compiler flags and libraries
  19902. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19903. # Do futher testing if we have pthread support...
  19904. if test x$use_pthreads = xyes; then
  19905. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19906. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19908. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19909. # Save the original compiler flags and libraries
  19910. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19911. # Add the pthread compiler flags and libraries
  19912. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19913. # Check to see if recursive mutexes are available
  19914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19915. $as_echo_n "checking for recursive mutexes... " >&6; }
  19916. has_recursive_mutexes=no
  19917. if test x$has_recursive_mutexes = xno; then
  19918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19919. /* end confdefs.h. */
  19920. #define _GNU_SOURCE 1
  19921. #include <pthread.h>
  19922. int
  19923. main ()
  19924. {
  19925. pthread_mutexattr_t attr;
  19926. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19927. ;
  19928. return 0;
  19929. }
  19930. _ACEOF
  19931. if ac_fn_c_try_link "$LINENO"; then :
  19932. has_recursive_mutexes=yes
  19933. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19934. fi
  19935. rm -f core conftest.err conftest.$ac_objext \
  19936. conftest$ac_exeext conftest.$ac_ext
  19937. fi
  19938. if test x$has_recursive_mutexes = xno; then
  19939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19940. /* end confdefs.h. */
  19941. #define _GNU_SOURCE 1
  19942. #include <pthread.h>
  19943. int
  19944. main ()
  19945. {
  19946. pthread_mutexattr_t attr;
  19947. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19948. ;
  19949. return 0;
  19950. }
  19951. _ACEOF
  19952. if ac_fn_c_try_link "$LINENO"; then :
  19953. has_recursive_mutexes=yes
  19954. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19955. fi
  19956. rm -f core conftest.err conftest.$ac_objext \
  19957. conftest$ac_exeext conftest.$ac_ext
  19958. fi
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19960. $as_echo "$has_recursive_mutexes" >&6; }
  19961. # Check to see if pthread semaphore support is missing
  19962. if test x$enable_pthread_sem = xyes; then
  19963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19964. $as_echo_n "checking for pthread semaphores... " >&6; }
  19965. have_pthread_sem=no
  19966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19967. /* end confdefs.h. */
  19968. #include <pthread.h>
  19969. #include <semaphore.h>
  19970. int
  19971. main ()
  19972. {
  19973. ;
  19974. return 0;
  19975. }
  19976. _ACEOF
  19977. if ac_fn_c_try_compile "$LINENO"; then :
  19978. have_pthread_sem=yes
  19979. fi
  19980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19982. $as_echo "$have_pthread_sem" >&6; }
  19983. fi
  19984. if test x$have_pthread_sem = xyes; then
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19986. $as_echo_n "checking for sem_timedwait... " >&6; }
  19987. have_sem_timedwait=no
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. #include <pthread.h>
  19991. #include <semaphore.h>
  19992. int
  19993. main ()
  19994. {
  19995. sem_timedwait(NULL, NULL);
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_link "$LINENO"; then :
  20001. have_sem_timedwait=yes
  20002. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20003. fi
  20004. rm -f core conftest.err conftest.$ac_objext \
  20005. conftest$ac_exeext conftest.$ac_ext
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20007. $as_echo "$have_sem_timedwait" >&6; }
  20008. fi
  20009. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20010. "
  20011. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20012. have_pthread_np_h=yes
  20013. else
  20014. have_pthread_np_h=no
  20015. fi
  20016. if test x$have_pthread_np_h = xyes; then
  20017. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20018. fi
  20019. # Check to see if pthread naming is available
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20021. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20023. /* end confdefs.h. */
  20024. /* Override any GCC internal prototype to avoid an error.
  20025. Use char because int might match the return type of a GCC
  20026. builtin and then its argument prototype would still apply. */
  20027. #ifdef __cplusplus
  20028. extern "C"
  20029. #endif
  20030. char pthread_setname_np ();
  20031. int
  20032. main ()
  20033. {
  20034. return pthread_setname_np ();
  20035. ;
  20036. return 0;
  20037. }
  20038. _ACEOF
  20039. if ac_fn_c_try_link "$LINENO"; then :
  20040. has_pthread_setname_np=yes
  20041. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20042. else
  20043. has_pthread_setname_np=no
  20044. fi
  20045. rm -f core conftest.err conftest.$ac_objext \
  20046. conftest$ac_exeext conftest.$ac_ext
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20048. $as_echo "$has_pthread_setname_np" >&6; }
  20049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20050. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20052. /* end confdefs.h. */
  20053. /* Override any GCC internal prototype to avoid an error.
  20054. Use char because int might match the return type of a GCC
  20055. builtin and then its argument prototype would still apply. */
  20056. #ifdef __cplusplus
  20057. extern "C"
  20058. #endif
  20059. char pthread_set_name_np ();
  20060. int
  20061. main ()
  20062. {
  20063. return pthread_set_name_np ();
  20064. ;
  20065. return 0;
  20066. }
  20067. _ACEOF
  20068. if ac_fn_c_try_link "$LINENO"; then :
  20069. has_pthread_set_name_np=yes
  20070. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20071. else
  20072. has_pthread_set_name_np=no
  20073. fi
  20074. rm -f core conftest.err conftest.$ac_objext \
  20075. conftest$ac_exeext conftest.$ac_ext
  20076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20077. $as_echo "$has_pthread_set_name_np" >&6; }
  20078. # Restore the compiler flags and libraries
  20079. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20080. # Basic thread creation functions
  20081. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20082. # Semaphores
  20083. # We can fake these with mutexes and condition variables if necessary
  20084. if test x$have_pthread_sem = xyes; then
  20085. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20086. else
  20087. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20088. fi
  20089. # Mutexes
  20090. # We can fake these with semaphores if necessary
  20091. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20092. # Condition variables
  20093. # We can fake these with semaphores and mutexes if necessary
  20094. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20095. # Thread local storage
  20096. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20097. have_threads=yes
  20098. fi
  20099. fi
  20100. }
  20101. CheckWINDOWS()
  20102. {
  20103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20104. $as_echo_n "checking Windows compiler... " >&6; }
  20105. have_win32_gcc=no
  20106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20107. /* end confdefs.h. */
  20108. #include <windows.h>
  20109. int
  20110. main ()
  20111. {
  20112. ;
  20113. return 0;
  20114. }
  20115. _ACEOF
  20116. if ac_fn_c_try_compile "$LINENO"; then :
  20117. have_win32_gcc=yes
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20121. $as_echo "$have_win32_gcc" >&6; }
  20122. if test x$have_win32_gcc != xyes; then
  20123. as_fn_error $? "
  20124. *** Your compiler ($CC) does not produce Windows executables!
  20125. " "$LINENO" 5
  20126. fi
  20127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20128. $as_echo_n "checking Windows CE... " >&6; }
  20129. have_wince=no
  20130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20131. /* end confdefs.h. */
  20132. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20133. #error This is not Windows CE
  20134. #endif
  20135. int
  20136. main ()
  20137. {
  20138. ;
  20139. return 0;
  20140. }
  20141. _ACEOF
  20142. if ac_fn_c_try_compile "$LINENO"; then :
  20143. have_wince=yes
  20144. as_fn_error $? "
  20145. *** Sorry, Windows CE is no longer supported.
  20146. " "$LINENO" 5
  20147. fi
  20148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20150. $as_echo "$have_wince" >&6; }
  20151. # This fixes Windows stack alignment with newer GCC
  20152. CheckStackBoundary
  20153. }
  20154. CheckDIRECTX()
  20155. {
  20156. # Check whether --enable-directx was given.
  20157. if test "${enable_directx+set}" = set; then :
  20158. enableval=$enable_directx;
  20159. else
  20160. enable_directx=yes
  20161. fi
  20162. if test x$enable_directx = xyes; then
  20163. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20164. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20165. have_d3d=yes
  20166. fi
  20167. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20168. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20169. have_d3d11=yes
  20170. fi
  20171. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20172. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20173. have_ddraw=yes
  20174. fi
  20175. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20176. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20177. have_dsound=yes
  20178. fi
  20179. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20180. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20181. have_dinput=yes
  20182. fi
  20183. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20184. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20185. have_dxgi=yes
  20186. fi
  20187. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20188. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20189. have_xinput=yes
  20190. fi
  20191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20192. /* end confdefs.h. */
  20193. #include <windows.h>
  20194. #include <xinput.h>
  20195. XINPUT_GAMEPAD_EX x1;
  20196. int
  20197. main ()
  20198. {
  20199. ;
  20200. return 0;
  20201. }
  20202. _ACEOF
  20203. if ac_fn_c_try_compile "$LINENO"; then :
  20204. have_xinput_gamepadex=yes
  20205. fi
  20206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20208. /* end confdefs.h. */
  20209. #include <windows.h>
  20210. #include <xinput.h>
  20211. XINPUT_STATE_EX s1;
  20212. int
  20213. main ()
  20214. {
  20215. ;
  20216. return 0;
  20217. }
  20218. _ACEOF
  20219. if ac_fn_c_try_compile "$LINENO"; then :
  20220. have_xinput_stateex=yes
  20221. fi
  20222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20223. if test x$have_ddraw = xyes; then
  20224. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20225. fi
  20226. if test x$have_dinput = xyes; then
  20227. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20228. fi
  20229. if test x$have_dsound = xyes; then
  20230. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20231. fi
  20232. if test x$have_dxgi = xyes; then
  20233. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20234. fi
  20235. if test x$have_xinput = xyes; then
  20236. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20237. fi
  20238. if test x$have_xinput_gamepadex = xyes; then
  20239. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20240. fi
  20241. if test x$have_xinput_stateex = xyes; then
  20242. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20243. fi
  20244. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20245. # FIXME: ...so force it off for now.
  20246. case "$host" in
  20247. *-*-cygwin*)
  20248. have_dinput=false
  20249. ;;
  20250. esac
  20251. fi
  20252. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20253. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20254. have_wasapi=yes
  20255. fi
  20256. if test x$have_wasapi = xyes; then
  20257. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20258. fi
  20259. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20260. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20261. else
  20262. have_wasapi=no
  20263. fi
  20264. if test x$have_wasapi = xyes; then
  20265. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20266. fi
  20267. # Check whether --enable-wasapi was given.
  20268. if test "${enable_wasapi+set}" = set; then :
  20269. enableval=$enable_wasapi;
  20270. else
  20271. enable_wasapi=yes
  20272. fi
  20273. }
  20274. CheckDLOPEN()
  20275. {
  20276. # Check whether --enable-sdl-dlopen was given.
  20277. if test "${enable_sdl_dlopen+set}" = set; then :
  20278. enableval=$enable_sdl_dlopen;
  20279. else
  20280. enable_sdl_dlopen=yes
  20281. fi
  20282. if test x$enable_sdl_dlopen = xyes; then
  20283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20284. $as_echo_n "checking for dlopen... " >&6; }
  20285. have_dlopen=no
  20286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20287. /* end confdefs.h. */
  20288. #include <dlfcn.h>
  20289. int
  20290. main ()
  20291. {
  20292. void *handle = dlopen("", RTLD_NOW);
  20293. const char *loaderror = (char *) dlerror();
  20294. ;
  20295. return 0;
  20296. }
  20297. _ACEOF
  20298. if ac_fn_c_try_compile "$LINENO"; then :
  20299. have_dlopen=yes
  20300. fi
  20301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20303. $as_echo "$have_dlopen" >&6; }
  20304. if test x$have_dlopen = xyes; then
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20306. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20307. if ${ac_cv_lib_c_dlopen+:} false; then :
  20308. $as_echo_n "(cached) " >&6
  20309. else
  20310. ac_check_lib_save_LIBS=$LIBS
  20311. LIBS="-lc $LIBS"
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. /* Override any GCC internal prototype to avoid an error.
  20315. Use char because int might match the return type of a GCC
  20316. builtin and then its argument prototype would still apply. */
  20317. #ifdef __cplusplus
  20318. extern "C"
  20319. #endif
  20320. char dlopen ();
  20321. int
  20322. main ()
  20323. {
  20324. return dlopen ();
  20325. ;
  20326. return 0;
  20327. }
  20328. _ACEOF
  20329. if ac_fn_c_try_link "$LINENO"; then :
  20330. ac_cv_lib_c_dlopen=yes
  20331. else
  20332. ac_cv_lib_c_dlopen=no
  20333. fi
  20334. rm -f core conftest.err conftest.$ac_objext \
  20335. conftest$ac_exeext conftest.$ac_ext
  20336. LIBS=$ac_check_lib_save_LIBS
  20337. fi
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20339. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20340. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20342. else
  20343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20344. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20345. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20346. $as_echo_n "(cached) " >&6
  20347. else
  20348. ac_check_lib_save_LIBS=$LIBS
  20349. LIBS="-ldl $LIBS"
  20350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20351. /* end confdefs.h. */
  20352. /* Override any GCC internal prototype to avoid an error.
  20353. Use char because int might match the return type of a GCC
  20354. builtin and then its argument prototype would still apply. */
  20355. #ifdef __cplusplus
  20356. extern "C"
  20357. #endif
  20358. char dlopen ();
  20359. int
  20360. main ()
  20361. {
  20362. return dlopen ();
  20363. ;
  20364. return 0;
  20365. }
  20366. _ACEOF
  20367. if ac_fn_c_try_link "$LINENO"; then :
  20368. ac_cv_lib_dl_dlopen=yes
  20369. else
  20370. ac_cv_lib_dl_dlopen=no
  20371. fi
  20372. rm -f core conftest.err conftest.$ac_objext \
  20373. conftest$ac_exeext conftest.$ac_ext
  20374. LIBS=$ac_check_lib_save_LIBS
  20375. fi
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20377. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20378. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20379. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20380. else
  20381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20382. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20383. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20384. $as_echo_n "(cached) " >&6
  20385. else
  20386. ac_check_lib_save_LIBS=$LIBS
  20387. LIBS="-lltdl $LIBS"
  20388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20389. /* end confdefs.h. */
  20390. /* Override any GCC internal prototype to avoid an error.
  20391. Use char because int might match the return type of a GCC
  20392. builtin and then its argument prototype would still apply. */
  20393. #ifdef __cplusplus
  20394. extern "C"
  20395. #endif
  20396. char dlopen ();
  20397. int
  20398. main ()
  20399. {
  20400. return dlopen ();
  20401. ;
  20402. return 0;
  20403. }
  20404. _ACEOF
  20405. if ac_fn_c_try_link "$LINENO"; then :
  20406. ac_cv_lib_ltdl_dlopen=yes
  20407. else
  20408. ac_cv_lib_ltdl_dlopen=no
  20409. fi
  20410. rm -f core conftest.err conftest.$ac_objext \
  20411. conftest$ac_exeext conftest.$ac_ext
  20412. LIBS=$ac_check_lib_save_LIBS
  20413. fi
  20414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20415. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20416. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20418. fi
  20419. fi
  20420. fi
  20421. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20422. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20423. have_loadso=yes
  20424. fi
  20425. fi
  20426. }
  20427. CheckUSBHID()
  20428. {
  20429. case "$host" in
  20430. *-*-*bsd*)
  20431. if test x$enable_joystick = xyes; then
  20432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20433. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20434. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20435. $as_echo_n "(cached) " >&6
  20436. else
  20437. ac_check_lib_save_LIBS=$LIBS
  20438. LIBS="-lusbhid $LIBS"
  20439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20440. /* end confdefs.h. */
  20441. /* Override any GCC internal prototype to avoid an error.
  20442. Use char because int might match the return type of a GCC
  20443. builtin and then its argument prototype would still apply. */
  20444. #ifdef __cplusplus
  20445. extern "C"
  20446. #endif
  20447. char hid_init ();
  20448. int
  20449. main ()
  20450. {
  20451. return hid_init ();
  20452. ;
  20453. return 0;
  20454. }
  20455. _ACEOF
  20456. if ac_fn_c_try_link "$LINENO"; then :
  20457. ac_cv_lib_usbhid_hid_init=yes
  20458. else
  20459. ac_cv_lib_usbhid_hid_init=no
  20460. fi
  20461. rm -f core conftest.err conftest.$ac_objext \
  20462. conftest$ac_exeext conftest.$ac_ext
  20463. LIBS=$ac_check_lib_save_LIBS
  20464. fi
  20465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20466. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20467. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20468. have_libusbhid=yes
  20469. fi
  20470. if test x$have_libusbhid = xyes; then
  20471. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20472. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20473. USB_CFLAGS="-DHAVE_USBHID_H"
  20474. fi
  20475. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20476. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20477. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20478. fi
  20479. USB_LIBS="$USB_LIBS -lusbhid"
  20480. else
  20481. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20482. if test "x$ac_cv_header_usb_h" = xyes; then :
  20483. USB_CFLAGS="-DHAVE_USB_H"
  20484. fi
  20485. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20486. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20487. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20488. fi
  20489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20490. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20491. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20492. $as_echo_n "(cached) " >&6
  20493. else
  20494. ac_check_lib_save_LIBS=$LIBS
  20495. LIBS="-lusb $LIBS"
  20496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20497. /* end confdefs.h. */
  20498. /* Override any GCC internal prototype to avoid an error.
  20499. Use char because int might match the return type of a GCC
  20500. builtin and then its argument prototype would still apply. */
  20501. #ifdef __cplusplus
  20502. extern "C"
  20503. #endif
  20504. char hid_init ();
  20505. int
  20506. main ()
  20507. {
  20508. return hid_init ();
  20509. ;
  20510. return 0;
  20511. }
  20512. _ACEOF
  20513. if ac_fn_c_try_link "$LINENO"; then :
  20514. ac_cv_lib_usb_hid_init=yes
  20515. else
  20516. ac_cv_lib_usb_hid_init=no
  20517. fi
  20518. rm -f core conftest.err conftest.$ac_objext \
  20519. conftest$ac_exeext conftest.$ac_ext
  20520. LIBS=$ac_check_lib_save_LIBS
  20521. fi
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20523. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20524. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20525. USB_LIBS="$USB_LIBS -lusb"
  20526. fi
  20527. fi
  20528. save_CFLAGS="$CFLAGS"
  20529. CFLAGS="$CFLAGS $USB_CFLAGS"
  20530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20531. $as_echo_n "checking for usbhid... " >&6; }
  20532. have_usbhid=no
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. #include <sys/types.h>
  20536. #if defined(HAVE_USB_H)
  20537. #include <usb.h>
  20538. #endif
  20539. #ifdef __DragonFly__
  20540. # include <bus/usb/usb.h>
  20541. # include <bus/usb/usbhid.h>
  20542. #else
  20543. # include <dev/usb/usb.h>
  20544. # include <dev/usb/usbhid.h>
  20545. #endif
  20546. #if defined(HAVE_USBHID_H)
  20547. #include <usbhid.h>
  20548. #elif defined(HAVE_LIBUSB_H)
  20549. #include <libusb.h>
  20550. #elif defined(HAVE_LIBUSBHID_H)
  20551. #include <libusbhid.h>
  20552. #endif
  20553. int
  20554. main ()
  20555. {
  20556. struct report_desc *repdesc;
  20557. struct usb_ctl_report *repbuf;
  20558. hid_kind_t hidkind;
  20559. ;
  20560. return 0;
  20561. }
  20562. _ACEOF
  20563. if ac_fn_c_try_compile "$LINENO"; then :
  20564. have_usbhid=yes
  20565. fi
  20566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20568. $as_echo "$have_usbhid" >&6; }
  20569. if test x$have_usbhid = xyes; then
  20570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20571. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20572. have_usbhid_ucr_data=no
  20573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20574. /* end confdefs.h. */
  20575. #include <sys/types.h>
  20576. #if defined(HAVE_USB_H)
  20577. #include <usb.h>
  20578. #endif
  20579. #ifdef __DragonFly__
  20580. # include <bus/usb/usb.h>
  20581. # include <bus/usb/usbhid.h>
  20582. #else
  20583. # include <dev/usb/usb.h>
  20584. # include <dev/usb/usbhid.h>
  20585. #endif
  20586. #if defined(HAVE_USBHID_H)
  20587. #include <usbhid.h>
  20588. #elif defined(HAVE_LIBUSB_H)
  20589. #include <libusb.h>
  20590. #elif defined(HAVE_LIBUSBHID_H)
  20591. #include <libusbhid.h>
  20592. #endif
  20593. int
  20594. main ()
  20595. {
  20596. struct usb_ctl_report buf;
  20597. if (buf.ucr_data) { }
  20598. ;
  20599. return 0;
  20600. }
  20601. _ACEOF
  20602. if ac_fn_c_try_compile "$LINENO"; then :
  20603. have_usbhid_ucr_data=yes
  20604. fi
  20605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20606. if test x$have_usbhid_ucr_data = xyes; then
  20607. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20608. fi
  20609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20610. $as_echo "$have_usbhid_ucr_data" >&6; }
  20611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20612. $as_echo_n "checking for new usbhid API... " >&6; }
  20613. have_usbhid_new=no
  20614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20615. /* end confdefs.h. */
  20616. #include <sys/types.h>
  20617. #if defined(HAVE_USB_H)
  20618. #include <usb.h>
  20619. #endif
  20620. #ifdef __DragonFly__
  20621. #include <bus/usb/usb.h>
  20622. #include <bus/usb/usbhid.h>
  20623. #else
  20624. #include <dev/usb/usb.h>
  20625. #include <dev/usb/usbhid.h>
  20626. #endif
  20627. #if defined(HAVE_USBHID_H)
  20628. #include <usbhid.h>
  20629. #elif defined(HAVE_LIBUSB_H)
  20630. #include <libusb.h>
  20631. #elif defined(HAVE_LIBUSBHID_H)
  20632. #include <libusbhid.h>
  20633. #endif
  20634. int
  20635. main ()
  20636. {
  20637. report_desc_t d;
  20638. hid_start_parse(d, 1, 1);
  20639. ;
  20640. return 0;
  20641. }
  20642. _ACEOF
  20643. if ac_fn_c_try_compile "$LINENO"; then :
  20644. have_usbhid_new=yes
  20645. fi
  20646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20647. if test x$have_usbhid_new = xyes; then
  20648. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20649. fi
  20650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20651. $as_echo "$have_usbhid_new" >&6; }
  20652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20653. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20654. have_machine_joystick=no
  20655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20656. /* end confdefs.h. */
  20657. #include <machine/joystick.h>
  20658. int
  20659. main ()
  20660. {
  20661. struct joystick t;
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. if ac_fn_c_try_compile "$LINENO"; then :
  20667. have_machine_joystick=yes
  20668. fi
  20669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20670. if test x$have_machine_joystick = xyes; then
  20671. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20672. fi
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20674. $as_echo "$have_machine_joystick" >&6; }
  20675. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20676. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20677. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20679. have_joystick=yes
  20680. fi
  20681. CFLAGS="$save_CFLAGS"
  20682. fi
  20683. ;;
  20684. esac
  20685. }
  20686. CheckHIDAPI()
  20687. {
  20688. # Check whether --enable-hidapi was given.
  20689. if test "${enable_hidapi+set}" = set; then :
  20690. enableval=$enable_hidapi;
  20691. else
  20692. enable_hidapi=yes
  20693. fi
  20694. # Check whether --enable-hidapi-libusb was given.
  20695. if test "${enable_hidapi_libusb+set}" = set; then :
  20696. enableval=$enable_hidapi_libusb;
  20697. else
  20698. enable_hidapi_libusb=maybe
  20699. fi
  20700. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20701. case "$host" in
  20702. # libusb does not support iOS
  20703. *-ios-* )
  20704. enable_hidapi_libusb=no
  20705. ;;
  20706. # On the other hand, *BSD specifically uses libusb only
  20707. *-*-*bsd* )
  20708. enable_hidapi_libusb=yes
  20709. require_hidapi_libusb=yes
  20710. ;;
  20711. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20712. *-*-cygwin* | *-*-mingw32*)
  20713. enable_joystick_rawinput=yes
  20714. ;;
  20715. esac
  20716. hidapi_support=yes
  20717. if test x$enable_hidapi_libusb = xyes; then
  20718. pkg_failed=no
  20719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20720. $as_echo_n "checking for LIBUSB... " >&6; }
  20721. if test -n "$LIBUSB_CFLAGS"; then
  20722. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20723. elif test -n "$PKG_CONFIG"; then
  20724. if test -n "$PKG_CONFIG" && \
  20725. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20726. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20727. ac_status=$?
  20728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20729. test $ac_status = 0; }; then
  20730. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20731. else
  20732. pkg_failed=yes
  20733. fi
  20734. else
  20735. pkg_failed=untried
  20736. fi
  20737. if test -n "$LIBUSB_LIBS"; then
  20738. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20739. elif test -n "$PKG_CONFIG"; then
  20740. if test -n "$PKG_CONFIG" && \
  20741. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20742. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20743. ac_status=$?
  20744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20745. test $ac_status = 0; }; then
  20746. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20747. else
  20748. pkg_failed=yes
  20749. fi
  20750. else
  20751. pkg_failed=untried
  20752. fi
  20753. if test $pkg_failed = yes; then
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20755. $as_echo "no" >&6; }
  20756. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20757. _pkg_short_errors_supported=yes
  20758. else
  20759. _pkg_short_errors_supported=no
  20760. fi
  20761. if test $_pkg_short_errors_supported = yes; then
  20762. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20763. else
  20764. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20765. fi
  20766. # Put the nasty error message in config.log where it belongs
  20767. echo "$LIBUSB_PKG_ERRORS" >&5
  20768. have_libusb=no
  20769. elif test $pkg_failed = untried; then
  20770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20771. $as_echo "no" >&6; }
  20772. have_libusb=no
  20773. else
  20774. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20775. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20777. $as_echo "yes" >&6; }
  20778. have_libusb=yes
  20779. fi
  20780. save_CFLAGS="$CFLAGS"
  20781. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20782. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20783. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20784. have_libusb_h=yes
  20785. fi
  20786. CFLAGS="$save_CFLAGS"
  20787. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  20788. hidapi_support=no
  20789. fi
  20790. fi
  20791. if test x$hidapi_support = xyes; then
  20792. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20793. if test x$enable_joystick_rawinput = xyes; then
  20794. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20795. fi
  20796. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20797. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20798. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20799. if test x$have_libusb_h = xyes; then
  20800. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20801. if test x$require_hidapi_libusb = xyes; then
  20802. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20804. else
  20805. if test x$have_loadso != xyes; then
  20806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20807. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20808. fi
  20809. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20810. libusb_lib=""
  20811. case "$host" in
  20812. *-*-darwin* )
  20813. libusb_lib="libusb-1.0.0.dylib"
  20814. ;;
  20815. *-*-cygwin* | *-*-mingw32* )
  20816. libusb_lib="libusb-1.0.dll"
  20817. ;;
  20818. esac
  20819. if test x$libusb_lib = x; then
  20820. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20821. fi
  20822. cat >>confdefs.h <<_ACEOF
  20823. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20824. _ACEOF
  20825. fi
  20826. fi
  20827. fi
  20828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20829. $as_echo_n "checking for hidapi support... " >&6; }
  20830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20831. $as_echo "$hidapi_support" >&6; }
  20832. fi
  20833. }
  20834. CheckClockGettime()
  20835. {
  20836. # Check whether --enable-clock_gettime was given.
  20837. if test "${enable_clock_gettime+set}" = set; then :
  20838. enableval=$enable_clock_gettime;
  20839. else
  20840. enable_clock_gettime=yes
  20841. fi
  20842. if test x$enable_clock_gettime = xyes; then
  20843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20844. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20845. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20846. $as_echo_n "(cached) " >&6
  20847. else
  20848. ac_check_lib_save_LIBS=$LIBS
  20849. LIBS="-lrt $LIBS"
  20850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20851. /* end confdefs.h. */
  20852. /* Override any GCC internal prototype to avoid an error.
  20853. Use char because int might match the return type of a GCC
  20854. builtin and then its argument prototype would still apply. */
  20855. #ifdef __cplusplus
  20856. extern "C"
  20857. #endif
  20858. char clock_gettime ();
  20859. int
  20860. main ()
  20861. {
  20862. return clock_gettime ();
  20863. ;
  20864. return 0;
  20865. }
  20866. _ACEOF
  20867. if ac_fn_c_try_link "$LINENO"; then :
  20868. ac_cv_lib_rt_clock_gettime=yes
  20869. else
  20870. ac_cv_lib_rt_clock_gettime=no
  20871. fi
  20872. rm -f core conftest.err conftest.$ac_objext \
  20873. conftest$ac_exeext conftest.$ac_ext
  20874. LIBS=$ac_check_lib_save_LIBS
  20875. fi
  20876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20877. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20878. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20879. have_clock_gettime=yes
  20880. fi
  20881. if test x$have_clock_gettime = xyes; then
  20882. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20883. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20884. else
  20885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20886. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20887. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20888. $as_echo_n "(cached) " >&6
  20889. else
  20890. ac_check_lib_save_LIBS=$LIBS
  20891. LIBS="-lc $LIBS"
  20892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20893. /* end confdefs.h. */
  20894. /* Override any GCC internal prototype to avoid an error.
  20895. Use char because int might match the return type of a GCC
  20896. builtin and then its argument prototype would still apply. */
  20897. #ifdef __cplusplus
  20898. extern "C"
  20899. #endif
  20900. char clock_gettime ();
  20901. int
  20902. main ()
  20903. {
  20904. return clock_gettime ();
  20905. ;
  20906. return 0;
  20907. }
  20908. _ACEOF
  20909. if ac_fn_c_try_link "$LINENO"; then :
  20910. ac_cv_lib_c_clock_gettime=yes
  20911. else
  20912. ac_cv_lib_c_clock_gettime=no
  20913. fi
  20914. rm -f core conftest.err conftest.$ac_objext \
  20915. conftest$ac_exeext conftest.$ac_ext
  20916. LIBS=$ac_check_lib_save_LIBS
  20917. fi
  20918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20919. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20920. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20921. have_clock_gettime=yes
  20922. fi
  20923. if test x$have_clock_gettime = xyes; then
  20924. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20926. fi
  20927. fi
  20928. fi
  20929. }
  20930. CheckLinuxVersion()
  20931. {
  20932. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20933. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20934. have_linux_version_h=yes
  20935. fi
  20936. if test x$have_linux_version_h = xyes; then
  20937. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20938. fi
  20939. }
  20940. CheckRPATH()
  20941. {
  20942. # Check whether --enable-rpath was given.
  20943. if test "${enable_rpath+set}" = set; then :
  20944. enableval=$enable_rpath;
  20945. else
  20946. enable_rpath=yes
  20947. fi
  20948. }
  20949. CheckEventSignals()
  20950. {
  20951. # Check whether --enable-backgrounding-signal was given.
  20952. if test "${enable_backgrounding_signal+set}" = set; then :
  20953. enableval=$enable_backgrounding_signal;
  20954. else
  20955. enable_backgrounding_signal=no
  20956. fi
  20957. if test x$enable_backgrounding_signal != xno; then
  20958. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20959. fi
  20960. # Check whether --enable-foregrounding-signal was given.
  20961. if test "${enable_foregrounding_signal+set}" = set; then :
  20962. enableval=$enable_foregrounding_signal;
  20963. else
  20964. enable_foregrounding_signal=no
  20965. fi
  20966. if test x$enable_foregrounding_signal != xno; then
  20967. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20968. fi
  20969. }
  20970. CheckVirtualJoystick()
  20971. {
  20972. # Check whether --enable-joystick-virtual was given.
  20973. if test "${enable_joystick_virtual+set}" = set; then :
  20974. enableval=$enable_joystick_virtual;
  20975. else
  20976. enable_joystick_virtual=yes
  20977. fi
  20978. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  20979. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  20980. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  20981. have_joystick_virtual=yes
  20982. fi
  20983. }
  20984. CheckWarnAll
  20985. CheckNoStrictAliasing
  20986. CheckEventSignals
  20987. have_locale=no
  20988. case "$host" in
  20989. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20990. case "$host" in
  20991. *-*-android*)
  20992. # Android
  20993. ARCH=android
  20994. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20995. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20996. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20997. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20998. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20999. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21000. if test x$enable_video = xyes; then
  21001. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21002. # FIXME: confdefs? Not AC_DEFINE?
  21003. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21004. SUMMARY_video="${SUMMARY_video} android"
  21005. fi
  21006. ;;
  21007. *-*-linux*) ARCH=linux ;;
  21008. *-*-uclinux*) ARCH=linux ;;
  21009. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21010. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21011. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21012. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21013. *-*-bsdi*) ARCH=bsdi ;;
  21014. *-*-freebsd*) ARCH=freebsd ;;
  21015. *-*-dragonfly*) ARCH=freebsd ;;
  21016. *-*-netbsd*) ARCH=netbsd ;;
  21017. *-*-openbsd*) ARCH=openbsd ;;
  21018. *-*-sysv5*) ARCH=sysv5 ;;
  21019. *-*-solaris*) ARCH=solaris ;;
  21020. *-*-hpux*) ARCH=hpux ;;
  21021. *-*-aix*) ARCH=aix ;;
  21022. *-*-minix*) ARCH=minix ;;
  21023. *-*-nto*) ARCH=nto
  21024. CheckQNXVideo
  21025. ;;
  21026. esac
  21027. CheckVisibilityHidden
  21028. CheckDeclarationAfterStatement
  21029. CheckDummyVideo
  21030. CheckDiskAudio
  21031. CheckDummyAudio
  21032. CheckDLOPEN
  21033. CheckARM
  21034. CheckNEON
  21035. CheckOSS
  21036. CheckALSA
  21037. CheckPulseAudio
  21038. CheckJACK
  21039. CheckARTSC
  21040. CheckESD
  21041. CheckNAS
  21042. CheckSNDIO
  21043. CheckFusionSound
  21044. CheckLibSampleRate
  21045. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21046. CheckRPI
  21047. CheckX11
  21048. CheckDirectFB
  21049. CheckKMSDRM
  21050. CheckOpenGLX11
  21051. CheckOpenGLESX11
  21052. CheckVulkan
  21053. CheckWayland
  21054. CheckInputEvents
  21055. CheckLibUDev
  21056. CheckDBus
  21057. CheckIME
  21058. CheckIBus
  21059. CheckFcitx
  21060. case $ARCH in
  21061. linux)
  21062. CheckInputKD
  21063. ;;
  21064. freebsd)
  21065. CheckInputKBIO
  21066. ;;
  21067. esac
  21068. CheckTslib
  21069. CheckUSBHID
  21070. CheckHIDAPI
  21071. CheckPTHREAD
  21072. CheckClockGettime
  21073. CheckLinuxVersion
  21074. CheckRPATH
  21075. CheckVivanteVideo
  21076. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21077. have_misc=yes
  21078. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21079. have_locale=yes
  21080. # Set up files for the audio library
  21081. if test x$enable_audio = xyes; then
  21082. case $ARCH in
  21083. sysv5|solaris|hpux)
  21084. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21085. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21086. SUMMARY_audio="${SUMMARY_audio} sun"
  21087. have_audio=yes
  21088. ;;
  21089. netbsd) # Don't use this on OpenBSD, it's busted.
  21090. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21091. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21092. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21093. have_audio=yes
  21094. ;;
  21095. aix)
  21096. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21097. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21098. SUMMARY_audio="${SUMMARY_audio} paudio"
  21099. have_audio=yes
  21100. ;;
  21101. android)
  21102. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21103. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21104. SUMMARY_audio="${SUMMARY_audio} android"
  21105. have_audio=yes
  21106. ;;
  21107. nto)
  21108. CheckQNXAudio
  21109. ;;
  21110. esac
  21111. fi
  21112. # Set up files for the joystick library
  21113. if test x$enable_joystick = xyes; then
  21114. case $ARCH in
  21115. linux|freebsd)
  21116. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21117. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21118. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21119. have_joystick=yes
  21120. ;;
  21121. android)
  21122. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21123. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21124. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21125. have_joystick=yes
  21126. ;;
  21127. esac
  21128. fi
  21129. # Set up files for the haptic library
  21130. if test x$enable_haptic = xyes; then
  21131. case $ARCH in
  21132. linux|freebsd)
  21133. if test x$use_input_events = xyes; then
  21134. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21135. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21136. have_haptic=yes
  21137. fi
  21138. ;;
  21139. android)
  21140. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21141. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21142. have_haptic=yes
  21143. ;;
  21144. esac
  21145. fi
  21146. # Set up files for the sensor library
  21147. if test x$enable_sensor = xyes; then
  21148. case $ARCH in
  21149. android)
  21150. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21151. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21152. have_sensor=yes
  21153. ;;
  21154. esac
  21155. fi
  21156. # Set up files for the power library
  21157. if test x$enable_power = xyes; then
  21158. case $ARCH in
  21159. linux)
  21160. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21161. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21162. have_power=yes
  21163. ;;
  21164. android)
  21165. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21166. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21167. have_power=yes
  21168. ;;
  21169. esac
  21170. fi
  21171. # Set up files for the filesystem library
  21172. if test x$enable_filesystem = xyes; then
  21173. case $ARCH in
  21174. android)
  21175. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21176. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21177. have_filesystem=yes
  21178. ;;
  21179. *)
  21180. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21181. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21182. have_filesystem=yes
  21183. ;;
  21184. esac
  21185. fi
  21186. # Set up files for the timer library
  21187. if test x$enable_timers = xyes; then
  21188. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21189. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21190. have_timers=yes
  21191. fi
  21192. # Set up files for udev hotplugging support
  21193. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21194. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21195. fi
  21196. # Set up files for evdev input
  21197. if test x$use_input_events = xyes; then
  21198. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21199. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21200. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21201. fi
  21202. # Set up other core UNIX files
  21203. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21204. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21205. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21206. ;;
  21207. *-*-cygwin* | *-*-mingw32*)
  21208. ARCH=win32
  21209. if test "$build" != "$host"; then # cross-compiling
  21210. # Default cross-compile location
  21211. ac_default_prefix=/usr/local/cross-tools/$host
  21212. else
  21213. # Look for the location of the tools and install there
  21214. if test "$BUILD_PREFIX" != ""; then
  21215. ac_default_prefix=$BUILD_PREFIX
  21216. fi
  21217. fi
  21218. CheckDeclarationAfterStatement
  21219. CheckDummyVideo
  21220. CheckDiskAudio
  21221. CheckDummyAudio
  21222. CheckWINDOWS
  21223. CheckWINDOWSGL
  21224. CheckWINDOWSGLES
  21225. CheckVulkan
  21226. CheckDIRECTX
  21227. CheckHIDAPI
  21228. # Set up the core platform files
  21229. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21230. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21231. have_misc=yes
  21232. # Use the Windows locale APIs.
  21233. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21234. have_locale=yes
  21235. # Set up files for the video library
  21236. if test x$enable_video = xyes; then
  21237. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21238. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21239. have_video=yes
  21240. # Check whether --enable-render-d3d was given.
  21241. if test "${enable_render_d3d+set}" = set; then :
  21242. enableval=$enable_render_d3d;
  21243. else
  21244. enable_render_d3d=yes
  21245. fi
  21246. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21247. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21248. SUMMARY_video="${SUMMARY_video} d3d9"
  21249. fi
  21250. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21251. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21252. SUMMARY_video="${SUMMARY_video} d3d11"
  21253. fi
  21254. fi
  21255. # Set up files for the audio library
  21256. if test x$enable_audio = xyes; then
  21257. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21258. SUMMARY_audio="${SUMMARY_audio} winmm"
  21259. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21260. if test x$have_dsound = xyes; then
  21261. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21262. SUMMARY_audio="${SUMMARY_audio} directsound"
  21263. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21264. fi
  21265. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21266. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21267. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21268. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21269. fi
  21270. have_audio=yes
  21271. fi
  21272. # Set up files for the joystick library
  21273. if test x$enable_joystick = xyes; then
  21274. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21275. if test x$have_xinput = xyes; then
  21276. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21277. fi
  21278. if test x$have_dinput = xyes; then
  21279. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21280. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21281. fi
  21282. else
  21283. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21284. fi
  21285. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21286. have_joystick=yes
  21287. fi
  21288. if test x$enable_haptic = xyes; then
  21289. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21290. if test x$have_xinput = xyes; then
  21291. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21292. fi
  21293. if test x$have_dinput = xyes; then
  21294. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21295. fi
  21296. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21297. have_haptic=yes
  21298. fi
  21299. fi
  21300. # Set up files for the sensor library
  21301. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21302. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21303. have_winsensors=yes
  21304. else
  21305. have_winsensors=no
  21306. fi
  21307. if test x$have_winsensors = xyes; then
  21308. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21309. fi
  21310. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21311. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21312. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21313. have_sensor=yes
  21314. fi
  21315. # Set up files for the power library
  21316. if test x$enable_power = xyes; then
  21317. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21318. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21319. have_power=yes
  21320. fi
  21321. # Set up files for the filesystem library
  21322. if test x$enable_filesystem = xyes; then
  21323. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21324. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21325. have_filesystem=yes
  21326. fi
  21327. # Set up files for the thread library
  21328. if test x$enable_threads = xyes; then
  21329. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21330. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21331. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21332. have_threads=yes
  21333. fi
  21334. # Set up files for the timer library
  21335. if test x$enable_timers = xyes; then
  21336. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21337. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21338. have_timers=yes
  21339. fi
  21340. # Set up files for the shared object loading library
  21341. if test x$enable_loadso = xyes; then
  21342. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21343. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21344. have_loadso=yes
  21345. fi
  21346. # Set up the system libraries we need
  21347. if test -f /lib/w32api/libuuid.a; then
  21348. LIBUUID=/lib/w32api/libuuid.a
  21349. else
  21350. LIBUUID=-luuid
  21351. fi
  21352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21353. # The Windows platform requires special setup
  21354. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21355. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21356. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21357. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21358. # Check to see if this is a mingw or cygwin build
  21359. have_mingw32=
  21360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21361. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21362. if ${ac_cv_lib_mingw32_main+:} false; then :
  21363. $as_echo_n "(cached) " >&6
  21364. else
  21365. ac_check_lib_save_LIBS=$LIBS
  21366. LIBS="-lmingw32 $LIBS"
  21367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21368. /* end confdefs.h. */
  21369. int
  21370. main ()
  21371. {
  21372. return main ();
  21373. ;
  21374. return 0;
  21375. }
  21376. _ACEOF
  21377. if ac_fn_c_try_link "$LINENO"; then :
  21378. ac_cv_lib_mingw32_main=yes
  21379. else
  21380. ac_cv_lib_mingw32_main=no
  21381. fi
  21382. rm -f core conftest.err conftest.$ac_objext \
  21383. conftest$ac_exeext conftest.$ac_ext
  21384. LIBS=$ac_check_lib_save_LIBS
  21385. fi
  21386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21387. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21388. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21389. have_mingw32=yes
  21390. fi
  21391. if test x$have_mingw32 = xyes; then
  21392. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21393. else
  21394. SDL_LIBS="-lcygwin $SDL_LIBS"
  21395. fi
  21396. ;;
  21397. *-*-beos*)
  21398. as_fn_error $? "
  21399. *** BeOS support has been removed as of SDL 2.0.2.
  21400. " "$LINENO" 5
  21401. ;;
  21402. *-*-haiku*)
  21403. ARCH=haiku
  21404. ac_default_prefix=/boot/system
  21405. CheckDummyVideo
  21406. CheckDiskAudio
  21407. CheckDummyAudio
  21408. CheckDLOPEN
  21409. CheckHaikuVideo
  21410. CheckHaikuGL
  21411. CheckPTHREAD
  21412. # Set up files for the audio library
  21413. if test x$enable_audio = xyes; then
  21414. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21415. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21416. SUMMARY_audio="${SUMMARY_audio} haiku"
  21417. have_audio=yes
  21418. fi
  21419. # Set up files for the joystick library
  21420. if test x$enable_joystick = xyes; then
  21421. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21422. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21423. have_joystick=yes
  21424. fi
  21425. # Set up files for the timer library
  21426. if test x$enable_timers = xyes; then
  21427. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21428. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21429. have_timers=yes
  21430. fi
  21431. # Set up files for the system power library
  21432. if test x$enable_power = xyes; then
  21433. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21434. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21435. have_power=yes
  21436. fi
  21437. # Set up files for the system filesystem library
  21438. if test x$enable_filesystem = xyes; then
  21439. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21440. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21441. have_filesystem=yes
  21442. fi
  21443. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21444. have_misc=yes
  21445. # Set up files for the locale library
  21446. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21447. have_locale=yes
  21448. # The Haiku platform requires special setup.
  21449. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21451. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21452. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21453. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21455. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21456. if eval \${$as_ac_File+:} false; then :
  21457. $as_echo_n "(cached) " >&6
  21458. else
  21459. test "$cross_compiling" = yes &&
  21460. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21461. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21462. eval "$as_ac_File=yes"
  21463. else
  21464. eval "$as_ac_File=no"
  21465. fi
  21466. fi
  21467. eval ac_res=\$$as_ac_File
  21468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21469. $as_echo "$ac_res" >&6; }
  21470. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21471. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21472. else
  21473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21474. fi
  21475. ;;
  21476. *-ios-*)
  21477. ARCH=ios
  21478. CheckVisibilityHidden
  21479. CheckDeclarationAfterStatement
  21480. CheckDummyVideo
  21481. CheckDiskAudio
  21482. CheckDummyAudio
  21483. CheckDLOPEN
  21484. CheckMETAL
  21485. CheckVulkan
  21486. CheckPTHREAD
  21487. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21488. have_misc=yes
  21489. # Set up files for the locale library
  21490. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21491. have_locale=yes
  21492. # Set up files for the audio library
  21493. if test x$enable_audio = xyes; then
  21494. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21495. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21496. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21497. have_audio=yes
  21498. fi
  21499. # Set up files for the joystick library
  21500. if test x$enable_joystick = xyes; then
  21501. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21502. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21503. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21504. have_joystick=yes
  21505. else
  21506. # Need this code for accelerometer as joystick support
  21507. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21508. fi
  21509. # Set up files for the haptic library
  21510. #if test x$enable_haptic = xyes; then
  21511. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21512. # have_haptic=yes
  21513. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21514. #fi
  21515. # Set up files for the sensor library
  21516. if test x$enable_sensor = xyes; then
  21517. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21518. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21519. have_sensor=yes
  21520. fi
  21521. # Set up files for the power library
  21522. if test x$enable_power = xyes; then
  21523. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21524. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21525. have_power=yes
  21526. fi
  21527. # Set up files for the filesystem library
  21528. if test x$enable_filesystem = xyes; then
  21529. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21530. have_filesystem=yes
  21531. fi
  21532. # Set up additional files for the file library
  21533. if test x$enable_file = xyes; then
  21534. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21535. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21536. fi
  21537. # Set up files for the timer library
  21538. if test x$enable_timers = xyes; then
  21539. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21540. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21541. have_timers=yes
  21542. fi
  21543. # Set up other core UNIX files
  21544. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21545. # The iOS platform requires special setup.
  21546. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21547. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21548. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21549. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21550. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21551. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21557. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21558. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21559. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21563. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21564. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21565. fi
  21566. ;;
  21567. *-*-darwin* )
  21568. # This could be either full "Mac OS X", or plain "Darwin" which is
  21569. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21570. # Next line is broken, and a few files below require Mac OS X (full)
  21571. ARCH=macosx
  21572. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21573. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21574. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21575. CheckVisibilityHidden
  21576. CheckDeclarationAfterStatement
  21577. CheckDummyVideo
  21578. CheckDiskAudio
  21579. CheckDummyAudio
  21580. CheckDLOPEN
  21581. CheckCOCOA
  21582. CheckMETAL
  21583. CheckX11
  21584. CheckMacGL
  21585. CheckMacGLES
  21586. CheckOpenGLX11
  21587. CheckVulkan
  21588. CheckPTHREAD
  21589. CheckHIDAPI
  21590. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21591. have_misc=yes
  21592. # Set up files for the locale library
  21593. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21594. have_locale=yes
  21595. # Set up files for the audio library
  21596. if test x$enable_audio = xyes; then
  21597. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21598. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21599. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21600. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21601. have_audio=yes
  21602. fi
  21603. # Set up files for the joystick library
  21604. if test x$enable_joystick = xyes; then
  21605. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21606. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21607. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21608. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21610. have_joystick=yes
  21611. fi
  21612. # Set up files for the haptic library
  21613. if test x$enable_haptic = xyes; then
  21614. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21615. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21616. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21617. have_haptic=yes
  21618. fi
  21619. # Set up files for the power library
  21620. if test x$enable_power = xyes; then
  21621. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21622. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21623. have_power=yes
  21624. fi
  21625. # Set up files for the filesystem library
  21626. if test x$enable_filesystem = xyes; then
  21627. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21628. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21629. have_filesystem=yes
  21630. fi
  21631. # Set up files for the timer library
  21632. if test x$enable_timers = xyes; then
  21633. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21634. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21635. have_timers=yes
  21636. fi
  21637. # Set up additional files for the file library
  21638. if test x$enable_file = xyes; then
  21639. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21640. fi
  21641. # Set up other core UNIX files
  21642. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21643. # The Mac OS X platform requires special setup.
  21644. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21646. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21647. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21649. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21651. fi
  21652. ;;
  21653. *-nacl|*-pnacl)
  21654. ARCH=nacl
  21655. CheckNativeClient
  21656. CheckDummyAudio
  21657. CheckDummyVideo
  21658. CheckInputEvents
  21659. CheckPTHREAD
  21660. # Set up files for the timer library
  21661. if test x$enable_timers = xyes; then
  21662. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21663. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21664. have_timers=yes
  21665. fi
  21666. if test x$enable_filesystem = xyes; then
  21667. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21668. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21669. have_filesystem=yes
  21670. fi
  21671. ;;
  21672. *-*-emscripten* )
  21673. if test x$enable_video = xyes; then
  21674. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21675. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21676. have_video=yes
  21677. SUMMARY_video="${SUMMARY_video} emscripten"
  21678. fi
  21679. if test x$enable_audio = xyes; then
  21680. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21681. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21682. have_audio=yes
  21683. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21684. fi
  21685. CheckVisibilityHidden
  21686. CheckDeclarationAfterStatement
  21687. CheckDummyVideo
  21688. CheckDiskAudio
  21689. CheckDummyAudio
  21690. CheckDLOPEN
  21691. CheckClockGettime
  21692. CheckEmscriptenGLES
  21693. # Set up files for the power library
  21694. if test x$enable_power = xyes; then
  21695. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21696. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21697. have_power=yes
  21698. fi
  21699. # Set up files for the power library
  21700. if test x$enable_joystick = xyes; then
  21701. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21702. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21703. have_joystick=yes
  21704. fi
  21705. # Set up files for the filesystem library
  21706. if test x$enable_filesystem = xyes; then
  21707. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21708. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21709. have_filesystem=yes
  21710. fi
  21711. # Set up files for the timer library
  21712. if test x$enable_timers = xyes; then
  21713. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21714. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21715. have_timers=yes
  21716. fi
  21717. # Set up files for the locale library
  21718. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21719. have_locale=yes
  21720. ;;
  21721. *-*-riscos*)
  21722. ARCH=riscos
  21723. CheckVisibilityHidden
  21724. CheckDeclarationAfterStatement
  21725. CheckDummyVideo
  21726. CheckDiskAudio
  21727. CheckDummyAudio
  21728. CheckDLOPEN
  21729. CheckOSS
  21730. CheckPTHREAD
  21731. CheckClockGettime
  21732. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  21733. have_misc=yes
  21734. # Set up files for the timer library
  21735. if test x$enable_timers = xyes; then
  21736. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21737. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21738. have_timers=yes
  21739. fi
  21740. ;;
  21741. *)
  21742. as_fn_error $? "
  21743. *** Unsupported host: Please add to configure.ac
  21744. " "$LINENO" 5
  21745. ;;
  21746. esac
  21747. CheckVirtualJoystick
  21748. # Check whether to install sdl2-config
  21749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21750. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21751. # Check whether --enable-sdl2-config was given.
  21752. if test "${enable_sdl2_config+set}" = set; then :
  21753. enableval=$enable_sdl2_config; case "${enableval}" in
  21754. yes) enable_sdl2_config="TRUE" ;;
  21755. no) enable_sdl2_config="FALSE" ;;
  21756. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21757. esac
  21758. else
  21759. enable_sdl2_config="TRUE"
  21760. fi
  21761. if test "$enable_sdl2_config" = "TRUE"; then
  21762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21763. $as_echo "yes" >&6; }
  21764. else
  21765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21766. $as_echo "no" >&6; }
  21767. fi
  21768. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21769. # Verify that we have all the platform specific files we need
  21770. if test x$have_misc != xyes; then
  21771. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  21772. fi
  21773. if test x$have_locale != xyes; then
  21774. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21775. fi
  21776. if test x$have_joystick != xyes; then
  21777. if test x$enable_joystick = xyes; then
  21778. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21779. fi
  21780. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21781. fi
  21782. if test x$have_haptic != xyes; then
  21783. if test x$enable_haptic = xyes; then
  21784. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21785. fi
  21786. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21787. fi
  21788. if test x$have_sensor != xyes; then
  21789. if test x$enable_sensor = xyes; then
  21790. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21791. fi
  21792. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21793. fi
  21794. if test x$have_threads != xyes; then
  21795. if test x$enable_threads = xyes; then
  21796. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21797. fi
  21798. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21799. fi
  21800. if test x$have_timers != xyes; then
  21801. if test x$enable_timers = xyes; then
  21802. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21803. fi
  21804. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21805. fi
  21806. if test x$have_filesystem != xyes; then
  21807. if test x$enable_filesystem = xyes; then
  21808. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21809. fi
  21810. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21811. fi
  21812. if test x$have_loadso != xyes; then
  21813. if test x$enable_loadso = xyes; then
  21814. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21815. fi
  21816. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21817. fi
  21818. if test x$SDLMAIN_SOURCES = x; then
  21819. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21820. fi
  21821. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21822. if test x$video_wayland = xyes; then
  21823. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21824. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21825. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21826. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21827. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21828. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21829. echo ;\
  21830. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21831. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21832. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21833. echo ;\
  21834. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21835. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21836. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21837. echo ;\
  21838. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21839. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21840. done ;\
  21841. echo ;\
  21842. 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`
  21843. fi
  21844. OBJECTS=`echo $SOURCES`
  21845. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21846. for EXT in asm cc m c S; do
  21847. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21848. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21849. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21850. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21851. done
  21852. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21853. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21854. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21855. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21856. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21857. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21858. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21859. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21860. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21861. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21862. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21863. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21864. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21865. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21866. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21867. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21868. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21869. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21870. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21871. # Set runtime shared library paths as needed
  21872. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21873. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21874. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21876. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21877. have_enable_new_dtags=no
  21878. save_LDFLAGS="$LDFLAGS"
  21879. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21881. /* end confdefs.h. */
  21882. int
  21883. main ()
  21884. {
  21885. ;
  21886. return 0;
  21887. }
  21888. _ACEOF
  21889. if ac_fn_c_try_link "$LINENO"; then :
  21890. have_enable_new_dtags=yes
  21891. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21892. fi
  21893. rm -f core conftest.err conftest.$ac_objext \
  21894. conftest$ac_exeext conftest.$ac_ext
  21895. LDFLAGS="$save_LDFLAGS"
  21896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21897. $as_echo "$have_enable_new_dtags" >&6; }
  21898. fi
  21899. if test $ARCH = solaris; then
  21900. SDL_RLD_FLAGS="-R\${libdir}"
  21901. fi
  21902. else
  21903. SDL_RLD_FLAGS=""
  21904. fi
  21905. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21906. if test x$enable_shared = xyes; then
  21907. PKG_CONFIG_LIBS_PRIV="
  21908. Libs.private:"
  21909. ENABLE_SHARED_TRUE=
  21910. ENABLE_SHARED_FALSE="#"
  21911. else
  21912. PKG_CONFIG_LIBS_PRIV=
  21913. ENABLE_SHARED_TRUE="#"
  21914. ENABLE_SHARED_FALSE=
  21915. fi
  21916. if test x$enable_static = xyes; then
  21917. ENABLE_STATIC_TRUE=
  21918. ENABLE_STATIC_FALSE="#"
  21919. else
  21920. ENABLE_STATIC_TRUE="#"
  21921. ENABLE_STATIC_FALSE=
  21922. fi
  21923. cat >Makefile.rules <<__EOF__
  21924. # Build rules for objects
  21925. -include \$(OBJECTS:.lo=.d)
  21926. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21927. $srcdir/src/SDL.c: update-revision
  21928. $DEPENDS
  21929. $VERSION_DEPENDS
  21930. $SDLMAIN_DEPENDS
  21931. $SDLTEST_DEPENDS
  21932. $WAYLAND_PROTOCOLS_DEPENDS
  21933. __EOF__
  21934. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21935. ac_config_commands="$ac_config_commands sdl2_config"
  21936. SUMMARY="SDL2 Configure Summary:\n"
  21937. if test x$enable_shared = xyes; then
  21938. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21939. fi
  21940. if test x$enable_static = xyes; then
  21941. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21942. fi
  21943. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21944. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21945. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21946. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21947. if test x$have_x = xyes; then
  21948. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21949. fi
  21950. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21951. if test x$have_joystick_virtual = xyes; then
  21952. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21953. else
  21954. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21955. fi
  21956. if test x$have_samplerate_h_hdr = xyes; then
  21957. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21958. else
  21959. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21960. fi
  21961. if test x$have_libudev_h_hdr = xyes; then
  21962. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21963. else
  21964. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21965. fi
  21966. if test x$have_dbus_dbus_h_hdr = xyes; then
  21967. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21968. else
  21969. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21970. fi
  21971. if test x$enable_ime = xyes; then
  21972. SUMMARY="${SUMMARY}Using ime : YES\n"
  21973. else
  21974. SUMMARY="${SUMMARY}Using ime : NO\n"
  21975. fi
  21976. if test x$have_ibus_ibus_h_hdr = xyes; then
  21977. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21978. else
  21979. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21980. fi
  21981. if test x$have_fcitx = xyes; then
  21982. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21983. else
  21984. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21985. fi
  21986. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21987. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21988. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21989. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21990. SUMMARY="${SUMMARY}configure script with:\n"
  21991. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21992. fi
  21993. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21994. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21995. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21996. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21997. SUMMARY="${SUMMARY}configure script with:\n"
  21998. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21999. fi
  22000. ac_config_commands="$ac_config_commands summary"
  22001. cat >confcache <<\_ACEOF
  22002. # This file is a shell script that caches the results of configure
  22003. # tests run on this system so they can be shared between configure
  22004. # scripts and configure runs, see configure's option --config-cache.
  22005. # It is not useful on other systems. If it contains results you don't
  22006. # want to keep, you may remove or edit it.
  22007. #
  22008. # config.status only pays attention to the cache file if you give it
  22009. # the --recheck option to rerun configure.
  22010. #
  22011. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22012. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22013. # following values.
  22014. _ACEOF
  22015. # The following way of writing the cache mishandles newlines in values,
  22016. # but we know of no workaround that is simple, portable, and efficient.
  22017. # So, we kill variables containing newlines.
  22018. # Ultrix sh set writes to stderr and can't be redirected directly,
  22019. # and sets the high bit in the cache file unless we assign to the vars.
  22020. (
  22021. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22022. eval ac_val=\$$ac_var
  22023. case $ac_val in #(
  22024. *${as_nl}*)
  22025. case $ac_var in #(
  22026. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22027. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22028. esac
  22029. case $ac_var in #(
  22030. _ | IFS | as_nl) ;; #(
  22031. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22032. *) { eval $ac_var=; unset $ac_var;} ;;
  22033. esac ;;
  22034. esac
  22035. done
  22036. (set) 2>&1 |
  22037. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22038. *${as_nl}ac_space=\ *)
  22039. # `set' does not quote correctly, so add quotes: double-quote
  22040. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22041. sed -n \
  22042. "s/'/'\\\\''/g;
  22043. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22044. ;; #(
  22045. *)
  22046. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22047. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22048. ;;
  22049. esac |
  22050. sort
  22051. ) |
  22052. sed '
  22053. /^ac_cv_env_/b end
  22054. t clear
  22055. :clear
  22056. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22057. t end
  22058. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22059. :end' >>confcache
  22060. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22061. if test -w "$cache_file"; then
  22062. if test "x$cache_file" != "x/dev/null"; then
  22063. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22064. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22065. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22066. cat confcache >"$cache_file"
  22067. else
  22068. case $cache_file in #(
  22069. */* | ?:*)
  22070. mv -f confcache "$cache_file"$$ &&
  22071. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22072. *)
  22073. mv -f confcache "$cache_file" ;;
  22074. esac
  22075. fi
  22076. fi
  22077. else
  22078. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22079. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22080. fi
  22081. fi
  22082. rm -f confcache
  22083. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22084. # Let make expand exec_prefix.
  22085. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22086. DEFS=-DHAVE_CONFIG_H
  22087. ac_libobjs=
  22088. ac_ltlibobjs=
  22089. U=
  22090. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22091. # 1. Remove the extension, and $U if already installed.
  22092. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22093. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22094. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22095. # will be set to the directory where LIBOBJS objects are built.
  22096. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22097. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22098. done
  22099. LIBOBJS=$ac_libobjs
  22100. LTLIBOBJS=$ac_ltlibobjs
  22101. : "${CONFIG_STATUS=./config.status}"
  22102. ac_write_fail=0
  22103. ac_clean_files_save=$ac_clean_files
  22104. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22105. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22106. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22107. as_write_fail=0
  22108. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22109. #! $SHELL
  22110. # Generated by $as_me.
  22111. # Run this file to recreate the current configuration.
  22112. # Compiler output produced by configure, useful for debugging
  22113. # configure, is in config.log if it exists.
  22114. debug=false
  22115. ac_cs_recheck=false
  22116. ac_cs_silent=false
  22117. SHELL=\${CONFIG_SHELL-$SHELL}
  22118. export SHELL
  22119. _ASEOF
  22120. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22121. ## -------------------- ##
  22122. ## M4sh Initialization. ##
  22123. ## -------------------- ##
  22124. # Be more Bourne compatible
  22125. DUALCASE=1; export DUALCASE # for MKS sh
  22126. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22127. emulate sh
  22128. NULLCMD=:
  22129. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22130. # is contrary to our usage. Disable this feature.
  22131. alias -g '${1+"$@"}'='"$@"'
  22132. setopt NO_GLOB_SUBST
  22133. else
  22134. case `(set -o) 2>/dev/null` in #(
  22135. *posix*) :
  22136. set -o posix ;; #(
  22137. *) :
  22138. ;;
  22139. esac
  22140. fi
  22141. as_nl='
  22142. '
  22143. export as_nl
  22144. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22145. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22146. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22147. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22148. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22149. # but without wasting forks for bash or zsh.
  22150. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22151. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22152. as_echo='print -r --'
  22153. as_echo_n='print -rn --'
  22154. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22155. as_echo='printf %s\n'
  22156. as_echo_n='printf %s'
  22157. else
  22158. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22159. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22160. as_echo_n='/usr/ucb/echo -n'
  22161. else
  22162. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22163. as_echo_n_body='eval
  22164. arg=$1;
  22165. case $arg in #(
  22166. *"$as_nl"*)
  22167. expr "X$arg" : "X\\(.*\\)$as_nl";
  22168. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22169. esac;
  22170. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22171. '
  22172. export as_echo_n_body
  22173. as_echo_n='sh -c $as_echo_n_body as_echo'
  22174. fi
  22175. export as_echo_body
  22176. as_echo='sh -c $as_echo_body as_echo'
  22177. fi
  22178. # The user is always right.
  22179. if test "${PATH_SEPARATOR+set}" != set; then
  22180. PATH_SEPARATOR=:
  22181. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22182. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22183. PATH_SEPARATOR=';'
  22184. }
  22185. fi
  22186. # IFS
  22187. # We need space, tab and new line, in precisely that order. Quoting is
  22188. # there to prevent editors from complaining about space-tab.
  22189. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22190. # splitting by setting IFS to empty value.)
  22191. IFS=" "" $as_nl"
  22192. # Find who we are. Look in the path if we contain no directory separator.
  22193. as_myself=
  22194. case $0 in #((
  22195. *[\\/]* ) as_myself=$0 ;;
  22196. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22197. for as_dir in $PATH
  22198. do
  22199. IFS=$as_save_IFS
  22200. test -z "$as_dir" && as_dir=.
  22201. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22202. done
  22203. IFS=$as_save_IFS
  22204. ;;
  22205. esac
  22206. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22207. # in which case we are not to be found in the path.
  22208. if test "x$as_myself" = x; then
  22209. as_myself=$0
  22210. fi
  22211. if test ! -f "$as_myself"; then
  22212. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22213. exit 1
  22214. fi
  22215. # Unset variables that we do not need and which cause bugs (e.g. in
  22216. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22217. # suppresses any "Segmentation fault" message there. '((' could
  22218. # trigger a bug in pdksh 5.2.14.
  22219. for as_var in BASH_ENV ENV MAIL MAILPATH
  22220. do eval test x\${$as_var+set} = xset \
  22221. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22222. done
  22223. PS1='$ '
  22224. PS2='> '
  22225. PS4='+ '
  22226. # NLS nuisances.
  22227. LC_ALL=C
  22228. export LC_ALL
  22229. LANGUAGE=C
  22230. export LANGUAGE
  22231. # CDPATH.
  22232. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22233. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22234. # ----------------------------------------
  22235. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22236. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22237. # script with STATUS, using 1 if that was 0.
  22238. as_fn_error ()
  22239. {
  22240. as_status=$1; test $as_status -eq 0 && as_status=1
  22241. if test "$4"; then
  22242. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22243. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22244. fi
  22245. $as_echo "$as_me: error: $2" >&2
  22246. as_fn_exit $as_status
  22247. } # as_fn_error
  22248. # as_fn_set_status STATUS
  22249. # -----------------------
  22250. # Set $? to STATUS, without forking.
  22251. as_fn_set_status ()
  22252. {
  22253. return $1
  22254. } # as_fn_set_status
  22255. # as_fn_exit STATUS
  22256. # -----------------
  22257. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22258. as_fn_exit ()
  22259. {
  22260. set +e
  22261. as_fn_set_status $1
  22262. exit $1
  22263. } # as_fn_exit
  22264. # as_fn_unset VAR
  22265. # ---------------
  22266. # Portably unset VAR.
  22267. as_fn_unset ()
  22268. {
  22269. { eval $1=; unset $1;}
  22270. }
  22271. as_unset=as_fn_unset
  22272. # as_fn_append VAR VALUE
  22273. # ----------------------
  22274. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22275. # advantage of any shell optimizations that allow amortized linear growth over
  22276. # repeated appends, instead of the typical quadratic growth present in naive
  22277. # implementations.
  22278. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22279. eval 'as_fn_append ()
  22280. {
  22281. eval $1+=\$2
  22282. }'
  22283. else
  22284. as_fn_append ()
  22285. {
  22286. eval $1=\$$1\$2
  22287. }
  22288. fi # as_fn_append
  22289. # as_fn_arith ARG...
  22290. # ------------------
  22291. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22292. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22293. # must be portable across $(()) and expr.
  22294. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22295. eval 'as_fn_arith ()
  22296. {
  22297. as_val=$(( $* ))
  22298. }'
  22299. else
  22300. as_fn_arith ()
  22301. {
  22302. as_val=`expr "$@" || test $? -eq 1`
  22303. }
  22304. fi # as_fn_arith
  22305. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22306. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22307. as_expr=expr
  22308. else
  22309. as_expr=false
  22310. fi
  22311. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22312. as_basename=basename
  22313. else
  22314. as_basename=false
  22315. fi
  22316. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22317. as_dirname=dirname
  22318. else
  22319. as_dirname=false
  22320. fi
  22321. as_me=`$as_basename -- "$0" ||
  22322. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22323. X"$0" : 'X\(//\)$' \| \
  22324. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22325. $as_echo X/"$0" |
  22326. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22327. s//\1/
  22328. q
  22329. }
  22330. /^X\/\(\/\/\)$/{
  22331. s//\1/
  22332. q
  22333. }
  22334. /^X\/\(\/\).*/{
  22335. s//\1/
  22336. q
  22337. }
  22338. s/.*/./; q'`
  22339. # Avoid depending upon Character Ranges.
  22340. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22341. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22342. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22343. as_cr_digits='0123456789'
  22344. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22345. ECHO_C= ECHO_N= ECHO_T=
  22346. case `echo -n x` in #(((((
  22347. -n*)
  22348. case `echo 'xy\c'` in
  22349. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22350. xy) ECHO_C='\c';;
  22351. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22352. ECHO_T=' ';;
  22353. esac;;
  22354. *)
  22355. ECHO_N='-n';;
  22356. esac
  22357. rm -f conf$$ conf$$.exe conf$$.file
  22358. if test -d conf$$.dir; then
  22359. rm -f conf$$.dir/conf$$.file
  22360. else
  22361. rm -f conf$$.dir
  22362. mkdir conf$$.dir 2>/dev/null
  22363. fi
  22364. if (echo >conf$$.file) 2>/dev/null; then
  22365. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22366. as_ln_s='ln -s'
  22367. # ... but there are two gotchas:
  22368. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22369. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22370. # In both cases, we have to default to `cp -pR'.
  22371. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22372. as_ln_s='cp -pR'
  22373. elif ln conf$$.file conf$$ 2>/dev/null; then
  22374. as_ln_s=ln
  22375. else
  22376. as_ln_s='cp -pR'
  22377. fi
  22378. else
  22379. as_ln_s='cp -pR'
  22380. fi
  22381. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22382. rmdir conf$$.dir 2>/dev/null
  22383. # as_fn_mkdir_p
  22384. # -------------
  22385. # Create "$as_dir" as a directory, including parents if necessary.
  22386. as_fn_mkdir_p ()
  22387. {
  22388. case $as_dir in #(
  22389. -*) as_dir=./$as_dir;;
  22390. esac
  22391. test -d "$as_dir" || eval $as_mkdir_p || {
  22392. as_dirs=
  22393. while :; do
  22394. case $as_dir in #(
  22395. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22396. *) as_qdir=$as_dir;;
  22397. esac
  22398. as_dirs="'$as_qdir' $as_dirs"
  22399. as_dir=`$as_dirname -- "$as_dir" ||
  22400. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22401. X"$as_dir" : 'X\(//\)[^/]' \| \
  22402. X"$as_dir" : 'X\(//\)$' \| \
  22403. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22404. $as_echo X"$as_dir" |
  22405. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22406. s//\1/
  22407. q
  22408. }
  22409. /^X\(\/\/\)[^/].*/{
  22410. s//\1/
  22411. q
  22412. }
  22413. /^X\(\/\/\)$/{
  22414. s//\1/
  22415. q
  22416. }
  22417. /^X\(\/\).*/{
  22418. s//\1/
  22419. q
  22420. }
  22421. s/.*/./; q'`
  22422. test -d "$as_dir" && break
  22423. done
  22424. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22425. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22426. } # as_fn_mkdir_p
  22427. if mkdir -p . 2>/dev/null; then
  22428. as_mkdir_p='mkdir -p "$as_dir"'
  22429. else
  22430. test -d ./-p && rmdir ./-p
  22431. as_mkdir_p=false
  22432. fi
  22433. # as_fn_executable_p FILE
  22434. # -----------------------
  22435. # Test if FILE is an executable regular file.
  22436. as_fn_executable_p ()
  22437. {
  22438. test -f "$1" && test -x "$1"
  22439. } # as_fn_executable_p
  22440. as_test_x='test -x'
  22441. as_executable_p=as_fn_executable_p
  22442. # Sed expression to map a string onto a valid CPP name.
  22443. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22444. # Sed expression to map a string onto a valid variable name.
  22445. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22446. exec 6>&1
  22447. ## ----------------------------------- ##
  22448. ## Main body of $CONFIG_STATUS script. ##
  22449. ## ----------------------------------- ##
  22450. _ASEOF
  22451. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22452. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22453. # Save the log message, to keep $0 and so on meaningful, and to
  22454. # report actual input values of CONFIG_FILES etc. instead of their
  22455. # values after options handling.
  22456. ac_log="
  22457. This file was extended by $as_me, which was
  22458. generated by GNU Autoconf 2.69. Invocation command line was
  22459. CONFIG_FILES = $CONFIG_FILES
  22460. CONFIG_HEADERS = $CONFIG_HEADERS
  22461. CONFIG_LINKS = $CONFIG_LINKS
  22462. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22463. $ $0 $@
  22464. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22465. "
  22466. _ACEOF
  22467. case $ac_config_files in *"
  22468. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22469. esac
  22470. case $ac_config_headers in *"
  22471. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22472. esac
  22473. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22474. # Files that config.status was made for.
  22475. config_files="$ac_config_files"
  22476. config_headers="$ac_config_headers"
  22477. config_commands="$ac_config_commands"
  22478. _ACEOF
  22479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22480. ac_cs_usage="\
  22481. \`$as_me' instantiates files and other configuration actions
  22482. from templates according to the current configuration. Unless the files
  22483. and actions are specified as TAGs, all are instantiated by default.
  22484. Usage: $0 [OPTION]... [TAG]...
  22485. -h, --help print this help, then exit
  22486. -V, --version print version number and configuration settings, then exit
  22487. --config print configuration, then exit
  22488. -q, --quiet, --silent
  22489. do not print progress messages
  22490. -d, --debug don't remove temporary files
  22491. --recheck update $as_me by reconfiguring in the same conditions
  22492. --file=FILE[:TEMPLATE]
  22493. instantiate the configuration file FILE
  22494. --header=FILE[:TEMPLATE]
  22495. instantiate the configuration header FILE
  22496. Configuration files:
  22497. $config_files
  22498. Configuration headers:
  22499. $config_headers
  22500. Configuration commands:
  22501. $config_commands
  22502. Report bugs to the package provider."
  22503. _ACEOF
  22504. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22505. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22506. ac_cs_version="\\
  22507. config.status
  22508. configured by $0, generated by GNU Autoconf 2.69,
  22509. with options \\"\$ac_cs_config\\"
  22510. Copyright (C) 2012 Free Software Foundation, Inc.
  22511. This config.status script is free software; the Free Software Foundation
  22512. gives unlimited permission to copy, distribute and modify it."
  22513. ac_pwd='$ac_pwd'
  22514. srcdir='$srcdir'
  22515. INSTALL='$INSTALL'
  22516. AWK='$AWK'
  22517. test -n "\$AWK" || AWK=awk
  22518. _ACEOF
  22519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22520. # The default lists apply if the user does not specify any file.
  22521. ac_need_defaults=:
  22522. while test $# != 0
  22523. do
  22524. case $1 in
  22525. --*=?*)
  22526. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22527. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22528. ac_shift=:
  22529. ;;
  22530. --*=)
  22531. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22532. ac_optarg=
  22533. ac_shift=:
  22534. ;;
  22535. *)
  22536. ac_option=$1
  22537. ac_optarg=$2
  22538. ac_shift=shift
  22539. ;;
  22540. esac
  22541. case $ac_option in
  22542. # Handling of the options.
  22543. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22544. ac_cs_recheck=: ;;
  22545. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22546. $as_echo "$ac_cs_version"; exit ;;
  22547. --config | --confi | --conf | --con | --co | --c )
  22548. $as_echo "$ac_cs_config"; exit ;;
  22549. --debug | --debu | --deb | --de | --d | -d )
  22550. debug=: ;;
  22551. --file | --fil | --fi | --f )
  22552. $ac_shift
  22553. case $ac_optarg in
  22554. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22555. '') as_fn_error $? "missing file argument" ;;
  22556. esac
  22557. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22558. ac_need_defaults=false;;
  22559. --header | --heade | --head | --hea )
  22560. $ac_shift
  22561. case $ac_optarg in
  22562. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22563. esac
  22564. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22565. ac_need_defaults=false;;
  22566. --he | --h)
  22567. # Conflict between --help and --header
  22568. as_fn_error $? "ambiguous option: \`$1'
  22569. Try \`$0 --help' for more information.";;
  22570. --help | --hel | -h )
  22571. $as_echo "$ac_cs_usage"; exit ;;
  22572. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22573. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22574. ac_cs_silent=: ;;
  22575. # This is an error.
  22576. -*) as_fn_error $? "unrecognized option: \`$1'
  22577. Try \`$0 --help' for more information." ;;
  22578. *) as_fn_append ac_config_targets " $1"
  22579. ac_need_defaults=false ;;
  22580. esac
  22581. shift
  22582. done
  22583. ac_configure_extra_args=
  22584. if $ac_cs_silent; then
  22585. exec 6>/dev/null
  22586. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22587. fi
  22588. _ACEOF
  22589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22590. if \$ac_cs_recheck; then
  22591. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22592. shift
  22593. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22594. CONFIG_SHELL='$SHELL'
  22595. export CONFIG_SHELL
  22596. exec "\$@"
  22597. fi
  22598. _ACEOF
  22599. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22600. exec 5>>config.log
  22601. {
  22602. echo
  22603. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22604. ## Running $as_me. ##
  22605. _ASBOX
  22606. $as_echo "$ac_log"
  22607. } >&5
  22608. _ACEOF
  22609. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22610. #
  22611. # INIT-COMMANDS
  22612. #
  22613. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22614. # if CDPATH is set.
  22615. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22616. sed_quote_subst='$sed_quote_subst'
  22617. double_quote_subst='$double_quote_subst'
  22618. delay_variable_subst='$delay_variable_subst'
  22619. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22620. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22621. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22622. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22623. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22624. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22625. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22626. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22627. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22628. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22629. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22630. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22631. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22632. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22633. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22634. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22635. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22636. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22637. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22638. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22639. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22640. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22641. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22642. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22643. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22644. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22645. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22646. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22647. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22648. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22649. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22650. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22651. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22652. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22653. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22654. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22655. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22656. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22657. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22658. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22659. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22660. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22661. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22662. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22663. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22664. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22665. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22666. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22667. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22668. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22669. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22670. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22671. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22672. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22673. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22674. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22675. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22676. 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"`'
  22677. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22678. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22679. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22680. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22681. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22682. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22683. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22684. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22685. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22686. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22687. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22688. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22689. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22690. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22691. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22692. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22693. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22694. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22695. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22696. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22697. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22698. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22699. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22700. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22701. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22702. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22703. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22704. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22705. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22706. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22707. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22708. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22709. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22710. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22711. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22712. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22713. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22714. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22715. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22716. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22717. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22718. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22719. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22720. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22721. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22722. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22723. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22724. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22725. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22726. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22727. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22728. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22729. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22730. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22731. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22732. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22733. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22734. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22735. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22736. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22737. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22738. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22739. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22740. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22741. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22742. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22743. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22744. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22745. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22746. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22747. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22748. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22749. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22750. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22751. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22752. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22753. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22754. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22755. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22756. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22757. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22758. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22759. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22760. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22761. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22762. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22763. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22764. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22765. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22766. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22767. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22768. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22769. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22770. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22771. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22772. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22773. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22774. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22775. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22776. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22777. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22778. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22779. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22780. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22781. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22782. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22783. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22784. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22785. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22786. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22787. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22788. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22789. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22790. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22791. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22792. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22793. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22794. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22795. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22796. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22797. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22798. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22799. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22800. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22801. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22802. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22803. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22804. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22805. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22806. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22807. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22808. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22809. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22810. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22811. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22812. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22813. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22814. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22815. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22816. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22817. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22818. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22819. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22820. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22821. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22822. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22823. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22824. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22825. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22826. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22827. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22828. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22829. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22830. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22831. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22832. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22833. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22834. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22835. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22836. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22837. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22838. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22839. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22840. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22841. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22842. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22843. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22844. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22845. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22846. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22847. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22848. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22849. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22850. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22851. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22852. LTCC='$LTCC'
  22853. LTCFLAGS='$LTCFLAGS'
  22854. compiler='$compiler_DEFAULT'
  22855. # A function that is used when there is no print builtin or printf.
  22856. func_fallback_echo ()
  22857. {
  22858. eval 'cat <<_LTECHO_EOF
  22859. \$1
  22860. _LTECHO_EOF'
  22861. }
  22862. # Quote evaled strings.
  22863. for var in AS \
  22864. DLLTOOL \
  22865. OBJDUMP \
  22866. SHELL \
  22867. ECHO \
  22868. PATH_SEPARATOR \
  22869. SED \
  22870. GREP \
  22871. EGREP \
  22872. FGREP \
  22873. LD \
  22874. NM \
  22875. LN_S \
  22876. lt_SP2NL \
  22877. lt_NL2SP \
  22878. reload_flag \
  22879. deplibs_check_method \
  22880. file_magic_cmd \
  22881. file_magic_glob \
  22882. want_nocaseglob \
  22883. sharedlib_from_linklib_cmd \
  22884. AR \
  22885. AR_FLAGS \
  22886. archiver_list_spec \
  22887. STRIP \
  22888. RANLIB \
  22889. CC \
  22890. CFLAGS \
  22891. compiler \
  22892. lt_cv_sys_global_symbol_pipe \
  22893. lt_cv_sys_global_symbol_to_cdecl \
  22894. lt_cv_sys_global_symbol_to_c_name_address \
  22895. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22896. nm_file_list_spec \
  22897. lt_prog_compiler_no_builtin_flag \
  22898. lt_prog_compiler_pic \
  22899. lt_prog_compiler_wl \
  22900. lt_prog_compiler_static \
  22901. lt_cv_prog_compiler_c_o \
  22902. need_locks \
  22903. MANIFEST_TOOL \
  22904. DSYMUTIL \
  22905. NMEDIT \
  22906. LIPO \
  22907. OTOOL \
  22908. OTOOL64 \
  22909. shrext_cmds \
  22910. export_dynamic_flag_spec \
  22911. whole_archive_flag_spec \
  22912. compiler_needs_object \
  22913. with_gnu_ld \
  22914. allow_undefined_flag \
  22915. no_undefined_flag \
  22916. hardcode_libdir_flag_spec \
  22917. hardcode_libdir_separator \
  22918. exclude_expsyms \
  22919. include_expsyms \
  22920. file_list_spec \
  22921. variables_saved_for_relink \
  22922. libname_spec \
  22923. library_names_spec \
  22924. soname_spec \
  22925. install_override_mode \
  22926. finish_eval \
  22927. old_striplib \
  22928. striplib \
  22929. compiler_lib_search_dirs \
  22930. predep_objects \
  22931. postdep_objects \
  22932. predeps \
  22933. postdeps \
  22934. compiler_lib_search_path \
  22935. LD_RC \
  22936. LD_CXX \
  22937. reload_flag_RC \
  22938. reload_flag_CXX \
  22939. compiler_RC \
  22940. compiler_CXX \
  22941. lt_prog_compiler_no_builtin_flag_RC \
  22942. lt_prog_compiler_no_builtin_flag_CXX \
  22943. lt_prog_compiler_pic_RC \
  22944. lt_prog_compiler_pic_CXX \
  22945. lt_prog_compiler_wl_RC \
  22946. lt_prog_compiler_wl_CXX \
  22947. lt_prog_compiler_static_RC \
  22948. lt_prog_compiler_static_CXX \
  22949. lt_cv_prog_compiler_c_o_RC \
  22950. lt_cv_prog_compiler_c_o_CXX \
  22951. export_dynamic_flag_spec_RC \
  22952. export_dynamic_flag_spec_CXX \
  22953. whole_archive_flag_spec_RC \
  22954. whole_archive_flag_spec_CXX \
  22955. compiler_needs_object_RC \
  22956. compiler_needs_object_CXX \
  22957. with_gnu_ld_RC \
  22958. with_gnu_ld_CXX \
  22959. allow_undefined_flag_RC \
  22960. allow_undefined_flag_CXX \
  22961. no_undefined_flag_RC \
  22962. no_undefined_flag_CXX \
  22963. hardcode_libdir_flag_spec_RC \
  22964. hardcode_libdir_flag_spec_CXX \
  22965. hardcode_libdir_separator_RC \
  22966. hardcode_libdir_separator_CXX \
  22967. exclude_expsyms_RC \
  22968. exclude_expsyms_CXX \
  22969. include_expsyms_RC \
  22970. include_expsyms_CXX \
  22971. file_list_spec_RC \
  22972. file_list_spec_CXX \
  22973. compiler_lib_search_dirs_RC \
  22974. compiler_lib_search_dirs_CXX \
  22975. predep_objects_RC \
  22976. predep_objects_CXX \
  22977. postdep_objects_RC \
  22978. postdep_objects_CXX \
  22979. predeps_RC \
  22980. predeps_CXX \
  22981. postdeps_RC \
  22982. postdeps_CXX \
  22983. compiler_lib_search_path_RC \
  22984. compiler_lib_search_path_CXX; do
  22985. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22986. *[\\\\\\\`\\"\\\$]*)
  22987. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22988. ;;
  22989. *)
  22990. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22991. ;;
  22992. esac
  22993. done
  22994. # Double-quote double-evaled strings.
  22995. for var in reload_cmds \
  22996. old_postinstall_cmds \
  22997. old_postuninstall_cmds \
  22998. old_archive_cmds \
  22999. extract_expsyms_cmds \
  23000. old_archive_from_new_cmds \
  23001. old_archive_from_expsyms_cmds \
  23002. archive_cmds \
  23003. archive_expsym_cmds \
  23004. module_cmds \
  23005. module_expsym_cmds \
  23006. export_symbols_cmds \
  23007. prelink_cmds \
  23008. postlink_cmds \
  23009. postinstall_cmds \
  23010. postuninstall_cmds \
  23011. finish_cmds \
  23012. sys_lib_search_path_spec \
  23013. sys_lib_dlsearch_path_spec \
  23014. reload_cmds_RC \
  23015. reload_cmds_CXX \
  23016. old_archive_cmds_RC \
  23017. old_archive_cmds_CXX \
  23018. old_archive_from_new_cmds_RC \
  23019. old_archive_from_new_cmds_CXX \
  23020. old_archive_from_expsyms_cmds_RC \
  23021. old_archive_from_expsyms_cmds_CXX \
  23022. archive_cmds_RC \
  23023. archive_cmds_CXX \
  23024. archive_expsym_cmds_RC \
  23025. archive_expsym_cmds_CXX \
  23026. module_cmds_RC \
  23027. module_cmds_CXX \
  23028. module_expsym_cmds_RC \
  23029. module_expsym_cmds_CXX \
  23030. export_symbols_cmds_RC \
  23031. export_symbols_cmds_CXX \
  23032. prelink_cmds_RC \
  23033. prelink_cmds_CXX \
  23034. postlink_cmds_RC \
  23035. postlink_cmds_CXX; do
  23036. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23037. *[\\\\\\\`\\"\\\$]*)
  23038. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23039. ;;
  23040. *)
  23041. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23042. ;;
  23043. esac
  23044. done
  23045. ac_aux_dir='$ac_aux_dir'
  23046. xsi_shell='$xsi_shell'
  23047. lt_shell_append='$lt_shell_append'
  23048. # See if we are running on zsh, and set the options which allow our
  23049. # commands through without removal of \ escapes INIT.
  23050. if test -n "\${ZSH_VERSION+set}" ; then
  23051. setopt NO_GLOB_SUBST
  23052. fi
  23053. PACKAGE='$PACKAGE'
  23054. VERSION='$VERSION'
  23055. TIMESTAMP='$TIMESTAMP'
  23056. RM='$RM'
  23057. ofile='$ofile'
  23058. SUMMARY="$SUMMARY"
  23059. _ACEOF
  23060. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23061. # Handling of arguments.
  23062. for ac_config_target in $ac_config_targets
  23063. do
  23064. case $ac_config_target in
  23065. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23066. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23067. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23068. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23069. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23070. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23071. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23072. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23073. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23074. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23075. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23076. esac
  23077. done
  23078. # If the user did not use the arguments to specify the items to instantiate,
  23079. # then the envvar interface is used. Set only those that are not.
  23080. # We use the long form for the default assignment because of an extremely
  23081. # bizarre bug on SunOS 4.1.3.
  23082. if $ac_need_defaults; then
  23083. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23084. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23085. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23086. fi
  23087. # Have a temporary directory for convenience. Make it in the build tree
  23088. # simply because there is no reason against having it here, and in addition,
  23089. # creating and moving files from /tmp can sometimes cause problems.
  23090. # Hook for its removal unless debugging.
  23091. # Note that there is a small window in which the directory will not be cleaned:
  23092. # after its creation but before its name has been assigned to `$tmp'.
  23093. $debug ||
  23094. {
  23095. tmp= ac_tmp=
  23096. trap 'exit_status=$?
  23097. : "${ac_tmp:=$tmp}"
  23098. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23099. ' 0
  23100. trap 'as_fn_exit 1' 1 2 13 15
  23101. }
  23102. # Create a (secure) tmp directory for tmp files.
  23103. {
  23104. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23105. test -d "$tmp"
  23106. } ||
  23107. {
  23108. tmp=./conf$$-$RANDOM
  23109. (umask 077 && mkdir "$tmp")
  23110. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23111. ac_tmp=$tmp
  23112. # Set up the scripts for CONFIG_FILES section.
  23113. # No need to generate them if there are no CONFIG_FILES.
  23114. # This happens for instance with `./config.status config.h'.
  23115. if test -n "$CONFIG_FILES"; then
  23116. ac_cr=`echo X | tr X '\015'`
  23117. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23118. # But we know of no other shell where ac_cr would be empty at this
  23119. # point, so we can use a bashism as a fallback.
  23120. if test "x$ac_cr" = x; then
  23121. eval ac_cr=\$\'\\r\'
  23122. fi
  23123. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23124. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23125. ac_cs_awk_cr='\\r'
  23126. else
  23127. ac_cs_awk_cr=$ac_cr
  23128. fi
  23129. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23130. _ACEOF
  23131. {
  23132. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23133. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23134. echo "_ACEOF"
  23135. } >conf$$subs.sh ||
  23136. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23137. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23138. ac_delim='%!_!# '
  23139. for ac_last_try in false false false false false :; do
  23140. . ./conf$$subs.sh ||
  23141. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23142. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23143. if test $ac_delim_n = $ac_delim_num; then
  23144. break
  23145. elif $ac_last_try; then
  23146. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23147. else
  23148. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23149. fi
  23150. done
  23151. rm -f conf$$subs.sh
  23152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23153. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23154. _ACEOF
  23155. sed -n '
  23156. h
  23157. s/^/S["/; s/!.*/"]=/
  23158. p
  23159. g
  23160. s/^[^!]*!//
  23161. :repl
  23162. t repl
  23163. s/'"$ac_delim"'$//
  23164. t delim
  23165. :nl
  23166. h
  23167. s/\(.\{148\}\)..*/\1/
  23168. t more1
  23169. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23170. p
  23171. n
  23172. b repl
  23173. :more1
  23174. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23175. p
  23176. g
  23177. s/.\{148\}//
  23178. t nl
  23179. :delim
  23180. h
  23181. s/\(.\{148\}\)..*/\1/
  23182. t more2
  23183. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23184. p
  23185. b
  23186. :more2
  23187. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23188. p
  23189. g
  23190. s/.\{148\}//
  23191. t delim
  23192. ' <conf$$subs.awk | sed '
  23193. /^[^""]/{
  23194. N
  23195. s/\n//
  23196. }
  23197. ' >>$CONFIG_STATUS || ac_write_fail=1
  23198. rm -f conf$$subs.awk
  23199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23200. _ACAWK
  23201. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23202. for (key in S) S_is_set[key] = 1
  23203. FS = ""
  23204. }
  23205. {
  23206. line = $ 0
  23207. nfields = split(line, field, "@")
  23208. substed = 0
  23209. len = length(field[1])
  23210. for (i = 2; i < nfields; i++) {
  23211. key = field[i]
  23212. keylen = length(key)
  23213. if (S_is_set[key]) {
  23214. value = S[key]
  23215. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23216. len += length(value) + length(field[++i])
  23217. substed = 1
  23218. } else
  23219. len += 1 + keylen
  23220. }
  23221. print line
  23222. }
  23223. _ACAWK
  23224. _ACEOF
  23225. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23226. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23227. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23228. else
  23229. cat
  23230. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23231. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23232. _ACEOF
  23233. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23234. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23235. # trailing colons and then remove the whole line if VPATH becomes empty
  23236. # (actually we leave an empty line to preserve line numbers).
  23237. if test "x$srcdir" = x.; then
  23238. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23239. h
  23240. s///
  23241. s/^/:/
  23242. s/[ ]*$/:/
  23243. s/:\$(srcdir):/:/g
  23244. s/:\${srcdir}:/:/g
  23245. s/:@srcdir@:/:/g
  23246. s/^:*//
  23247. s/:*$//
  23248. x
  23249. s/\(=[ ]*\).*/\1/
  23250. G
  23251. s/\n//
  23252. s/^[^=]*=[ ]*$//
  23253. }'
  23254. fi
  23255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23256. fi # test -n "$CONFIG_FILES"
  23257. # Set up the scripts for CONFIG_HEADERS section.
  23258. # No need to generate them if there are no CONFIG_HEADERS.
  23259. # This happens for instance with `./config.status Makefile'.
  23260. if test -n "$CONFIG_HEADERS"; then
  23261. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23262. BEGIN {
  23263. _ACEOF
  23264. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23265. # here-document in config.status, that substitutes the proper values into
  23266. # config.h.in to produce config.h.
  23267. # Create a delimiter string that does not exist in confdefs.h, to ease
  23268. # handling of long lines.
  23269. ac_delim='%!_!# '
  23270. for ac_last_try in false false :; do
  23271. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23272. if test -z "$ac_tt"; then
  23273. break
  23274. elif $ac_last_try; then
  23275. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23276. else
  23277. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23278. fi
  23279. done
  23280. # For the awk script, D is an array of macro values keyed by name,
  23281. # likewise P contains macro parameters if any. Preserve backslash
  23282. # newline sequences.
  23283. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23284. sed -n '
  23285. s/.\{148\}/&'"$ac_delim"'/g
  23286. t rset
  23287. :rset
  23288. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23289. t def
  23290. d
  23291. :def
  23292. s/\\$//
  23293. t bsnl
  23294. s/["\\]/\\&/g
  23295. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23296. D["\1"]=" \3"/p
  23297. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23298. d
  23299. :bsnl
  23300. s/["\\]/\\&/g
  23301. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23302. D["\1"]=" \3\\\\\\n"\\/p
  23303. t cont
  23304. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23305. t cont
  23306. d
  23307. :cont
  23308. n
  23309. s/.\{148\}/&'"$ac_delim"'/g
  23310. t clear
  23311. :clear
  23312. s/\\$//
  23313. t bsnlc
  23314. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23315. d
  23316. :bsnlc
  23317. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23318. b cont
  23319. ' <confdefs.h | sed '
  23320. s/'"$ac_delim"'/"\\\
  23321. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23323. for (key in D) D_is_set[key] = 1
  23324. FS = ""
  23325. }
  23326. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23327. line = \$ 0
  23328. split(line, arg, " ")
  23329. if (arg[1] == "#") {
  23330. defundef = arg[2]
  23331. mac1 = arg[3]
  23332. } else {
  23333. defundef = substr(arg[1], 2)
  23334. mac1 = arg[2]
  23335. }
  23336. split(mac1, mac2, "(") #)
  23337. macro = mac2[1]
  23338. prefix = substr(line, 1, index(line, defundef) - 1)
  23339. if (D_is_set[macro]) {
  23340. # Preserve the white space surrounding the "#".
  23341. print prefix "define", macro P[macro] D[macro]
  23342. next
  23343. } else {
  23344. # Replace #undef with comments. This is necessary, for example,
  23345. # in the case of _POSIX_SOURCE, which is predefined and required
  23346. # on some systems where configure will not decide to define it.
  23347. if (defundef == "undef") {
  23348. print "/*", prefix defundef, macro, "*/"
  23349. next
  23350. }
  23351. }
  23352. }
  23353. { print }
  23354. _ACAWK
  23355. _ACEOF
  23356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23357. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23358. fi # test -n "$CONFIG_HEADERS"
  23359. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23360. shift
  23361. for ac_tag
  23362. do
  23363. case $ac_tag in
  23364. :[FHLC]) ac_mode=$ac_tag; continue;;
  23365. esac
  23366. case $ac_mode$ac_tag in
  23367. :[FHL]*:*);;
  23368. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23369. :[FH]-) ac_tag=-:-;;
  23370. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23371. esac
  23372. ac_save_IFS=$IFS
  23373. IFS=:
  23374. set x $ac_tag
  23375. IFS=$ac_save_IFS
  23376. shift
  23377. ac_file=$1
  23378. shift
  23379. case $ac_mode in
  23380. :L) ac_source=$1;;
  23381. :[FH])
  23382. ac_file_inputs=
  23383. for ac_f
  23384. do
  23385. case $ac_f in
  23386. -) ac_f="$ac_tmp/stdin";;
  23387. *) # Look for the file first in the build tree, then in the source tree
  23388. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23389. # because $ac_f cannot contain `:'.
  23390. test -f "$ac_f" ||
  23391. case $ac_f in
  23392. [\\/$]*) false;;
  23393. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23394. esac ||
  23395. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23396. esac
  23397. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23398. as_fn_append ac_file_inputs " '$ac_f'"
  23399. done
  23400. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23401. # use $as_me), people would be surprised to read:
  23402. # /* config.h. Generated by config.status. */
  23403. configure_input='Generated from '`
  23404. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23405. `' by configure.'
  23406. if test x"$ac_file" != x-; then
  23407. configure_input="$ac_file. $configure_input"
  23408. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23409. $as_echo "$as_me: creating $ac_file" >&6;}
  23410. fi
  23411. # Neutralize special characters interpreted by sed in replacement strings.
  23412. case $configure_input in #(
  23413. *\&* | *\|* | *\\* )
  23414. ac_sed_conf_input=`$as_echo "$configure_input" |
  23415. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23416. *) ac_sed_conf_input=$configure_input;;
  23417. esac
  23418. case $ac_tag in
  23419. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23420. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23421. esac
  23422. ;;
  23423. esac
  23424. ac_dir=`$as_dirname -- "$ac_file" ||
  23425. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23426. X"$ac_file" : 'X\(//\)[^/]' \| \
  23427. X"$ac_file" : 'X\(//\)$' \| \
  23428. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23429. $as_echo X"$ac_file" |
  23430. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23431. s//\1/
  23432. q
  23433. }
  23434. /^X\(\/\/\)[^/].*/{
  23435. s//\1/
  23436. q
  23437. }
  23438. /^X\(\/\/\)$/{
  23439. s//\1/
  23440. q
  23441. }
  23442. /^X\(\/\).*/{
  23443. s//\1/
  23444. q
  23445. }
  23446. s/.*/./; q'`
  23447. as_dir="$ac_dir"; as_fn_mkdir_p
  23448. ac_builddir=.
  23449. case "$ac_dir" in
  23450. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23451. *)
  23452. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23453. # A ".." for each directory in $ac_dir_suffix.
  23454. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23455. case $ac_top_builddir_sub in
  23456. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23457. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23458. esac ;;
  23459. esac
  23460. ac_abs_top_builddir=$ac_pwd
  23461. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23462. # for backward compatibility:
  23463. ac_top_builddir=$ac_top_build_prefix
  23464. case $srcdir in
  23465. .) # We are building in place.
  23466. ac_srcdir=.
  23467. ac_top_srcdir=$ac_top_builddir_sub
  23468. ac_abs_top_srcdir=$ac_pwd ;;
  23469. [\\/]* | ?:[\\/]* ) # Absolute name.
  23470. ac_srcdir=$srcdir$ac_dir_suffix;
  23471. ac_top_srcdir=$srcdir
  23472. ac_abs_top_srcdir=$srcdir ;;
  23473. *) # Relative name.
  23474. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23475. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23476. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23477. esac
  23478. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23479. case $ac_mode in
  23480. :F)
  23481. #
  23482. # CONFIG_FILE
  23483. #
  23484. case $INSTALL in
  23485. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23486. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23487. esac
  23488. _ACEOF
  23489. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23490. # If the template does not know about datarootdir, expand it.
  23491. # FIXME: This hack should be removed a few years after 2.60.
  23492. ac_datarootdir_hack=; ac_datarootdir_seen=
  23493. ac_sed_dataroot='
  23494. /datarootdir/ {
  23495. p
  23496. q
  23497. }
  23498. /@datadir@/p
  23499. /@docdir@/p
  23500. /@infodir@/p
  23501. /@localedir@/p
  23502. /@mandir@/p'
  23503. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23504. *datarootdir*) ac_datarootdir_seen=yes;;
  23505. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23507. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23508. _ACEOF
  23509. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23510. ac_datarootdir_hack='
  23511. s&@datadir@&$datadir&g
  23512. s&@docdir@&$docdir&g
  23513. s&@infodir@&$infodir&g
  23514. s&@localedir@&$localedir&g
  23515. s&@mandir@&$mandir&g
  23516. s&\\\${datarootdir}&$datarootdir&g' ;;
  23517. esac
  23518. _ACEOF
  23519. # Neutralize VPATH when `$srcdir' = `.'.
  23520. # Shell code in configure.ac might set extrasub.
  23521. # FIXME: do we really want to maintain this feature?
  23522. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23523. ac_sed_extra="$ac_vpsub
  23524. $extrasub
  23525. _ACEOF
  23526. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23527. :t
  23528. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23529. s|@configure_input@|$ac_sed_conf_input|;t t
  23530. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23531. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23532. s&@srcdir@&$ac_srcdir&;t t
  23533. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23534. s&@top_srcdir@&$ac_top_srcdir&;t t
  23535. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23536. s&@builddir@&$ac_builddir&;t t
  23537. s&@abs_builddir@&$ac_abs_builddir&;t t
  23538. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23539. s&@INSTALL@&$ac_INSTALL&;t t
  23540. $ac_datarootdir_hack
  23541. "
  23542. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23543. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23544. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23545. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23546. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23547. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23549. which seems to be undefined. Please make sure it is defined" >&5
  23550. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23551. which seems to be undefined. Please make sure it is defined" >&2;}
  23552. rm -f "$ac_tmp/stdin"
  23553. case $ac_file in
  23554. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23555. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23556. esac \
  23557. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23558. ;;
  23559. :H)
  23560. #
  23561. # CONFIG_HEADER
  23562. #
  23563. if test x"$ac_file" != x-; then
  23564. {
  23565. $as_echo "/* $configure_input */" \
  23566. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23567. } >"$ac_tmp/config.h" \
  23568. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23569. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23570. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23571. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23572. else
  23573. rm -f "$ac_file"
  23574. mv "$ac_tmp/config.h" "$ac_file" \
  23575. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23576. fi
  23577. else
  23578. $as_echo "/* $configure_input */" \
  23579. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23580. || as_fn_error $? "could not create -" "$LINENO" 5
  23581. fi
  23582. ;;
  23583. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23584. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23585. ;;
  23586. esac
  23587. case $ac_file$ac_mode in
  23588. "libtool":C)
  23589. # See if we are running on zsh, and set the options which allow our
  23590. # commands through without removal of \ escapes.
  23591. if test -n "${ZSH_VERSION+set}" ; then
  23592. setopt NO_GLOB_SUBST
  23593. fi
  23594. cfgfile="${ofile}T"
  23595. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23596. $RM "$cfgfile"
  23597. cat <<_LT_EOF >> "$cfgfile"
  23598. #! $SHELL
  23599. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23600. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23601. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23602. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23603. #
  23604. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23605. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23606. # Foundation, Inc.
  23607. # Written by Gordon Matzigkeit, 1996
  23608. #
  23609. # This file is part of GNU Libtool.
  23610. #
  23611. # GNU Libtool is free software; you can redistribute it and/or
  23612. # modify it under the terms of the GNU General Public License as
  23613. # published by the Free Software Foundation; either version 2 of
  23614. # the License, or (at your option) any later version.
  23615. #
  23616. # As a special exception to the GNU General Public License,
  23617. # if you distribute this file as part of a program or library that
  23618. # is built using GNU Libtool, you may include this file under the
  23619. # same distribution terms that you use for the rest of that program.
  23620. #
  23621. # GNU Libtool is distributed in the hope that it will be useful,
  23622. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23623. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23624. # GNU General Public License for more details.
  23625. #
  23626. # You should have received a copy of the GNU General Public License
  23627. # along with GNU Libtool; see the file COPYING. If not, a copy
  23628. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23629. # obtained by writing to the Free Software Foundation, Inc.,
  23630. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23631. # The names of the tagged configurations supported by this script.
  23632. available_tags="RC CXX "
  23633. # ### BEGIN LIBTOOL CONFIG
  23634. # Which release of libtool.m4 was used?
  23635. macro_version=$macro_version
  23636. macro_revision=$macro_revision
  23637. # Assembler program.
  23638. AS=$lt_AS
  23639. # DLL creation program.
  23640. DLLTOOL=$lt_DLLTOOL
  23641. # Object dumper program.
  23642. OBJDUMP=$lt_OBJDUMP
  23643. # Whether or not to build shared libraries.
  23644. build_libtool_libs=$enable_shared
  23645. # Whether or not to build static libraries.
  23646. build_old_libs=$enable_static
  23647. # What type of objects to build.
  23648. pic_mode=$pic_mode
  23649. # Whether or not to optimize for fast installation.
  23650. fast_install=$enable_fast_install
  23651. # Shell to use when invoking shell scripts.
  23652. SHELL=$lt_SHELL
  23653. # An echo program that protects backslashes.
  23654. ECHO=$lt_ECHO
  23655. # The PATH separator for the build system.
  23656. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23657. # The host system.
  23658. host_alias=$host_alias
  23659. host=$host
  23660. host_os=$host_os
  23661. # The build system.
  23662. build_alias=$build_alias
  23663. build=$build
  23664. build_os=$build_os
  23665. # A sed program that does not truncate output.
  23666. SED=$lt_SED
  23667. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23668. Xsed="\$SED -e 1s/^X//"
  23669. # A grep program that handles long lines.
  23670. GREP=$lt_GREP
  23671. # An ERE matcher.
  23672. EGREP=$lt_EGREP
  23673. # A literal string matcher.
  23674. FGREP=$lt_FGREP
  23675. # A BSD- or MS-compatible name lister.
  23676. NM=$lt_NM
  23677. # Whether we need soft or hard links.
  23678. LN_S=$lt_LN_S
  23679. # What is the maximum length of a command?
  23680. max_cmd_len=$max_cmd_len
  23681. # Object file suffix (normally "o").
  23682. objext=$ac_objext
  23683. # Executable file suffix (normally "").
  23684. exeext=$exeext
  23685. # whether the shell understands "unset".
  23686. lt_unset=$lt_unset
  23687. # turn spaces into newlines.
  23688. SP2NL=$lt_lt_SP2NL
  23689. # turn newlines into spaces.
  23690. NL2SP=$lt_lt_NL2SP
  23691. # convert \$build file names to \$host format.
  23692. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23693. # convert \$build files to toolchain format.
  23694. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23695. # Method to check whether dependent libraries are shared objects.
  23696. deplibs_check_method=$lt_deplibs_check_method
  23697. # Command to use when deplibs_check_method = "file_magic".
  23698. file_magic_cmd=$lt_file_magic_cmd
  23699. # How to find potential files when deplibs_check_method = "file_magic".
  23700. file_magic_glob=$lt_file_magic_glob
  23701. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23702. want_nocaseglob=$lt_want_nocaseglob
  23703. # Command to associate shared and link libraries.
  23704. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23705. # The archiver.
  23706. AR=$lt_AR
  23707. # Flags to create an archive.
  23708. AR_FLAGS=$lt_AR_FLAGS
  23709. # How to feed a file listing to the archiver.
  23710. archiver_list_spec=$lt_archiver_list_spec
  23711. # A symbol stripping program.
  23712. STRIP=$lt_STRIP
  23713. # Commands used to install an old-style archive.
  23714. RANLIB=$lt_RANLIB
  23715. old_postinstall_cmds=$lt_old_postinstall_cmds
  23716. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23717. # Whether to use a lock for old archive extraction.
  23718. lock_old_archive_extraction=$lock_old_archive_extraction
  23719. # A C compiler.
  23720. LTCC=$lt_CC
  23721. # LTCC compiler flags.
  23722. LTCFLAGS=$lt_CFLAGS
  23723. # Take the output of nm and produce a listing of raw symbols and C names.
  23724. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23725. # Transform the output of nm in a proper C declaration.
  23726. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23727. # Transform the output of nm in a C name address pair.
  23728. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23729. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23730. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23731. # Specify filename containing input files for \$NM.
  23732. nm_file_list_spec=$lt_nm_file_list_spec
  23733. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23734. lt_sysroot=$lt_sysroot
  23735. # The name of the directory that contains temporary libtool files.
  23736. objdir=$objdir
  23737. # Used to examine libraries when file_magic_cmd begins with "file".
  23738. MAGIC_CMD=$MAGIC_CMD
  23739. # Must we lock files when doing compilation?
  23740. need_locks=$lt_need_locks
  23741. # Manifest tool.
  23742. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23743. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23744. DSYMUTIL=$lt_DSYMUTIL
  23745. # Tool to change global to local symbols on Mac OS X.
  23746. NMEDIT=$lt_NMEDIT
  23747. # Tool to manipulate fat objects and archives on Mac OS X.
  23748. LIPO=$lt_LIPO
  23749. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23750. OTOOL=$lt_OTOOL
  23751. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23752. OTOOL64=$lt_OTOOL64
  23753. # Old archive suffix (normally "a").
  23754. libext=$libext
  23755. # Shared library suffix (normally ".so").
  23756. shrext_cmds=$lt_shrext_cmds
  23757. # The commands to extract the exported symbol list from a shared archive.
  23758. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23759. # Variables whose values should be saved in libtool wrapper scripts and
  23760. # restored at link time.
  23761. variables_saved_for_relink=$lt_variables_saved_for_relink
  23762. # Do we need the "lib" prefix for modules?
  23763. need_lib_prefix=$need_lib_prefix
  23764. # Do we need a version for libraries?
  23765. need_version=$need_version
  23766. # Library versioning type.
  23767. version_type=$version_type
  23768. # Shared library runtime path variable.
  23769. runpath_var=$runpath_var
  23770. # Shared library path variable.
  23771. shlibpath_var=$shlibpath_var
  23772. # Is shlibpath searched before the hard-coded library search path?
  23773. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23774. # Format of library name prefix.
  23775. libname_spec=$lt_libname_spec
  23776. # List of archive names. First name is the real one, the rest are links.
  23777. # The last name is the one that the linker finds with -lNAME
  23778. library_names_spec=$lt_library_names_spec
  23779. # The coded name of the library, if different from the real name.
  23780. soname_spec=$lt_soname_spec
  23781. # Permission mode override for installation of shared libraries.
  23782. install_override_mode=$lt_install_override_mode
  23783. # Command to use after installation of a shared archive.
  23784. postinstall_cmds=$lt_postinstall_cmds
  23785. # Command to use after uninstallation of a shared archive.
  23786. postuninstall_cmds=$lt_postuninstall_cmds
  23787. # Commands used to finish a libtool library installation in a directory.
  23788. finish_cmds=$lt_finish_cmds
  23789. # As "finish_cmds", except a single script fragment to be evaled but
  23790. # not shown.
  23791. finish_eval=$lt_finish_eval
  23792. # Whether we should hardcode library paths into libraries.
  23793. hardcode_into_libs=$hardcode_into_libs
  23794. # Compile-time system search path for libraries.
  23795. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23796. # Run-time system search path for libraries.
  23797. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23798. # Whether dlopen is supported.
  23799. dlopen_support=$enable_dlopen
  23800. # Whether dlopen of programs is supported.
  23801. dlopen_self=$enable_dlopen_self
  23802. # Whether dlopen of statically linked programs is supported.
  23803. dlopen_self_static=$enable_dlopen_self_static
  23804. # Commands to strip libraries.
  23805. old_striplib=$lt_old_striplib
  23806. striplib=$lt_striplib
  23807. # The linker used to build libraries.
  23808. LD=$lt_LD
  23809. # How to create reloadable object files.
  23810. reload_flag=$lt_reload_flag
  23811. reload_cmds=$lt_reload_cmds
  23812. # Commands used to build an old-style archive.
  23813. old_archive_cmds=$lt_old_archive_cmds
  23814. # A language specific compiler.
  23815. CC=$lt_compiler
  23816. # Is the compiler the GNU compiler?
  23817. with_gcc=$GCC
  23818. # Compiler flag to turn off builtin functions.
  23819. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23820. # Additional compiler flags for building library objects.
  23821. pic_flag=$lt_lt_prog_compiler_pic
  23822. # How to pass a linker flag through the compiler.
  23823. wl=$lt_lt_prog_compiler_wl
  23824. # Compiler flag to prevent dynamic linking.
  23825. link_static_flag=$lt_lt_prog_compiler_static
  23826. # Does compiler simultaneously support -c and -o options?
  23827. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23828. # Whether or not to add -lc for building shared libraries.
  23829. build_libtool_need_lc=$archive_cmds_need_lc
  23830. # Whether or not to disallow shared libs when runtime libs are static.
  23831. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23832. # Compiler flag to allow reflexive dlopens.
  23833. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23834. # Compiler flag to generate shared objects directly from archives.
  23835. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23836. # Whether the compiler copes with passing no objects directly.
  23837. compiler_needs_object=$lt_compiler_needs_object
  23838. # Create an old-style archive from a shared archive.
  23839. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23840. # Create a temporary old-style archive to link instead of a shared archive.
  23841. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23842. # Commands used to build a shared archive.
  23843. archive_cmds=$lt_archive_cmds
  23844. archive_expsym_cmds=$lt_archive_expsym_cmds
  23845. # Commands used to build a loadable module if different from building
  23846. # a shared archive.
  23847. module_cmds=$lt_module_cmds
  23848. module_expsym_cmds=$lt_module_expsym_cmds
  23849. # Whether we are building with GNU ld or not.
  23850. with_gnu_ld=$lt_with_gnu_ld
  23851. # Flag that allows shared libraries with undefined symbols to be built.
  23852. allow_undefined_flag=$lt_allow_undefined_flag
  23853. # Flag that enforces no undefined symbols.
  23854. no_undefined_flag=$lt_no_undefined_flag
  23855. # Flag to hardcode \$libdir into a binary during linking.
  23856. # This must work even if \$libdir does not exist
  23857. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23858. # Whether we need a single "-rpath" flag with a separated argument.
  23859. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23860. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23861. # DIR into the resulting binary.
  23862. hardcode_direct=$hardcode_direct
  23863. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23864. # DIR into the resulting binary and the resulting library dependency is
  23865. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23866. # library is relocated.
  23867. hardcode_direct_absolute=$hardcode_direct_absolute
  23868. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23869. # into the resulting binary.
  23870. hardcode_minus_L=$hardcode_minus_L
  23871. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23872. # into the resulting binary.
  23873. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23874. # Set to "yes" if building a shared library automatically hardcodes DIR
  23875. # into the library and all subsequent libraries and executables linked
  23876. # against it.
  23877. hardcode_automatic=$hardcode_automatic
  23878. # Set to yes if linker adds runtime paths of dependent libraries
  23879. # to runtime path list.
  23880. inherit_rpath=$inherit_rpath
  23881. # Whether libtool must link a program against all its dependency libraries.
  23882. link_all_deplibs=$link_all_deplibs
  23883. # Set to "yes" if exported symbols are required.
  23884. always_export_symbols=$always_export_symbols
  23885. # The commands to list exported symbols.
  23886. export_symbols_cmds=$lt_export_symbols_cmds
  23887. # Symbols that should not be listed in the preloaded symbols.
  23888. exclude_expsyms=$lt_exclude_expsyms
  23889. # Symbols that must always be exported.
  23890. include_expsyms=$lt_include_expsyms
  23891. # Commands necessary for linking programs (against libraries) with templates.
  23892. prelink_cmds=$lt_prelink_cmds
  23893. # Commands necessary for finishing linking programs.
  23894. postlink_cmds=$lt_postlink_cmds
  23895. # Specify filename containing input files.
  23896. file_list_spec=$lt_file_list_spec
  23897. # How to hardcode a shared library path into an executable.
  23898. hardcode_action=$hardcode_action
  23899. # The directories searched by this compiler when creating a shared library.
  23900. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23901. # Dependencies to place before and after the objects being linked to
  23902. # create a shared library.
  23903. predep_objects=$lt_predep_objects
  23904. postdep_objects=$lt_postdep_objects
  23905. predeps=$lt_predeps
  23906. postdeps=$lt_postdeps
  23907. # The library search path used internally by the compiler when linking
  23908. # a shared library.
  23909. compiler_lib_search_path=$lt_compiler_lib_search_path
  23910. # ### END LIBTOOL CONFIG
  23911. _LT_EOF
  23912. case $host_os in
  23913. aix3*)
  23914. cat <<\_LT_EOF >> "$cfgfile"
  23915. # AIX sometimes has problems with the GCC collect2 program. For some
  23916. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23917. # vanish in a puff of smoke.
  23918. if test "X${COLLECT_NAMES+set}" != Xset; then
  23919. COLLECT_NAMES=
  23920. export COLLECT_NAMES
  23921. fi
  23922. _LT_EOF
  23923. ;;
  23924. esac
  23925. ltmain="$ac_aux_dir/ltmain.sh"
  23926. # We use sed instead of cat because bash on DJGPP gets confused if
  23927. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23928. # text mode, it properly converts lines to CR/LF. This bash problem
  23929. # is reportedly fixed, but why not run on old versions too?
  23930. sed '$q' "$ltmain" >> "$cfgfile" \
  23931. || (rm -f "$cfgfile"; exit 1)
  23932. if test x"$xsi_shell" = xyes; then
  23933. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23934. func_dirname ()\
  23935. {\
  23936. \ case ${1} in\
  23937. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23938. \ * ) func_dirname_result="${3}" ;;\
  23939. \ esac\
  23940. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23941. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23942. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23943. test 0 -eq $? || _lt_function_replace_fail=:
  23944. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23945. func_basename ()\
  23946. {\
  23947. \ func_basename_result="${1##*/}"\
  23948. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23949. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23950. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23951. test 0 -eq $? || _lt_function_replace_fail=:
  23952. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23953. func_dirname_and_basename ()\
  23954. {\
  23955. \ case ${1} in\
  23956. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23957. \ * ) func_dirname_result="${3}" ;;\
  23958. \ esac\
  23959. \ func_basename_result="${1##*/}"\
  23960. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23961. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23962. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23963. test 0 -eq $? || _lt_function_replace_fail=:
  23964. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23965. func_stripname ()\
  23966. {\
  23967. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23968. \ # positional parameters, so assign one to ordinary parameter first.\
  23969. \ func_stripname_result=${3}\
  23970. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23971. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23972. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23973. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23974. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23975. test 0 -eq $? || _lt_function_replace_fail=:
  23976. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23977. func_split_long_opt ()\
  23978. {\
  23979. \ func_split_long_opt_name=${1%%=*}\
  23980. \ func_split_long_opt_arg=${1#*=}\
  23981. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23982. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23983. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23984. test 0 -eq $? || _lt_function_replace_fail=:
  23985. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23986. func_split_short_opt ()\
  23987. {\
  23988. \ func_split_short_opt_arg=${1#??}\
  23989. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23990. } # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\
  23995. func_lo2o ()\
  23996. {\
  23997. \ case ${1} in\
  23998. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23999. \ *) func_lo2o_result=${1} ;;\
  24000. \ esac\
  24001. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24002. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24003. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24004. test 0 -eq $? || _lt_function_replace_fail=:
  24005. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24006. func_xform ()\
  24007. {\
  24008. func_xform_result=${1%.*}.lo\
  24009. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24010. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24011. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24012. test 0 -eq $? || _lt_function_replace_fail=:
  24013. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24014. func_arith ()\
  24015. {\
  24016. func_arith_result=$(( $* ))\
  24017. } # Extended-shell func_arith 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. sed -e '/^func_len ()$/,/^} # func_len /c\
  24022. func_len ()\
  24023. {\
  24024. func_len_result=${#1}\
  24025. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24026. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24027. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24028. test 0 -eq $? || _lt_function_replace_fail=:
  24029. fi
  24030. if test x"$lt_shell_append" = xyes; then
  24031. sed -e '/^func_append ()$/,/^} # func_append /c\
  24032. func_append ()\
  24033. {\
  24034. eval "${1}+=\\${2}"\
  24035. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24036. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24037. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24038. test 0 -eq $? || _lt_function_replace_fail=:
  24039. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24040. func_append_quoted ()\
  24041. {\
  24042. \ func_quote_for_eval "${2}"\
  24043. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24044. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24045. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24046. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24047. test 0 -eq $? || _lt_function_replace_fail=:
  24048. # Save a `func_append' function call where possible by direct use of '+='
  24049. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24050. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24051. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24052. test 0 -eq $? || _lt_function_replace_fail=:
  24053. else
  24054. # Save a `func_append' function call even when '+=' is not available
  24055. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24056. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24057. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24058. test 0 -eq $? || _lt_function_replace_fail=:
  24059. fi
  24060. if test x"$_lt_function_replace_fail" = x":"; then
  24061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24062. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24063. fi
  24064. mv -f "$cfgfile" "$ofile" ||
  24065. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24066. chmod +x "$ofile"
  24067. cat <<_LT_EOF >> "$ofile"
  24068. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24069. # The linker used to build libraries.
  24070. LD=$lt_LD_RC
  24071. # How to create reloadable object files.
  24072. reload_flag=$lt_reload_flag_RC
  24073. reload_cmds=$lt_reload_cmds_RC
  24074. # Commands used to build an old-style archive.
  24075. old_archive_cmds=$lt_old_archive_cmds_RC
  24076. # A language specific compiler.
  24077. CC=$lt_compiler_RC
  24078. # Is the compiler the GNU compiler?
  24079. with_gcc=$GCC_RC
  24080. # Compiler flag to turn off builtin functions.
  24081. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24082. # Additional compiler flags for building library objects.
  24083. pic_flag=$lt_lt_prog_compiler_pic_RC
  24084. # How to pass a linker flag through the compiler.
  24085. wl=$lt_lt_prog_compiler_wl_RC
  24086. # Compiler flag to prevent dynamic linking.
  24087. link_static_flag=$lt_lt_prog_compiler_static_RC
  24088. # Does compiler simultaneously support -c and -o options?
  24089. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24090. # Whether or not to add -lc for building shared libraries.
  24091. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24092. # Whether or not to disallow shared libs when runtime libs are static.
  24093. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24094. # Compiler flag to allow reflexive dlopens.
  24095. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24096. # Compiler flag to generate shared objects directly from archives.
  24097. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24098. # Whether the compiler copes with passing no objects directly.
  24099. compiler_needs_object=$lt_compiler_needs_object_RC
  24100. # Create an old-style archive from a shared archive.
  24101. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24102. # Create a temporary old-style archive to link instead of a shared archive.
  24103. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24104. # Commands used to build a shared archive.
  24105. archive_cmds=$lt_archive_cmds_RC
  24106. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24107. # Commands used to build a loadable module if different from building
  24108. # a shared archive.
  24109. module_cmds=$lt_module_cmds_RC
  24110. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24111. # Whether we are building with GNU ld or not.
  24112. with_gnu_ld=$lt_with_gnu_ld_RC
  24113. # Flag that allows shared libraries with undefined symbols to be built.
  24114. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24115. # Flag that enforces no undefined symbols.
  24116. no_undefined_flag=$lt_no_undefined_flag_RC
  24117. # Flag to hardcode \$libdir into a binary during linking.
  24118. # This must work even if \$libdir does not exist
  24119. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24120. # Whether we need a single "-rpath" flag with a separated argument.
  24121. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24122. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24123. # DIR into the resulting binary.
  24124. hardcode_direct=$hardcode_direct_RC
  24125. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24126. # DIR into the resulting binary and the resulting library dependency is
  24127. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24128. # library is relocated.
  24129. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24130. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24131. # into the resulting binary.
  24132. hardcode_minus_L=$hardcode_minus_L_RC
  24133. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24134. # into the resulting binary.
  24135. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24136. # Set to "yes" if building a shared library automatically hardcodes DIR
  24137. # into the library and all subsequent libraries and executables linked
  24138. # against it.
  24139. hardcode_automatic=$hardcode_automatic_RC
  24140. # Set to yes if linker adds runtime paths of dependent libraries
  24141. # to runtime path list.
  24142. inherit_rpath=$inherit_rpath_RC
  24143. # Whether libtool must link a program against all its dependency libraries.
  24144. link_all_deplibs=$link_all_deplibs_RC
  24145. # Set to "yes" if exported symbols are required.
  24146. always_export_symbols=$always_export_symbols_RC
  24147. # The commands to list exported symbols.
  24148. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24149. # Symbols that should not be listed in the preloaded symbols.
  24150. exclude_expsyms=$lt_exclude_expsyms_RC
  24151. # Symbols that must always be exported.
  24152. include_expsyms=$lt_include_expsyms_RC
  24153. # Commands necessary for linking programs (against libraries) with templates.
  24154. prelink_cmds=$lt_prelink_cmds_RC
  24155. # Commands necessary for finishing linking programs.
  24156. postlink_cmds=$lt_postlink_cmds_RC
  24157. # Specify filename containing input files.
  24158. file_list_spec=$lt_file_list_spec_RC
  24159. # How to hardcode a shared library path into an executable.
  24160. hardcode_action=$hardcode_action_RC
  24161. # The directories searched by this compiler when creating a shared library.
  24162. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24163. # Dependencies to place before and after the objects being linked to
  24164. # create a shared library.
  24165. predep_objects=$lt_predep_objects_RC
  24166. postdep_objects=$lt_postdep_objects_RC
  24167. predeps=$lt_predeps_RC
  24168. postdeps=$lt_postdeps_RC
  24169. # The library search path used internally by the compiler when linking
  24170. # a shared library.
  24171. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24172. # ### END LIBTOOL TAG CONFIG: RC
  24173. _LT_EOF
  24174. cat <<_LT_EOF >> "$ofile"
  24175. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24176. # The linker used to build libraries.
  24177. LD=$lt_LD_CXX
  24178. # How to create reloadable object files.
  24179. reload_flag=$lt_reload_flag_CXX
  24180. reload_cmds=$lt_reload_cmds_CXX
  24181. # Commands used to build an old-style archive.
  24182. old_archive_cmds=$lt_old_archive_cmds_CXX
  24183. # A language specific compiler.
  24184. CC=$lt_compiler_CXX
  24185. # Is the compiler the GNU compiler?
  24186. with_gcc=$GCC_CXX
  24187. # Compiler flag to turn off builtin functions.
  24188. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24189. # Additional compiler flags for building library objects.
  24190. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24191. # How to pass a linker flag through the compiler.
  24192. wl=$lt_lt_prog_compiler_wl_CXX
  24193. # Compiler flag to prevent dynamic linking.
  24194. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24195. # Does compiler simultaneously support -c and -o options?
  24196. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24197. # Whether or not to add -lc for building shared libraries.
  24198. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24199. # Whether or not to disallow shared libs when runtime libs are static.
  24200. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24201. # Compiler flag to allow reflexive dlopens.
  24202. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24203. # Compiler flag to generate shared objects directly from archives.
  24204. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24205. # Whether the compiler copes with passing no objects directly.
  24206. compiler_needs_object=$lt_compiler_needs_object_CXX
  24207. # Create an old-style archive from a shared archive.
  24208. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24209. # Create a temporary old-style archive to link instead of a shared archive.
  24210. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24211. # Commands used to build a shared archive.
  24212. archive_cmds=$lt_archive_cmds_CXX
  24213. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24214. # Commands used to build a loadable module if different from building
  24215. # a shared archive.
  24216. module_cmds=$lt_module_cmds_CXX
  24217. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24218. # Whether we are building with GNU ld or not.
  24219. with_gnu_ld=$lt_with_gnu_ld_CXX
  24220. # Flag that allows shared libraries with undefined symbols to be built.
  24221. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24222. # Flag that enforces no undefined symbols.
  24223. no_undefined_flag=$lt_no_undefined_flag_CXX
  24224. # Flag to hardcode \$libdir into a binary during linking.
  24225. # This must work even if \$libdir does not exist
  24226. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24227. # Whether we need a single "-rpath" flag with a separated argument.
  24228. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24229. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24230. # DIR into the resulting binary.
  24231. hardcode_direct=$hardcode_direct_CXX
  24232. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24233. # DIR into the resulting binary and the resulting library dependency is
  24234. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24235. # library is relocated.
  24236. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24237. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24238. # into the resulting binary.
  24239. hardcode_minus_L=$hardcode_minus_L_CXX
  24240. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24241. # into the resulting binary.
  24242. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24243. # Set to "yes" if building a shared library automatically hardcodes DIR
  24244. # into the library and all subsequent libraries and executables linked
  24245. # against it.
  24246. hardcode_automatic=$hardcode_automatic_CXX
  24247. # Set to yes if linker adds runtime paths of dependent libraries
  24248. # to runtime path list.
  24249. inherit_rpath=$inherit_rpath_CXX
  24250. # Whether libtool must link a program against all its dependency libraries.
  24251. link_all_deplibs=$link_all_deplibs_CXX
  24252. # Set to "yes" if exported symbols are required.
  24253. always_export_symbols=$always_export_symbols_CXX
  24254. # The commands to list exported symbols.
  24255. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24256. # Symbols that should not be listed in the preloaded symbols.
  24257. exclude_expsyms=$lt_exclude_expsyms_CXX
  24258. # Symbols that must always be exported.
  24259. include_expsyms=$lt_include_expsyms_CXX
  24260. # Commands necessary for linking programs (against libraries) with templates.
  24261. prelink_cmds=$lt_prelink_cmds_CXX
  24262. # Commands necessary for finishing linking programs.
  24263. postlink_cmds=$lt_postlink_cmds_CXX
  24264. # Specify filename containing input files.
  24265. file_list_spec=$lt_file_list_spec_CXX
  24266. # How to hardcode a shared library path into an executable.
  24267. hardcode_action=$hardcode_action_CXX
  24268. # The directories searched by this compiler when creating a shared library.
  24269. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24270. # Dependencies to place before and after the objects being linked to
  24271. # create a shared library.
  24272. predep_objects=$lt_predep_objects_CXX
  24273. postdep_objects=$lt_postdep_objects_CXX
  24274. predeps=$lt_predeps_CXX
  24275. postdeps=$lt_postdeps_CXX
  24276. # The library search path used internally by the compiler when linking
  24277. # a shared library.
  24278. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24279. # ### END LIBTOOL TAG CONFIG: CXX
  24280. _LT_EOF
  24281. ;;
  24282. "sdl2_config":C) chmod a+x sdl2-config ;;
  24283. "summary":C) echo -en "$SUMMARY" ;;
  24284. esac
  24285. done # for ac_tag
  24286. as_fn_exit 0
  24287. _ACEOF
  24288. ac_clean_files=$ac_clean_files_save
  24289. test $ac_write_fail = 0 ||
  24290. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24291. # configure is writing to config.log, and then calls config.status.
  24292. # config.status does its own redirection, appending to config.log.
  24293. # Unfortunately, on DOS this fails, as config.log is still kept open
  24294. # by configure, so config.status won't be able to write to it; its
  24295. # output is simply discarded. So we exec the FD to /dev/null,
  24296. # effectively closing config.log, so it can be properly (re)opened and
  24297. # appended to by config.status. When coming back to configure, we
  24298. # need to make the FD available again.
  24299. if test "$no_create" != yes; then
  24300. ac_cs_success=:
  24301. ac_config_status_args=
  24302. test "$silent" = yes &&
  24303. ac_config_status_args="$ac_config_status_args --quiet"
  24304. exec 5>/dev/null
  24305. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24306. exec 5>>config.log
  24307. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24308. # would make configure fail if this is the last instruction.
  24309. $ac_cs_success || as_fn_exit 1
  24310. fi
  24311. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24312. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24313. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24314. fi