configure 839 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675
  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. localstatedir
  720. sharedstatedir
  721. sysconfdir
  722. datadir
  723. datarootdir
  724. libexecdir
  725. sbindir
  726. bindir
  727. program_transform_name
  728. prefix
  729. exec_prefix
  730. PACKAGE_URL
  731. PACKAGE_BUGREPORT
  732. PACKAGE_STRING
  733. PACKAGE_VERSION
  734. PACKAGE_TARNAME
  735. PACKAGE_NAME
  736. PATH_SEPARATOR
  737. SHELL'
  738. ac_subst_files=''
  739. ac_user_opts='
  740. enable_option_checking
  741. enable_shared
  742. enable_static
  743. with_pic
  744. enable_fast_install
  745. with_gnu_ld
  746. with_sysroot
  747. enable_libtool_lock
  748. enable_assertions
  749. enable_dependency_tracking
  750. enable_libc
  751. enable_gcc_atomics
  752. enable_atomic
  753. enable_audio
  754. enable_video
  755. enable_render
  756. enable_events
  757. enable_joystick
  758. enable_haptic
  759. enable_sensor
  760. enable_power
  761. enable_filesystem
  762. enable_threads
  763. enable_timers
  764. enable_file
  765. enable_loadso
  766. enable_cpuinfo
  767. enable_assembly
  768. enable_ssemath
  769. enable_mmx
  770. enable_3dnow
  771. enable_sse
  772. enable_sse2
  773. enable_sse3
  774. enable_altivec
  775. enable_oss
  776. enable_alsa
  777. with_alsa_prefix
  778. with_alsa_inc_prefix
  779. enable_alsatest
  780. enable_alsa_shared
  781. enable_jack
  782. enable_jack_shared
  783. enable_esd
  784. with_esd_prefix
  785. with_esd_exec_prefix
  786. enable_esdtest
  787. enable_esd_shared
  788. enable_pulseaudio
  789. enable_pulseaudio_shared
  790. enable_arts
  791. enable_arts_shared
  792. enable_nas
  793. enable_nas_shared
  794. enable_sndio
  795. enable_sndio_shared
  796. enable_fusionsound
  797. enable_fusionsound_shared
  798. enable_diskaudio
  799. enable_dummyaudio
  800. enable_libsamplerate
  801. enable_libsamplerate_shared
  802. enable_arm_simd
  803. enable_arm_neon
  804. enable_video_wayland
  805. enable_video_wayland_qt_touch
  806. enable_wayland_shared
  807. enable_video_rpi
  808. enable_video_x11
  809. with_x
  810. enable_x11_shared
  811. enable_video_x11_xcursor
  812. enable_video_x11_xdbe
  813. enable_video_x11_xinerama
  814. enable_video_x11_xinput
  815. enable_video_x11_xrandr
  816. enable_video_x11_scrnsaver
  817. enable_video_x11_xshape
  818. enable_video_x11_vm
  819. enable_video_vivante
  820. enable_video_cocoa
  821. enable_video_metal
  822. enable_render_metal
  823. enable_video_directfb
  824. enable_directfb_shared
  825. enable_video_kmsdrm
  826. enable_kmsdrm_shared
  827. enable_video_dummy
  828. enable_video_opengl
  829. enable_video_opengles
  830. enable_video_opengles1
  831. enable_video_opengles2
  832. enable_video_vulkan
  833. enable_libudev
  834. enable_dbus
  835. enable_ime
  836. enable_ibus
  837. enable_fcitx
  838. enable_joystick_mfi
  839. enable_pthreads
  840. enable_pthread_sem
  841. enable_directx
  842. enable_wasapi
  843. enable_sdl_dlopen
  844. enable_hidapi
  845. enable_hidapi_libusb
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. LIBUSB_CFLAGS
  890. LIBUSB_LIBS'
  891. # Initialize some variables set by options.
  892. ac_init_help=
  893. ac_init_version=false
  894. ac_unrecognized_opts=
  895. ac_unrecognized_sep=
  896. # The variables have the same names as the options, with
  897. # dashes changed to underlines.
  898. cache_file=/dev/null
  899. exec_prefix=NONE
  900. no_create=
  901. no_recursion=
  902. prefix=NONE
  903. program_prefix=NONE
  904. program_suffix=NONE
  905. program_transform_name=s,x,x,
  906. silent=
  907. site=
  908. srcdir=
  909. verbose=
  910. x_includes=NONE
  911. x_libraries=NONE
  912. # Installation directory options.
  913. # These are left unexpanded so users can "make install exec_prefix=/foo"
  914. # and all the variables that are supposed to be based on exec_prefix
  915. # by default will actually change.
  916. # Use braces instead of parens because sh, perl, etc. also accept them.
  917. # (The list follows the same order as the GNU Coding Standards.)
  918. bindir='${exec_prefix}/bin'
  919. sbindir='${exec_prefix}/sbin'
  920. libexecdir='${exec_prefix}/libexec'
  921. datarootdir='${prefix}/share'
  922. datadir='${datarootdir}'
  923. sysconfdir='${prefix}/etc'
  924. sharedstatedir='${prefix}/com'
  925. localstatedir='${prefix}/var'
  926. includedir='${prefix}/include'
  927. oldincludedir='/usr/include'
  928. docdir='${datarootdir}/doc/${PACKAGE}'
  929. infodir='${datarootdir}/info'
  930. htmldir='${docdir}'
  931. dvidir='${docdir}'
  932. pdfdir='${docdir}'
  933. psdir='${docdir}'
  934. libdir='${exec_prefix}/lib'
  935. localedir='${datarootdir}/locale'
  936. mandir='${datarootdir}/man'
  937. ac_prev=
  938. ac_dashdash=
  939. for ac_option
  940. do
  941. # If the previous option needs an argument, assign it.
  942. if test -n "$ac_prev"; then
  943. eval $ac_prev=\$ac_option
  944. ac_prev=
  945. continue
  946. fi
  947. case $ac_option in
  948. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  949. *=) ac_optarg= ;;
  950. *) ac_optarg=yes ;;
  951. esac
  952. # Accept the important Cygnus configure options, so we can diagnose typos.
  953. case $ac_dashdash$ac_option in
  954. --)
  955. ac_dashdash=yes ;;
  956. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  957. ac_prev=bindir ;;
  958. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  959. bindir=$ac_optarg ;;
  960. -build | --build | --buil | --bui | --bu)
  961. ac_prev=build_alias ;;
  962. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  963. build_alias=$ac_optarg ;;
  964. -cache-file | --cache-file | --cache-fil | --cache-fi \
  965. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  966. ac_prev=cache_file ;;
  967. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  968. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  969. cache_file=$ac_optarg ;;
  970. --config-cache | -C)
  971. cache_file=config.cache ;;
  972. -datadir | --datadir | --datadi | --datad)
  973. ac_prev=datadir ;;
  974. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  975. datadir=$ac_optarg ;;
  976. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  977. | --dataroo | --dataro | --datar)
  978. ac_prev=datarootdir ;;
  979. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  980. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  981. datarootdir=$ac_optarg ;;
  982. -disable-* | --disable-*)
  983. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  986. as_fn_error $? "invalid feature name: $ac_useropt"
  987. ac_useropt_orig=$ac_useropt
  988. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  989. case $ac_user_opts in
  990. *"
  991. "enable_$ac_useropt"
  992. "*) ;;
  993. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  994. ac_unrecognized_sep=', ';;
  995. esac
  996. eval enable_$ac_useropt=no ;;
  997. -docdir | --docdir | --docdi | --doc | --do)
  998. ac_prev=docdir ;;
  999. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1000. docdir=$ac_optarg ;;
  1001. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1002. ac_prev=dvidir ;;
  1003. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1004. dvidir=$ac_optarg ;;
  1005. -enable-* | --enable-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid feature name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "enable_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval enable_$ac_useropt=\$ac_optarg ;;
  1020. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1021. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1022. | --exec | --exe | --ex)
  1023. ac_prev=exec_prefix ;;
  1024. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1025. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1026. | --exec=* | --exe=* | --ex=*)
  1027. exec_prefix=$ac_optarg ;;
  1028. -gas | --gas | --ga | --g)
  1029. # Obsolete; use --with-gas.
  1030. with_gas=yes ;;
  1031. -help | --help | --hel | --he | -h)
  1032. ac_init_help=long ;;
  1033. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1034. ac_init_help=recursive ;;
  1035. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1036. ac_init_help=short ;;
  1037. -host | --host | --hos | --ho)
  1038. ac_prev=host_alias ;;
  1039. -host=* | --host=* | --hos=* | --ho=*)
  1040. host_alias=$ac_optarg ;;
  1041. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1042. ac_prev=htmldir ;;
  1043. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1044. | --ht=*)
  1045. htmldir=$ac_optarg ;;
  1046. -includedir | --includedir | --includedi | --included | --include \
  1047. | --includ | --inclu | --incl | --inc)
  1048. ac_prev=includedir ;;
  1049. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1050. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1051. includedir=$ac_optarg ;;
  1052. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1053. ac_prev=infodir ;;
  1054. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1055. infodir=$ac_optarg ;;
  1056. -libdir | --libdir | --libdi | --libd)
  1057. ac_prev=libdir ;;
  1058. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1059. libdir=$ac_optarg ;;
  1060. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1061. | --libexe | --libex | --libe)
  1062. ac_prev=libexecdir ;;
  1063. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1064. | --libexe=* | --libex=* | --libe=*)
  1065. libexecdir=$ac_optarg ;;
  1066. -localedir | --localedir | --localedi | --localed | --locale)
  1067. ac_prev=localedir ;;
  1068. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1069. localedir=$ac_optarg ;;
  1070. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1071. | --localstate | --localstat | --localsta | --localst | --locals)
  1072. ac_prev=localstatedir ;;
  1073. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1074. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1075. localstatedir=$ac_optarg ;;
  1076. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1077. ac_prev=mandir ;;
  1078. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1079. mandir=$ac_optarg ;;
  1080. -nfp | --nfp | --nf)
  1081. # Obsolete; use --without-fp.
  1082. with_fp=no ;;
  1083. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1084. | --no-cr | --no-c | -n)
  1085. no_create=yes ;;
  1086. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1087. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1088. no_recursion=yes ;;
  1089. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1090. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1091. | --oldin | --oldi | --old | --ol | --o)
  1092. ac_prev=oldincludedir ;;
  1093. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1094. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1095. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1096. oldincludedir=$ac_optarg ;;
  1097. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1098. ac_prev=prefix ;;
  1099. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1100. prefix=$ac_optarg ;;
  1101. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1102. | --program-pre | --program-pr | --program-p)
  1103. ac_prev=program_prefix ;;
  1104. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1105. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1106. program_prefix=$ac_optarg ;;
  1107. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1108. | --program-suf | --program-su | --program-s)
  1109. ac_prev=program_suffix ;;
  1110. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1111. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1112. program_suffix=$ac_optarg ;;
  1113. -program-transform-name | --program-transform-name \
  1114. | --program-transform-nam | --program-transform-na \
  1115. | --program-transform-n | --program-transform- \
  1116. | --program-transform | --program-transfor \
  1117. | --program-transfo | --program-transf \
  1118. | --program-trans | --program-tran \
  1119. | --progr-tra | --program-tr | --program-t)
  1120. ac_prev=program_transform_name ;;
  1121. -program-transform-name=* | --program-transform-name=* \
  1122. | --program-transform-nam=* | --program-transform-na=* \
  1123. | --program-transform-n=* | --program-transform-=* \
  1124. | --program-transform=* | --program-transfor=* \
  1125. | --program-transfo=* | --program-transf=* \
  1126. | --program-trans=* | --program-tran=* \
  1127. | --progr-tra=* | --program-tr=* | --program-t=*)
  1128. program_transform_name=$ac_optarg ;;
  1129. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1130. ac_prev=pdfdir ;;
  1131. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1132. pdfdir=$ac_optarg ;;
  1133. -psdir | --psdir | --psdi | --psd | --ps)
  1134. ac_prev=psdir ;;
  1135. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1136. psdir=$ac_optarg ;;
  1137. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1138. | -silent | --silent | --silen | --sile | --sil)
  1139. silent=yes ;;
  1140. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1141. ac_prev=sbindir ;;
  1142. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1143. | --sbi=* | --sb=*)
  1144. sbindir=$ac_optarg ;;
  1145. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1146. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1147. | --sharedst | --shareds | --shared | --share | --shar \
  1148. | --sha | --sh)
  1149. ac_prev=sharedstatedir ;;
  1150. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1151. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1152. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1153. | --sha=* | --sh=*)
  1154. sharedstatedir=$ac_optarg ;;
  1155. -site | --site | --sit)
  1156. ac_prev=site ;;
  1157. -site=* | --site=* | --sit=*)
  1158. site=$ac_optarg ;;
  1159. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1160. ac_prev=srcdir ;;
  1161. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1162. srcdir=$ac_optarg ;;
  1163. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1164. | --syscon | --sysco | --sysc | --sys | --sy)
  1165. ac_prev=sysconfdir ;;
  1166. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1167. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1168. sysconfdir=$ac_optarg ;;
  1169. -target | --target | --targe | --targ | --tar | --ta | --t)
  1170. ac_prev=target_alias ;;
  1171. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1172. target_alias=$ac_optarg ;;
  1173. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1174. verbose=yes ;;
  1175. -version | --version | --versio | --versi | --vers | -V)
  1176. ac_init_version=: ;;
  1177. -with-* | --with-*)
  1178. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1179. # Reject names that are not valid shell variable names.
  1180. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1181. as_fn_error $? "invalid package name: $ac_useropt"
  1182. ac_useropt_orig=$ac_useropt
  1183. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1184. case $ac_user_opts in
  1185. *"
  1186. "with_$ac_useropt"
  1187. "*) ;;
  1188. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1189. ac_unrecognized_sep=', ';;
  1190. esac
  1191. eval with_$ac_useropt=\$ac_optarg ;;
  1192. -without-* | --without-*)
  1193. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1194. # Reject names that are not valid shell variable names.
  1195. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1196. as_fn_error $? "invalid package name: $ac_useropt"
  1197. ac_useropt_orig=$ac_useropt
  1198. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1199. case $ac_user_opts in
  1200. *"
  1201. "with_$ac_useropt"
  1202. "*) ;;
  1203. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1204. ac_unrecognized_sep=', ';;
  1205. esac
  1206. eval with_$ac_useropt=no ;;
  1207. --x)
  1208. # Obsolete; use --with-x.
  1209. with_x=yes ;;
  1210. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1211. | --x-incl | --x-inc | --x-in | --x-i)
  1212. ac_prev=x_includes ;;
  1213. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1214. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1215. x_includes=$ac_optarg ;;
  1216. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1217. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1218. ac_prev=x_libraries ;;
  1219. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1220. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1221. x_libraries=$ac_optarg ;;
  1222. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1223. Try \`$0 --help' for more information"
  1224. ;;
  1225. *=*)
  1226. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1227. # Reject names that are not valid shell variable names.
  1228. case $ac_envvar in #(
  1229. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1230. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1231. esac
  1232. eval $ac_envvar=\$ac_optarg
  1233. export $ac_envvar ;;
  1234. *)
  1235. # FIXME: should be removed in autoconf 3.0.
  1236. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1237. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1238. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1239. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1240. ;;
  1241. esac
  1242. done
  1243. if test -n "$ac_prev"; then
  1244. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1245. as_fn_error $? "missing argument to $ac_option"
  1246. fi
  1247. if test -n "$ac_unrecognized_opts"; then
  1248. case $enable_option_checking in
  1249. no) ;;
  1250. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1251. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1252. esac
  1253. fi
  1254. # Check all directory arguments for consistency.
  1255. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1256. datadir sysconfdir sharedstatedir localstatedir includedir \
  1257. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1258. libdir localedir mandir
  1259. do
  1260. eval ac_val=\$$ac_var
  1261. # Remove trailing slashes.
  1262. case $ac_val in
  1263. */ )
  1264. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1265. eval $ac_var=\$ac_val;;
  1266. esac
  1267. # Be sure to have absolute directory names.
  1268. case $ac_val in
  1269. [\\/$]* | ?:[\\/]* ) continue;;
  1270. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1271. esac
  1272. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1273. done
  1274. # There might be people who depend on the old broken behavior: `$host'
  1275. # used to hold the argument of --host etc.
  1276. # FIXME: To remove some day.
  1277. build=$build_alias
  1278. host=$host_alias
  1279. target=$target_alias
  1280. # FIXME: To remove some day.
  1281. if test "x$host_alias" != x; then
  1282. if test "x$build_alias" = x; then
  1283. cross_compiling=maybe
  1284. elif test "x$build_alias" != "x$host_alias"; then
  1285. cross_compiling=yes
  1286. fi
  1287. fi
  1288. ac_tool_prefix=
  1289. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1290. test "$silent" = yes && exec 6>/dev/null
  1291. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1292. ac_ls_di=`ls -di .` &&
  1293. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1294. as_fn_error $? "working directory cannot be determined"
  1295. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1296. as_fn_error $? "pwd does not report name of working directory"
  1297. # Find the source files, if location was not specified.
  1298. if test -z "$srcdir"; then
  1299. ac_srcdir_defaulted=yes
  1300. # Try the directory containing this script, then the parent directory.
  1301. ac_confdir=`$as_dirname -- "$as_myself" ||
  1302. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1303. X"$as_myself" : 'X\(//\)[^/]' \| \
  1304. X"$as_myself" : 'X\(//\)$' \| \
  1305. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1306. $as_echo X"$as_myself" |
  1307. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1308. s//\1/
  1309. q
  1310. }
  1311. /^X\(\/\/\)[^/].*/{
  1312. s//\1/
  1313. q
  1314. }
  1315. /^X\(\/\/\)$/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\).*/{
  1320. s//\1/
  1321. q
  1322. }
  1323. s/.*/./; q'`
  1324. srcdir=$ac_confdir
  1325. if test ! -r "$srcdir/$ac_unique_file"; then
  1326. srcdir=..
  1327. fi
  1328. else
  1329. ac_srcdir_defaulted=no
  1330. fi
  1331. if test ! -r "$srcdir/$ac_unique_file"; then
  1332. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1333. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1334. fi
  1335. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1336. ac_abs_confdir=`(
  1337. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1338. pwd)`
  1339. # When building in place, set srcdir=.
  1340. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1341. srcdir=.
  1342. fi
  1343. # Remove unnecessary trailing slashes from srcdir.
  1344. # Double slashes in file names in object file debugging info
  1345. # mess up M-x gdb in Emacs.
  1346. case $srcdir in
  1347. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1348. esac
  1349. for ac_var in $ac_precious_vars; do
  1350. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1351. eval ac_env_${ac_var}_value=\$${ac_var}
  1352. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1353. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1354. done
  1355. #
  1356. # Report the --help message.
  1357. #
  1358. if test "$ac_init_help" = "long"; then
  1359. # Omit some internal or obsolete options to make the list less imposing.
  1360. # This message is too long to be a string in the A/UX 3.1 sh.
  1361. cat <<_ACEOF
  1362. \`configure' configures this package to adapt to many kinds of systems.
  1363. Usage: $0 [OPTION]... [VAR=VALUE]...
  1364. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1365. VAR=VALUE. See below for descriptions of some of the useful variables.
  1366. Defaults for the options are specified in brackets.
  1367. Configuration:
  1368. -h, --help display this help and exit
  1369. --help=short display options specific to this package
  1370. --help=recursive display the short help of all the included packages
  1371. -V, --version display version information and exit
  1372. -q, --quiet, --silent do not print \`checking ...' messages
  1373. --cache-file=FILE cache test results in FILE [disabled]
  1374. -C, --config-cache alias for \`--cache-file=config.cache'
  1375. -n, --no-create do not create output files
  1376. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1377. Installation directories:
  1378. --prefix=PREFIX install architecture-independent files in PREFIX
  1379. [$ac_default_prefix]
  1380. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1381. [PREFIX]
  1382. By default, \`make install' will install all the files in
  1383. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1384. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1385. for instance \`--prefix=\$HOME'.
  1386. For better control, use the options below.
  1387. Fine tuning of the installation directories:
  1388. --bindir=DIR user executables [EPREFIX/bin]
  1389. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1390. --libexecdir=DIR program executables [EPREFIX/libexec]
  1391. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1392. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1393. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1394. --libdir=DIR object code libraries [EPREFIX/lib]
  1395. --includedir=DIR C header files [PREFIX/include]
  1396. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1397. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1398. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1399. --infodir=DIR info documentation [DATAROOTDIR/info]
  1400. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1401. --mandir=DIR man documentation [DATAROOTDIR/man]
  1402. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1403. --htmldir=DIR html documentation [DOCDIR]
  1404. --dvidir=DIR dvi documentation [DOCDIR]
  1405. --pdfdir=DIR pdf documentation [DOCDIR]
  1406. --psdir=DIR ps documentation [DOCDIR]
  1407. _ACEOF
  1408. cat <<\_ACEOF
  1409. X features:
  1410. --x-includes=DIR X include files are in DIR
  1411. --x-libraries=DIR X library files are in DIR
  1412. System types:
  1413. --build=BUILD configure for building on BUILD [guessed]
  1414. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1415. _ACEOF
  1416. fi
  1417. if test -n "$ac_init_help"; then
  1418. cat <<\_ACEOF
  1419. Optional Features:
  1420. --disable-option-checking ignore unrecognized --enable/--with options
  1421. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1422. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1423. --enable-shared[=PKGS] build shared libraries [default=yes]
  1424. --enable-static[=PKGS] build static libraries [default=yes]
  1425. --enable-fast-install[=PKGS]
  1426. optimize for fast installation [default=yes]
  1427. --disable-libtool-lock avoid locking (might break parallel builds)
  1428. --enable-assertions Enable internal sanity checks
  1429. (auto/disabled/release/enabled/paranoid)
  1430. [[default=auto]]
  1431. --enable-dependency-tracking
  1432. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1433. --enable-libc Use the system C library [[default=yes]]
  1434. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1435. --enable-atomic Enable the atomic operations subsystem
  1436. [[default=yes]]
  1437. --enable-audio Enable the audio subsystem [[default=yes]]
  1438. --enable-video Enable the video subsystem [[default=yes]]
  1439. --enable-render Enable the render subsystem [[default=yes]]
  1440. --enable-events Enable the events subsystem [[default=yes]]
  1441. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1442. --enable-haptic Enable the haptic (force feedback) subsystem
  1443. [[default=yes]]
  1444. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1445. --enable-power Enable the power subsystem [[default=yes]]
  1446. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1447. --enable-threads Enable the threading subsystem [[default=yes]]
  1448. --enable-timers Enable the timer subsystem [[default=yes]]
  1449. --enable-file Enable the file subsystem [[default=yes]]
  1450. --enable-loadso Enable the shared object loading subsystem
  1451. [[default=yes]]
  1452. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1453. --enable-assembly Enable assembly routines [[default=yes]]
  1454. --enable-ssemath Allow GCC to use SSE floating point math
  1455. [[default=maybe]]
  1456. --enable-mmx use MMX assembly routines [[default=yes]]
  1457. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1458. --enable-sse use SSE assembly routines [[default=yes]]
  1459. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1460. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1461. --enable-altivec use Altivec assembly routines [[default=yes]]
  1462. --enable-oss support the OSS audio API [[default=maybe]]
  1463. --enable-alsa support the ALSA audio API [[default=yes]]
  1464. --disable-alsatest Do not try to compile and run a test Alsa program
  1465. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1466. --enable-jack use JACK audio [[default=yes]]
  1467. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1468. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1469. --disable-esdtest Do not try to compile and run a test ESD program
  1470. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1471. --enable-pulseaudio use PulseAudio [[default=yes]]
  1472. --enable-pulseaudio-shared
  1473. dynamically load PulseAudio support [[default=yes]]
  1474. --enable-arts support the Analog Real Time Synthesizer
  1475. [[default=yes]]
  1476. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1477. --enable-nas support the NAS audio API [[default=yes]]
  1478. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1479. --enable-sndio support the sndio audio API [[default=yes]]
  1480. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1481. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1482. --enable-fusionsound-shared
  1483. dynamically load fusionsound audio support
  1484. [[default=yes]]
  1485. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1486. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1487. --enable-libsamplerate use libsamplerate for audio rate conversion
  1488. [[default=yes]]
  1489. --enable-libsamplerate-shared
  1490. dynamically load libsamplerate [[default=yes]]
  1491. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1492. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1493. --enable-video-wayland use Wayland video driver [[default=yes]]
  1494. --enable-video-wayland-qt-touch
  1495. QtWayland server support for Wayland video driver
  1496. [[default=yes]]
  1497. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1498. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1499. --enable-video-x11 use X11 video driver [[default=yes]]
  1500. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1501. --enable-video-x11-xcursor
  1502. enable X11 Xcursor support [[default=yes]]
  1503. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1504. --enable-video-x11-xinerama
  1505. enable X11 Xinerama support [[default=yes]]
  1506. --enable-video-x11-xinput
  1507. enable X11 XInput extension for manymouse, tablets,
  1508. etc [[default=yes]]
  1509. --enable-video-x11-xrandr
  1510. enable X11 Xrandr extension for fullscreen
  1511. [[default=yes]]
  1512. --enable-video-x11-scrnsaver
  1513. enable X11 screensaver extension [[default=yes]]
  1514. --enable-video-x11-xshape
  1515. enable X11 XShape support [[default=yes]]
  1516. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1517. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1518. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1519. --enable-video-metal include Metal support [[default=yes]]
  1520. --enable-render-metal enable the Metal render driver [[default=yes]]
  1521. --enable-video-directfb use DirectFB video driver [[default=no]]
  1522. --enable-directfb-shared
  1523. dynamically load directfb support [[default=yes]]
  1524. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1525. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1526. --enable-video-dummy use dummy video driver [[default=yes]]
  1527. --enable-video-opengl include OpenGL support [[default=yes]]
  1528. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1529. --enable-video-opengles1
  1530. include OpenGL ES 1.1 support [[default=yes]]
  1531. --enable-video-opengles2
  1532. include OpenGL ES 2.0 support [[default=yes]]
  1533. --enable-video-vulkan include Vulkan support [[default=yes]]
  1534. --enable-libudev enable libudev support [[default=yes]]
  1535. --enable-dbus enable D-Bus support [[default=yes]]
  1536. --enable-ime enable IME support [[default=yes]]
  1537. --enable-ibus enable IBus support [[default=yes]]
  1538. --enable-fcitx enable fcitx support [[default=yes]]
  1539. --enable-joystick-mfi include macOS MFI joystick support [[default=yes]]
  1540. --enable-pthreads use POSIX threads for multi-threading
  1541. [[default=yes]]
  1542. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1543. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1544. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1545. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1546. --enable-hidapi use HIDAPI for low level joystick drivers
  1547. [[default=yes]]
  1548. --enable-hidapi-libusb use libusb for low level joystick drivers
  1549. [[default=maybe]]
  1550. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1551. UNIX [[default=yes]]
  1552. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1553. --enable-backgrounding-signal
  1554. number to use for magic backgrounding signal or 'no'
  1555. [[default=no]]
  1556. --enable-foregrounding-signal
  1557. number to use for magic foregrounding signal or 'no'
  1558. [[default=no]]
  1559. --enable-joystick-virtual
  1560. enable virtual joystick APIs [[default=yes]]
  1561. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1562. --enable-sdl2-config Install sdl2-config [default=yes]
  1563. Optional Packages:
  1564. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1565. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1566. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1567. both]
  1568. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1569. --with-sysroot=DIR Search for dependent libraries within DIR
  1570. (or the compiler's sysroot if not specified).
  1571. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1572. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1573. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1574. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1575. --with-x use the X Window System
  1576. Some influential environment variables:
  1577. CC C compiler command
  1578. CFLAGS C compiler flags
  1579. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1580. nonstandard directory <lib dir>
  1581. LIBS libraries to pass to the linker, e.g. -l<library>
  1582. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1583. you have headers in a nonstandard directory <include dir>
  1584. CPP C preprocessor
  1585. CXX C++ compiler command
  1586. CXXFLAGS C++ compiler flags
  1587. CXXCPP C++ preprocessor
  1588. PKG_CONFIG path to pkg-config utility
  1589. PKG_CONFIG_PATH
  1590. directories to add to pkg-config's search path
  1591. PKG_CONFIG_LIBDIR
  1592. path overriding pkg-config's built-in search path
  1593. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1594. JACK_LIBS linker flags for JACK, overriding pkg-config
  1595. PULSEAUDIO_CFLAGS
  1596. C compiler flags for PULSEAUDIO, overriding pkg-config
  1597. PULSEAUDIO_LIBS
  1598. linker flags for PULSEAUDIO, overriding pkg-config
  1599. FUSIONSOUND_CFLAGS
  1600. C compiler flags for FUSIONSOUND, overriding pkg-config
  1601. FUSIONSOUND_LIBS
  1602. linker flags for FUSIONSOUND, overriding pkg-config
  1603. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1604. RPI_LIBS linker flags for RPI, overriding pkg-config
  1605. XMKMF Path to xmkmf, Makefile generator for X Window System
  1606. DIRECTFB_CFLAGS
  1607. C compiler flags for DIRECTFB, overriding pkg-config
  1608. DIRECTFB_LIBS
  1609. linker flags for DIRECTFB, overriding pkg-config
  1610. LIBDRM_CFLAGS
  1611. C compiler flags for LIBDRM, overriding pkg-config
  1612. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1613. LIBGBM_CFLAGS
  1614. C compiler flags for LIBGBM, overriding pkg-config
  1615. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1616. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1617. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1618. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1619. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1620. LIBUSB_CFLAGS
  1621. C compiler flags for LIBUSB, overriding pkg-config
  1622. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1623. Use these variables to override the choices made by `configure' or to help
  1624. it to find libraries and programs with nonstandard names/locations.
  1625. Report bugs to the package provider.
  1626. _ACEOF
  1627. ac_status=$?
  1628. fi
  1629. if test "$ac_init_help" = "recursive"; then
  1630. # If there are subdirs, report their specific --help.
  1631. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1632. test -d "$ac_dir" ||
  1633. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1634. continue
  1635. ac_builddir=.
  1636. case "$ac_dir" in
  1637. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1638. *)
  1639. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1640. # A ".." for each directory in $ac_dir_suffix.
  1641. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1642. case $ac_top_builddir_sub in
  1643. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1644. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1645. esac ;;
  1646. esac
  1647. ac_abs_top_builddir=$ac_pwd
  1648. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1649. # for backward compatibility:
  1650. ac_top_builddir=$ac_top_build_prefix
  1651. case $srcdir in
  1652. .) # We are building in place.
  1653. ac_srcdir=.
  1654. ac_top_srcdir=$ac_top_builddir_sub
  1655. ac_abs_top_srcdir=$ac_pwd ;;
  1656. [\\/]* | ?:[\\/]* ) # Absolute name.
  1657. ac_srcdir=$srcdir$ac_dir_suffix;
  1658. ac_top_srcdir=$srcdir
  1659. ac_abs_top_srcdir=$srcdir ;;
  1660. *) # Relative name.
  1661. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1662. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1663. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1664. esac
  1665. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1666. cd "$ac_dir" || { ac_status=$?; continue; }
  1667. # Check for guested configure.
  1668. if test -f "$ac_srcdir/configure.gnu"; then
  1669. echo &&
  1670. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1671. elif test -f "$ac_srcdir/configure"; then
  1672. echo &&
  1673. $SHELL "$ac_srcdir/configure" --help=recursive
  1674. else
  1675. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1676. fi || ac_status=$?
  1677. cd "$ac_pwd" || { ac_status=$?; break; }
  1678. done
  1679. fi
  1680. test -n "$ac_init_help" && exit $ac_status
  1681. if $ac_init_version; then
  1682. cat <<\_ACEOF
  1683. configure
  1684. generated by GNU Autoconf 2.69
  1685. Copyright (C) 2012 Free Software Foundation, Inc.
  1686. This configure script is free software; the Free Software Foundation
  1687. gives unlimited permission to copy, distribute and modify it.
  1688. _ACEOF
  1689. exit
  1690. fi
  1691. ## ------------------------ ##
  1692. ## Autoconf initialization. ##
  1693. ## ------------------------ ##
  1694. # ac_fn_c_try_compile LINENO
  1695. # --------------------------
  1696. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_c_try_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext
  1701. if { { ac_try="$ac_compile"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_compile") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest.$ac_objext; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1727. as_fn_set_status $ac_retval
  1728. } # ac_fn_c_try_compile
  1729. # ac_fn_c_try_link LINENO
  1730. # -----------------------
  1731. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1732. ac_fn_c_try_link ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. rm -f conftest.$ac_objext conftest$ac_exeext
  1736. if { { ac_try="$ac_link"
  1737. case "(($ac_try" in
  1738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1739. *) ac_try_echo=$ac_try;;
  1740. esac
  1741. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1742. $as_echo "$ac_try_echo"; } >&5
  1743. (eval "$ac_link") 2>conftest.err
  1744. ac_status=$?
  1745. if test -s conftest.err; then
  1746. grep -v '^ *+' conftest.err >conftest.er1
  1747. cat conftest.er1 >&5
  1748. mv -f conftest.er1 conftest.err
  1749. fi
  1750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1751. test $ac_status = 0; } && {
  1752. test -z "$ac_c_werror_flag" ||
  1753. test ! -s conftest.err
  1754. } && test -s conftest$ac_exeext && {
  1755. test "$cross_compiling" = yes ||
  1756. test -x conftest$ac_exeext
  1757. }; then :
  1758. ac_retval=0
  1759. else
  1760. $as_echo "$as_me: failed program was:" >&5
  1761. sed 's/^/| /' conftest.$ac_ext >&5
  1762. ac_retval=1
  1763. fi
  1764. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1765. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1766. # interfere with the next link command; also delete a directory that is
  1767. # left behind by Apple's compiler. We do this before executing the actions.
  1768. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. as_fn_set_status $ac_retval
  1771. } # ac_fn_c_try_link
  1772. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1773. # -------------------------------------------------------
  1774. # Tests whether HEADER exists and can be compiled using the include files in
  1775. # INCLUDES, setting the cache variable VAR accordingly.
  1776. ac_fn_c_check_header_compile ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1780. $as_echo_n "checking for $2... " >&6; }
  1781. if eval \${$3+:} false; then :
  1782. $as_echo_n "(cached) " >&6
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. $4
  1787. #include <$2>
  1788. _ACEOF
  1789. if ac_fn_c_try_compile "$LINENO"; then :
  1790. eval "$3=yes"
  1791. else
  1792. eval "$3=no"
  1793. fi
  1794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1795. fi
  1796. eval ac_res=\$$3
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1798. $as_echo "$ac_res" >&6; }
  1799. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1800. } # ac_fn_c_check_header_compile
  1801. # ac_fn_c_try_cpp LINENO
  1802. # ----------------------
  1803. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1804. ac_fn_c_try_cpp ()
  1805. {
  1806. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1807. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1808. case "(($ac_try" in
  1809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1810. *) ac_try_echo=$ac_try;;
  1811. esac
  1812. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1813. $as_echo "$ac_try_echo"; } >&5
  1814. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1815. ac_status=$?
  1816. if test -s conftest.err; then
  1817. grep -v '^ *+' conftest.err >conftest.er1
  1818. cat conftest.er1 >&5
  1819. mv -f conftest.er1 conftest.err
  1820. fi
  1821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1822. test $ac_status = 0; } > conftest.i && {
  1823. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1824. test ! -s conftest.err
  1825. }; then :
  1826. ac_retval=0
  1827. else
  1828. $as_echo "$as_me: failed program was:" >&5
  1829. sed 's/^/| /' conftest.$ac_ext >&5
  1830. ac_retval=1
  1831. fi
  1832. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1833. as_fn_set_status $ac_retval
  1834. } # ac_fn_c_try_cpp
  1835. # ac_fn_c_try_run LINENO
  1836. # ----------------------
  1837. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1838. # that executables *can* be run.
  1839. ac_fn_c_try_run ()
  1840. {
  1841. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1842. if { { ac_try="$ac_link"
  1843. case "(($ac_try" in
  1844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1845. *) ac_try_echo=$ac_try;;
  1846. esac
  1847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1848. $as_echo "$ac_try_echo"; } >&5
  1849. (eval "$ac_link") 2>&5
  1850. ac_status=$?
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1853. { { case "(($ac_try" in
  1854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1855. *) ac_try_echo=$ac_try;;
  1856. esac
  1857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1858. $as_echo "$ac_try_echo"; } >&5
  1859. (eval "$ac_try") 2>&5
  1860. ac_status=$?
  1861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1862. test $ac_status = 0; }; }; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: program exited with status $ac_status" >&5
  1866. $as_echo "$as_me: failed program was:" >&5
  1867. sed 's/^/| /' conftest.$ac_ext >&5
  1868. ac_retval=$ac_status
  1869. fi
  1870. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_c_try_run
  1874. # ac_fn_c_check_func LINENO FUNC VAR
  1875. # ----------------------------------
  1876. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1877. ac_fn_c_check_func ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1881. $as_echo_n "checking for $2... " >&6; }
  1882. if eval \${$3+:} false; then :
  1883. $as_echo_n "(cached) " >&6
  1884. else
  1885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1886. /* end confdefs.h. */
  1887. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1888. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1889. #define $2 innocuous_$2
  1890. /* System header to define __stub macros and hopefully few prototypes,
  1891. which can conflict with char $2 (); below.
  1892. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1893. <limits.h> exists even on freestanding compilers. */
  1894. #ifdef __STDC__
  1895. # include <limits.h>
  1896. #else
  1897. # include <assert.h>
  1898. #endif
  1899. #undef $2
  1900. /* Override any GCC internal prototype to avoid an error.
  1901. Use char because int might match the return type of a GCC
  1902. builtin and then its argument prototype would still apply. */
  1903. #ifdef __cplusplus
  1904. extern "C"
  1905. #endif
  1906. char $2 ();
  1907. /* The GNU C library defines this for functions which it implements
  1908. to always fail with ENOSYS. Some functions are actually named
  1909. something starting with __ and the normal name is an alias. */
  1910. #if defined __stub_$2 || defined __stub___$2
  1911. choke me
  1912. #endif
  1913. int
  1914. main ()
  1915. {
  1916. return $2 ();
  1917. ;
  1918. return 0;
  1919. }
  1920. _ACEOF
  1921. if ac_fn_c_try_link "$LINENO"; then :
  1922. eval "$3=yes"
  1923. else
  1924. eval "$3=no"
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext \
  1927. conftest$ac_exeext conftest.$ac_ext
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1933. } # ac_fn_c_check_func
  1934. # ac_fn_cxx_try_compile LINENO
  1935. # ----------------------------
  1936. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1937. ac_fn_cxx_try_compile ()
  1938. {
  1939. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1940. rm -f conftest.$ac_objext
  1941. if { { ac_try="$ac_compile"
  1942. case "(($ac_try" in
  1943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1944. *) ac_try_echo=$ac_try;;
  1945. esac
  1946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1947. $as_echo "$ac_try_echo"; } >&5
  1948. (eval "$ac_compile") 2>conftest.err
  1949. ac_status=$?
  1950. if test -s conftest.err; then
  1951. grep -v '^ *+' conftest.err >conftest.er1
  1952. cat conftest.er1 >&5
  1953. mv -f conftest.er1 conftest.err
  1954. fi
  1955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1956. test $ac_status = 0; } && {
  1957. test -z "$ac_cxx_werror_flag" ||
  1958. test ! -s conftest.err
  1959. } && test -s conftest.$ac_objext; then :
  1960. ac_retval=0
  1961. else
  1962. $as_echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. ac_retval=1
  1965. fi
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. as_fn_set_status $ac_retval
  1968. } # ac_fn_cxx_try_compile
  1969. # ac_fn_cxx_try_cpp LINENO
  1970. # ------------------------
  1971. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1972. ac_fn_cxx_try_cpp ()
  1973. {
  1974. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1975. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1976. case "(($ac_try" in
  1977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1978. *) ac_try_echo=$ac_try;;
  1979. esac
  1980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1981. $as_echo "$ac_try_echo"; } >&5
  1982. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1983. ac_status=$?
  1984. if test -s conftest.err; then
  1985. grep -v '^ *+' conftest.err >conftest.er1
  1986. cat conftest.er1 >&5
  1987. mv -f conftest.er1 conftest.err
  1988. fi
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1990. test $ac_status = 0; } > conftest.i && {
  1991. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1992. test ! -s conftest.err
  1993. }; then :
  1994. ac_retval=0
  1995. else
  1996. $as_echo "$as_me: failed program was:" >&5
  1997. sed 's/^/| /' conftest.$ac_ext >&5
  1998. ac_retval=1
  1999. fi
  2000. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2001. as_fn_set_status $ac_retval
  2002. } # ac_fn_cxx_try_cpp
  2003. # ac_fn_cxx_try_link LINENO
  2004. # -------------------------
  2005. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2006. ac_fn_cxx_try_link ()
  2007. {
  2008. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2009. rm -f conftest.$ac_objext conftest$ac_exeext
  2010. if { { ac_try="$ac_link"
  2011. case "(($ac_try" in
  2012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2013. *) ac_try_echo=$ac_try;;
  2014. esac
  2015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2016. $as_echo "$ac_try_echo"; } >&5
  2017. (eval "$ac_link") 2>conftest.err
  2018. ac_status=$?
  2019. if test -s conftest.err; then
  2020. grep -v '^ *+' conftest.err >conftest.er1
  2021. cat conftest.er1 >&5
  2022. mv -f conftest.er1 conftest.err
  2023. fi
  2024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2025. test $ac_status = 0; } && {
  2026. test -z "$ac_cxx_werror_flag" ||
  2027. test ! -s conftest.err
  2028. } && test -s conftest$ac_exeext && {
  2029. test "$cross_compiling" = yes ||
  2030. test -x conftest$ac_exeext
  2031. }; then :
  2032. ac_retval=0
  2033. else
  2034. $as_echo "$as_me: failed program was:" >&5
  2035. sed 's/^/| /' conftest.$ac_ext >&5
  2036. ac_retval=1
  2037. fi
  2038. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2039. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2040. # interfere with the next link command; also delete a directory that is
  2041. # left behind by Apple's compiler. We do this before executing the actions.
  2042. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2043. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2044. as_fn_set_status $ac_retval
  2045. } # ac_fn_cxx_try_link
  2046. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2047. # -------------------------------------------------------
  2048. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2049. # the include files in INCLUDES and setting the cache variable VAR
  2050. # accordingly.
  2051. ac_fn_c_check_header_mongrel ()
  2052. {
  2053. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2054. if eval \${$3+:} false; then :
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2056. $as_echo_n "checking for $2... " >&6; }
  2057. if eval \${$3+:} false; then :
  2058. $as_echo_n "(cached) " >&6
  2059. fi
  2060. eval ac_res=\$$3
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2062. $as_echo "$ac_res" >&6; }
  2063. else
  2064. # Is the header compilable?
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2066. $as_echo_n "checking $2 usability... " >&6; }
  2067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2068. /* end confdefs.h. */
  2069. $4
  2070. #include <$2>
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. ac_header_compiler=yes
  2074. else
  2075. ac_header_compiler=no
  2076. fi
  2077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2079. $as_echo "$ac_header_compiler" >&6; }
  2080. # Is the header present?
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2082. $as_echo_n "checking $2 presence... " >&6; }
  2083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2084. /* end confdefs.h. */
  2085. #include <$2>
  2086. _ACEOF
  2087. if ac_fn_c_try_cpp "$LINENO"; then :
  2088. ac_header_preproc=yes
  2089. else
  2090. ac_header_preproc=no
  2091. fi
  2092. rm -f conftest.err conftest.i conftest.$ac_ext
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2094. $as_echo "$ac_header_preproc" >&6; }
  2095. # So? What about this header?
  2096. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2097. yes:no: )
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2099. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2101. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2102. ;;
  2103. no:yes:* )
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2105. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2107. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2109. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2111. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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. esac
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2117. $as_echo_n "checking for $2... " >&6; }
  2118. if eval \${$3+:} false; then :
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. eval "$3=\$ac_header_compiler"
  2122. fi
  2123. eval ac_res=\$$3
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2125. $as_echo "$ac_res" >&6; }
  2126. fi
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. } # ac_fn_c_check_header_mongrel
  2129. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2130. # -------------------------------------------
  2131. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2132. # variable VAR accordingly.
  2133. ac_fn_c_check_type ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2137. $as_echo_n "checking for $2... " >&6; }
  2138. if eval \${$3+:} false; then :
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. eval "$3=no"
  2142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2143. /* end confdefs.h. */
  2144. $4
  2145. int
  2146. main ()
  2147. {
  2148. if (sizeof ($2))
  2149. return 0;
  2150. ;
  2151. return 0;
  2152. }
  2153. _ACEOF
  2154. if ac_fn_c_try_compile "$LINENO"; then :
  2155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2156. /* end confdefs.h. */
  2157. $4
  2158. int
  2159. main ()
  2160. {
  2161. if (sizeof (($2)))
  2162. return 0;
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. if ac_fn_c_try_compile "$LINENO"; then :
  2168. else
  2169. eval "$3=yes"
  2170. fi
  2171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2172. fi
  2173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2174. fi
  2175. eval ac_res=\$$3
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2177. $as_echo "$ac_res" >&6; }
  2178. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2179. } # ac_fn_c_check_type
  2180. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2181. # ----------------------------------------------------
  2182. # Tries to find if the field MEMBER exists in type AGGR, after including
  2183. # INCLUDES, setting cache variable VAR accordingly.
  2184. ac_fn_c_check_member ()
  2185. {
  2186. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2188. $as_echo_n "checking for $2.$3... " >&6; }
  2189. if eval \${$4+:} false; then :
  2190. $as_echo_n "(cached) " >&6
  2191. else
  2192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2193. /* end confdefs.h. */
  2194. $5
  2195. int
  2196. main ()
  2197. {
  2198. static $2 ac_aggr;
  2199. if (ac_aggr.$3)
  2200. return 0;
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_c_try_compile "$LINENO"; then :
  2206. eval "$4=yes"
  2207. else
  2208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2209. /* end confdefs.h. */
  2210. $5
  2211. int
  2212. main ()
  2213. {
  2214. static $2 ac_aggr;
  2215. if (sizeof ac_aggr.$3)
  2216. return 0;
  2217. ;
  2218. return 0;
  2219. }
  2220. _ACEOF
  2221. if ac_fn_c_try_compile "$LINENO"; then :
  2222. eval "$4=yes"
  2223. else
  2224. eval "$4=no"
  2225. fi
  2226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2227. fi
  2228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2229. fi
  2230. eval ac_res=\$$4
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2232. $as_echo "$ac_res" >&6; }
  2233. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2234. } # ac_fn_c_check_member
  2235. cat >config.log <<_ACEOF
  2236. This file contains any messages produced by compilers while
  2237. running configure, to aid debugging if configure makes a mistake.
  2238. It was created by $as_me, which was
  2239. generated by GNU Autoconf 2.69. Invocation command line was
  2240. $ $0 $@
  2241. _ACEOF
  2242. exec 5>>config.log
  2243. {
  2244. cat <<_ASUNAME
  2245. ## --------- ##
  2246. ## Platform. ##
  2247. ## --------- ##
  2248. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2249. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2250. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2251. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2252. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2253. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2254. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2255. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2256. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2257. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2258. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2259. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2260. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2261. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2262. _ASUNAME
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. $as_echo "PATH: $as_dir"
  2269. done
  2270. IFS=$as_save_IFS
  2271. } >&5
  2272. cat >&5 <<_ACEOF
  2273. ## ----------- ##
  2274. ## Core tests. ##
  2275. ## ----------- ##
  2276. _ACEOF
  2277. # Keep a trace of the command line.
  2278. # Strip out --no-create and --no-recursion so they do not pile up.
  2279. # Strip out --silent because we don't want to record it for future runs.
  2280. # Also quote any args containing shell meta-characters.
  2281. # Make two passes to allow for proper duplicate-argument suppression.
  2282. ac_configure_args=
  2283. ac_configure_args0=
  2284. ac_configure_args1=
  2285. ac_must_keep_next=false
  2286. for ac_pass in 1 2
  2287. do
  2288. for ac_arg
  2289. do
  2290. case $ac_arg in
  2291. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2292. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2293. | -silent | --silent | --silen | --sile | --sil)
  2294. continue ;;
  2295. *\'*)
  2296. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2297. esac
  2298. case $ac_pass in
  2299. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2300. 2)
  2301. as_fn_append ac_configure_args1 " '$ac_arg'"
  2302. if test $ac_must_keep_next = true; then
  2303. ac_must_keep_next=false # Got value, back to normal.
  2304. else
  2305. case $ac_arg in
  2306. *=* | --config-cache | -C | -disable-* | --disable-* \
  2307. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2308. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2309. | -with-* | --with-* | -without-* | --without-* | --x)
  2310. case "$ac_configure_args0 " in
  2311. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2312. esac
  2313. ;;
  2314. -* ) ac_must_keep_next=true ;;
  2315. esac
  2316. fi
  2317. as_fn_append ac_configure_args " '$ac_arg'"
  2318. ;;
  2319. esac
  2320. done
  2321. done
  2322. { ac_configure_args0=; unset ac_configure_args0;}
  2323. { ac_configure_args1=; unset ac_configure_args1;}
  2324. # When interrupted or exit'd, cleanup temporary files, and complete
  2325. # config.log. We remove comments because anyway the quotes in there
  2326. # would cause problems or look ugly.
  2327. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2328. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2329. trap 'exit_status=$?
  2330. # Save into config.log some information that might help in debugging.
  2331. {
  2332. echo
  2333. $as_echo "## ---------------- ##
  2334. ## Cache variables. ##
  2335. ## ---------------- ##"
  2336. echo
  2337. # The following way of writing the cache mishandles newlines in values,
  2338. (
  2339. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2340. eval ac_val=\$$ac_var
  2341. case $ac_val in #(
  2342. *${as_nl}*)
  2343. case $ac_var in #(
  2344. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2345. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2346. esac
  2347. case $ac_var in #(
  2348. _ | IFS | as_nl) ;; #(
  2349. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2350. *) { eval $ac_var=; unset $ac_var;} ;;
  2351. esac ;;
  2352. esac
  2353. done
  2354. (set) 2>&1 |
  2355. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2356. *${as_nl}ac_space=\ *)
  2357. sed -n \
  2358. "s/'\''/'\''\\\\'\'''\''/g;
  2359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2360. ;; #(
  2361. *)
  2362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2363. ;;
  2364. esac |
  2365. sort
  2366. )
  2367. echo
  2368. $as_echo "## ----------------- ##
  2369. ## Output variables. ##
  2370. ## ----------------- ##"
  2371. echo
  2372. for ac_var in $ac_subst_vars
  2373. do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in
  2376. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2377. esac
  2378. $as_echo "$ac_var='\''$ac_val'\''"
  2379. done | sort
  2380. echo
  2381. if test -n "$ac_subst_files"; then
  2382. $as_echo "## ------------------- ##
  2383. ## File substitutions. ##
  2384. ## ------------------- ##"
  2385. echo
  2386. for ac_var in $ac_subst_files
  2387. do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in
  2390. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2391. esac
  2392. $as_echo "$ac_var='\''$ac_val'\''"
  2393. done | sort
  2394. echo
  2395. fi
  2396. if test -s confdefs.h; then
  2397. $as_echo "## ----------- ##
  2398. ## confdefs.h. ##
  2399. ## ----------- ##"
  2400. echo
  2401. cat confdefs.h
  2402. echo
  2403. fi
  2404. test "$ac_signal" != 0 &&
  2405. $as_echo "$as_me: caught signal $ac_signal"
  2406. $as_echo "$as_me: exit $exit_status"
  2407. } >&5
  2408. rm -f core *.core core.conftest.* &&
  2409. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2410. exit $exit_status
  2411. ' 0
  2412. for ac_signal in 1 2 13 15; do
  2413. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2414. done
  2415. ac_signal=0
  2416. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2417. rm -f -r conftest* confdefs.h
  2418. $as_echo "/* confdefs.h */" > confdefs.h
  2419. # Predefined preprocessor variables.
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_NAME "$PACKAGE_NAME"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_STRING "$PACKAGE_STRING"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_URL "$PACKAGE_URL"
  2437. _ACEOF
  2438. # Let the site file select an alternate cache file if it wants to.
  2439. # Prefer an explicitly selected file to automatically selected ones.
  2440. ac_site_file1=NONE
  2441. ac_site_file2=NONE
  2442. if test -n "$CONFIG_SITE"; then
  2443. # We do not want a PATH search for config.site.
  2444. case $CONFIG_SITE in #((
  2445. -*) ac_site_file1=./$CONFIG_SITE;;
  2446. */*) ac_site_file1=$CONFIG_SITE;;
  2447. *) ac_site_file1=./$CONFIG_SITE;;
  2448. esac
  2449. elif test "x$prefix" != xNONE; then
  2450. ac_site_file1=$prefix/share/config.site
  2451. ac_site_file2=$prefix/etc/config.site
  2452. else
  2453. ac_site_file1=$ac_default_prefix/share/config.site
  2454. ac_site_file2=$ac_default_prefix/etc/config.site
  2455. fi
  2456. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2457. do
  2458. test "x$ac_site_file" = xNONE && continue
  2459. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2461. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2462. sed 's/^/| /' "$ac_site_file" >&5
  2463. . "$ac_site_file" \
  2464. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2466. as_fn_error $? "failed to load site script $ac_site_file
  2467. See \`config.log' for more details" "$LINENO" 5; }
  2468. fi
  2469. done
  2470. if test -r "$cache_file"; then
  2471. # Some versions of bash will fail to source /dev/null (special files
  2472. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2473. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2475. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2476. case $cache_file in
  2477. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2478. *) . "./$cache_file";;
  2479. esac
  2480. fi
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2483. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2484. >$cache_file
  2485. fi
  2486. # Check that the precious variables saved in the cache have kept the same
  2487. # value.
  2488. ac_cache_corrupted=false
  2489. for ac_var in $ac_precious_vars; do
  2490. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2491. eval ac_new_set=\$ac_env_${ac_var}_set
  2492. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2493. eval ac_new_val=\$ac_env_${ac_var}_value
  2494. case $ac_old_set,$ac_new_set in
  2495. set,)
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2497. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2498. ac_cache_corrupted=: ;;
  2499. ,set)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2501. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2502. ac_cache_corrupted=: ;;
  2503. ,);;
  2504. *)
  2505. if test "x$ac_old_val" != "x$ac_new_val"; then
  2506. # differences in whitespace do not lead to failure.
  2507. ac_old_val_w=`echo x $ac_old_val`
  2508. ac_new_val_w=`echo x $ac_new_val`
  2509. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2511. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2512. ac_cache_corrupted=:
  2513. else
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2515. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2516. eval $ac_var=\$ac_old_val
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2519. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2521. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2522. fi;;
  2523. esac
  2524. # Pass precious variables to config.status.
  2525. if test "$ac_new_set" = set; then
  2526. case $ac_new_val in
  2527. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2528. *) ac_arg=$ac_var=$ac_new_val ;;
  2529. esac
  2530. case " $ac_configure_args " in
  2531. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2532. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2533. esac
  2534. fi
  2535. done
  2536. if $ac_cache_corrupted; then
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2540. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2541. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2542. fi
  2543. ## -------------------- ##
  2544. ## Main body of script. ##
  2545. ## -------------------- ##
  2546. ac_ext=c
  2547. ac_cpp='$CPP $CPPFLAGS'
  2548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2551. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2552. ac_aux_dir=
  2553. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2554. if test -f "$ac_dir/install-sh"; then
  2555. ac_aux_dir=$ac_dir
  2556. ac_install_sh="$ac_aux_dir/install-sh -c"
  2557. break
  2558. elif test -f "$ac_dir/install.sh"; then
  2559. ac_aux_dir=$ac_dir
  2560. ac_install_sh="$ac_aux_dir/install.sh -c"
  2561. break
  2562. elif test -f "$ac_dir/shtool"; then
  2563. ac_aux_dir=$ac_dir
  2564. ac_install_sh="$ac_aux_dir/shtool install -c"
  2565. break
  2566. fi
  2567. done
  2568. if test -z "$ac_aux_dir"; then
  2569. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2570. fi
  2571. # These three variables are undocumented and unsupported,
  2572. # and are intended to be withdrawn in a future Autoconf release.
  2573. # They can cause serious problems if a builder's source tree is in a directory
  2574. # whose full name contains unusual characters.
  2575. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2576. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2577. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2578. orig_CFLAGS="$CFLAGS"
  2579. #
  2580. # Making releases:
  2581. # Edit include/SDL_version.h and change the version, then:
  2582. # SDL_MICRO_VERSION += 1;
  2583. # SDL_INTERFACE_AGE += 1;
  2584. # SDL_BINARY_AGE += 1;
  2585. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2586. # if backwards compatibility has been broken,
  2587. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2588. #
  2589. SDL_MAJOR_VERSION=2
  2590. SDL_MINOR_VERSION=0
  2591. SDL_MICRO_VERSION=14
  2592. SDL_INTERFACE_AGE=0
  2593. SDL_BINARY_AGE=14
  2594. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2595. # libtool versioning
  2596. case `pwd` in
  2597. *\ * | *\ *)
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2599. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2600. esac
  2601. macro_version='2.4.2'
  2602. macro_revision='1.3337'
  2603. ltmain="$ac_aux_dir/ltmain.sh"
  2604. # Make sure we can run config.sub.
  2605. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2606. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2608. $as_echo_n "checking build system type... " >&6; }
  2609. if ${ac_cv_build+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. ac_build_alias=$build_alias
  2613. test "x$ac_build_alias" = x &&
  2614. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2615. test "x$ac_build_alias" = x &&
  2616. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2617. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2618. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2619. fi
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2621. $as_echo "$ac_cv_build" >&6; }
  2622. case $ac_cv_build in
  2623. *-*-*) ;;
  2624. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2625. esac
  2626. build=$ac_cv_build
  2627. ac_save_IFS=$IFS; IFS='-'
  2628. set x $ac_cv_build
  2629. shift
  2630. build_cpu=$1
  2631. build_vendor=$2
  2632. shift; shift
  2633. # Remember, the first character of IFS is used to create $*,
  2634. # except with old shells:
  2635. build_os=$*
  2636. IFS=$ac_save_IFS
  2637. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2639. $as_echo_n "checking host system type... " >&6; }
  2640. if ${ac_cv_host+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. if test "x$host_alias" = x; then
  2644. ac_cv_host=$ac_cv_build
  2645. else
  2646. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2647. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2648. fi
  2649. fi
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2651. $as_echo "$ac_cv_host" >&6; }
  2652. case $ac_cv_host in
  2653. *-*-*) ;;
  2654. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2655. esac
  2656. host=$ac_cv_host
  2657. ac_save_IFS=$IFS; IFS='-'
  2658. set x $ac_cv_host
  2659. shift
  2660. host_cpu=$1
  2661. host_vendor=$2
  2662. shift; shift
  2663. # Remember, the first character of IFS is used to create $*,
  2664. # except with old shells:
  2665. host_os=$*
  2666. IFS=$ac_save_IFS
  2667. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2668. # Backslashify metacharacters that are still active within
  2669. # double-quoted strings.
  2670. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2671. # Same as above, but do not quote variable references.
  2672. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2673. # Sed substitution to delay expansion of an escaped shell variable in a
  2674. # double_quote_subst'ed string.
  2675. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2676. # Sed substitution to delay expansion of an escaped single quote.
  2677. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2678. # Sed substitution to avoid accidental globbing in evaled expressions
  2679. no_glob_subst='s/\*/\\\*/g'
  2680. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2681. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2682. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2684. $as_echo_n "checking how to print strings... " >&6; }
  2685. # Test print first, because it will be a builtin if present.
  2686. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2687. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2688. ECHO='print -r --'
  2689. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2690. ECHO='printf %s\n'
  2691. else
  2692. # Use this function as a fallback that always works.
  2693. func_fallback_echo ()
  2694. {
  2695. eval 'cat <<_LTECHO_EOF
  2696. $1
  2697. _LTECHO_EOF'
  2698. }
  2699. ECHO='func_fallback_echo'
  2700. fi
  2701. # func_echo_all arg...
  2702. # Invoke $ECHO with all args, space-separated.
  2703. func_echo_all ()
  2704. {
  2705. $ECHO ""
  2706. }
  2707. case "$ECHO" in
  2708. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2709. $as_echo "printf" >&6; } ;;
  2710. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2711. $as_echo "print -r" >&6; } ;;
  2712. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2713. $as_echo "cat" >&6; } ;;
  2714. esac
  2715. ac_ext=c
  2716. ac_cpp='$CPP $CPPFLAGS'
  2717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2720. if test -n "$ac_tool_prefix"; then
  2721. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2722. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2724. $as_echo_n "checking for $ac_word... " >&6; }
  2725. if ${ac_cv_prog_CC+:} false; then :
  2726. $as_echo_n "(cached) " >&6
  2727. else
  2728. if test -n "$CC"; then
  2729. ac_cv_prog_CC="$CC" # Let the user override the test.
  2730. else
  2731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2732. for as_dir in $PATH
  2733. do
  2734. IFS=$as_save_IFS
  2735. test -z "$as_dir" && as_dir=.
  2736. for ac_exec_ext in '' $ac_executable_extensions; do
  2737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2738. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2740. break 2
  2741. fi
  2742. done
  2743. done
  2744. IFS=$as_save_IFS
  2745. fi
  2746. fi
  2747. CC=$ac_cv_prog_CC
  2748. if test -n "$CC"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2750. $as_echo "$CC" >&6; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2753. $as_echo "no" >&6; }
  2754. fi
  2755. fi
  2756. if test -z "$ac_cv_prog_CC"; then
  2757. ac_ct_CC=$CC
  2758. # Extract the first word of "gcc", so it can be a program name with args.
  2759. set dummy gcc; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. if test -n "$ac_ct_CC"; then
  2766. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. test -z "$as_dir" && as_dir=.
  2773. for ac_exec_ext in '' $ac_executable_extensions; do
  2774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2775. ac_cv_prog_ac_ct_CC="gcc"
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2777. break 2
  2778. fi
  2779. done
  2780. done
  2781. IFS=$as_save_IFS
  2782. fi
  2783. fi
  2784. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2785. if test -n "$ac_ct_CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2787. $as_echo "$ac_ct_CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. if test "x$ac_ct_CC" = x; then
  2793. CC=""
  2794. else
  2795. case $cross_compiling:$ac_tool_warned in
  2796. yes:)
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2798. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2799. ac_tool_warned=yes ;;
  2800. esac
  2801. CC=$ac_ct_CC
  2802. fi
  2803. else
  2804. CC="$ac_cv_prog_CC"
  2805. fi
  2806. if test -z "$CC"; then
  2807. if test -n "$ac_tool_prefix"; then
  2808. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2809. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_CC+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$CC"; then
  2816. ac_cv_prog_CC="$CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. CC=$ac_cv_prog_CC
  2835. if test -n "$CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2837. $as_echo "$CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. fi
  2843. fi
  2844. if test -z "$CC"; then
  2845. # Extract the first word of "cc", so it can be a program name with args.
  2846. set dummy cc; ac_word=$2
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2848. $as_echo_n "checking for $ac_word... " >&6; }
  2849. if ${ac_cv_prog_CC+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if test -n "$CC"; then
  2853. ac_cv_prog_CC="$CC" # Let the user override the test.
  2854. else
  2855. ac_prog_rejected=no
  2856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2857. for as_dir in $PATH
  2858. do
  2859. IFS=$as_save_IFS
  2860. test -z "$as_dir" && as_dir=.
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2863. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2864. ac_prog_rejected=yes
  2865. continue
  2866. fi
  2867. ac_cv_prog_CC="cc"
  2868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2869. break 2
  2870. fi
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. if test $ac_prog_rejected = yes; then
  2875. # We found a bogon in the path, so make sure we never use it.
  2876. set dummy $ac_cv_prog_CC
  2877. shift
  2878. if test $# != 0; then
  2879. # We chose a different compiler from the bogus one.
  2880. # However, it has the same basename, so the bogon will be chosen
  2881. # first if we set CC to just the basename; use the full file name.
  2882. shift
  2883. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2884. fi
  2885. fi
  2886. fi
  2887. fi
  2888. CC=$ac_cv_prog_CC
  2889. if test -n "$CC"; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2891. $as_echo "$CC" >&6; }
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. fi
  2897. if test -z "$CC"; then
  2898. if test -n "$ac_tool_prefix"; then
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if ${ac_cv_prog_CC+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$CC"; then
  2909. ac_cv_prog_CC="$CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2918. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. CC=$ac_cv_prog_CC
  2928. if test -n "$CC"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2930. $as_echo "$CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$CC" && break
  2936. done
  2937. fi
  2938. if test -z "$CC"; then
  2939. ac_ct_CC=$CC
  2940. for ac_prog in cl.exe
  2941. do
  2942. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2943. set dummy $ac_prog; ac_word=$2
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2945. $as_echo_n "checking for $ac_word... " >&6; }
  2946. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2947. $as_echo_n "(cached) " >&6
  2948. else
  2949. if test -n "$ac_ct_CC"; then
  2950. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2951. else
  2952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2953. for as_dir in $PATH
  2954. do
  2955. IFS=$as_save_IFS
  2956. test -z "$as_dir" && as_dir=.
  2957. for ac_exec_ext in '' $ac_executable_extensions; do
  2958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2959. ac_cv_prog_ac_ct_CC="$ac_prog"
  2960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2961. break 2
  2962. fi
  2963. done
  2964. done
  2965. IFS=$as_save_IFS
  2966. fi
  2967. fi
  2968. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2969. if test -n "$ac_ct_CC"; then
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2971. $as_echo "$ac_ct_CC" >&6; }
  2972. else
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2974. $as_echo "no" >&6; }
  2975. fi
  2976. test -n "$ac_ct_CC" && break
  2977. done
  2978. if test "x$ac_ct_CC" = x; then
  2979. CC=""
  2980. else
  2981. case $cross_compiling:$ac_tool_warned in
  2982. yes:)
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2985. ac_tool_warned=yes ;;
  2986. esac
  2987. CC=$ac_ct_CC
  2988. fi
  2989. fi
  2990. fi
  2991. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. as_fn_error $? "no acceptable C compiler found in \$PATH
  2994. See \`config.log' for more details" "$LINENO" 5; }
  2995. # Provide some information about the compiler.
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2997. set X $ac_compile
  2998. ac_compiler=$2
  2999. for ac_option in --version -v -V -qversion; do
  3000. { { ac_try="$ac_compiler $ac_option >&5"
  3001. case "(($ac_try" in
  3002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3003. *) ac_try_echo=$ac_try;;
  3004. esac
  3005. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3006. $as_echo "$ac_try_echo"; } >&5
  3007. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3008. ac_status=$?
  3009. if test -s conftest.err; then
  3010. sed '10a\
  3011. ... rest of stderr output deleted ...
  3012. 10q' conftest.err >conftest.er1
  3013. cat conftest.er1 >&5
  3014. fi
  3015. rm -f conftest.er1 conftest.err
  3016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3017. test $ac_status = 0; }
  3018. done
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. ;
  3025. return 0;
  3026. }
  3027. _ACEOF
  3028. ac_clean_files_save=$ac_clean_files
  3029. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3030. # Try to create an executable without -o first, disregard a.out.
  3031. # It will help us diagnose broken compilers, and finding out an intuition
  3032. # of exeext.
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3034. $as_echo_n "checking whether the C compiler works... " >&6; }
  3035. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3036. # The possible output files:
  3037. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3038. ac_rmfiles=
  3039. for ac_file in $ac_files
  3040. do
  3041. case $ac_file in
  3042. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3043. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3044. esac
  3045. done
  3046. rm -f $ac_rmfiles
  3047. if { { ac_try="$ac_link_default"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo"; } >&5
  3054. (eval "$ac_link_default") 2>&5
  3055. ac_status=$?
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3057. test $ac_status = 0; }; then :
  3058. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3059. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3060. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3061. # so that the user can short-circuit this test for compilers unknown to
  3062. # Autoconf.
  3063. for ac_file in $ac_files ''
  3064. do
  3065. test -f "$ac_file" || continue
  3066. case $ac_file in
  3067. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3068. ;;
  3069. [ab].out )
  3070. # We found the default executable, but exeext='' is most
  3071. # certainly right.
  3072. break;;
  3073. *.* )
  3074. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3075. then :; else
  3076. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3077. fi
  3078. # We set ac_cv_exeext here because the later test for it is not
  3079. # safe: cross compilers may not add the suffix if given an `-o'
  3080. # argument, so we may need to know it at that point already.
  3081. # Even if this section looks crufty: it has the advantage of
  3082. # actually working.
  3083. break;;
  3084. * )
  3085. break;;
  3086. esac
  3087. done
  3088. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3089. else
  3090. ac_file=''
  3091. fi
  3092. if test -z "$ac_file"; then :
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3094. $as_echo "no" >&6; }
  3095. $as_echo "$as_me: failed program was:" >&5
  3096. sed 's/^/| /' conftest.$ac_ext >&5
  3097. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3098. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3099. as_fn_error 77 "C compiler cannot create executables
  3100. See \`config.log' for more details" "$LINENO" 5; }
  3101. else
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3103. $as_echo "yes" >&6; }
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3106. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3108. $as_echo "$ac_file" >&6; }
  3109. ac_exeext=$ac_cv_exeext
  3110. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3111. ac_clean_files=$ac_clean_files_save
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3113. $as_echo_n "checking for suffix of executables... " >&6; }
  3114. if { { ac_try="$ac_link"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. $as_echo "$ac_try_echo"; } >&5
  3121. (eval "$ac_link") 2>&5
  3122. ac_status=$?
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3124. test $ac_status = 0; }; then :
  3125. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3126. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3127. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3128. # `rm'.
  3129. for ac_file in conftest.exe conftest conftest.*; do
  3130. test -f "$ac_file" || continue
  3131. case $ac_file in
  3132. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3133. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3134. break;;
  3135. * ) break;;
  3136. esac
  3137. done
  3138. else
  3139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3141. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3142. See \`config.log' for more details" "$LINENO" 5; }
  3143. fi
  3144. rm -f conftest conftest$ac_cv_exeext
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3146. $as_echo "$ac_cv_exeext" >&6; }
  3147. rm -f conftest.$ac_ext
  3148. EXEEXT=$ac_cv_exeext
  3149. ac_exeext=$EXEEXT
  3150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3151. /* end confdefs.h. */
  3152. #include <stdio.h>
  3153. int
  3154. main ()
  3155. {
  3156. FILE *f = fopen ("conftest.out", "w");
  3157. return ferror (f) || fclose (f) != 0;
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. ac_clean_files="$ac_clean_files conftest.out"
  3163. # Check that the compiler produces executables we can run. If not, either
  3164. # the compiler is broken, or we cross compile.
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3166. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3167. if test "$cross_compiling" != yes; then
  3168. { { ac_try="$ac_link"
  3169. case "(($ac_try" in
  3170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3171. *) ac_try_echo=$ac_try;;
  3172. esac
  3173. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3174. $as_echo "$ac_try_echo"; } >&5
  3175. (eval "$ac_link") 2>&5
  3176. ac_status=$?
  3177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3178. test $ac_status = 0; }
  3179. if { ac_try='./conftest$ac_cv_exeext'
  3180. { { case "(($ac_try" in
  3181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3182. *) ac_try_echo=$ac_try;;
  3183. esac
  3184. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3185. $as_echo "$ac_try_echo"; } >&5
  3186. (eval "$ac_try") 2>&5
  3187. ac_status=$?
  3188. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3189. test $ac_status = 0; }; }; then
  3190. cross_compiling=no
  3191. else
  3192. if test "$cross_compiling" = maybe; then
  3193. cross_compiling=yes
  3194. else
  3195. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3196. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3197. as_fn_error $? "cannot run C compiled programs.
  3198. If you meant to cross compile, use \`--host'.
  3199. See \`config.log' for more details" "$LINENO" 5; }
  3200. fi
  3201. fi
  3202. fi
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3204. $as_echo "$cross_compiling" >&6; }
  3205. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3206. ac_clean_files=$ac_clean_files_save
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3208. $as_echo_n "checking for suffix of object files... " >&6; }
  3209. if ${ac_cv_objext+:} false; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end confdefs.h. */
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. rm -f conftest.o conftest.obj
  3222. if { { ac_try="$ac_compile"
  3223. case "(($ac_try" in
  3224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3225. *) ac_try_echo=$ac_try;;
  3226. esac
  3227. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3228. $as_echo "$ac_try_echo"; } >&5
  3229. (eval "$ac_compile") 2>&5
  3230. ac_status=$?
  3231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3232. test $ac_status = 0; }; then :
  3233. for ac_file in conftest.o conftest.obj conftest.*; do
  3234. test -f "$ac_file" || continue;
  3235. case $ac_file in
  3236. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3237. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3238. break;;
  3239. esac
  3240. done
  3241. else
  3242. $as_echo "$as_me: failed program was:" >&5
  3243. sed 's/^/| /' conftest.$ac_ext >&5
  3244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3246. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3247. See \`config.log' for more details" "$LINENO" 5; }
  3248. fi
  3249. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3252. $as_echo "$ac_cv_objext" >&6; }
  3253. OBJEXT=$ac_cv_objext
  3254. ac_objext=$OBJEXT
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3256. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3257. if ${ac_cv_c_compiler_gnu+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3261. /* end confdefs.h. */
  3262. int
  3263. main ()
  3264. {
  3265. #ifndef __GNUC__
  3266. choke me
  3267. #endif
  3268. ;
  3269. return 0;
  3270. }
  3271. _ACEOF
  3272. if ac_fn_c_try_compile "$LINENO"; then :
  3273. ac_compiler_gnu=yes
  3274. else
  3275. ac_compiler_gnu=no
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3278. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3281. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3282. if test $ac_compiler_gnu = yes; then
  3283. GCC=yes
  3284. else
  3285. GCC=
  3286. fi
  3287. ac_test_CFLAGS=${CFLAGS+set}
  3288. ac_save_CFLAGS=$CFLAGS
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3290. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3291. if ${ac_cv_prog_cc_g+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. ac_save_c_werror_flag=$ac_c_werror_flag
  3295. ac_c_werror_flag=yes
  3296. ac_cv_prog_cc_g=no
  3297. CFLAGS="-g"
  3298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3299. /* end confdefs.h. */
  3300. int
  3301. main ()
  3302. {
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. if ac_fn_c_try_compile "$LINENO"; then :
  3308. ac_cv_prog_cc_g=yes
  3309. else
  3310. CFLAGS=""
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. int
  3314. main ()
  3315. {
  3316. ;
  3317. return 0;
  3318. }
  3319. _ACEOF
  3320. if ac_fn_c_try_compile "$LINENO"; then :
  3321. else
  3322. ac_c_werror_flag=$ac_save_c_werror_flag
  3323. CFLAGS="-g"
  3324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3325. /* end confdefs.h. */
  3326. int
  3327. main ()
  3328. {
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. if ac_fn_c_try_compile "$LINENO"; then :
  3334. ac_cv_prog_cc_g=yes
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. ac_c_werror_flag=$ac_save_c_werror_flag
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3344. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3345. if test "$ac_test_CFLAGS" = set; then
  3346. CFLAGS=$ac_save_CFLAGS
  3347. elif test $ac_cv_prog_cc_g = yes; then
  3348. if test "$GCC" = yes; then
  3349. CFLAGS="-g -O2"
  3350. else
  3351. CFLAGS="-g"
  3352. fi
  3353. else
  3354. if test "$GCC" = yes; then
  3355. CFLAGS="-O2"
  3356. else
  3357. CFLAGS=
  3358. fi
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3361. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3362. if ${ac_cv_prog_cc_c89+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. ac_cv_prog_cc_c89=no
  3366. ac_save_CC=$CC
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <stdarg.h>
  3370. #include <stdio.h>
  3371. struct stat;
  3372. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3373. struct buf { int x; };
  3374. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3375. static char *e (p, i)
  3376. char **p;
  3377. int i;
  3378. {
  3379. return p[i];
  3380. }
  3381. static char *f (char * (*g) (char **, int), char **p, ...)
  3382. {
  3383. char *s;
  3384. va_list v;
  3385. va_start (v,p);
  3386. s = g (p, va_arg (v,int));
  3387. va_end (v);
  3388. return s;
  3389. }
  3390. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3391. function prototypes and stuff, but not '\xHH' hex character constants.
  3392. These don't provoke an error unfortunately, instead are silently treated
  3393. as 'x'. The following induces an error, until -std is added to get
  3394. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3395. array size at least. It's necessary to write '\x00'==0 to get something
  3396. that's true only with -std. */
  3397. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3398. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3399. inside strings and character constants. */
  3400. #define FOO(x) 'x'
  3401. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3402. int test (int i, double x);
  3403. struct s1 {int (*f) (int a);};
  3404. struct s2 {int (*f) (double a);};
  3405. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3406. int argc;
  3407. char **argv;
  3408. int
  3409. main ()
  3410. {
  3411. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3412. ;
  3413. return 0;
  3414. }
  3415. _ACEOF
  3416. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3417. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3418. do
  3419. CC="$ac_save_CC $ac_arg"
  3420. if ac_fn_c_try_compile "$LINENO"; then :
  3421. ac_cv_prog_cc_c89=$ac_arg
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext
  3424. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3425. done
  3426. rm -f conftest.$ac_ext
  3427. CC=$ac_save_CC
  3428. fi
  3429. # AC_CACHE_VAL
  3430. case "x$ac_cv_prog_cc_c89" in
  3431. x)
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3433. $as_echo "none needed" >&6; } ;;
  3434. xno)
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3436. $as_echo "unsupported" >&6; } ;;
  3437. *)
  3438. CC="$CC $ac_cv_prog_cc_c89"
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3440. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3441. esac
  3442. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3443. fi
  3444. ac_ext=c
  3445. ac_cpp='$CPP $CPPFLAGS'
  3446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3450. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3451. if ${ac_cv_path_SED+:} false; then :
  3452. $as_echo_n "(cached) " >&6
  3453. else
  3454. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3455. for ac_i in 1 2 3 4 5 6 7; do
  3456. ac_script="$ac_script$as_nl$ac_script"
  3457. done
  3458. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3459. { ac_script=; unset ac_script;}
  3460. if test -z "$SED"; then
  3461. ac_path_SED_found=false
  3462. # Loop through the user's path and test for each of PROGNAME-LIST
  3463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3464. for as_dir in $PATH
  3465. do
  3466. IFS=$as_save_IFS
  3467. test -z "$as_dir" && as_dir=.
  3468. for ac_prog in sed gsed; do
  3469. for ac_exec_ext in '' $ac_executable_extensions; do
  3470. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3471. as_fn_executable_p "$ac_path_SED" || continue
  3472. # Check for GNU ac_path_SED and select it if it is found.
  3473. # Check for GNU $ac_path_SED
  3474. case `"$ac_path_SED" --version 2>&1` in
  3475. *GNU*)
  3476. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3477. *)
  3478. ac_count=0
  3479. $as_echo_n 0123456789 >"conftest.in"
  3480. while :
  3481. do
  3482. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3483. mv "conftest.tmp" "conftest.in"
  3484. cp "conftest.in" "conftest.nl"
  3485. $as_echo '' >> "conftest.nl"
  3486. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3487. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3488. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3489. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3490. # Best one so far, save it but keep looking for a better one
  3491. ac_cv_path_SED="$ac_path_SED"
  3492. ac_path_SED_max=$ac_count
  3493. fi
  3494. # 10*(2^10) chars as input seems more than enough
  3495. test $ac_count -gt 10 && break
  3496. done
  3497. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3498. esac
  3499. $ac_path_SED_found && break 3
  3500. done
  3501. done
  3502. done
  3503. IFS=$as_save_IFS
  3504. if test -z "$ac_cv_path_SED"; then
  3505. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3506. fi
  3507. else
  3508. ac_cv_path_SED=$SED
  3509. fi
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3512. $as_echo "$ac_cv_path_SED" >&6; }
  3513. SED="$ac_cv_path_SED"
  3514. rm -f conftest.sed
  3515. test -z "$SED" && SED=sed
  3516. Xsed="$SED -e 1s/^X//"
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3518. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3519. if ${ac_cv_path_GREP+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. if test -z "$GREP"; then
  3523. ac_path_GREP_found=false
  3524. # Loop through the user's path and test for each of PROGNAME-LIST
  3525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3526. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3527. do
  3528. IFS=$as_save_IFS
  3529. test -z "$as_dir" && as_dir=.
  3530. for ac_prog in grep ggrep; do
  3531. for ac_exec_ext in '' $ac_executable_extensions; do
  3532. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3533. as_fn_executable_p "$ac_path_GREP" || continue
  3534. # Check for GNU ac_path_GREP and select it if it is found.
  3535. # Check for GNU $ac_path_GREP
  3536. case `"$ac_path_GREP" --version 2>&1` in
  3537. *GNU*)
  3538. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3539. *)
  3540. ac_count=0
  3541. $as_echo_n 0123456789 >"conftest.in"
  3542. while :
  3543. do
  3544. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3545. mv "conftest.tmp" "conftest.in"
  3546. cp "conftest.in" "conftest.nl"
  3547. $as_echo 'GREP' >> "conftest.nl"
  3548. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3549. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3550. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3551. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3552. # Best one so far, save it but keep looking for a better one
  3553. ac_cv_path_GREP="$ac_path_GREP"
  3554. ac_path_GREP_max=$ac_count
  3555. fi
  3556. # 10*(2^10) chars as input seems more than enough
  3557. test $ac_count -gt 10 && break
  3558. done
  3559. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3560. esac
  3561. $ac_path_GREP_found && break 3
  3562. done
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. if test -z "$ac_cv_path_GREP"; then
  3567. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3568. fi
  3569. else
  3570. ac_cv_path_GREP=$GREP
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3574. $as_echo "$ac_cv_path_GREP" >&6; }
  3575. GREP="$ac_cv_path_GREP"
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3577. $as_echo_n "checking for egrep... " >&6; }
  3578. if ${ac_cv_path_EGREP+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3582. then ac_cv_path_EGREP="$GREP -E"
  3583. else
  3584. if test -z "$EGREP"; then
  3585. ac_path_EGREP_found=false
  3586. # Loop through the user's path and test for each of PROGNAME-LIST
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_prog in egrep; do
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3595. as_fn_executable_p "$ac_path_EGREP" || continue
  3596. # Check for GNU ac_path_EGREP and select it if it is found.
  3597. # Check for GNU $ac_path_EGREP
  3598. case `"$ac_path_EGREP" --version 2>&1` in
  3599. *GNU*)
  3600. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3601. *)
  3602. ac_count=0
  3603. $as_echo_n 0123456789 >"conftest.in"
  3604. while :
  3605. do
  3606. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3607. mv "conftest.tmp" "conftest.in"
  3608. cp "conftest.in" "conftest.nl"
  3609. $as_echo 'EGREP' >> "conftest.nl"
  3610. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3611. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3612. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3613. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3614. # Best one so far, save it but keep looking for a better one
  3615. ac_cv_path_EGREP="$ac_path_EGREP"
  3616. ac_path_EGREP_max=$ac_count
  3617. fi
  3618. # 10*(2^10) chars as input seems more than enough
  3619. test $ac_count -gt 10 && break
  3620. done
  3621. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3622. esac
  3623. $ac_path_EGREP_found && break 3
  3624. done
  3625. done
  3626. done
  3627. IFS=$as_save_IFS
  3628. if test -z "$ac_cv_path_EGREP"; then
  3629. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3630. fi
  3631. else
  3632. ac_cv_path_EGREP=$EGREP
  3633. fi
  3634. fi
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3637. $as_echo "$ac_cv_path_EGREP" >&6; }
  3638. EGREP="$ac_cv_path_EGREP"
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3640. $as_echo_n "checking for fgrep... " >&6; }
  3641. if ${ac_cv_path_FGREP+:} false; then :
  3642. $as_echo_n "(cached) " >&6
  3643. else
  3644. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3645. then ac_cv_path_FGREP="$GREP -F"
  3646. else
  3647. if test -z "$FGREP"; then
  3648. ac_path_FGREP_found=false
  3649. # Loop through the user's path and test for each of PROGNAME-LIST
  3650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3651. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3652. do
  3653. IFS=$as_save_IFS
  3654. test -z "$as_dir" && as_dir=.
  3655. for ac_prog in fgrep; do
  3656. for ac_exec_ext in '' $ac_executable_extensions; do
  3657. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3658. as_fn_executable_p "$ac_path_FGREP" || continue
  3659. # Check for GNU ac_path_FGREP and select it if it is found.
  3660. # Check for GNU $ac_path_FGREP
  3661. case `"$ac_path_FGREP" --version 2>&1` in
  3662. *GNU*)
  3663. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3664. *)
  3665. ac_count=0
  3666. $as_echo_n 0123456789 >"conftest.in"
  3667. while :
  3668. do
  3669. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3670. mv "conftest.tmp" "conftest.in"
  3671. cp "conftest.in" "conftest.nl"
  3672. $as_echo 'FGREP' >> "conftest.nl"
  3673. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3674. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3675. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3676. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3677. # Best one so far, save it but keep looking for a better one
  3678. ac_cv_path_FGREP="$ac_path_FGREP"
  3679. ac_path_FGREP_max=$ac_count
  3680. fi
  3681. # 10*(2^10) chars as input seems more than enough
  3682. test $ac_count -gt 10 && break
  3683. done
  3684. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3685. esac
  3686. $ac_path_FGREP_found && break 3
  3687. done
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. if test -z "$ac_cv_path_FGREP"; then
  3692. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3693. fi
  3694. else
  3695. ac_cv_path_FGREP=$FGREP
  3696. fi
  3697. fi
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3700. $as_echo "$ac_cv_path_FGREP" >&6; }
  3701. FGREP="$ac_cv_path_FGREP"
  3702. test -z "$GREP" && GREP=grep
  3703. # Check whether --with-gnu-ld was given.
  3704. if test "${with_gnu_ld+set}" = set; then :
  3705. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3706. else
  3707. with_gnu_ld=no
  3708. fi
  3709. ac_prog=ld
  3710. if test "$GCC" = yes; then
  3711. # Check if gcc -print-prog-name=ld gives a path.
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3713. $as_echo_n "checking for ld used by $CC... " >&6; }
  3714. case $host in
  3715. *-*-mingw*)
  3716. # gcc leaves a trailing carriage return which upsets mingw
  3717. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3718. *)
  3719. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3720. esac
  3721. case $ac_prog in
  3722. # Accept absolute paths.
  3723. [\\/]* | ?:[\\/]*)
  3724. re_direlt='/[^/][^/]*/\.\./'
  3725. # Canonicalize the pathname of ld
  3726. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3727. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3728. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3729. done
  3730. test -z "$LD" && LD="$ac_prog"
  3731. ;;
  3732. "")
  3733. # If it fails, then pretend we aren't using GCC.
  3734. ac_prog=ld
  3735. ;;
  3736. *)
  3737. # If it is relative, then search for the first ld in PATH.
  3738. with_gnu_ld=unknown
  3739. ;;
  3740. esac
  3741. elif test "$with_gnu_ld" = yes; then
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3743. $as_echo_n "checking for GNU ld... " >&6; }
  3744. else
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3746. $as_echo_n "checking for non-GNU ld... " >&6; }
  3747. fi
  3748. if ${lt_cv_path_LD+:} false; then :
  3749. $as_echo_n "(cached) " >&6
  3750. else
  3751. if test -z "$LD"; then
  3752. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3753. for ac_dir in $PATH; do
  3754. IFS="$lt_save_ifs"
  3755. test -z "$ac_dir" && ac_dir=.
  3756. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3757. lt_cv_path_LD="$ac_dir/$ac_prog"
  3758. # Check to see if the program is GNU ld. I'd rather use --version,
  3759. # but apparently some variants of GNU ld only accept -v.
  3760. # Break only if it was the GNU/non-GNU ld that we prefer.
  3761. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3762. *GNU* | *'with BFD'*)
  3763. test "$with_gnu_ld" != no && break
  3764. ;;
  3765. *)
  3766. test "$with_gnu_ld" != yes && break
  3767. ;;
  3768. esac
  3769. fi
  3770. done
  3771. IFS="$lt_save_ifs"
  3772. else
  3773. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3774. fi
  3775. fi
  3776. LD="$lt_cv_path_LD"
  3777. if test -n "$LD"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3779. $as_echo "$LD" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3786. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3787. if ${lt_cv_prog_gnu_ld+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3791. case `$LD -v 2>&1 </dev/null` in
  3792. *GNU* | *'with BFD'*)
  3793. lt_cv_prog_gnu_ld=yes
  3794. ;;
  3795. *)
  3796. lt_cv_prog_gnu_ld=no
  3797. ;;
  3798. esac
  3799. fi
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3801. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3802. with_gnu_ld=$lt_cv_prog_gnu_ld
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3804. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3805. if ${lt_cv_path_NM+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$NM"; then
  3809. # Let the user override the test.
  3810. lt_cv_path_NM="$NM"
  3811. else
  3812. lt_nm_to_check="${ac_tool_prefix}nm"
  3813. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3814. lt_nm_to_check="$lt_nm_to_check nm"
  3815. fi
  3816. for lt_tmp_nm in $lt_nm_to_check; do
  3817. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3818. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3819. IFS="$lt_save_ifs"
  3820. test -z "$ac_dir" && ac_dir=.
  3821. tmp_nm="$ac_dir/$lt_tmp_nm"
  3822. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3823. # Check to see if the nm accepts a BSD-compat flag.
  3824. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3825. # nm: unknown option "B" ignored
  3826. # Tru64's nm complains that /dev/null is an invalid object file
  3827. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3828. */dev/null* | *'Invalid file or object type'*)
  3829. lt_cv_path_NM="$tmp_nm -B"
  3830. break
  3831. ;;
  3832. *)
  3833. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3834. */dev/null*)
  3835. lt_cv_path_NM="$tmp_nm -p"
  3836. break
  3837. ;;
  3838. *)
  3839. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3840. continue # so that we can try to find one that supports BSD flags
  3841. ;;
  3842. esac
  3843. ;;
  3844. esac
  3845. fi
  3846. done
  3847. IFS="$lt_save_ifs"
  3848. done
  3849. : ${lt_cv_path_NM=no}
  3850. fi
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3853. $as_echo "$lt_cv_path_NM" >&6; }
  3854. if test "$lt_cv_path_NM" != "no"; then
  3855. NM="$lt_cv_path_NM"
  3856. else
  3857. # Didn't find any BSD compatible name lister, look for dumpbin.
  3858. if test -n "$DUMPBIN"; then :
  3859. # Let the user override the test.
  3860. else
  3861. if test -n "$ac_tool_prefix"; then
  3862. for ac_prog in dumpbin "link -dump"
  3863. do
  3864. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3865. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3867. $as_echo_n "checking for $ac_word... " >&6; }
  3868. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. if test -n "$DUMPBIN"; then
  3872. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3873. else
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. for ac_exec_ext in '' $ac_executable_extensions; do
  3880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3881. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3883. break 2
  3884. fi
  3885. done
  3886. done
  3887. IFS=$as_save_IFS
  3888. fi
  3889. fi
  3890. DUMPBIN=$ac_cv_prog_DUMPBIN
  3891. if test -n "$DUMPBIN"; then
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3893. $as_echo "$DUMPBIN" >&6; }
  3894. else
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3896. $as_echo "no" >&6; }
  3897. fi
  3898. test -n "$DUMPBIN" && break
  3899. done
  3900. fi
  3901. if test -z "$DUMPBIN"; then
  3902. ac_ct_DUMPBIN=$DUMPBIN
  3903. for ac_prog in dumpbin "link -dump"
  3904. do
  3905. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3906. set dummy $ac_prog; ac_word=$2
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3908. $as_echo_n "checking for $ac_word... " >&6; }
  3909. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. if test -n "$ac_ct_DUMPBIN"; then
  3913. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3914. else
  3915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3916. for as_dir in $PATH
  3917. do
  3918. IFS=$as_save_IFS
  3919. test -z "$as_dir" && as_dir=.
  3920. for ac_exec_ext in '' $ac_executable_extensions; do
  3921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3922. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3924. break 2
  3925. fi
  3926. done
  3927. done
  3928. IFS=$as_save_IFS
  3929. fi
  3930. fi
  3931. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3932. if test -n "$ac_ct_DUMPBIN"; then
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3934. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3935. else
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3937. $as_echo "no" >&6; }
  3938. fi
  3939. test -n "$ac_ct_DUMPBIN" && break
  3940. done
  3941. if test "x$ac_ct_DUMPBIN" = x; then
  3942. DUMPBIN=":"
  3943. else
  3944. case $cross_compiling:$ac_tool_warned in
  3945. yes:)
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3947. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3948. ac_tool_warned=yes ;;
  3949. esac
  3950. DUMPBIN=$ac_ct_DUMPBIN
  3951. fi
  3952. fi
  3953. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3954. *COFF*)
  3955. DUMPBIN="$DUMPBIN -symbols"
  3956. ;;
  3957. *)
  3958. DUMPBIN=:
  3959. ;;
  3960. esac
  3961. fi
  3962. if test "$DUMPBIN" != ":"; then
  3963. NM="$DUMPBIN"
  3964. fi
  3965. fi
  3966. test -z "$NM" && NM=nm
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3968. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3969. if ${lt_cv_nm_interface+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. lt_cv_nm_interface="BSD nm"
  3973. echo "int some_variable = 0;" > conftest.$ac_ext
  3974. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3975. (eval "$ac_compile" 2>conftest.err)
  3976. cat conftest.err >&5
  3977. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3978. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3979. cat conftest.err >&5
  3980. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3981. cat conftest.out >&5
  3982. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3983. lt_cv_nm_interface="MS dumpbin"
  3984. fi
  3985. rm -f conftest*
  3986. fi
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3988. $as_echo "$lt_cv_nm_interface" >&6; }
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3990. $as_echo_n "checking whether ln -s works... " >&6; }
  3991. LN_S=$as_ln_s
  3992. if test "$LN_S" = "ln -s"; then
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3994. $as_echo "yes" >&6; }
  3995. else
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3997. $as_echo "no, using $LN_S" >&6; }
  3998. fi
  3999. # find the maximum length of command line arguments
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4001. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4002. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. i=0
  4006. teststring="ABCD"
  4007. case $build_os in
  4008. msdosdjgpp*)
  4009. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4010. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4011. # during glob expansion). Even if it were fixed, the result of this
  4012. # check would be larger than it should be.
  4013. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4014. ;;
  4015. gnu*)
  4016. # Under GNU Hurd, this test is not required because there is
  4017. # no limit to the length of command line arguments.
  4018. # Libtool will interpret -1 as no limit whatsoever
  4019. lt_cv_sys_max_cmd_len=-1;
  4020. ;;
  4021. cygwin* | mingw* | cegcc*)
  4022. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4023. # about 5 minutes as the teststring grows exponentially.
  4024. # Worse, since 9x/ME are not pre-emptively multitasking,
  4025. # you end up with a "frozen" computer, even though with patience
  4026. # the test eventually succeeds (with a max line length of 256k).
  4027. # Instead, let's just punt: use the minimum linelength reported by
  4028. # all of the supported platforms: 8192 (on NT/2K/XP).
  4029. lt_cv_sys_max_cmd_len=8192;
  4030. ;;
  4031. mint*)
  4032. # On MiNT this can take a long time and run out of memory.
  4033. lt_cv_sys_max_cmd_len=8192;
  4034. ;;
  4035. amigaos*)
  4036. # On AmigaOS with pdksh, this test takes hours, literally.
  4037. # So we just punt and use a minimum line length of 8192.
  4038. lt_cv_sys_max_cmd_len=8192;
  4039. ;;
  4040. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4041. # This has been around since 386BSD, at least. Likely further.
  4042. if test -x /sbin/sysctl; then
  4043. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4044. elif test -x /usr/sbin/sysctl; then
  4045. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4046. else
  4047. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4048. fi
  4049. # And add a safety zone
  4050. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4051. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4052. ;;
  4053. interix*)
  4054. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4055. lt_cv_sys_max_cmd_len=196608
  4056. ;;
  4057. os2*)
  4058. # The test takes a long time on OS/2.
  4059. lt_cv_sys_max_cmd_len=8192
  4060. ;;
  4061. osf*)
  4062. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4063. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4064. # nice to cause kernel panics so lets avoid the loop below.
  4065. # First set a reasonable default.
  4066. lt_cv_sys_max_cmd_len=16384
  4067. #
  4068. if test -x /sbin/sysconfig; then
  4069. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4070. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4071. esac
  4072. fi
  4073. ;;
  4074. sco3.2v5*)
  4075. lt_cv_sys_max_cmd_len=102400
  4076. ;;
  4077. sysv5* | sco5v6* | sysv4.2uw2*)
  4078. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4079. if test -n "$kargmax"; then
  4080. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4081. else
  4082. lt_cv_sys_max_cmd_len=32768
  4083. fi
  4084. ;;
  4085. *)
  4086. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4087. if test -n "$lt_cv_sys_max_cmd_len"; then
  4088. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4089. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4090. else
  4091. # Make teststring a little bigger before we do anything with it.
  4092. # a 1K string should be a reasonable start.
  4093. for i in 1 2 3 4 5 6 7 8 ; do
  4094. teststring=$teststring$teststring
  4095. done
  4096. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4097. # If test is not a shell built-in, we'll probably end up computing a
  4098. # maximum length that is only half of the actual maximum length, but
  4099. # we can't tell.
  4100. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4101. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4102. test $i != 17 # 1/2 MB should be enough
  4103. do
  4104. i=`expr $i + 1`
  4105. teststring=$teststring$teststring
  4106. done
  4107. # Only check the string length outside the loop.
  4108. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4109. teststring=
  4110. # Add a significant safety factor because C++ compilers can tack on
  4111. # massive amounts of additional arguments before passing them to the
  4112. # linker. It appears as though 1/2 is a usable value.
  4113. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4114. fi
  4115. ;;
  4116. esac
  4117. fi
  4118. if test -n $lt_cv_sys_max_cmd_len ; then
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4120. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4121. else
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4123. $as_echo "none" >&6; }
  4124. fi
  4125. max_cmd_len=$lt_cv_sys_max_cmd_len
  4126. : ${CP="cp -f"}
  4127. : ${MV="mv -f"}
  4128. : ${RM="rm -f"}
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4130. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4131. # Try some XSI features
  4132. xsi_shell=no
  4133. ( _lt_dummy="a/b/c"
  4134. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4135. = c,a/b,b/c, \
  4136. && eval 'test $(( 1 + 1 )) -eq 2 \
  4137. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4138. && xsi_shell=yes
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4140. $as_echo "$xsi_shell" >&6; }
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4142. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4143. lt_shell_append=no
  4144. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4145. >/dev/null 2>&1 \
  4146. && lt_shell_append=yes
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4148. $as_echo "$lt_shell_append" >&6; }
  4149. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4150. lt_unset=unset
  4151. else
  4152. lt_unset=false
  4153. fi
  4154. # test EBCDIC or ASCII
  4155. case `echo X|tr X '\101'` in
  4156. A) # ASCII based system
  4157. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4158. lt_SP2NL='tr \040 \012'
  4159. lt_NL2SP='tr \015\012 \040\040'
  4160. ;;
  4161. *) # EBCDIC based system
  4162. lt_SP2NL='tr \100 \n'
  4163. lt_NL2SP='tr \r\n \100\100'
  4164. ;;
  4165. esac
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4167. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4168. if ${lt_cv_to_host_file_cmd+:} false; then :
  4169. $as_echo_n "(cached) " >&6
  4170. else
  4171. case $host in
  4172. *-*-mingw* )
  4173. case $build in
  4174. *-*-mingw* ) # actually msys
  4175. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4176. ;;
  4177. *-*-cygwin* )
  4178. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4179. ;;
  4180. * ) # otherwise, assume *nix
  4181. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4182. ;;
  4183. esac
  4184. ;;
  4185. *-*-cygwin* )
  4186. case $build in
  4187. *-*-mingw* ) # actually msys
  4188. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4189. ;;
  4190. *-*-cygwin* )
  4191. lt_cv_to_host_file_cmd=func_convert_file_noop
  4192. ;;
  4193. * ) # otherwise, assume *nix
  4194. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4195. ;;
  4196. esac
  4197. ;;
  4198. * ) # unhandled hosts (and "normal" native builds)
  4199. lt_cv_to_host_file_cmd=func_convert_file_noop
  4200. ;;
  4201. esac
  4202. fi
  4203. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4205. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4207. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4208. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. #assume ordinary cross tools, or native build.
  4212. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4213. case $host in
  4214. *-*-mingw* )
  4215. case $build in
  4216. *-*-mingw* ) # actually msys
  4217. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4218. ;;
  4219. esac
  4220. ;;
  4221. esac
  4222. fi
  4223. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4225. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4227. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4228. if ${lt_cv_ld_reload_flag+:} false; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. lt_cv_ld_reload_flag='-r'
  4232. fi
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4234. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4235. reload_flag=$lt_cv_ld_reload_flag
  4236. case $reload_flag in
  4237. "" | " "*) ;;
  4238. *) reload_flag=" $reload_flag" ;;
  4239. esac
  4240. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4241. case $host_os in
  4242. cygwin* | mingw* | pw32* | cegcc*)
  4243. if test "$GCC" != yes; then
  4244. reload_cmds=false
  4245. fi
  4246. ;;
  4247. darwin*)
  4248. if test "$GCC" = yes; then
  4249. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4250. else
  4251. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4252. fi
  4253. ;;
  4254. esac
  4255. if test -n "$ac_tool_prefix"; then
  4256. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4257. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4259. $as_echo_n "checking for $ac_word... " >&6; }
  4260. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4261. $as_echo_n "(cached) " >&6
  4262. else
  4263. if test -n "$OBJDUMP"; then
  4264. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4265. else
  4266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4267. for as_dir in $PATH
  4268. do
  4269. IFS=$as_save_IFS
  4270. test -z "$as_dir" && as_dir=.
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4273. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4275. break 2
  4276. fi
  4277. done
  4278. done
  4279. IFS=$as_save_IFS
  4280. fi
  4281. fi
  4282. OBJDUMP=$ac_cv_prog_OBJDUMP
  4283. if test -n "$OBJDUMP"; then
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4285. $as_echo "$OBJDUMP" >&6; }
  4286. else
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. fi
  4290. fi
  4291. if test -z "$ac_cv_prog_OBJDUMP"; then
  4292. ac_ct_OBJDUMP=$OBJDUMP
  4293. # Extract the first word of "objdump", so it can be a program name with args.
  4294. set dummy objdump; ac_word=$2
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4296. $as_echo_n "checking for $ac_word... " >&6; }
  4297. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if test -n "$ac_ct_OBJDUMP"; then
  4301. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4302. else
  4303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4304. for as_dir in $PATH
  4305. do
  4306. IFS=$as_save_IFS
  4307. test -z "$as_dir" && as_dir=.
  4308. for ac_exec_ext in '' $ac_executable_extensions; do
  4309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4310. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4312. break 2
  4313. fi
  4314. done
  4315. done
  4316. IFS=$as_save_IFS
  4317. fi
  4318. fi
  4319. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4320. if test -n "$ac_ct_OBJDUMP"; then
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4322. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4323. else
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4325. $as_echo "no" >&6; }
  4326. fi
  4327. if test "x$ac_ct_OBJDUMP" = x; then
  4328. OBJDUMP="false"
  4329. else
  4330. case $cross_compiling:$ac_tool_warned in
  4331. yes:)
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4334. ac_tool_warned=yes ;;
  4335. esac
  4336. OBJDUMP=$ac_ct_OBJDUMP
  4337. fi
  4338. else
  4339. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4340. fi
  4341. test -z "$OBJDUMP" && OBJDUMP=objdump
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4343. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4344. if ${lt_cv_deplibs_check_method+:} false; then :
  4345. $as_echo_n "(cached) " >&6
  4346. else
  4347. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4348. lt_cv_file_magic_test_file=
  4349. lt_cv_deplibs_check_method='unknown'
  4350. # Need to set the preceding variable on all platforms that support
  4351. # interlibrary dependencies.
  4352. # 'none' -- dependencies not supported.
  4353. # `unknown' -- same as none, but documents that we really don't know.
  4354. # 'pass_all' -- all dependencies passed with no checks.
  4355. # 'test_compile' -- check by making test program.
  4356. # 'file_magic [[regex]]' -- check by looking for files in library path
  4357. # which responds to the $file_magic_cmd with a given extended regex.
  4358. # If you have `file' or equivalent on your system and you're not sure
  4359. # whether `pass_all' will *always* work, you probably want this one.
  4360. case $host_os in
  4361. aix[4-9]*)
  4362. lt_cv_deplibs_check_method=pass_all
  4363. ;;
  4364. beos*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. bsdi[45]*)
  4368. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4369. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4370. lt_cv_file_magic_test_file=/shlib/libc.so
  4371. ;;
  4372. cygwin*)
  4373. # func_win32_libid is a shell function defined in ltmain.sh
  4374. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4375. lt_cv_file_magic_cmd='func_win32_libid'
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. mingw* | pw32*)
  4379. # Base MSYS/MinGW do not provide the 'file' command needed by
  4380. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4381. # unless we find 'file', for example because we are cross-compiling.
  4382. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4383. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4384. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4385. lt_cv_file_magic_cmd='func_win32_libid'
  4386. else
  4387. # Keep this pattern in sync with the one in func_win32_libid.
  4388. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4389. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4390. fi
  4391. lt_cv_deplibs_check_method=pass_all
  4392. ;;
  4393. cegcc*)
  4394. # use the weaker test based on 'objdump'. See mingw*.
  4395. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4396. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4397. ;;
  4398. darwin* | rhapsody*)
  4399. lt_cv_deplibs_check_method=pass_all
  4400. ;;
  4401. freebsd* | dragonfly*)
  4402. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4403. case $host_cpu in
  4404. i*86 )
  4405. # Not sure whether the presence of OpenBSD here was a mistake.
  4406. # Let's accept both of them until this is cleared up.
  4407. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4408. lt_cv_file_magic_cmd=/usr/bin/file
  4409. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4410. ;;
  4411. esac
  4412. else
  4413. lt_cv_deplibs_check_method=pass_all
  4414. fi
  4415. ;;
  4416. gnu*)
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. haiku*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. hpux10.20* | hpux11*)
  4423. lt_cv_file_magic_cmd=/usr/bin/file
  4424. case $host_cpu in
  4425. ia64*)
  4426. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4427. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4428. ;;
  4429. hppa*64*)
  4430. 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]'
  4431. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4432. ;;
  4433. *)
  4434. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4435. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4436. ;;
  4437. esac
  4438. ;;
  4439. interix[3-9]*)
  4440. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4441. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4442. ;;
  4443. irix5* | irix6* | nonstopux*)
  4444. case $LD in
  4445. *-32|*"-32 ") libmagic=32-bit;;
  4446. *-n32|*"-n32 ") libmagic=N32;;
  4447. *-64|*"-64 ") libmagic=64-bit;;
  4448. *) libmagic=never-match;;
  4449. esac
  4450. lt_cv_deplibs_check_method=pass_all
  4451. ;;
  4452. # This must be glibc/ELF.
  4453. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4454. lt_cv_deplibs_check_method=pass_all
  4455. ;;
  4456. netbsd*)
  4457. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4458. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4459. else
  4460. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4461. fi
  4462. ;;
  4463. newos6*)
  4464. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4465. lt_cv_file_magic_cmd=/usr/bin/file
  4466. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4467. ;;
  4468. *nto* | *qnx*)
  4469. lt_cv_deplibs_check_method=pass_all
  4470. ;;
  4471. openbsd*)
  4472. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4474. else
  4475. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4476. fi
  4477. ;;
  4478. osf3* | osf4* | osf5*)
  4479. lt_cv_deplibs_check_method=pass_all
  4480. ;;
  4481. rdos*)
  4482. lt_cv_deplibs_check_method=pass_all
  4483. ;;
  4484. solaris*)
  4485. lt_cv_deplibs_check_method=pass_all
  4486. ;;
  4487. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4488. lt_cv_deplibs_check_method=pass_all
  4489. ;;
  4490. sysv4 | sysv4.3*)
  4491. case $host_vendor in
  4492. motorola)
  4493. 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]'
  4494. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4495. ;;
  4496. ncr)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sequent)
  4500. lt_cv_file_magic_cmd='/bin/file'
  4501. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4502. ;;
  4503. sni)
  4504. lt_cv_file_magic_cmd='/bin/file'
  4505. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4506. lt_cv_file_magic_test_file=/lib/libc.so
  4507. ;;
  4508. siemens)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. pc)
  4512. lt_cv_deplibs_check_method=pass_all
  4513. ;;
  4514. esac
  4515. ;;
  4516. tpf*)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. esac
  4520. fi
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4522. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4523. file_magic_glob=
  4524. want_nocaseglob=no
  4525. if test "$build" = "$host"; then
  4526. case $host_os in
  4527. mingw* | pw32*)
  4528. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4529. want_nocaseglob=yes
  4530. else
  4531. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4532. fi
  4533. ;;
  4534. esac
  4535. fi
  4536. file_magic_cmd=$lt_cv_file_magic_cmd
  4537. deplibs_check_method=$lt_cv_deplibs_check_method
  4538. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4539. if test -n "$ac_tool_prefix"; then
  4540. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4541. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4543. $as_echo_n "checking for $ac_word... " >&6; }
  4544. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. if test -n "$DLLTOOL"; then
  4548. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4549. else
  4550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551. for as_dir in $PATH
  4552. do
  4553. IFS=$as_save_IFS
  4554. test -z "$as_dir" && as_dir=.
  4555. for ac_exec_ext in '' $ac_executable_extensions; do
  4556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4557. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4559. break 2
  4560. fi
  4561. done
  4562. done
  4563. IFS=$as_save_IFS
  4564. fi
  4565. fi
  4566. DLLTOOL=$ac_cv_prog_DLLTOOL
  4567. if test -n "$DLLTOOL"; then
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4569. $as_echo "$DLLTOOL" >&6; }
  4570. else
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4572. $as_echo "no" >&6; }
  4573. fi
  4574. fi
  4575. if test -z "$ac_cv_prog_DLLTOOL"; then
  4576. ac_ct_DLLTOOL=$DLLTOOL
  4577. # Extract the first word of "dlltool", so it can be a program name with args.
  4578. set dummy dlltool; ac_word=$2
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4580. $as_echo_n "checking for $ac_word... " >&6; }
  4581. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4582. $as_echo_n "(cached) " >&6
  4583. else
  4584. if test -n "$ac_ct_DLLTOOL"; then
  4585. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4586. else
  4587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4588. for as_dir in $PATH
  4589. do
  4590. IFS=$as_save_IFS
  4591. test -z "$as_dir" && as_dir=.
  4592. for ac_exec_ext in '' $ac_executable_extensions; do
  4593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4594. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4596. break 2
  4597. fi
  4598. done
  4599. done
  4600. IFS=$as_save_IFS
  4601. fi
  4602. fi
  4603. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4604. if test -n "$ac_ct_DLLTOOL"; then
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4606. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4607. else
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4609. $as_echo "no" >&6; }
  4610. fi
  4611. if test "x$ac_ct_DLLTOOL" = x; then
  4612. DLLTOOL="false"
  4613. else
  4614. case $cross_compiling:$ac_tool_warned in
  4615. yes:)
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4617. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4618. ac_tool_warned=yes ;;
  4619. esac
  4620. DLLTOOL=$ac_ct_DLLTOOL
  4621. fi
  4622. else
  4623. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4624. fi
  4625. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4627. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4628. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4632. case $host_os in
  4633. cygwin* | mingw* | pw32* | cegcc*)
  4634. # two different shell functions defined in ltmain.sh
  4635. # decide which to use based on capabilities of $DLLTOOL
  4636. case `$DLLTOOL --help 2>&1` in
  4637. *--identify-strict*)
  4638. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4639. ;;
  4640. *)
  4641. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4642. ;;
  4643. esac
  4644. ;;
  4645. *)
  4646. # fallback: assume linklib IS sharedlib
  4647. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4648. ;;
  4649. esac
  4650. fi
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4652. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4653. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4654. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4655. if test -n "$ac_tool_prefix"; then
  4656. for ac_prog in ar
  4657. do
  4658. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4659. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4661. $as_echo_n "checking for $ac_word... " >&6; }
  4662. if ${ac_cv_prog_AR+:} false; then :
  4663. $as_echo_n "(cached) " >&6
  4664. else
  4665. if test -n "$AR"; then
  4666. ac_cv_prog_AR="$AR" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. test -z "$as_dir" && as_dir=.
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. fi
  4683. fi
  4684. AR=$ac_cv_prog_AR
  4685. if test -n "$AR"; then
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4687. $as_echo "$AR" >&6; }
  4688. else
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4690. $as_echo "no" >&6; }
  4691. fi
  4692. test -n "$AR" && break
  4693. done
  4694. fi
  4695. if test -z "$AR"; then
  4696. ac_ct_AR=$AR
  4697. for ac_prog in ar
  4698. do
  4699. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4700. set dummy $ac_prog; ac_word=$2
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$ac_ct_AR"; then
  4707. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4716. ac_cv_prog_ac_ct_AR="$ac_prog"
  4717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723. fi
  4724. fi
  4725. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4726. if test -n "$ac_ct_AR"; then
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4728. $as_echo "$ac_ct_AR" >&6; }
  4729. else
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4731. $as_echo "no" >&6; }
  4732. fi
  4733. test -n "$ac_ct_AR" && break
  4734. done
  4735. if test "x$ac_ct_AR" = x; then
  4736. AR="false"
  4737. else
  4738. case $cross_compiling:$ac_tool_warned in
  4739. yes:)
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4742. ac_tool_warned=yes ;;
  4743. esac
  4744. AR=$ac_ct_AR
  4745. fi
  4746. fi
  4747. : ${AR=ar}
  4748. : ${AR_FLAGS=cru}
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4750. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4751. if ${lt_cv_ar_at_file+:} false; then :
  4752. $as_echo_n "(cached) " >&6
  4753. else
  4754. lt_cv_ar_at_file=no
  4755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4756. /* end confdefs.h. */
  4757. int
  4758. main ()
  4759. {
  4760. ;
  4761. return 0;
  4762. }
  4763. _ACEOF
  4764. if ac_fn_c_try_compile "$LINENO"; then :
  4765. echo conftest.$ac_objext > conftest.lst
  4766. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4767. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4768. (eval $lt_ar_try) 2>&5
  4769. ac_status=$?
  4770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4771. test $ac_status = 0; }
  4772. if test "$ac_status" -eq 0; then
  4773. # Ensure the archiver fails upon bogus file names.
  4774. rm -f conftest.$ac_objext libconftest.a
  4775. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4776. (eval $lt_ar_try) 2>&5
  4777. ac_status=$?
  4778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4779. test $ac_status = 0; }
  4780. if test "$ac_status" -ne 0; then
  4781. lt_cv_ar_at_file=@
  4782. fi
  4783. fi
  4784. rm -f conftest.* libconftest.a
  4785. fi
  4786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4789. $as_echo "$lt_cv_ar_at_file" >&6; }
  4790. if test "x$lt_cv_ar_at_file" = xno; then
  4791. archiver_list_spec=
  4792. else
  4793. archiver_list_spec=$lt_cv_ar_at_file
  4794. fi
  4795. if test -n "$ac_tool_prefix"; then
  4796. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4797. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4799. $as_echo_n "checking for $ac_word... " >&6; }
  4800. if ${ac_cv_prog_STRIP+:} false; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if test -n "$STRIP"; then
  4804. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4805. else
  4806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4807. for as_dir in $PATH
  4808. do
  4809. IFS=$as_save_IFS
  4810. test -z "$as_dir" && as_dir=.
  4811. for ac_exec_ext in '' $ac_executable_extensions; do
  4812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4813. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4815. break 2
  4816. fi
  4817. done
  4818. done
  4819. IFS=$as_save_IFS
  4820. fi
  4821. fi
  4822. STRIP=$ac_cv_prog_STRIP
  4823. if test -n "$STRIP"; then
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4825. $as_echo "$STRIP" >&6; }
  4826. else
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4828. $as_echo "no" >&6; }
  4829. fi
  4830. fi
  4831. if test -z "$ac_cv_prog_STRIP"; then
  4832. ac_ct_STRIP=$STRIP
  4833. # Extract the first word of "strip", so it can be a program name with args.
  4834. set dummy strip; ac_word=$2
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4836. $as_echo_n "checking for $ac_word... " >&6; }
  4837. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4838. $as_echo_n "(cached) " >&6
  4839. else
  4840. if test -n "$ac_ct_STRIP"; then
  4841. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4842. else
  4843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4844. for as_dir in $PATH
  4845. do
  4846. IFS=$as_save_IFS
  4847. test -z "$as_dir" && as_dir=.
  4848. for ac_exec_ext in '' $ac_executable_extensions; do
  4849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4850. ac_cv_prog_ac_ct_STRIP="strip"
  4851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4852. break 2
  4853. fi
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. fi
  4858. fi
  4859. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4860. if test -n "$ac_ct_STRIP"; then
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4862. $as_echo "$ac_ct_STRIP" >&6; }
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. fi
  4867. if test "x$ac_ct_STRIP" = x; then
  4868. STRIP=":"
  4869. else
  4870. case $cross_compiling:$ac_tool_warned in
  4871. yes:)
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4873. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4874. ac_tool_warned=yes ;;
  4875. esac
  4876. STRIP=$ac_ct_STRIP
  4877. fi
  4878. else
  4879. STRIP="$ac_cv_prog_STRIP"
  4880. fi
  4881. test -z "$STRIP" && STRIP=:
  4882. if test -n "$ac_tool_prefix"; then
  4883. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4884. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4886. $as_echo_n "checking for $ac_word... " >&6; }
  4887. if ${ac_cv_prog_RANLIB+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if test -n "$RANLIB"; then
  4891. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4900. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. RANLIB=$ac_cv_prog_RANLIB
  4910. if test -n "$RANLIB"; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4912. $as_echo "$RANLIB" >&6; }
  4913. else
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. $as_echo "no" >&6; }
  4916. fi
  4917. fi
  4918. if test -z "$ac_cv_prog_RANLIB"; then
  4919. ac_ct_RANLIB=$RANLIB
  4920. # Extract the first word of "ranlib", so it can be a program name with args.
  4921. set dummy ranlib; ac_word=$2
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4923. $as_echo_n "checking for $ac_word... " >&6; }
  4924. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. if test -n "$ac_ct_RANLIB"; then
  4928. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4929. else
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4937. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4939. break 2
  4940. fi
  4941. done
  4942. done
  4943. IFS=$as_save_IFS
  4944. fi
  4945. fi
  4946. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4947. if test -n "$ac_ct_RANLIB"; then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4949. $as_echo "$ac_ct_RANLIB" >&6; }
  4950. else
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4952. $as_echo "no" >&6; }
  4953. fi
  4954. if test "x$ac_ct_RANLIB" = x; then
  4955. RANLIB=":"
  4956. else
  4957. case $cross_compiling:$ac_tool_warned in
  4958. yes:)
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4961. ac_tool_warned=yes ;;
  4962. esac
  4963. RANLIB=$ac_ct_RANLIB
  4964. fi
  4965. else
  4966. RANLIB="$ac_cv_prog_RANLIB"
  4967. fi
  4968. test -z "$RANLIB" && RANLIB=:
  4969. # Determine commands to create old-style static archives.
  4970. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4971. old_postinstall_cmds='chmod 644 $oldlib'
  4972. old_postuninstall_cmds=
  4973. if test -n "$RANLIB"; then
  4974. case $host_os in
  4975. openbsd*)
  4976. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4977. ;;
  4978. *)
  4979. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4980. ;;
  4981. esac
  4982. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4983. fi
  4984. case $host_os in
  4985. darwin*)
  4986. lock_old_archive_extraction=yes ;;
  4987. *)
  4988. lock_old_archive_extraction=no ;;
  4989. esac
  4990. for ac_prog in gawk mawk nawk awk
  4991. do
  4992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4993. set dummy $ac_prog; ac_word=$2
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4995. $as_echo_n "checking for $ac_word... " >&6; }
  4996. if ${ac_cv_prog_AWK+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. if test -n "$AWK"; then
  5000. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. test -z "$as_dir" && as_dir=.
  5007. for ac_exec_ext in '' $ac_executable_extensions; do
  5008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5009. ac_cv_prog_AWK="$ac_prog"
  5010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5011. break 2
  5012. fi
  5013. done
  5014. done
  5015. IFS=$as_save_IFS
  5016. fi
  5017. fi
  5018. AWK=$ac_cv_prog_AWK
  5019. if test -n "$AWK"; then
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5021. $as_echo "$AWK" >&6; }
  5022. else
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5024. $as_echo "no" >&6; }
  5025. fi
  5026. test -n "$AWK" && break
  5027. done
  5028. # If no C compiler was specified, use CC.
  5029. LTCC=${LTCC-"$CC"}
  5030. # If no C compiler flags were specified, use CFLAGS.
  5031. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5032. # Allow CC to be a program name with arguments.
  5033. compiler=$CC
  5034. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5036. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5037. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. # These are sane defaults that work on at least a few old systems.
  5041. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5042. # Character class describing NM global symbol codes.
  5043. symcode='[BCDEGRST]'
  5044. # Regexp to match symbols that can be accessed directly from C.
  5045. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5046. # Define system-specific variables.
  5047. case $host_os in
  5048. aix*)
  5049. symcode='[BCDT]'
  5050. ;;
  5051. cygwin* | mingw* | pw32* | cegcc*)
  5052. symcode='[ABCDGISTW]'
  5053. ;;
  5054. hpux*)
  5055. if test "$host_cpu" = ia64; then
  5056. symcode='[ABCDEGRST]'
  5057. fi
  5058. ;;
  5059. irix* | nonstopux*)
  5060. symcode='[BCDEGRST]'
  5061. ;;
  5062. osf*)
  5063. symcode='[BCDEGQRST]'
  5064. ;;
  5065. solaris*)
  5066. symcode='[BDRT]'
  5067. ;;
  5068. sco3.2v5*)
  5069. symcode='[DT]'
  5070. ;;
  5071. sysv4.2uw2*)
  5072. symcode='[DT]'
  5073. ;;
  5074. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5075. symcode='[ABDT]'
  5076. ;;
  5077. sysv4)
  5078. symcode='[DFNSTU]'
  5079. ;;
  5080. esac
  5081. # If we're using GNU nm, then use its standard symbol codes.
  5082. case `$NM -V 2>&1` in
  5083. *GNU* | *'with BFD'*)
  5084. symcode='[ABCDGIRSTW]' ;;
  5085. esac
  5086. # Transform an extracted symbol line into a proper C declaration.
  5087. # Some systems (esp. on ia64) link data and code symbols differently,
  5088. # so use this general approach.
  5089. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5090. # Transform an extracted symbol line into symbol name and symbol address
  5091. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5092. 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'"
  5093. # Handle CRLF in mingw tool chain
  5094. opt_cr=
  5095. case $build_os in
  5096. mingw*)
  5097. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5098. ;;
  5099. esac
  5100. # Try without a prefix underscore, then with it.
  5101. for ac_symprfx in "" "_"; do
  5102. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5103. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5104. # Write the raw and C identifiers.
  5105. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5106. # Fake it for dumpbin and say T for any non-static function
  5107. # and D for any global variable.
  5108. # Also find C++ and __fastcall symbols from MSVC++,
  5109. # which start with @ or ?.
  5110. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5111. " {last_section=section; section=\$ 3};"\
  5112. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5113. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5114. " \$ 0!~/External *\|/{next};"\
  5115. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5116. " {if(hide[section]) next};"\
  5117. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5118. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5119. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5120. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5121. " ' prfx=^$ac_symprfx"
  5122. else
  5123. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5124. fi
  5125. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5126. # Check to see that the pipe works correctly.
  5127. pipe_works=no
  5128. rm -f conftest*
  5129. cat > conftest.$ac_ext <<_LT_EOF
  5130. #ifdef __cplusplus
  5131. extern "C" {
  5132. #endif
  5133. char nm_test_var;
  5134. void nm_test_func(void);
  5135. void nm_test_func(void){}
  5136. #ifdef __cplusplus
  5137. }
  5138. #endif
  5139. int main(){nm_test_var='a';nm_test_func();return(0);}
  5140. _LT_EOF
  5141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5142. (eval $ac_compile) 2>&5
  5143. ac_status=$?
  5144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5145. test $ac_status = 0; }; then
  5146. # Now try to grab the symbols.
  5147. nlist=conftest.nm
  5148. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5149. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5150. ac_status=$?
  5151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5152. test $ac_status = 0; } && test -s "$nlist"; then
  5153. # Try sorting and uniquifying the output.
  5154. if sort "$nlist" | uniq > "$nlist"T; then
  5155. mv -f "$nlist"T "$nlist"
  5156. else
  5157. rm -f "$nlist"T
  5158. fi
  5159. # Make sure that we snagged all the symbols we need.
  5160. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5161. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5162. cat <<_LT_EOF > conftest.$ac_ext
  5163. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5164. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5165. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5166. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5167. # define LT_DLSYM_CONST
  5168. #elif defined(__osf__)
  5169. /* This system does not cope well with relocations in const data. */
  5170. # define LT_DLSYM_CONST
  5171. #else
  5172. # define LT_DLSYM_CONST const
  5173. #endif
  5174. #ifdef __cplusplus
  5175. extern "C" {
  5176. #endif
  5177. _LT_EOF
  5178. # Now generate the symbol file.
  5179. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5180. cat <<_LT_EOF >> conftest.$ac_ext
  5181. /* The mapping between symbol names and symbols. */
  5182. LT_DLSYM_CONST struct {
  5183. const char *name;
  5184. void *address;
  5185. }
  5186. lt__PROGRAM__LTX_preloaded_symbols[] =
  5187. {
  5188. { "@PROGRAM@", (void *) 0 },
  5189. _LT_EOF
  5190. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5191. cat <<\_LT_EOF >> conftest.$ac_ext
  5192. {0, (void *) 0}
  5193. };
  5194. /* This works around a problem in FreeBSD linker */
  5195. #ifdef FREEBSD_WORKAROUND
  5196. static const void *lt_preloaded_setup() {
  5197. return lt__PROGRAM__LTX_preloaded_symbols;
  5198. }
  5199. #endif
  5200. #ifdef __cplusplus
  5201. }
  5202. #endif
  5203. _LT_EOF
  5204. # Now try linking the two files.
  5205. mv conftest.$ac_objext conftstm.$ac_objext
  5206. lt_globsym_save_LIBS=$LIBS
  5207. lt_globsym_save_CFLAGS=$CFLAGS
  5208. LIBS="conftstm.$ac_objext"
  5209. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5210. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5211. (eval $ac_link) 2>&5
  5212. ac_status=$?
  5213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5214. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5215. pipe_works=yes
  5216. fi
  5217. LIBS=$lt_globsym_save_LIBS
  5218. CFLAGS=$lt_globsym_save_CFLAGS
  5219. else
  5220. echo "cannot find nm_test_func in $nlist" >&5
  5221. fi
  5222. else
  5223. echo "cannot find nm_test_var in $nlist" >&5
  5224. fi
  5225. else
  5226. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5227. fi
  5228. else
  5229. echo "$progname: failed program was:" >&5
  5230. cat conftest.$ac_ext >&5
  5231. fi
  5232. rm -rf conftest* conftst*
  5233. # Do not use the global_symbol_pipe unless it works.
  5234. if test "$pipe_works" = yes; then
  5235. break
  5236. else
  5237. lt_cv_sys_global_symbol_pipe=
  5238. fi
  5239. done
  5240. fi
  5241. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5242. lt_cv_sys_global_symbol_to_cdecl=
  5243. fi
  5244. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5246. $as_echo "failed" >&6; }
  5247. else
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5249. $as_echo "ok" >&6; }
  5250. fi
  5251. # Response file support.
  5252. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5253. nm_file_list_spec='@'
  5254. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5255. nm_file_list_spec='@'
  5256. fi
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5258. $as_echo_n "checking for sysroot... " >&6; }
  5259. # Check whether --with-sysroot was given.
  5260. if test "${with_sysroot+set}" = set; then :
  5261. withval=$with_sysroot;
  5262. else
  5263. with_sysroot=no
  5264. fi
  5265. lt_sysroot=
  5266. case ${with_sysroot} in #(
  5267. yes)
  5268. if test "$GCC" = yes; then
  5269. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5270. fi
  5271. ;; #(
  5272. /*)
  5273. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5274. ;; #(
  5275. no|'')
  5276. ;; #(
  5277. *)
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5279. $as_echo "${with_sysroot}" >&6; }
  5280. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5281. ;;
  5282. esac
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5284. $as_echo "${lt_sysroot:-no}" >&6; }
  5285. # Check whether --enable-libtool-lock was given.
  5286. if test "${enable_libtool_lock+set}" = set; then :
  5287. enableval=$enable_libtool_lock;
  5288. fi
  5289. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5290. # Some flags need to be propagated to the compiler or linker for good
  5291. # libtool support.
  5292. case $host in
  5293. ia64-*-hpux*)
  5294. # Find out which ABI we are using.
  5295. echo 'int i;' > conftest.$ac_ext
  5296. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5297. (eval $ac_compile) 2>&5
  5298. ac_status=$?
  5299. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5300. test $ac_status = 0; }; then
  5301. case `/usr/bin/file conftest.$ac_objext` in
  5302. *ELF-32*)
  5303. HPUX_IA64_MODE="32"
  5304. ;;
  5305. *ELF-64*)
  5306. HPUX_IA64_MODE="64"
  5307. ;;
  5308. esac
  5309. fi
  5310. rm -rf conftest*
  5311. ;;
  5312. *-*-irix6*)
  5313. # Find out which ABI we are using.
  5314. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5315. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5316. (eval $ac_compile) 2>&5
  5317. ac_status=$?
  5318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5319. test $ac_status = 0; }; then
  5320. if test "$lt_cv_prog_gnu_ld" = yes; then
  5321. case `/usr/bin/file conftest.$ac_objext` in
  5322. *32-bit*)
  5323. LD="${LD-ld} -melf32bsmip"
  5324. ;;
  5325. *N32*)
  5326. LD="${LD-ld} -melf32bmipn32"
  5327. ;;
  5328. *64-bit*)
  5329. LD="${LD-ld} -melf64bmip"
  5330. ;;
  5331. esac
  5332. else
  5333. case `/usr/bin/file conftest.$ac_objext` in
  5334. *32-bit*)
  5335. LD="${LD-ld} -32"
  5336. ;;
  5337. *N32*)
  5338. LD="${LD-ld} -n32"
  5339. ;;
  5340. *64-bit*)
  5341. LD="${LD-ld} -64"
  5342. ;;
  5343. esac
  5344. fi
  5345. fi
  5346. rm -rf conftest*
  5347. ;;
  5348. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5349. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5350. # Find out which ABI we are using.
  5351. echo 'int i;' > conftest.$ac_ext
  5352. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5353. (eval $ac_compile) 2>&5
  5354. ac_status=$?
  5355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5356. test $ac_status = 0; }; then
  5357. case `/usr/bin/file conftest.o` in
  5358. *32-bit*)
  5359. case $host in
  5360. x86_64-*kfreebsd*-gnu)
  5361. LD="${LD-ld} -m elf_i386_fbsd"
  5362. ;;
  5363. x86_64-*linux*)
  5364. LD="${LD-ld} -m elf_i386"
  5365. ;;
  5366. ppc64-*linux*|powerpc64-*linux*)
  5367. LD="${LD-ld} -m elf32ppclinux"
  5368. ;;
  5369. s390x-*linux*)
  5370. LD="${LD-ld} -m elf_s390"
  5371. ;;
  5372. sparc64-*linux*)
  5373. LD="${LD-ld} -m elf32_sparc"
  5374. ;;
  5375. esac
  5376. ;;
  5377. *64-bit*)
  5378. case $host in
  5379. x86_64-*kfreebsd*-gnu)
  5380. LD="${LD-ld} -m elf_x86_64_fbsd"
  5381. ;;
  5382. x86_64-*linux*)
  5383. LD="${LD-ld} -m elf_x86_64"
  5384. ;;
  5385. powerpc64le-*linux*)
  5386. LD="${LD-ld} -m elf64lppc"
  5387. ;;
  5388. powerpc64-*linux*)
  5389. LD="${LD-ld} -m elf64ppc"
  5390. ;;
  5391. s390*-*linux*|s390*-*tpf*)
  5392. LD="${LD-ld} -m elf64_s390"
  5393. ;;
  5394. sparc*-*linux*)
  5395. LD="${LD-ld} -m elf64_sparc"
  5396. ;;
  5397. esac
  5398. ;;
  5399. esac
  5400. fi
  5401. rm -rf conftest*
  5402. ;;
  5403. *-*-sco3.2v5*)
  5404. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5405. SAVE_CFLAGS="$CFLAGS"
  5406. CFLAGS="$CFLAGS -belf"
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5408. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5409. if ${lt_cv_cc_needs_belf+:} false; then :
  5410. $as_echo_n "(cached) " >&6
  5411. else
  5412. ac_ext=c
  5413. ac_cpp='$CPP $CPPFLAGS'
  5414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. int
  5420. main ()
  5421. {
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. if ac_fn_c_try_link "$LINENO"; then :
  5427. lt_cv_cc_needs_belf=yes
  5428. else
  5429. lt_cv_cc_needs_belf=no
  5430. fi
  5431. rm -f core conftest.err conftest.$ac_objext \
  5432. conftest$ac_exeext conftest.$ac_ext
  5433. ac_ext=c
  5434. ac_cpp='$CPP $CPPFLAGS'
  5435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5438. fi
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5440. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5441. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5442. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5443. CFLAGS="$SAVE_CFLAGS"
  5444. fi
  5445. ;;
  5446. *-*solaris*)
  5447. # Find out which ABI we are using.
  5448. echo 'int i;' > conftest.$ac_ext
  5449. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5450. (eval $ac_compile) 2>&5
  5451. ac_status=$?
  5452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5453. test $ac_status = 0; }; then
  5454. case `/usr/bin/file conftest.o` in
  5455. *64-bit*)
  5456. case $lt_cv_prog_gnu_ld in
  5457. yes*)
  5458. case $host in
  5459. i?86-*-solaris*)
  5460. LD="${LD-ld} -m elf_x86_64"
  5461. ;;
  5462. sparc*-*-solaris*)
  5463. LD="${LD-ld} -m elf64_sparc"
  5464. ;;
  5465. esac
  5466. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5467. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5468. LD="${LD-ld}_sol2"
  5469. fi
  5470. ;;
  5471. *)
  5472. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5473. LD="${LD-ld} -64"
  5474. fi
  5475. ;;
  5476. esac
  5477. ;;
  5478. esac
  5479. fi
  5480. rm -rf conftest*
  5481. ;;
  5482. esac
  5483. need_locks="$enable_libtool_lock"
  5484. if test -n "$ac_tool_prefix"; then
  5485. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5486. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$MANIFEST_TOOL"; then
  5493. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5502. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. fi
  5510. fi
  5511. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5512. if test -n "$MANIFEST_TOOL"; then
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5514. $as_echo "$MANIFEST_TOOL" >&6; }
  5515. else
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5517. $as_echo "no" >&6; }
  5518. fi
  5519. fi
  5520. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5521. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5522. # Extract the first word of "mt", so it can be a program name with args.
  5523. set dummy mt; ac_word=$2
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5525. $as_echo_n "checking for $ac_word... " >&6; }
  5526. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5530. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5531. else
  5532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5533. for as_dir in $PATH
  5534. do
  5535. IFS=$as_save_IFS
  5536. test -z "$as_dir" && as_dir=.
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5539. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5549. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5551. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5552. else
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5554. $as_echo "no" >&6; }
  5555. fi
  5556. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5557. MANIFEST_TOOL=":"
  5558. else
  5559. case $cross_compiling:$ac_tool_warned in
  5560. yes:)
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5563. ac_tool_warned=yes ;;
  5564. esac
  5565. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5566. fi
  5567. else
  5568. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5569. fi
  5570. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5572. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5573. if ${lt_cv_path_mainfest_tool+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. lt_cv_path_mainfest_tool=no
  5577. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5578. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5579. cat conftest.err >&5
  5580. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5581. lt_cv_path_mainfest_tool=yes
  5582. fi
  5583. rm -f conftest*
  5584. fi
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5586. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5587. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5588. MANIFEST_TOOL=:
  5589. fi
  5590. case $host_os in
  5591. rhapsody* | darwin*)
  5592. if test -n "$ac_tool_prefix"; then
  5593. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5594. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5596. $as_echo_n "checking for $ac_word... " >&6; }
  5597. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. if test -n "$DSYMUTIL"; then
  5601. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5602. else
  5603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5604. for as_dir in $PATH
  5605. do
  5606. IFS=$as_save_IFS
  5607. test -z "$as_dir" && as_dir=.
  5608. for ac_exec_ext in '' $ac_executable_extensions; do
  5609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5610. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5612. break 2
  5613. fi
  5614. done
  5615. done
  5616. IFS=$as_save_IFS
  5617. fi
  5618. fi
  5619. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5620. if test -n "$DSYMUTIL"; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5622. $as_echo "$DSYMUTIL" >&6; }
  5623. else
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5625. $as_echo "no" >&6; }
  5626. fi
  5627. fi
  5628. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5629. ac_ct_DSYMUTIL=$DSYMUTIL
  5630. # Extract the first word of "dsymutil", so it can be a program name with args.
  5631. set dummy dsymutil; ac_word=$2
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5633. $as_echo_n "checking for $ac_word... " >&6; }
  5634. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5635. $as_echo_n "(cached) " >&6
  5636. else
  5637. if test -n "$ac_ct_DSYMUTIL"; then
  5638. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5639. else
  5640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5641. for as_dir in $PATH
  5642. do
  5643. IFS=$as_save_IFS
  5644. test -z "$as_dir" && as_dir=.
  5645. for ac_exec_ext in '' $ac_executable_extensions; do
  5646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5647. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5649. break 2
  5650. fi
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. fi
  5655. fi
  5656. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5657. if test -n "$ac_ct_DSYMUTIL"; then
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5659. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5660. else
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5662. $as_echo "no" >&6; }
  5663. fi
  5664. if test "x$ac_ct_DSYMUTIL" = x; then
  5665. DSYMUTIL=":"
  5666. else
  5667. case $cross_compiling:$ac_tool_warned in
  5668. yes:)
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5671. ac_tool_warned=yes ;;
  5672. esac
  5673. DSYMUTIL=$ac_ct_DSYMUTIL
  5674. fi
  5675. else
  5676. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5677. fi
  5678. if test -n "$ac_tool_prefix"; then
  5679. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5680. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5682. $as_echo_n "checking for $ac_word... " >&6; }
  5683. if ${ac_cv_prog_NMEDIT+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. if test -n "$NMEDIT"; then
  5687. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5688. else
  5689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5690. for as_dir in $PATH
  5691. do
  5692. IFS=$as_save_IFS
  5693. test -z "$as_dir" && as_dir=.
  5694. for ac_exec_ext in '' $ac_executable_extensions; do
  5695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5696. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5698. break 2
  5699. fi
  5700. done
  5701. done
  5702. IFS=$as_save_IFS
  5703. fi
  5704. fi
  5705. NMEDIT=$ac_cv_prog_NMEDIT
  5706. if test -n "$NMEDIT"; then
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5708. $as_echo "$NMEDIT" >&6; }
  5709. else
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5711. $as_echo "no" >&6; }
  5712. fi
  5713. fi
  5714. if test -z "$ac_cv_prog_NMEDIT"; then
  5715. ac_ct_NMEDIT=$NMEDIT
  5716. # Extract the first word of "nmedit", so it can be a program name with args.
  5717. set dummy nmedit; ac_word=$2
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5719. $as_echo_n "checking for $ac_word... " >&6; }
  5720. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5721. $as_echo_n "(cached) " >&6
  5722. else
  5723. if test -n "$ac_ct_NMEDIT"; then
  5724. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. test -z "$as_dir" && as_dir=.
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5733. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5735. break 2
  5736. fi
  5737. done
  5738. done
  5739. IFS=$as_save_IFS
  5740. fi
  5741. fi
  5742. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5743. if test -n "$ac_ct_NMEDIT"; then
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5745. $as_echo "$ac_ct_NMEDIT" >&6; }
  5746. else
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. $as_echo "no" >&6; }
  5749. fi
  5750. if test "x$ac_ct_NMEDIT" = x; then
  5751. NMEDIT=":"
  5752. else
  5753. case $cross_compiling:$ac_tool_warned in
  5754. yes:)
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5757. ac_tool_warned=yes ;;
  5758. esac
  5759. NMEDIT=$ac_ct_NMEDIT
  5760. fi
  5761. else
  5762. NMEDIT="$ac_cv_prog_NMEDIT"
  5763. fi
  5764. if test -n "$ac_tool_prefix"; then
  5765. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5766. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5768. $as_echo_n "checking for $ac_word... " >&6; }
  5769. if ${ac_cv_prog_LIPO+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. if test -n "$LIPO"; then
  5773. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5774. else
  5775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5776. for as_dir in $PATH
  5777. do
  5778. IFS=$as_save_IFS
  5779. test -z "$as_dir" && as_dir=.
  5780. for ac_exec_ext in '' $ac_executable_extensions; do
  5781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5782. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5784. break 2
  5785. fi
  5786. done
  5787. done
  5788. IFS=$as_save_IFS
  5789. fi
  5790. fi
  5791. LIPO=$ac_cv_prog_LIPO
  5792. if test -n "$LIPO"; then
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5794. $as_echo "$LIPO" >&6; }
  5795. else
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5797. $as_echo "no" >&6; }
  5798. fi
  5799. fi
  5800. if test -z "$ac_cv_prog_LIPO"; then
  5801. ac_ct_LIPO=$LIPO
  5802. # Extract the first word of "lipo", so it can be a program name with args.
  5803. set dummy lipo; ac_word=$2
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5805. $as_echo_n "checking for $ac_word... " >&6; }
  5806. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. if test -n "$ac_ct_LIPO"; then
  5810. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5811. else
  5812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5813. for as_dir in $PATH
  5814. do
  5815. IFS=$as_save_IFS
  5816. test -z "$as_dir" && as_dir=.
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5819. ac_cv_prog_ac_ct_LIPO="lipo"
  5820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5821. break 2
  5822. fi
  5823. done
  5824. done
  5825. IFS=$as_save_IFS
  5826. fi
  5827. fi
  5828. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5829. if test -n "$ac_ct_LIPO"; then
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5831. $as_echo "$ac_ct_LIPO" >&6; }
  5832. else
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5834. $as_echo "no" >&6; }
  5835. fi
  5836. if test "x$ac_ct_LIPO" = x; then
  5837. LIPO=":"
  5838. else
  5839. case $cross_compiling:$ac_tool_warned in
  5840. yes:)
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5843. ac_tool_warned=yes ;;
  5844. esac
  5845. LIPO=$ac_ct_LIPO
  5846. fi
  5847. else
  5848. LIPO="$ac_cv_prog_LIPO"
  5849. fi
  5850. if test -n "$ac_tool_prefix"; then
  5851. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5852. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5854. $as_echo_n "checking for $ac_word... " >&6; }
  5855. if ${ac_cv_prog_OTOOL+:} false; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. if test -n "$OTOOL"; then
  5859. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5860. else
  5861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5862. for as_dir in $PATH
  5863. do
  5864. IFS=$as_save_IFS
  5865. test -z "$as_dir" && as_dir=.
  5866. for ac_exec_ext in '' $ac_executable_extensions; do
  5867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5868. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5870. break 2
  5871. fi
  5872. done
  5873. done
  5874. IFS=$as_save_IFS
  5875. fi
  5876. fi
  5877. OTOOL=$ac_cv_prog_OTOOL
  5878. if test -n "$OTOOL"; then
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5880. $as_echo "$OTOOL" >&6; }
  5881. else
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5883. $as_echo "no" >&6; }
  5884. fi
  5885. fi
  5886. if test -z "$ac_cv_prog_OTOOL"; then
  5887. ac_ct_OTOOL=$OTOOL
  5888. # Extract the first word of "otool", so it can be a program name with args.
  5889. set dummy otool; ac_word=$2
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5891. $as_echo_n "checking for $ac_word... " >&6; }
  5892. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5893. $as_echo_n "(cached) " >&6
  5894. else
  5895. if test -n "$ac_ct_OTOOL"; then
  5896. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5897. else
  5898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5899. for as_dir in $PATH
  5900. do
  5901. IFS=$as_save_IFS
  5902. test -z "$as_dir" && as_dir=.
  5903. for ac_exec_ext in '' $ac_executable_extensions; do
  5904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5905. ac_cv_prog_ac_ct_OTOOL="otool"
  5906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5907. break 2
  5908. fi
  5909. done
  5910. done
  5911. IFS=$as_save_IFS
  5912. fi
  5913. fi
  5914. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5915. if test -n "$ac_ct_OTOOL"; then
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5917. $as_echo "$ac_ct_OTOOL" >&6; }
  5918. else
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5920. $as_echo "no" >&6; }
  5921. fi
  5922. if test "x$ac_ct_OTOOL" = x; then
  5923. OTOOL=":"
  5924. else
  5925. case $cross_compiling:$ac_tool_warned in
  5926. yes:)
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5928. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5929. ac_tool_warned=yes ;;
  5930. esac
  5931. OTOOL=$ac_ct_OTOOL
  5932. fi
  5933. else
  5934. OTOOL="$ac_cv_prog_OTOOL"
  5935. fi
  5936. if test -n "$ac_tool_prefix"; then
  5937. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5938. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5940. $as_echo_n "checking for $ac_word... " >&6; }
  5941. if ${ac_cv_prog_OTOOL64+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if test -n "$OTOOL64"; then
  5945. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. OTOOL64=$ac_cv_prog_OTOOL64
  5964. if test -n "$OTOOL64"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5966. $as_echo "$OTOOL64" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5969. $as_echo "no" >&6; }
  5970. fi
  5971. fi
  5972. if test -z "$ac_cv_prog_OTOOL64"; then
  5973. ac_ct_OTOOL64=$OTOOL64
  5974. # Extract the first word of "otool64", so it can be a program name with args.
  5975. set dummy otool64; ac_word=$2
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5977. $as_echo_n "checking for $ac_word... " >&6; }
  5978. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. if test -n "$ac_ct_OTOOL64"; then
  5982. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5983. else
  5984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5985. for as_dir in $PATH
  5986. do
  5987. IFS=$as_save_IFS
  5988. test -z "$as_dir" && as_dir=.
  5989. for ac_exec_ext in '' $ac_executable_extensions; do
  5990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5991. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5993. break 2
  5994. fi
  5995. done
  5996. done
  5997. IFS=$as_save_IFS
  5998. fi
  5999. fi
  6000. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6001. if test -n "$ac_ct_OTOOL64"; then
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6003. $as_echo "$ac_ct_OTOOL64" >&6; }
  6004. else
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6006. $as_echo "no" >&6; }
  6007. fi
  6008. if test "x$ac_ct_OTOOL64" = x; then
  6009. OTOOL64=":"
  6010. else
  6011. case $cross_compiling:$ac_tool_warned in
  6012. yes:)
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6015. ac_tool_warned=yes ;;
  6016. esac
  6017. OTOOL64=$ac_ct_OTOOL64
  6018. fi
  6019. else
  6020. OTOOL64="$ac_cv_prog_OTOOL64"
  6021. fi
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6023. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6024. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. lt_cv_apple_cc_single_mod=no
  6028. if test -z "${LT_MULTI_MODULE}"; then
  6029. # By default we will add the -single_module flag. You can override
  6030. # by either setting the environment variable LT_MULTI_MODULE
  6031. # non-empty at configure time, or by adding -multi_module to the
  6032. # link flags.
  6033. rm -rf libconftest.dylib*
  6034. echo "int foo(void){return 1;}" > conftest.c
  6035. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6036. -dynamiclib -Wl,-single_module conftest.c" >&5
  6037. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6038. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6039. _lt_result=$?
  6040. # If there is a non-empty error log, and "single_module"
  6041. # appears in it, assume the flag caused a linker warning
  6042. if test -s conftest.err && $GREP single_module conftest.err; then
  6043. cat conftest.err >&5
  6044. # Otherwise, if the output was created with a 0 exit code from
  6045. # the compiler, it worked.
  6046. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6047. lt_cv_apple_cc_single_mod=yes
  6048. else
  6049. cat conftest.err >&5
  6050. fi
  6051. rm -rf libconftest.dylib*
  6052. rm -f conftest.*
  6053. fi
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6056. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6058. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6059. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6060. $as_echo_n "(cached) " >&6
  6061. else
  6062. lt_cv_ld_exported_symbols_list=no
  6063. save_LDFLAGS=$LDFLAGS
  6064. echo "_main" > conftest.sym
  6065. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6067. /* end confdefs.h. */
  6068. int
  6069. main ()
  6070. {
  6071. ;
  6072. return 0;
  6073. }
  6074. _ACEOF
  6075. if ac_fn_c_try_link "$LINENO"; then :
  6076. lt_cv_ld_exported_symbols_list=yes
  6077. else
  6078. lt_cv_ld_exported_symbols_list=no
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081. conftest$ac_exeext conftest.$ac_ext
  6082. LDFLAGS="$save_LDFLAGS"
  6083. fi
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6085. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6087. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6088. if ${lt_cv_ld_force_load+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. lt_cv_ld_force_load=no
  6092. cat > conftest.c << _LT_EOF
  6093. int forced_loaded() { return 2;}
  6094. _LT_EOF
  6095. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6096. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6097. echo "$AR cru libconftest.a conftest.o" >&5
  6098. $AR cru libconftest.a conftest.o 2>&5
  6099. echo "$RANLIB libconftest.a" >&5
  6100. $RANLIB libconftest.a 2>&5
  6101. cat > conftest.c << _LT_EOF
  6102. int main() { return 0;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6105. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6106. _lt_result=$?
  6107. if test -s conftest.err && $GREP force_load conftest.err; then
  6108. cat conftest.err >&5
  6109. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6110. lt_cv_ld_force_load=yes
  6111. else
  6112. cat conftest.err >&5
  6113. fi
  6114. rm -f conftest.err libconftest.a conftest conftest.c
  6115. rm -rf conftest.dSYM
  6116. fi
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6118. $as_echo "$lt_cv_ld_force_load" >&6; }
  6119. case $host_os in
  6120. rhapsody* | darwin1.[012])
  6121. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6122. darwin1.*)
  6123. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6124. darwin*) # darwin 5.x on
  6125. # if running on 10.5 or later, the deployment target defaults
  6126. # to the OS version, if on x86, and 10.4, the deployment
  6127. # target defaults to 10.4. Don't you love it?
  6128. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6129. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6130. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6131. 10.[012]*)
  6132. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6133. 10.*)
  6134. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6135. esac
  6136. ;;
  6137. esac
  6138. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6139. _lt_dar_single_mod='$single_module'
  6140. fi
  6141. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6142. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6143. else
  6144. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6145. fi
  6146. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6147. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6148. else
  6149. _lt_dsymutil=
  6150. fi
  6151. ;;
  6152. esac
  6153. ac_ext=c
  6154. ac_cpp='$CPP $CPPFLAGS'
  6155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6159. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6160. # On Suns, sometimes $CPP names a directory.
  6161. if test -n "$CPP" && test -d "$CPP"; then
  6162. CPP=
  6163. fi
  6164. if test -z "$CPP"; then
  6165. if ${ac_cv_prog_CPP+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. # Double quotes because CPP needs to be expanded
  6169. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6170. do
  6171. ac_preproc_ok=false
  6172. for ac_c_preproc_warn_flag in '' yes
  6173. do
  6174. # Use a header file that comes with gcc, so configuring glibc
  6175. # with a fresh cross-compiler works.
  6176. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6177. # <limits.h> exists even on freestanding compilers.
  6178. # On the NeXT, cc -E runs the code through the compiler's parser,
  6179. # not just through cpp. "Syntax error" is here to catch this case.
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #ifdef __STDC__
  6183. # include <limits.h>
  6184. #else
  6185. # include <assert.h>
  6186. #endif
  6187. Syntax error
  6188. _ACEOF
  6189. if ac_fn_c_try_cpp "$LINENO"; then :
  6190. else
  6191. # Broken: fails on valid input.
  6192. continue
  6193. fi
  6194. rm -f conftest.err conftest.i conftest.$ac_ext
  6195. # OK, works on sane cases. Now check whether nonexistent headers
  6196. # can be detected and how.
  6197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6198. /* end confdefs.h. */
  6199. #include <ac_nonexistent.h>
  6200. _ACEOF
  6201. if ac_fn_c_try_cpp "$LINENO"; then :
  6202. # Broken: success on invalid input.
  6203. continue
  6204. else
  6205. # Passes both tests.
  6206. ac_preproc_ok=:
  6207. break
  6208. fi
  6209. rm -f conftest.err conftest.i conftest.$ac_ext
  6210. done
  6211. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6212. rm -f conftest.i conftest.err conftest.$ac_ext
  6213. if $ac_preproc_ok; then :
  6214. break
  6215. fi
  6216. done
  6217. ac_cv_prog_CPP=$CPP
  6218. fi
  6219. CPP=$ac_cv_prog_CPP
  6220. else
  6221. ac_cv_prog_CPP=$CPP
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6224. $as_echo "$CPP" >&6; }
  6225. ac_preproc_ok=false
  6226. for ac_c_preproc_warn_flag in '' yes
  6227. do
  6228. # Use a header file that comes with gcc, so configuring glibc
  6229. # with a fresh cross-compiler works.
  6230. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6231. # <limits.h> exists even on freestanding compilers.
  6232. # On the NeXT, cc -E runs the code through the compiler's parser,
  6233. # not just through cpp. "Syntax error" is here to catch this case.
  6234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6235. /* end confdefs.h. */
  6236. #ifdef __STDC__
  6237. # include <limits.h>
  6238. #else
  6239. # include <assert.h>
  6240. #endif
  6241. Syntax error
  6242. _ACEOF
  6243. if ac_fn_c_try_cpp "$LINENO"; then :
  6244. else
  6245. # Broken: fails on valid input.
  6246. continue
  6247. fi
  6248. rm -f conftest.err conftest.i conftest.$ac_ext
  6249. # OK, works on sane cases. Now check whether nonexistent headers
  6250. # can be detected and how.
  6251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6252. /* end confdefs.h. */
  6253. #include <ac_nonexistent.h>
  6254. _ACEOF
  6255. if ac_fn_c_try_cpp "$LINENO"; then :
  6256. # Broken: success on invalid input.
  6257. continue
  6258. else
  6259. # Passes both tests.
  6260. ac_preproc_ok=:
  6261. break
  6262. fi
  6263. rm -f conftest.err conftest.i conftest.$ac_ext
  6264. done
  6265. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6266. rm -f conftest.i conftest.err conftest.$ac_ext
  6267. if $ac_preproc_ok; then :
  6268. else
  6269. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6271. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6272. See \`config.log' for more details" "$LINENO" 5; }
  6273. fi
  6274. ac_ext=c
  6275. ac_cpp='$CPP $CPPFLAGS'
  6276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6280. $as_echo_n "checking for ANSI C header files... " >&6; }
  6281. if ${ac_cv_header_stdc+:} false; then :
  6282. $as_echo_n "(cached) " >&6
  6283. else
  6284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6285. /* end confdefs.h. */
  6286. #include <stdlib.h>
  6287. #include <stdarg.h>
  6288. #include <string.h>
  6289. #include <float.h>
  6290. int
  6291. main ()
  6292. {
  6293. ;
  6294. return 0;
  6295. }
  6296. _ACEOF
  6297. if ac_fn_c_try_compile "$LINENO"; then :
  6298. ac_cv_header_stdc=yes
  6299. else
  6300. ac_cv_header_stdc=no
  6301. fi
  6302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6303. if test $ac_cv_header_stdc = yes; then
  6304. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6306. /* end confdefs.h. */
  6307. #include <string.h>
  6308. _ACEOF
  6309. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6310. $EGREP "memchr" >/dev/null 2>&1; then :
  6311. else
  6312. ac_cv_header_stdc=no
  6313. fi
  6314. rm -f conftest*
  6315. fi
  6316. if test $ac_cv_header_stdc = yes; then
  6317. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6319. /* end confdefs.h. */
  6320. #include <stdlib.h>
  6321. _ACEOF
  6322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6323. $EGREP "free" >/dev/null 2>&1; then :
  6324. else
  6325. ac_cv_header_stdc=no
  6326. fi
  6327. rm -f conftest*
  6328. fi
  6329. if test $ac_cv_header_stdc = yes; then
  6330. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6331. if test "$cross_compiling" = yes; then :
  6332. :
  6333. else
  6334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6335. /* end confdefs.h. */
  6336. #include <ctype.h>
  6337. #include <stdlib.h>
  6338. #if ((' ' & 0x0FF) == 0x020)
  6339. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6340. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6341. #else
  6342. # define ISLOWER(c) \
  6343. (('a' <= (c) && (c) <= 'i') \
  6344. || ('j' <= (c) && (c) <= 'r') \
  6345. || ('s' <= (c) && (c) <= 'z'))
  6346. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6347. #endif
  6348. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6349. int
  6350. main ()
  6351. {
  6352. int i;
  6353. for (i = 0; i < 256; i++)
  6354. if (XOR (islower (i), ISLOWER (i))
  6355. || toupper (i) != TOUPPER (i))
  6356. return 2;
  6357. return 0;
  6358. }
  6359. _ACEOF
  6360. if ac_fn_c_try_run "$LINENO"; then :
  6361. else
  6362. ac_cv_header_stdc=no
  6363. fi
  6364. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6365. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6366. fi
  6367. fi
  6368. fi
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6370. $as_echo "$ac_cv_header_stdc" >&6; }
  6371. if test $ac_cv_header_stdc = yes; then
  6372. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6373. fi
  6374. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6375. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6376. inttypes.h stdint.h unistd.h
  6377. do :
  6378. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6379. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6380. "
  6381. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6382. cat >>confdefs.h <<_ACEOF
  6383. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6384. _ACEOF
  6385. fi
  6386. done
  6387. for ac_header in dlfcn.h
  6388. do :
  6389. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6390. "
  6391. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6392. cat >>confdefs.h <<_ACEOF
  6393. #define HAVE_DLFCN_H 1
  6394. _ACEOF
  6395. fi
  6396. done
  6397. # Set options
  6398. enable_win32_dll=yes
  6399. case $host in
  6400. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6401. if test -n "$ac_tool_prefix"; then
  6402. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6403. set dummy ${ac_tool_prefix}as; ac_word=$2
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6405. $as_echo_n "checking for $ac_word... " >&6; }
  6406. if ${ac_cv_prog_AS+:} false; then :
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. if test -n "$AS"; then
  6410. ac_cv_prog_AS="$AS" # Let the user override the test.
  6411. else
  6412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6413. for as_dir in $PATH
  6414. do
  6415. IFS=$as_save_IFS
  6416. test -z "$as_dir" && as_dir=.
  6417. for ac_exec_ext in '' $ac_executable_extensions; do
  6418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6419. ac_cv_prog_AS="${ac_tool_prefix}as"
  6420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6421. break 2
  6422. fi
  6423. done
  6424. done
  6425. IFS=$as_save_IFS
  6426. fi
  6427. fi
  6428. AS=$ac_cv_prog_AS
  6429. if test -n "$AS"; then
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6431. $as_echo "$AS" >&6; }
  6432. else
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6434. $as_echo "no" >&6; }
  6435. fi
  6436. fi
  6437. if test -z "$ac_cv_prog_AS"; then
  6438. ac_ct_AS=$AS
  6439. # Extract the first word of "as", so it can be a program name with args.
  6440. set dummy as; ac_word=$2
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6442. $as_echo_n "checking for $ac_word... " >&6; }
  6443. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6444. $as_echo_n "(cached) " >&6
  6445. else
  6446. if test -n "$ac_ct_AS"; then
  6447. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6448. else
  6449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6450. for as_dir in $PATH
  6451. do
  6452. IFS=$as_save_IFS
  6453. test -z "$as_dir" && as_dir=.
  6454. for ac_exec_ext in '' $ac_executable_extensions; do
  6455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6456. ac_cv_prog_ac_ct_AS="as"
  6457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6458. break 2
  6459. fi
  6460. done
  6461. done
  6462. IFS=$as_save_IFS
  6463. fi
  6464. fi
  6465. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6466. if test -n "$ac_ct_AS"; then
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6468. $as_echo "$ac_ct_AS" >&6; }
  6469. else
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6471. $as_echo "no" >&6; }
  6472. fi
  6473. if test "x$ac_ct_AS" = x; then
  6474. AS="false"
  6475. else
  6476. case $cross_compiling:$ac_tool_warned in
  6477. yes:)
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6479. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6480. ac_tool_warned=yes ;;
  6481. esac
  6482. AS=$ac_ct_AS
  6483. fi
  6484. else
  6485. AS="$ac_cv_prog_AS"
  6486. fi
  6487. if test -n "$ac_tool_prefix"; then
  6488. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6489. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6491. $as_echo_n "checking for $ac_word... " >&6; }
  6492. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. if test -n "$DLLTOOL"; then
  6496. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6497. else
  6498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6499. for as_dir in $PATH
  6500. do
  6501. IFS=$as_save_IFS
  6502. test -z "$as_dir" && as_dir=.
  6503. for ac_exec_ext in '' $ac_executable_extensions; do
  6504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6505. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6507. break 2
  6508. fi
  6509. done
  6510. done
  6511. IFS=$as_save_IFS
  6512. fi
  6513. fi
  6514. DLLTOOL=$ac_cv_prog_DLLTOOL
  6515. if test -n "$DLLTOOL"; then
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6517. $as_echo "$DLLTOOL" >&6; }
  6518. else
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. fi
  6523. if test -z "$ac_cv_prog_DLLTOOL"; then
  6524. ac_ct_DLLTOOL=$DLLTOOL
  6525. # Extract the first word of "dlltool", so it can be a program name with args.
  6526. set dummy dlltool; ac_word=$2
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6528. $as_echo_n "checking for $ac_word... " >&6; }
  6529. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. if test -n "$ac_ct_DLLTOOL"; then
  6533. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6534. else
  6535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6536. for as_dir in $PATH
  6537. do
  6538. IFS=$as_save_IFS
  6539. test -z "$as_dir" && as_dir=.
  6540. for ac_exec_ext in '' $ac_executable_extensions; do
  6541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6542. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6544. break 2
  6545. fi
  6546. done
  6547. done
  6548. IFS=$as_save_IFS
  6549. fi
  6550. fi
  6551. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6552. if test -n "$ac_ct_DLLTOOL"; then
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6554. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6555. else
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6557. $as_echo "no" >&6; }
  6558. fi
  6559. if test "x$ac_ct_DLLTOOL" = x; then
  6560. DLLTOOL="false"
  6561. else
  6562. case $cross_compiling:$ac_tool_warned in
  6563. yes:)
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6565. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6566. ac_tool_warned=yes ;;
  6567. esac
  6568. DLLTOOL=$ac_ct_DLLTOOL
  6569. fi
  6570. else
  6571. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6572. fi
  6573. if test -n "$ac_tool_prefix"; then
  6574. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6575. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6577. $as_echo_n "checking for $ac_word... " >&6; }
  6578. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. if test -n "$OBJDUMP"; then
  6582. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6583. else
  6584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6585. for as_dir in $PATH
  6586. do
  6587. IFS=$as_save_IFS
  6588. test -z "$as_dir" && as_dir=.
  6589. for ac_exec_ext in '' $ac_executable_extensions; do
  6590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6591. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6593. break 2
  6594. fi
  6595. done
  6596. done
  6597. IFS=$as_save_IFS
  6598. fi
  6599. fi
  6600. OBJDUMP=$ac_cv_prog_OBJDUMP
  6601. if test -n "$OBJDUMP"; then
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6603. $as_echo "$OBJDUMP" >&6; }
  6604. else
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6606. $as_echo "no" >&6; }
  6607. fi
  6608. fi
  6609. if test -z "$ac_cv_prog_OBJDUMP"; then
  6610. ac_ct_OBJDUMP=$OBJDUMP
  6611. # Extract the first word of "objdump", so it can be a program name with args.
  6612. set dummy objdump; ac_word=$2
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6614. $as_echo_n "checking for $ac_word... " >&6; }
  6615. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6616. $as_echo_n "(cached) " >&6
  6617. else
  6618. if test -n "$ac_ct_OBJDUMP"; then
  6619. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. test -z "$as_dir" && as_dir=.
  6626. for ac_exec_ext in '' $ac_executable_extensions; do
  6627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6628. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6630. break 2
  6631. fi
  6632. done
  6633. done
  6634. IFS=$as_save_IFS
  6635. fi
  6636. fi
  6637. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6638. if test -n "$ac_ct_OBJDUMP"; then
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6640. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6641. else
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6643. $as_echo "no" >&6; }
  6644. fi
  6645. if test "x$ac_ct_OBJDUMP" = x; then
  6646. OBJDUMP="false"
  6647. else
  6648. case $cross_compiling:$ac_tool_warned in
  6649. yes:)
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6652. ac_tool_warned=yes ;;
  6653. esac
  6654. OBJDUMP=$ac_ct_OBJDUMP
  6655. fi
  6656. else
  6657. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6658. fi
  6659. ;;
  6660. esac
  6661. test -z "$AS" && AS=as
  6662. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6663. test -z "$OBJDUMP" && OBJDUMP=objdump
  6664. enable_dlopen=no
  6665. # Check whether --enable-shared was given.
  6666. if test "${enable_shared+set}" = set; then :
  6667. enableval=$enable_shared; p=${PACKAGE-default}
  6668. case $enableval in
  6669. yes) enable_shared=yes ;;
  6670. no) enable_shared=no ;;
  6671. *)
  6672. enable_shared=no
  6673. # Look at the argument we got. We use all the common list separators.
  6674. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6675. for pkg in $enableval; do
  6676. IFS="$lt_save_ifs"
  6677. if test "X$pkg" = "X$p"; then
  6678. enable_shared=yes
  6679. fi
  6680. done
  6681. IFS="$lt_save_ifs"
  6682. ;;
  6683. esac
  6684. else
  6685. enable_shared=yes
  6686. fi
  6687. # Check whether --enable-static was given.
  6688. if test "${enable_static+set}" = set; then :
  6689. enableval=$enable_static; p=${PACKAGE-default}
  6690. case $enableval in
  6691. yes) enable_static=yes ;;
  6692. no) enable_static=no ;;
  6693. *)
  6694. enable_static=no
  6695. # Look at the argument we got. We use all the common list separators.
  6696. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6697. for pkg in $enableval; do
  6698. IFS="$lt_save_ifs"
  6699. if test "X$pkg" = "X$p"; then
  6700. enable_static=yes
  6701. fi
  6702. done
  6703. IFS="$lt_save_ifs"
  6704. ;;
  6705. esac
  6706. else
  6707. enable_static=yes
  6708. fi
  6709. # Check whether --with-pic was given.
  6710. if test "${with_pic+set}" = set; then :
  6711. withval=$with_pic; lt_p=${PACKAGE-default}
  6712. case $withval in
  6713. yes|no) pic_mode=$withval ;;
  6714. *)
  6715. pic_mode=default
  6716. # Look at the argument we got. We use all the common list separators.
  6717. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6718. for lt_pkg in $withval; do
  6719. IFS="$lt_save_ifs"
  6720. if test "X$lt_pkg" = "X$lt_p"; then
  6721. pic_mode=yes
  6722. fi
  6723. done
  6724. IFS="$lt_save_ifs"
  6725. ;;
  6726. esac
  6727. else
  6728. pic_mode=default
  6729. fi
  6730. test -z "$pic_mode" && pic_mode=default
  6731. # Check whether --enable-fast-install was given.
  6732. if test "${enable_fast_install+set}" = set; then :
  6733. enableval=$enable_fast_install; p=${PACKAGE-default}
  6734. case $enableval in
  6735. yes) enable_fast_install=yes ;;
  6736. no) enable_fast_install=no ;;
  6737. *)
  6738. enable_fast_install=no
  6739. # Look at the argument we got. We use all the common list separators.
  6740. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6741. for pkg in $enableval; do
  6742. IFS="$lt_save_ifs"
  6743. if test "X$pkg" = "X$p"; then
  6744. enable_fast_install=yes
  6745. fi
  6746. done
  6747. IFS="$lt_save_ifs"
  6748. ;;
  6749. esac
  6750. else
  6751. enable_fast_install=yes
  6752. fi
  6753. # This can be used to rebuild libtool when needed
  6754. LIBTOOL_DEPS="$ltmain"
  6755. # Always use our own libtool.
  6756. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6757. test -z "$LN_S" && LN_S="ln -s"
  6758. if test -n "${ZSH_VERSION+set}" ; then
  6759. setopt NO_GLOB_SUBST
  6760. fi
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6762. $as_echo_n "checking for objdir... " >&6; }
  6763. if ${lt_cv_objdir+:} false; then :
  6764. $as_echo_n "(cached) " >&6
  6765. else
  6766. rm -f .libs 2>/dev/null
  6767. mkdir .libs 2>/dev/null
  6768. if test -d .libs; then
  6769. lt_cv_objdir=.libs
  6770. else
  6771. # MS-DOS does not allow filenames that begin with a dot.
  6772. lt_cv_objdir=_libs
  6773. fi
  6774. rmdir .libs 2>/dev/null
  6775. fi
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6777. $as_echo "$lt_cv_objdir" >&6; }
  6778. objdir=$lt_cv_objdir
  6779. cat >>confdefs.h <<_ACEOF
  6780. #define LT_OBJDIR "$lt_cv_objdir/"
  6781. _ACEOF
  6782. case $host_os in
  6783. aix3*)
  6784. # AIX sometimes has problems with the GCC collect2 program. For some
  6785. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6786. # vanish in a puff of smoke.
  6787. if test "X${COLLECT_NAMES+set}" != Xset; then
  6788. COLLECT_NAMES=
  6789. export COLLECT_NAMES
  6790. fi
  6791. ;;
  6792. esac
  6793. # Global variables:
  6794. ofile=libtool
  6795. can_build_shared=yes
  6796. # All known linkers require a `.a' archive for static linking (except MSVC,
  6797. # which needs '.lib').
  6798. libext=a
  6799. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6800. old_CC="$CC"
  6801. old_CFLAGS="$CFLAGS"
  6802. # Set sane defaults for various variables
  6803. test -z "$CC" && CC=cc
  6804. test -z "$LTCC" && LTCC=$CC
  6805. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6806. test -z "$LD" && LD=ld
  6807. test -z "$ac_objext" && ac_objext=o
  6808. for cc_temp in $compiler""; do
  6809. case $cc_temp in
  6810. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6811. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6812. \-*) ;;
  6813. *) break;;
  6814. esac
  6815. done
  6816. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6817. # Only perform the check for file, if the check method requires it
  6818. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6819. case $deplibs_check_method in
  6820. file_magic*)
  6821. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6823. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6824. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. case $MAGIC_CMD in
  6828. [\\/*] | ?:[\\/]*)
  6829. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6830. ;;
  6831. *)
  6832. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6833. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6834. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6835. for ac_dir in $ac_dummy; do
  6836. IFS="$lt_save_ifs"
  6837. test -z "$ac_dir" && ac_dir=.
  6838. if test -f $ac_dir/${ac_tool_prefix}file; then
  6839. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6840. if test -n "$file_magic_test_file"; then
  6841. case $deplibs_check_method in
  6842. "file_magic "*)
  6843. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6844. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6845. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6846. $EGREP "$file_magic_regex" > /dev/null; then
  6847. :
  6848. else
  6849. cat <<_LT_EOF 1>&2
  6850. *** Warning: the command libtool uses to detect shared libraries,
  6851. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6852. *** The result is that libtool may fail to recognize shared libraries
  6853. *** as such. This will affect the creation of libtool libraries that
  6854. *** depend on shared libraries, but programs linked with such libtool
  6855. *** libraries will work regardless of this problem. Nevertheless, you
  6856. *** may want to report the problem to your system manager and/or to
  6857. *** bug-libtool@gnu.org
  6858. _LT_EOF
  6859. fi ;;
  6860. esac
  6861. fi
  6862. break
  6863. fi
  6864. done
  6865. IFS="$lt_save_ifs"
  6866. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6867. ;;
  6868. esac
  6869. fi
  6870. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6871. if test -n "$MAGIC_CMD"; then
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6873. $as_echo "$MAGIC_CMD" >&6; }
  6874. else
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6876. $as_echo "no" >&6; }
  6877. fi
  6878. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6879. if test -n "$ac_tool_prefix"; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6881. $as_echo_n "checking for file... " >&6; }
  6882. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. case $MAGIC_CMD in
  6886. [\\/*] | ?:[\\/]*)
  6887. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6888. ;;
  6889. *)
  6890. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6891. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6892. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6893. for ac_dir in $ac_dummy; do
  6894. IFS="$lt_save_ifs"
  6895. test -z "$ac_dir" && ac_dir=.
  6896. if test -f $ac_dir/file; then
  6897. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6898. if test -n "$file_magic_test_file"; then
  6899. case $deplibs_check_method in
  6900. "file_magic "*)
  6901. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6902. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6903. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6904. $EGREP "$file_magic_regex" > /dev/null; then
  6905. :
  6906. else
  6907. cat <<_LT_EOF 1>&2
  6908. *** Warning: the command libtool uses to detect shared libraries,
  6909. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6910. *** The result is that libtool may fail to recognize shared libraries
  6911. *** as such. This will affect the creation of libtool libraries that
  6912. *** depend on shared libraries, but programs linked with such libtool
  6913. *** libraries will work regardless of this problem. Nevertheless, you
  6914. *** may want to report the problem to your system manager and/or to
  6915. *** bug-libtool@gnu.org
  6916. _LT_EOF
  6917. fi ;;
  6918. esac
  6919. fi
  6920. break
  6921. fi
  6922. done
  6923. IFS="$lt_save_ifs"
  6924. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6925. ;;
  6926. esac
  6927. fi
  6928. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6929. if test -n "$MAGIC_CMD"; then
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6931. $as_echo "$MAGIC_CMD" >&6; }
  6932. else
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6934. $as_echo "no" >&6; }
  6935. fi
  6936. else
  6937. MAGIC_CMD=:
  6938. fi
  6939. fi
  6940. fi
  6941. ;;
  6942. esac
  6943. # Use C for the default configuration in the libtool script
  6944. lt_save_CC="$CC"
  6945. ac_ext=c
  6946. ac_cpp='$CPP $CPPFLAGS'
  6947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6950. # Source file extension for C test sources.
  6951. ac_ext=c
  6952. # Object file extension for compiled C test sources.
  6953. objext=o
  6954. objext=$objext
  6955. # Code to be used in simple compile tests
  6956. lt_simple_compile_test_code="int some_variable = 0;"
  6957. # Code to be used in simple link tests
  6958. lt_simple_link_test_code='int main(){return(0);}'
  6959. # If no C compiler was specified, use CC.
  6960. LTCC=${LTCC-"$CC"}
  6961. # If no C compiler flags were specified, use CFLAGS.
  6962. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6963. # Allow CC to be a program name with arguments.
  6964. compiler=$CC
  6965. # Save the default compiler, since it gets overwritten when the other
  6966. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6967. compiler_DEFAULT=$CC
  6968. # save warnings/boilerplate of simple test code
  6969. ac_outfile=conftest.$ac_objext
  6970. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6971. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6972. _lt_compiler_boilerplate=`cat conftest.err`
  6973. $RM conftest*
  6974. ac_outfile=conftest.$ac_objext
  6975. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6976. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6977. _lt_linker_boilerplate=`cat conftest.err`
  6978. $RM -r conftest*
  6979. ## CAVEAT EMPTOR:
  6980. ## There is no encapsulation within the following macros, do not change
  6981. ## the running order or otherwise move them around unless you know exactly
  6982. ## what you are doing...
  6983. if test -n "$compiler"; then
  6984. lt_prog_compiler_no_builtin_flag=
  6985. if test "$GCC" = yes; then
  6986. case $cc_basename in
  6987. nvcc*)
  6988. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6989. *)
  6990. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6991. esac
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6993. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6994. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6995. $as_echo_n "(cached) " >&6
  6996. else
  6997. lt_cv_prog_compiler_rtti_exceptions=no
  6998. ac_outfile=conftest.$ac_objext
  6999. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7000. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7001. # Insert the option either (1) after the last *FLAGS variable, or
  7002. # (2) before a word containing "conftest.", or (3) at the end.
  7003. # Note that $ac_compile itself does not contain backslashes and begins
  7004. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7005. # The option is referenced via a variable to avoid confusing sed.
  7006. lt_compile=`echo "$ac_compile" | $SED \
  7007. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7008. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7009. -e 's:$: $lt_compiler_flag:'`
  7010. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7011. (eval "$lt_compile" 2>conftest.err)
  7012. ac_status=$?
  7013. cat conftest.err >&5
  7014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7015. if (exit $ac_status) && test -s "$ac_outfile"; then
  7016. # The compiler can only warn and ignore the option if not recognized
  7017. # So say no if there are warnings other than the usual output.
  7018. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7019. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7020. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7021. lt_cv_prog_compiler_rtti_exceptions=yes
  7022. fi
  7023. fi
  7024. $RM conftest*
  7025. fi
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7027. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7028. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7029. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7030. else
  7031. :
  7032. fi
  7033. fi
  7034. lt_prog_compiler_wl=
  7035. lt_prog_compiler_pic=
  7036. lt_prog_compiler_static=
  7037. if test "$GCC" = yes; then
  7038. lt_prog_compiler_wl='-Wl,'
  7039. lt_prog_compiler_static='-static'
  7040. case $host_os in
  7041. aix*)
  7042. # All AIX code is PIC.
  7043. if test "$host_cpu" = ia64; then
  7044. # AIX 5 now supports IA64 processor
  7045. lt_prog_compiler_static='-Bstatic'
  7046. fi
  7047. ;;
  7048. amigaos*)
  7049. case $host_cpu in
  7050. powerpc)
  7051. # see comment about AmigaOS4 .so support
  7052. lt_prog_compiler_pic='-fPIC'
  7053. ;;
  7054. m68k)
  7055. # FIXME: we need at least 68020 code to build shared libraries, but
  7056. # adding the `-m68020' flag to GCC prevents building anything better,
  7057. # like `-m68040'.
  7058. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7059. ;;
  7060. esac
  7061. ;;
  7062. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7063. # PIC is the default for these OSes.
  7064. ;;
  7065. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7066. # This hack is so that the source file can tell whether it is being
  7067. # built for inclusion in a dll (and should export symbols for example).
  7068. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7069. # (--disable-auto-import) libraries
  7070. lt_prog_compiler_pic='-DDLL_EXPORT'
  7071. ;;
  7072. darwin* | rhapsody*)
  7073. # PIC is the default on this platform
  7074. # Common symbols not allowed in MH_DYLIB files
  7075. lt_prog_compiler_pic='-fno-common'
  7076. ;;
  7077. haiku*)
  7078. # PIC is the default for Haiku.
  7079. # The "-static" flag exists, but is broken.
  7080. lt_prog_compiler_static=
  7081. ;;
  7082. hpux*)
  7083. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7084. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7085. # sets the default TLS model and affects inlining.
  7086. case $host_cpu in
  7087. hppa*64*)
  7088. # +Z the default
  7089. ;;
  7090. *)
  7091. lt_prog_compiler_pic='-fPIC'
  7092. ;;
  7093. esac
  7094. ;;
  7095. interix[3-9]*)
  7096. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7097. # Instead, we relocate shared libraries at runtime.
  7098. ;;
  7099. msdosdjgpp*)
  7100. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7101. # on systems that don't support them.
  7102. lt_prog_compiler_can_build_shared=no
  7103. enable_shared=no
  7104. ;;
  7105. *nto* | *qnx*)
  7106. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7107. # it will coredump.
  7108. lt_prog_compiler_pic='-fPIC -shared'
  7109. ;;
  7110. sysv4*MP*)
  7111. if test -d /usr/nec; then
  7112. lt_prog_compiler_pic=-Kconform_pic
  7113. fi
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_pic='-fPIC'
  7117. ;;
  7118. esac
  7119. case $cc_basename in
  7120. nvcc*) # Cuda Compiler Driver 2.2
  7121. lt_prog_compiler_wl='-Xlinker '
  7122. if test -n "$lt_prog_compiler_pic"; then
  7123. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7124. fi
  7125. ;;
  7126. esac
  7127. else
  7128. # PORTME Check for flag to pass linker flags through the system compiler.
  7129. case $host_os in
  7130. aix*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. if test "$host_cpu" = ia64; then
  7133. # AIX 5 now supports IA64 processor
  7134. lt_prog_compiler_static='-Bstatic'
  7135. else
  7136. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7137. fi
  7138. ;;
  7139. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7140. # This hack is so that the source file can tell whether it is being
  7141. # built for inclusion in a dll (and should export symbols for example).
  7142. lt_prog_compiler_pic='-DDLL_EXPORT'
  7143. ;;
  7144. hpux9* | hpux10* | hpux11*)
  7145. lt_prog_compiler_wl='-Wl,'
  7146. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7147. # not for PA HP-UX.
  7148. case $host_cpu in
  7149. hppa*64*|ia64*)
  7150. # +Z the default
  7151. ;;
  7152. *)
  7153. lt_prog_compiler_pic='+Z'
  7154. ;;
  7155. esac
  7156. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7157. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7158. ;;
  7159. irix5* | irix6* | nonstopux*)
  7160. lt_prog_compiler_wl='-Wl,'
  7161. # PIC (with -KPIC) is the default.
  7162. lt_prog_compiler_static='-non_shared'
  7163. ;;
  7164. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7165. case $cc_basename in
  7166. # old Intel for x86_64 which still supported -KPIC.
  7167. ecc*)
  7168. lt_prog_compiler_wl='-Wl,'
  7169. lt_prog_compiler_pic='-KPIC'
  7170. lt_prog_compiler_static='-static'
  7171. ;;
  7172. # icc used to be incompatible with GCC.
  7173. # ICC 10 doesn't accept -KPIC any more.
  7174. icc* | ifort*)
  7175. lt_prog_compiler_wl='-Wl,'
  7176. lt_prog_compiler_pic='-fPIC'
  7177. lt_prog_compiler_static='-static'
  7178. ;;
  7179. # Lahey Fortran 8.1.
  7180. lf95*)
  7181. lt_prog_compiler_wl='-Wl,'
  7182. lt_prog_compiler_pic='--shared'
  7183. lt_prog_compiler_static='--static'
  7184. ;;
  7185. nagfor*)
  7186. # NAG Fortran compiler
  7187. lt_prog_compiler_wl='-Wl,-Wl,,'
  7188. lt_prog_compiler_pic='-PIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7192. # Portland Group compilers (*not* the Pentium gcc compiler,
  7193. # which looks to be a dead project)
  7194. lt_prog_compiler_wl='-Wl,'
  7195. lt_prog_compiler_pic='-fpic'
  7196. lt_prog_compiler_static='-Bstatic'
  7197. ;;
  7198. ccc*)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. # All Alpha code is PIC.
  7201. lt_prog_compiler_static='-non_shared'
  7202. ;;
  7203. xl* | bgxl* | bgf* | mpixl*)
  7204. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7205. lt_prog_compiler_wl='-Wl,'
  7206. lt_prog_compiler_pic='-qpic'
  7207. lt_prog_compiler_static='-qstaticlink'
  7208. ;;
  7209. *)
  7210. case `$CC -V 2>&1 | sed 5q` in
  7211. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7212. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. lt_prog_compiler_wl=''
  7216. ;;
  7217. *Sun\ F* | *Sun*Fortran*)
  7218. lt_prog_compiler_pic='-KPIC'
  7219. lt_prog_compiler_static='-Bstatic'
  7220. lt_prog_compiler_wl='-Qoption ld '
  7221. ;;
  7222. *Sun\ C*)
  7223. # Sun C 5.9
  7224. lt_prog_compiler_pic='-KPIC'
  7225. lt_prog_compiler_static='-Bstatic'
  7226. lt_prog_compiler_wl='-Wl,'
  7227. ;;
  7228. *Intel*\ [CF]*Compiler*)
  7229. lt_prog_compiler_wl='-Wl,'
  7230. lt_prog_compiler_pic='-fPIC'
  7231. lt_prog_compiler_static='-static'
  7232. ;;
  7233. *Portland\ Group*)
  7234. lt_prog_compiler_wl='-Wl,'
  7235. lt_prog_compiler_pic='-fpic'
  7236. lt_prog_compiler_static='-Bstatic'
  7237. ;;
  7238. esac
  7239. ;;
  7240. esac
  7241. ;;
  7242. newsos6)
  7243. lt_prog_compiler_pic='-KPIC'
  7244. lt_prog_compiler_static='-Bstatic'
  7245. ;;
  7246. *nto* | *qnx*)
  7247. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7248. # it will coredump.
  7249. lt_prog_compiler_pic='-fPIC -shared'
  7250. ;;
  7251. osf3* | osf4* | osf5*)
  7252. lt_prog_compiler_wl='-Wl,'
  7253. # All OSF/1 code is PIC.
  7254. lt_prog_compiler_static='-non_shared'
  7255. ;;
  7256. rdos*)
  7257. lt_prog_compiler_static='-non_shared'
  7258. ;;
  7259. solaris*)
  7260. lt_prog_compiler_pic='-KPIC'
  7261. lt_prog_compiler_static='-Bstatic'
  7262. case $cc_basename in
  7263. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7264. lt_prog_compiler_wl='-Qoption ld ';;
  7265. *)
  7266. lt_prog_compiler_wl='-Wl,';;
  7267. esac
  7268. ;;
  7269. sunos4*)
  7270. lt_prog_compiler_wl='-Qoption ld '
  7271. lt_prog_compiler_pic='-PIC'
  7272. lt_prog_compiler_static='-Bstatic'
  7273. ;;
  7274. sysv4 | sysv4.2uw2* | sysv4.3*)
  7275. lt_prog_compiler_wl='-Wl,'
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. ;;
  7279. sysv4*MP*)
  7280. if test -d /usr/nec ;then
  7281. lt_prog_compiler_pic='-Kconform_pic'
  7282. lt_prog_compiler_static='-Bstatic'
  7283. fi
  7284. ;;
  7285. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7286. lt_prog_compiler_wl='-Wl,'
  7287. lt_prog_compiler_pic='-KPIC'
  7288. lt_prog_compiler_static='-Bstatic'
  7289. ;;
  7290. unicos*)
  7291. lt_prog_compiler_wl='-Wl,'
  7292. lt_prog_compiler_can_build_shared=no
  7293. ;;
  7294. uts4*)
  7295. lt_prog_compiler_pic='-pic'
  7296. lt_prog_compiler_static='-Bstatic'
  7297. ;;
  7298. *)
  7299. lt_prog_compiler_can_build_shared=no
  7300. ;;
  7301. esac
  7302. fi
  7303. case $host_os in
  7304. # For platforms which do not support PIC, -DPIC is meaningless:
  7305. *djgpp*)
  7306. lt_prog_compiler_pic=
  7307. ;;
  7308. *)
  7309. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7310. ;;
  7311. esac
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7313. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7314. if ${lt_cv_prog_compiler_pic+:} false; then :
  7315. $as_echo_n "(cached) " >&6
  7316. else
  7317. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7320. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7321. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7322. #
  7323. # Check to make sure the PIC flag actually works.
  7324. #
  7325. if test -n "$lt_prog_compiler_pic"; then
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7327. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7328. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. lt_cv_prog_compiler_pic_works=no
  7332. ac_outfile=conftest.$ac_objext
  7333. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7334. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7335. # Insert the option either (1) after the last *FLAGS variable, or
  7336. # (2) before a word containing "conftest.", or (3) at the end.
  7337. # Note that $ac_compile itself does not contain backslashes and begins
  7338. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7339. # The option is referenced via a variable to avoid confusing sed.
  7340. lt_compile=`echo "$ac_compile" | $SED \
  7341. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7342. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7343. -e 's:$: $lt_compiler_flag:'`
  7344. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7345. (eval "$lt_compile" 2>conftest.err)
  7346. ac_status=$?
  7347. cat conftest.err >&5
  7348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7349. if (exit $ac_status) && test -s "$ac_outfile"; then
  7350. # The compiler can only warn and ignore the option if not recognized
  7351. # So say no if there are warnings other than the usual output.
  7352. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7353. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7354. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7355. lt_cv_prog_compiler_pic_works=yes
  7356. fi
  7357. fi
  7358. $RM conftest*
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7361. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7362. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7363. case $lt_prog_compiler_pic in
  7364. "" | " "*) ;;
  7365. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7366. esac
  7367. else
  7368. lt_prog_compiler_pic=
  7369. lt_prog_compiler_can_build_shared=no
  7370. fi
  7371. fi
  7372. #
  7373. # Check to make sure the static flag actually works.
  7374. #
  7375. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7377. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7378. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7379. $as_echo_n "(cached) " >&6
  7380. else
  7381. lt_cv_prog_compiler_static_works=no
  7382. save_LDFLAGS="$LDFLAGS"
  7383. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7384. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7385. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7386. # The linker can only warn and ignore the option if not recognized
  7387. # So say no if there are warnings
  7388. if test -s conftest.err; then
  7389. # Append any errors to the config.log.
  7390. cat conftest.err 1>&5
  7391. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7392. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7393. if diff conftest.exp conftest.er2 >/dev/null; then
  7394. lt_cv_prog_compiler_static_works=yes
  7395. fi
  7396. else
  7397. lt_cv_prog_compiler_static_works=yes
  7398. fi
  7399. fi
  7400. $RM -r conftest*
  7401. LDFLAGS="$save_LDFLAGS"
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7404. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7405. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7406. :
  7407. else
  7408. lt_prog_compiler_static=
  7409. fi
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7411. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7412. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7413. $as_echo_n "(cached) " >&6
  7414. else
  7415. lt_cv_prog_compiler_c_o=no
  7416. $RM -r conftest 2>/dev/null
  7417. mkdir conftest
  7418. cd conftest
  7419. mkdir out
  7420. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7421. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7422. # Insert the option either (1) after the last *FLAGS variable, or
  7423. # (2) before a word containing "conftest.", or (3) at the end.
  7424. # Note that $ac_compile itself does not contain backslashes and begins
  7425. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7426. lt_compile=`echo "$ac_compile" | $SED \
  7427. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7428. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7429. -e 's:$: $lt_compiler_flag:'`
  7430. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7431. (eval "$lt_compile" 2>out/conftest.err)
  7432. ac_status=$?
  7433. cat out/conftest.err >&5
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7436. then
  7437. # The compiler can only warn and ignore the option if not recognized
  7438. # So say no if there are warnings
  7439. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7440. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7441. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7442. lt_cv_prog_compiler_c_o=yes
  7443. fi
  7444. fi
  7445. chmod u+w . 2>&5
  7446. $RM conftest*
  7447. # SGI C++ compiler will create directory out/ii_files/ for
  7448. # template instantiation
  7449. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7450. $RM out/* && rmdir out
  7451. cd ..
  7452. $RM -r conftest
  7453. $RM conftest*
  7454. fi
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7456. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7458. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7459. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. lt_cv_prog_compiler_c_o=no
  7463. $RM -r conftest 2>/dev/null
  7464. mkdir conftest
  7465. cd conftest
  7466. mkdir out
  7467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7468. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7469. # Insert the option either (1) after the last *FLAGS variable, or
  7470. # (2) before a word containing "conftest.", or (3) at the end.
  7471. # Note that $ac_compile itself does not contain backslashes and begins
  7472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7473. lt_compile=`echo "$ac_compile" | $SED \
  7474. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7475. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7476. -e 's:$: $lt_compiler_flag:'`
  7477. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7478. (eval "$lt_compile" 2>out/conftest.err)
  7479. ac_status=$?
  7480. cat out/conftest.err >&5
  7481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7483. then
  7484. # The compiler can only warn and ignore the option if not recognized
  7485. # So say no if there are warnings
  7486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7487. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7488. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7489. lt_cv_prog_compiler_c_o=yes
  7490. fi
  7491. fi
  7492. chmod u+w . 2>&5
  7493. $RM conftest*
  7494. # SGI C++ compiler will create directory out/ii_files/ for
  7495. # template instantiation
  7496. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7497. $RM out/* && rmdir out
  7498. cd ..
  7499. $RM -r conftest
  7500. $RM conftest*
  7501. fi
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7503. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7504. hard_links="nottested"
  7505. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7506. # do not overwrite the value of need_locks provided by the user
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7508. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7509. hard_links=yes
  7510. $RM conftest*
  7511. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7512. touch conftest.a
  7513. ln conftest.a conftest.b 2>&5 || hard_links=no
  7514. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7516. $as_echo "$hard_links" >&6; }
  7517. if test "$hard_links" = no; then
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7519. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7520. need_locks=warn
  7521. fi
  7522. else
  7523. need_locks=no
  7524. fi
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7526. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7527. runpath_var=
  7528. allow_undefined_flag=
  7529. always_export_symbols=no
  7530. archive_cmds=
  7531. archive_expsym_cmds=
  7532. compiler_needs_object=no
  7533. enable_shared_with_static_runtimes=no
  7534. export_dynamic_flag_spec=
  7535. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7536. hardcode_automatic=no
  7537. hardcode_direct=no
  7538. hardcode_direct_absolute=no
  7539. hardcode_libdir_flag_spec=
  7540. hardcode_libdir_separator=
  7541. hardcode_minus_L=no
  7542. hardcode_shlibpath_var=unsupported
  7543. inherit_rpath=no
  7544. link_all_deplibs=unknown
  7545. module_cmds=
  7546. module_expsym_cmds=
  7547. old_archive_from_new_cmds=
  7548. old_archive_from_expsyms_cmds=
  7549. thread_safe_flag_spec=
  7550. whole_archive_flag_spec=
  7551. # include_expsyms should be a list of space-separated symbols to be *always*
  7552. # included in the symbol list
  7553. include_expsyms=
  7554. # exclude_expsyms can be an extended regexp of symbols to exclude
  7555. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7556. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7557. # as well as any symbol that contains `d'.
  7558. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7559. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7560. # platforms (ab)use it in PIC code, but their linkers get confused if
  7561. # the symbol is explicitly referenced. Since portable code cannot
  7562. # rely on this symbol name, it's probably fine to never include it in
  7563. # preloaded symbol tables.
  7564. # Exclude shared library initialization/finalization symbols.
  7565. extract_expsyms_cmds=
  7566. case $host_os in
  7567. cygwin* | mingw* | pw32* | cegcc*)
  7568. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7569. # When not using gcc, we currently assume that we are using
  7570. # Microsoft Visual C++.
  7571. if test "$GCC" != yes; then
  7572. with_gnu_ld=no
  7573. fi
  7574. ;;
  7575. interix*)
  7576. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7577. with_gnu_ld=yes
  7578. ;;
  7579. openbsd*)
  7580. with_gnu_ld=no
  7581. ;;
  7582. esac
  7583. ld_shlibs=yes
  7584. # On some targets, GNU ld is compatible enough with the native linker
  7585. # that we're better off using the native interface for both.
  7586. lt_use_gnu_ld_interface=no
  7587. if test "$with_gnu_ld" = yes; then
  7588. case $host_os in
  7589. aix*)
  7590. # The AIX port of GNU ld has always aspired to compatibility
  7591. # with the native linker. However, as the warning in the GNU ld
  7592. # block says, versions before 2.19.5* couldn't really create working
  7593. # shared libraries, regardless of the interface used.
  7594. case `$LD -v 2>&1` in
  7595. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7596. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7597. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7598. *)
  7599. lt_use_gnu_ld_interface=yes
  7600. ;;
  7601. esac
  7602. ;;
  7603. *)
  7604. lt_use_gnu_ld_interface=yes
  7605. ;;
  7606. esac
  7607. fi
  7608. if test "$lt_use_gnu_ld_interface" = yes; then
  7609. # If archive_cmds runs LD, not CC, wlarc should be empty
  7610. wlarc='${wl}'
  7611. # Set some defaults for GNU ld with shared library support. These
  7612. # are reset later if shared libraries are not supported. Putting them
  7613. # here allows them to be overridden if necessary.
  7614. runpath_var=LD_RUN_PATH
  7615. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7616. export_dynamic_flag_spec='${wl}--export-dynamic'
  7617. # ancient GNU ld didn't support --whole-archive et. al.
  7618. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7619. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7620. else
  7621. whole_archive_flag_spec=
  7622. fi
  7623. supports_anon_versioning=no
  7624. case `$LD -v 2>&1` in
  7625. *GNU\ gold*) supports_anon_versioning=yes ;;
  7626. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7627. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7628. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7629. *\ 2.11.*) ;; # other 2.11 versions
  7630. *) supports_anon_versioning=yes ;;
  7631. esac
  7632. # See if GNU ld supports shared libraries.
  7633. case $host_os in
  7634. aix[3-9]*)
  7635. # On AIX/PPC, the GNU linker is very broken
  7636. if test "$host_cpu" != ia64; then
  7637. ld_shlibs=no
  7638. cat <<_LT_EOF 1>&2
  7639. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7640. *** to be unable to reliably create shared libraries on AIX.
  7641. *** Therefore, libtool is disabling shared libraries support. If you
  7642. *** really care for shared libraries, you may want to install binutils
  7643. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7644. *** You will then need to restart the configuration process.
  7645. _LT_EOF
  7646. fi
  7647. ;;
  7648. amigaos*)
  7649. case $host_cpu in
  7650. powerpc)
  7651. # see comment about AmigaOS4 .so support
  7652. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7653. archive_expsym_cmds=''
  7654. ;;
  7655. m68k)
  7656. 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)'
  7657. hardcode_libdir_flag_spec='-L$libdir'
  7658. hardcode_minus_L=yes
  7659. ;;
  7660. esac
  7661. ;;
  7662. beos*)
  7663. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7664. allow_undefined_flag=unsupported
  7665. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7666. # support --undefined. This deserves some investigation. FIXME
  7667. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7668. else
  7669. ld_shlibs=no
  7670. fi
  7671. ;;
  7672. cygwin* | mingw* | pw32* | cegcc*)
  7673. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7674. # as there is no search path for DLLs.
  7675. hardcode_libdir_flag_spec='-L$libdir'
  7676. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7677. allow_undefined_flag=unsupported
  7678. always_export_symbols=no
  7679. enable_shared_with_static_runtimes=yes
  7680. 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'
  7681. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7682. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7683. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7684. # If the export-symbols file already is a .def file (1st line
  7685. # is EXPORTS), use it as is; otherwise, prepend...
  7686. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7687. cp $export_symbols $output_objdir/$soname.def;
  7688. else
  7689. echo EXPORTS > $output_objdir/$soname.def;
  7690. cat $export_symbols >> $output_objdir/$soname.def;
  7691. fi~
  7692. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7693. else
  7694. ld_shlibs=no
  7695. fi
  7696. ;;
  7697. haiku*)
  7698. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7699. link_all_deplibs=yes
  7700. ;;
  7701. interix[3-9]*)
  7702. hardcode_direct=no
  7703. hardcode_shlibpath_var=no
  7704. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7705. export_dynamic_flag_spec='${wl}-E'
  7706. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7707. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7708. # default) and relocated if they conflict, which is a slow very memory
  7709. # consuming and fragmenting process. To avoid this, we pick a random,
  7710. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7711. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7712. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7713. 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'
  7714. ;;
  7715. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7716. tmp_diet=no
  7717. if test "$host_os" = linux-dietlibc; then
  7718. case $cc_basename in
  7719. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7720. esac
  7721. fi
  7722. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7723. && test "$tmp_diet" = no
  7724. then
  7725. tmp_addflag=' $pic_flag'
  7726. tmp_sharedflag='-shared'
  7727. case $cc_basename,$host_cpu in
  7728. pgcc*) # Portland Group C compiler
  7729. 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'
  7730. tmp_addflag=' $pic_flag'
  7731. ;;
  7732. pgf77* | pgf90* | pgf95* | pgfortran*)
  7733. # Portland Group f77 and f90 compilers
  7734. 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'
  7735. tmp_addflag=' $pic_flag -Mnomain' ;;
  7736. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7737. tmp_addflag=' -i_dynamic' ;;
  7738. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7739. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7740. ifc* | ifort*) # Intel Fortran compiler
  7741. tmp_addflag=' -nofor_main' ;;
  7742. lf95*) # Lahey Fortran 8.1
  7743. whole_archive_flag_spec=
  7744. tmp_sharedflag='--shared' ;;
  7745. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7746. tmp_sharedflag='-qmkshrobj'
  7747. tmp_addflag= ;;
  7748. nvcc*) # Cuda Compiler Driver 2.2
  7749. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7750. compiler_needs_object=yes
  7751. ;;
  7752. esac
  7753. case `$CC -V 2>&1 | sed 5q` in
  7754. *Sun\ C*) # Sun C 5.9
  7755. 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'
  7756. compiler_needs_object=yes
  7757. tmp_sharedflag='-G' ;;
  7758. *Sun\ F*) # Sun Fortran 8.3
  7759. tmp_sharedflag='-G' ;;
  7760. esac
  7761. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7762. if test "x$supports_anon_versioning" = xyes; then
  7763. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7764. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7765. echo "local: *; };" >> $output_objdir/$libname.ver~
  7766. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7767. fi
  7768. case $cc_basename in
  7769. xlf* | bgf* | bgxlf* | mpixlf*)
  7770. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7771. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7772. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7773. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $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. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7779. fi
  7780. ;;
  7781. esac
  7782. else
  7783. ld_shlibs=no
  7784. fi
  7785. ;;
  7786. netbsd*)
  7787. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7788. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7789. wlarc=
  7790. else
  7791. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7792. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7793. fi
  7794. ;;
  7795. solaris*)
  7796. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7797. ld_shlibs=no
  7798. cat <<_LT_EOF 1>&2
  7799. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7800. *** create shared libraries on Solaris systems. Therefore, libtool
  7801. *** is disabling shared libraries support. We urge you to upgrade GNU
  7802. *** binutils to release 2.9.1 or newer. Another option is to modify
  7803. *** your PATH or compiler configuration so that the native linker is
  7804. *** used, and then restart.
  7805. _LT_EOF
  7806. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7807. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7808. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7809. else
  7810. ld_shlibs=no
  7811. fi
  7812. ;;
  7813. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7814. case `$LD -v 2>&1` in
  7815. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7816. ld_shlibs=no
  7817. cat <<_LT_EOF 1>&2
  7818. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7819. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7820. *** is disabling shared libraries support. We urge you to upgrade GNU
  7821. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7822. *** your PATH or compiler configuration so that the native linker is
  7823. *** used, and then restart.
  7824. _LT_EOF
  7825. ;;
  7826. *)
  7827. # For security reasons, it is highly recommended that you always
  7828. # use absolute paths for naming shared libraries, and exclude the
  7829. # DT_RUNPATH tag from executables and libraries. But doing so
  7830. # requires that you compile everything twice, which is a pain.
  7831. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7832. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7833. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7834. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7835. else
  7836. ld_shlibs=no
  7837. fi
  7838. ;;
  7839. esac
  7840. ;;
  7841. sunos4*)
  7842. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7843. wlarc=
  7844. hardcode_direct=yes
  7845. hardcode_shlibpath_var=no
  7846. ;;
  7847. *)
  7848. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7849. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7850. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7851. else
  7852. ld_shlibs=no
  7853. fi
  7854. ;;
  7855. esac
  7856. if test "$ld_shlibs" = no; then
  7857. runpath_var=
  7858. hardcode_libdir_flag_spec=
  7859. export_dynamic_flag_spec=
  7860. whole_archive_flag_spec=
  7861. fi
  7862. else
  7863. # PORTME fill in a description of your system's linker (not GNU ld)
  7864. case $host_os in
  7865. aix3*)
  7866. allow_undefined_flag=unsupported
  7867. always_export_symbols=yes
  7868. 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'
  7869. # Note: this linker hardcodes the directories in LIBPATH if there
  7870. # are no directories specified by -L.
  7871. hardcode_minus_L=yes
  7872. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7873. # Neither direct hardcoding nor static linking is supported with a
  7874. # broken collect2.
  7875. hardcode_direct=unsupported
  7876. fi
  7877. ;;
  7878. aix[4-9]*)
  7879. if test "$host_cpu" = ia64; then
  7880. # On IA64, the linker does run time linking by default, so we don't
  7881. # have to do anything special.
  7882. aix_use_runtimelinking=no
  7883. exp_sym_flag='-Bexport'
  7884. no_entry_flag=""
  7885. else
  7886. # If we're using GNU nm, then we don't want the "-C" option.
  7887. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7888. # Also, AIX nm treats weak defined symbols like other global
  7889. # defined symbols, whereas GNU nm marks them as "W".
  7890. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7891. 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'
  7892. else
  7893. 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'
  7894. fi
  7895. aix_use_runtimelinking=no
  7896. # Test if we are trying to use run time linking or normal
  7897. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7898. # need to do runtime linking.
  7899. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7900. for ld_flag in $LDFLAGS; do
  7901. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7902. aix_use_runtimelinking=yes
  7903. break
  7904. fi
  7905. done
  7906. ;;
  7907. esac
  7908. exp_sym_flag='-bexport'
  7909. no_entry_flag='-bnoentry'
  7910. fi
  7911. # When large executables or shared objects are built, AIX ld can
  7912. # have problems creating the table of contents. If linking a library
  7913. # or program results in "error TOC overflow" add -mminimal-toc to
  7914. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7915. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7916. archive_cmds=''
  7917. hardcode_direct=yes
  7918. hardcode_direct_absolute=yes
  7919. hardcode_libdir_separator=':'
  7920. link_all_deplibs=yes
  7921. file_list_spec='${wl}-f,'
  7922. if test "$GCC" = yes; then
  7923. case $host_os in aix4.[012]|aix4.[012].*)
  7924. # We only want to do this on AIX 4.2 and lower, the check
  7925. # below for broken collect2 doesn't work under 4.3+
  7926. collect2name=`${CC} -print-prog-name=collect2`
  7927. if test -f "$collect2name" &&
  7928. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7929. then
  7930. # We have reworked collect2
  7931. :
  7932. else
  7933. # We have old collect2
  7934. hardcode_direct=unsupported
  7935. # It fails to find uninstalled libraries when the uninstalled
  7936. # path is not listed in the libpath. Setting hardcode_minus_L
  7937. # to unsupported forces relinking
  7938. hardcode_minus_L=yes
  7939. hardcode_libdir_flag_spec='-L$libdir'
  7940. hardcode_libdir_separator=
  7941. fi
  7942. ;;
  7943. esac
  7944. shared_flag='-shared'
  7945. if test "$aix_use_runtimelinking" = yes; then
  7946. shared_flag="$shared_flag "'${wl}-G'
  7947. fi
  7948. else
  7949. # not using gcc
  7950. if test "$host_cpu" = ia64; then
  7951. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7952. # chokes on -Wl,-G. The following line is correct:
  7953. shared_flag='-G'
  7954. else
  7955. if test "$aix_use_runtimelinking" = yes; then
  7956. shared_flag='${wl}-G'
  7957. else
  7958. shared_flag='${wl}-bM:SRE'
  7959. fi
  7960. fi
  7961. fi
  7962. export_dynamic_flag_spec='${wl}-bexpall'
  7963. # It seems that -bexpall does not export symbols beginning with
  7964. # underscore (_), so it is better to generate a list of symbols to export.
  7965. always_export_symbols=yes
  7966. if test "$aix_use_runtimelinking" = yes; then
  7967. # Warning - without using the other runtime loading flags (-brtl),
  7968. # -berok will link without error, but may produce a broken library.
  7969. allow_undefined_flag='-berok'
  7970. # Determine the default libpath from the value encoded in an
  7971. # empty executable.
  7972. if test "${lt_cv_aix_libpath+set}" = set; then
  7973. aix_libpath=$lt_cv_aix_libpath
  7974. else
  7975. if ${lt_cv_aix_libpath_+:} false; then :
  7976. $as_echo_n "(cached) " >&6
  7977. else
  7978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7979. /* end confdefs.h. */
  7980. int
  7981. main ()
  7982. {
  7983. ;
  7984. return 0;
  7985. }
  7986. _ACEOF
  7987. if ac_fn_c_try_link "$LINENO"; then :
  7988. lt_aix_libpath_sed='
  7989. /Import File Strings/,/^$/ {
  7990. /^0/ {
  7991. s/^0 *\([^ ]*\) *$/\1/
  7992. p
  7993. }
  7994. }'
  7995. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7996. # Check for a 64-bit object if we didn't find anything.
  7997. if test -z "$lt_cv_aix_libpath_"; then
  7998. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7999. fi
  8000. fi
  8001. rm -f core conftest.err conftest.$ac_objext \
  8002. conftest$ac_exeext conftest.$ac_ext
  8003. if test -z "$lt_cv_aix_libpath_"; then
  8004. lt_cv_aix_libpath_="/usr/lib:/lib"
  8005. fi
  8006. fi
  8007. aix_libpath=$lt_cv_aix_libpath_
  8008. fi
  8009. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8010. 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"
  8011. else
  8012. if test "$host_cpu" = ia64; then
  8013. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8014. allow_undefined_flag="-z nodefs"
  8015. 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"
  8016. else
  8017. # Determine the default libpath from the value encoded in an
  8018. # empty executable.
  8019. if test "${lt_cv_aix_libpath+set}" = set; then
  8020. aix_libpath=$lt_cv_aix_libpath
  8021. else
  8022. if ${lt_cv_aix_libpath_+:} false; then :
  8023. $as_echo_n "(cached) " >&6
  8024. else
  8025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8026. /* end confdefs.h. */
  8027. int
  8028. main ()
  8029. {
  8030. ;
  8031. return 0;
  8032. }
  8033. _ACEOF
  8034. if ac_fn_c_try_link "$LINENO"; then :
  8035. lt_aix_libpath_sed='
  8036. /Import File Strings/,/^$/ {
  8037. /^0/ {
  8038. s/^0 *\([^ ]*\) *$/\1/
  8039. p
  8040. }
  8041. }'
  8042. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8043. # Check for a 64-bit object if we didn't find anything.
  8044. if test -z "$lt_cv_aix_libpath_"; then
  8045. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8046. fi
  8047. fi
  8048. rm -f core conftest.err conftest.$ac_objext \
  8049. conftest$ac_exeext conftest.$ac_ext
  8050. if test -z "$lt_cv_aix_libpath_"; then
  8051. lt_cv_aix_libpath_="/usr/lib:/lib"
  8052. fi
  8053. fi
  8054. aix_libpath=$lt_cv_aix_libpath_
  8055. fi
  8056. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8057. # Warning - without using the other run time loading flags,
  8058. # -berok will link without error, but may produce a broken library.
  8059. no_undefined_flag=' ${wl}-bernotok'
  8060. allow_undefined_flag=' ${wl}-berok'
  8061. if test "$with_gnu_ld" = yes; then
  8062. # We only use this code for GNU lds that support --whole-archive.
  8063. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8064. else
  8065. # Exported symbols can be pulled into shared objects from archives
  8066. whole_archive_flag_spec='$convenience'
  8067. fi
  8068. archive_cmds_need_lc=yes
  8069. # This is similar to how AIX traditionally builds its shared libraries.
  8070. 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'
  8071. fi
  8072. fi
  8073. ;;
  8074. amigaos*)
  8075. case $host_cpu in
  8076. powerpc)
  8077. # see comment about AmigaOS4 .so support
  8078. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8079. archive_expsym_cmds=''
  8080. ;;
  8081. m68k)
  8082. 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)'
  8083. hardcode_libdir_flag_spec='-L$libdir'
  8084. hardcode_minus_L=yes
  8085. ;;
  8086. esac
  8087. ;;
  8088. bsdi[45]*)
  8089. export_dynamic_flag_spec=-rdynamic
  8090. ;;
  8091. cygwin* | mingw* | pw32* | cegcc*)
  8092. # When not using gcc, we currently assume that we are using
  8093. # Microsoft Visual C++.
  8094. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8095. # no search path for DLLs.
  8096. case $cc_basename in
  8097. cl*)
  8098. # Native MSVC
  8099. hardcode_libdir_flag_spec=' '
  8100. allow_undefined_flag=unsupported
  8101. always_export_symbols=yes
  8102. file_list_spec='@'
  8103. # Tell ltmain to make .lib files, not .a files.
  8104. libext=lib
  8105. # Tell ltmain to make .dll files, not .so files.
  8106. shrext_cmds=".dll"
  8107. # FIXME: Setting linknames here is a bad hack.
  8108. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8109. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8110. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8111. else
  8112. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8113. fi~
  8114. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8115. linknames='
  8116. # The linker will not automatically build a static lib if we build a DLL.
  8117. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8118. enable_shared_with_static_runtimes=yes
  8119. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8120. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8121. # Don't use ranlib
  8122. old_postinstall_cmds='chmod 644 $oldlib'
  8123. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8124. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8125. case $lt_outputfile in
  8126. *.exe|*.EXE) ;;
  8127. *)
  8128. lt_outputfile="$lt_outputfile.exe"
  8129. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8130. ;;
  8131. esac~
  8132. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8133. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8134. $RM "$lt_outputfile.manifest";
  8135. fi'
  8136. ;;
  8137. *)
  8138. # Assume MSVC wrapper
  8139. hardcode_libdir_flag_spec=' '
  8140. allow_undefined_flag=unsupported
  8141. # Tell ltmain to make .lib files, not .a files.
  8142. libext=lib
  8143. # Tell ltmain to make .dll files, not .so files.
  8144. shrext_cmds=".dll"
  8145. # FIXME: Setting linknames here is a bad hack.
  8146. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8147. # The linker will automatically build a .lib file if we build a DLL.
  8148. old_archive_from_new_cmds='true'
  8149. # FIXME: Should let the user specify the lib program.
  8150. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8151. enable_shared_with_static_runtimes=yes
  8152. ;;
  8153. esac
  8154. ;;
  8155. darwin* | rhapsody*)
  8156. archive_cmds_need_lc=no
  8157. hardcode_direct=no
  8158. hardcode_automatic=yes
  8159. hardcode_shlibpath_var=unsupported
  8160. if test "$lt_cv_ld_force_load" = "yes"; then
  8161. 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\"`'
  8162. else
  8163. whole_archive_flag_spec=''
  8164. fi
  8165. link_all_deplibs=yes
  8166. allow_undefined_flag="$_lt_dar_allow_undefined"
  8167. case $cc_basename in
  8168. ifort*) _lt_dar_can_shared=yes ;;
  8169. *) _lt_dar_can_shared=$GCC ;;
  8170. esac
  8171. if test "$_lt_dar_can_shared" = "yes"; then
  8172. output_verbose_link_cmd=func_echo_all
  8173. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8174. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8175. 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}"
  8176. 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}"
  8177. else
  8178. ld_shlibs=no
  8179. fi
  8180. ;;
  8181. dgux*)
  8182. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8183. hardcode_libdir_flag_spec='-L$libdir'
  8184. hardcode_shlibpath_var=no
  8185. ;;
  8186. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8187. # support. Future versions do this automatically, but an explicit c++rt0.o
  8188. # does not break anything, and helps significantly (at the cost of a little
  8189. # extra space).
  8190. freebsd2.2*)
  8191. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8192. hardcode_libdir_flag_spec='-R$libdir'
  8193. hardcode_direct=yes
  8194. hardcode_shlibpath_var=no
  8195. ;;
  8196. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8197. freebsd2.*)
  8198. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8199. hardcode_direct=yes
  8200. hardcode_minus_L=yes
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8204. freebsd* | dragonfly*)
  8205. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8206. hardcode_libdir_flag_spec='-R$libdir'
  8207. hardcode_direct=yes
  8208. hardcode_shlibpath_var=no
  8209. ;;
  8210. hpux9*)
  8211. if test "$GCC" = yes; then
  8212. 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'
  8213. else
  8214. 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'
  8215. fi
  8216. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8217. hardcode_libdir_separator=:
  8218. hardcode_direct=yes
  8219. # hardcode_minus_L: Not really in the search PATH,
  8220. # but as the default location of the library.
  8221. hardcode_minus_L=yes
  8222. export_dynamic_flag_spec='${wl}-E'
  8223. ;;
  8224. hpux10*)
  8225. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8226. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8227. else
  8228. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8229. fi
  8230. if test "$with_gnu_ld" = no; then
  8231. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8232. hardcode_libdir_separator=:
  8233. hardcode_direct=yes
  8234. hardcode_direct_absolute=yes
  8235. export_dynamic_flag_spec='${wl}-E'
  8236. # hardcode_minus_L: Not really in the search PATH,
  8237. # but as the default location of the library.
  8238. hardcode_minus_L=yes
  8239. fi
  8240. ;;
  8241. hpux11*)
  8242. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8243. case $host_cpu in
  8244. hppa*64*)
  8245. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8246. ;;
  8247. ia64*)
  8248. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8249. ;;
  8250. *)
  8251. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8252. ;;
  8253. esac
  8254. else
  8255. case $host_cpu in
  8256. hppa*64*)
  8257. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. ia64*)
  8260. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. *)
  8263. # Older versions of the 11.00 compiler do not understand -b yet
  8264. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8266. $as_echo_n "checking if $CC understands -b... " >&6; }
  8267. if ${lt_cv_prog_compiler__b+:} false; then :
  8268. $as_echo_n "(cached) " >&6
  8269. else
  8270. lt_cv_prog_compiler__b=no
  8271. save_LDFLAGS="$LDFLAGS"
  8272. LDFLAGS="$LDFLAGS -b"
  8273. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8274. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8275. # The linker can only warn and ignore the option if not recognized
  8276. # So say no if there are warnings
  8277. if test -s conftest.err; then
  8278. # Append any errors to the config.log.
  8279. cat conftest.err 1>&5
  8280. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8281. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8282. if diff conftest.exp conftest.er2 >/dev/null; then
  8283. lt_cv_prog_compiler__b=yes
  8284. fi
  8285. else
  8286. lt_cv_prog_compiler__b=yes
  8287. fi
  8288. fi
  8289. $RM -r conftest*
  8290. LDFLAGS="$save_LDFLAGS"
  8291. fi
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8293. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8294. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8295. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8296. else
  8297. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8298. fi
  8299. ;;
  8300. esac
  8301. fi
  8302. if test "$with_gnu_ld" = no; then
  8303. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8304. hardcode_libdir_separator=:
  8305. case $host_cpu in
  8306. hppa*64*|ia64*)
  8307. hardcode_direct=no
  8308. hardcode_shlibpath_var=no
  8309. ;;
  8310. *)
  8311. hardcode_direct=yes
  8312. hardcode_direct_absolute=yes
  8313. export_dynamic_flag_spec='${wl}-E'
  8314. # hardcode_minus_L: Not really in the search PATH,
  8315. # but as the default location of the library.
  8316. hardcode_minus_L=yes
  8317. ;;
  8318. esac
  8319. fi
  8320. ;;
  8321. irix5* | irix6* | nonstopux*)
  8322. if test "$GCC" = yes; then
  8323. 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'
  8324. # Try to use the -exported_symbol ld option, if it does not
  8325. # work, assume that -exports_file does not work either and
  8326. # implicitly export all symbols.
  8327. # This should be the same for all languages, so no per-tag cache variable.
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8329. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8330. if ${lt_cv_irix_exported_symbol+:} false; then :
  8331. $as_echo_n "(cached) " >&6
  8332. else
  8333. save_LDFLAGS="$LDFLAGS"
  8334. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8336. /* end confdefs.h. */
  8337. int foo (void) { return 0; }
  8338. _ACEOF
  8339. if ac_fn_c_try_link "$LINENO"; then :
  8340. lt_cv_irix_exported_symbol=yes
  8341. else
  8342. lt_cv_irix_exported_symbol=no
  8343. fi
  8344. rm -f core conftest.err conftest.$ac_objext \
  8345. conftest$ac_exeext conftest.$ac_ext
  8346. LDFLAGS="$save_LDFLAGS"
  8347. fi
  8348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8349. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8350. if test "$lt_cv_irix_exported_symbol" = yes; then
  8351. 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'
  8352. fi
  8353. else
  8354. 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'
  8355. 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'
  8356. fi
  8357. archive_cmds_need_lc='no'
  8358. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8359. hardcode_libdir_separator=:
  8360. inherit_rpath=yes
  8361. link_all_deplibs=yes
  8362. ;;
  8363. netbsd*)
  8364. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8365. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8366. else
  8367. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8368. fi
  8369. hardcode_libdir_flag_spec='-R$libdir'
  8370. hardcode_direct=yes
  8371. hardcode_shlibpath_var=no
  8372. ;;
  8373. newsos6)
  8374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8375. hardcode_direct=yes
  8376. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8377. hardcode_libdir_separator=:
  8378. hardcode_shlibpath_var=no
  8379. ;;
  8380. *nto* | *qnx*)
  8381. ;;
  8382. openbsd*)
  8383. if test -f /usr/libexec/ld.so; then
  8384. hardcode_direct=yes
  8385. hardcode_shlibpath_var=no
  8386. hardcode_direct_absolute=yes
  8387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8388. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8389. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8390. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8391. export_dynamic_flag_spec='${wl}-E'
  8392. else
  8393. case $host_os in
  8394. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8395. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8396. hardcode_libdir_flag_spec='-R$libdir'
  8397. ;;
  8398. *)
  8399. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8400. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8401. ;;
  8402. esac
  8403. fi
  8404. else
  8405. ld_shlibs=no
  8406. fi
  8407. ;;
  8408. os2*)
  8409. hardcode_libdir_flag_spec='-L$libdir'
  8410. hardcode_minus_L=yes
  8411. allow_undefined_flag=unsupported
  8412. 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'
  8413. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8414. ;;
  8415. osf3*)
  8416. if test "$GCC" = yes; then
  8417. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8418. 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'
  8419. else
  8420. allow_undefined_flag=' -expect_unresolved \*'
  8421. 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'
  8422. fi
  8423. archive_cmds_need_lc='no'
  8424. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8425. hardcode_libdir_separator=:
  8426. ;;
  8427. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8428. if test "$GCC" = yes; then
  8429. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8430. 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'
  8431. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8432. else
  8433. allow_undefined_flag=' -expect_unresolved \*'
  8434. 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'
  8435. 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~
  8436. $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'
  8437. # Both c and cxx compiler support -rpath directly
  8438. hardcode_libdir_flag_spec='-rpath $libdir'
  8439. fi
  8440. archive_cmds_need_lc='no'
  8441. hardcode_libdir_separator=:
  8442. ;;
  8443. solaris*)
  8444. no_undefined_flag=' -z defs'
  8445. if test "$GCC" = yes; then
  8446. wlarc='${wl}'
  8447. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8449. $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'
  8450. else
  8451. case `$CC -V 2>&1` in
  8452. *"Compilers 5.0"*)
  8453. wlarc=''
  8454. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8455. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8456. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8457. ;;
  8458. *)
  8459. wlarc='${wl}'
  8460. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8461. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8462. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8463. ;;
  8464. esac
  8465. fi
  8466. hardcode_libdir_flag_spec='-R$libdir'
  8467. hardcode_shlibpath_var=no
  8468. case $host_os in
  8469. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8470. *)
  8471. # The compiler driver will combine and reorder linker options,
  8472. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8473. # but is careful enough not to reorder.
  8474. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8475. if test "$GCC" = yes; then
  8476. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8477. else
  8478. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8479. fi
  8480. ;;
  8481. esac
  8482. link_all_deplibs=yes
  8483. ;;
  8484. sunos4*)
  8485. if test "x$host_vendor" = xsequent; then
  8486. # Use $CC to link under sequent, because it throws in some extra .o
  8487. # files that make .init and .fini sections work.
  8488. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8489. else
  8490. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8491. fi
  8492. hardcode_libdir_flag_spec='-L$libdir'
  8493. hardcode_direct=yes
  8494. hardcode_minus_L=yes
  8495. hardcode_shlibpath_var=no
  8496. ;;
  8497. sysv4)
  8498. case $host_vendor in
  8499. sni)
  8500. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8501. hardcode_direct=yes # is this really true???
  8502. ;;
  8503. siemens)
  8504. ## LD is ld it makes a PLAMLIB
  8505. ## CC just makes a GrossModule.
  8506. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8507. reload_cmds='$CC -r -o $output$reload_objs'
  8508. hardcode_direct=no
  8509. ;;
  8510. motorola)
  8511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8512. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8513. ;;
  8514. esac
  8515. runpath_var='LD_RUN_PATH'
  8516. hardcode_shlibpath_var=no
  8517. ;;
  8518. sysv4.3*)
  8519. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. hardcode_shlibpath_var=no
  8521. export_dynamic_flag_spec='-Bexport'
  8522. ;;
  8523. sysv4*MP*)
  8524. if test -d /usr/nec; then
  8525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8526. hardcode_shlibpath_var=no
  8527. runpath_var=LD_RUN_PATH
  8528. hardcode_runpath_var=yes
  8529. ld_shlibs=yes
  8530. fi
  8531. ;;
  8532. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8533. no_undefined_flag='${wl}-z,text'
  8534. archive_cmds_need_lc=no
  8535. hardcode_shlibpath_var=no
  8536. runpath_var='LD_RUN_PATH'
  8537. if test "$GCC" = yes; then
  8538. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8539. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. else
  8541. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8542. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. fi
  8544. ;;
  8545. sysv5* | sco3.2v5* | sco5v6*)
  8546. # Note: We can NOT use -z defs as we might desire, because we do not
  8547. # link with -lc, and that would cause any symbols used from libc to
  8548. # always be unresolved, which means just about no library would
  8549. # ever link correctly. If we're not using GNU ld we use -z text
  8550. # though, which does catch some bad symbols but isn't as heavy-handed
  8551. # as -z defs.
  8552. no_undefined_flag='${wl}-z,text'
  8553. allow_undefined_flag='${wl}-z,nodefs'
  8554. archive_cmds_need_lc=no
  8555. hardcode_shlibpath_var=no
  8556. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8557. hardcode_libdir_separator=':'
  8558. link_all_deplibs=yes
  8559. export_dynamic_flag_spec='${wl}-Bexport'
  8560. runpath_var='LD_RUN_PATH'
  8561. if test "$GCC" = yes; then
  8562. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8563. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. else
  8565. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. fi
  8568. ;;
  8569. uts4*)
  8570. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8571. hardcode_libdir_flag_spec='-L$libdir'
  8572. hardcode_shlibpath_var=no
  8573. ;;
  8574. *)
  8575. ld_shlibs=no
  8576. ;;
  8577. esac
  8578. if test x$host_vendor = xsni; then
  8579. case $host in
  8580. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8581. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8582. ;;
  8583. esac
  8584. fi
  8585. fi
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8587. $as_echo "$ld_shlibs" >&6; }
  8588. test "$ld_shlibs" = no && can_build_shared=no
  8589. with_gnu_ld=$with_gnu_ld
  8590. #
  8591. # Do we need to explicitly link libc?
  8592. #
  8593. case "x$archive_cmds_need_lc" in
  8594. x|xyes)
  8595. # Assume -lc should be added
  8596. archive_cmds_need_lc=yes
  8597. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8598. case $archive_cmds in
  8599. *'~'*)
  8600. # FIXME: we may have to deal with multi-command sequences.
  8601. ;;
  8602. '$CC '*)
  8603. # Test whether the compiler implicitly links with -lc since on some
  8604. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8605. # to ld, don't add -lc before -lgcc.
  8606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8607. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8608. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8609. $as_echo_n "(cached) " >&6
  8610. else
  8611. $RM conftest*
  8612. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8614. (eval $ac_compile) 2>&5
  8615. ac_status=$?
  8616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8617. test $ac_status = 0; } 2>conftest.err; then
  8618. soname=conftest
  8619. lib=conftest
  8620. libobjs=conftest.$ac_objext
  8621. deplibs=
  8622. wl=$lt_prog_compiler_wl
  8623. pic_flag=$lt_prog_compiler_pic
  8624. compiler_flags=-v
  8625. linker_flags=-v
  8626. verstring=
  8627. output_objdir=.
  8628. libname=conftest
  8629. lt_save_allow_undefined_flag=$allow_undefined_flag
  8630. allow_undefined_flag=
  8631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8632. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8633. ac_status=$?
  8634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8635. test $ac_status = 0; }
  8636. then
  8637. lt_cv_archive_cmds_need_lc=no
  8638. else
  8639. lt_cv_archive_cmds_need_lc=yes
  8640. fi
  8641. allow_undefined_flag=$lt_save_allow_undefined_flag
  8642. else
  8643. cat conftest.err 1>&5
  8644. fi
  8645. $RM conftest*
  8646. fi
  8647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8648. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8649. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8650. ;;
  8651. esac
  8652. fi
  8653. ;;
  8654. esac
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8656. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8657. if test "$GCC" = yes; then
  8658. case $host_os in
  8659. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8660. *) lt_awk_arg="/^libraries:/" ;;
  8661. esac
  8662. case $host_os in
  8663. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8664. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8665. esac
  8666. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8667. case $lt_search_path_spec in
  8668. *\;*)
  8669. # if the path contains ";" then we assume it to be the separator
  8670. # otherwise default to the standard path separator (i.e. ":") - it is
  8671. # assumed that no part of a normal pathname contains ";" but that should
  8672. # okay in the real world where ";" in dirpaths is itself problematic.
  8673. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8674. ;;
  8675. *)
  8676. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8677. ;;
  8678. esac
  8679. # Ok, now we have the path, separated by spaces, we can step through it
  8680. # and add multilib dir if necessary...
  8681. lt_tmp_lt_search_path_spec=
  8682. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8683. # ...but if some path already ends with the multilib dir we assume
  8684. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8685. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8686. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8687. lt_multi_os_dir=
  8688. ;;
  8689. esac
  8690. for lt_sys_path in $lt_search_path_spec; do
  8691. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8692. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8693. elif test -n "$lt_multi_os_dir"; then
  8694. test -d "$lt_sys_path" && \
  8695. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8696. fi
  8697. done
  8698. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8699. BEGIN {RS=" "; FS="/|\n";} {
  8700. lt_foo="";
  8701. lt_count=0;
  8702. for (lt_i = NF; lt_i > 0; lt_i--) {
  8703. if ($lt_i != "" && $lt_i != ".") {
  8704. if ($lt_i == "..") {
  8705. lt_count++;
  8706. } else {
  8707. if (lt_count == 0) {
  8708. lt_foo="/" $lt_i lt_foo;
  8709. } else {
  8710. lt_count--;
  8711. }
  8712. }
  8713. }
  8714. }
  8715. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8716. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8717. }'`
  8718. # AWK program above erroneously prepends '/' to C:/dos/paths
  8719. # for these hosts.
  8720. case $host_os in
  8721. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8722. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8723. esac
  8724. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8725. else
  8726. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8727. fi
  8728. library_names_spec=
  8729. libname_spec='lib$name'
  8730. soname_spec=
  8731. shrext_cmds=".so"
  8732. postinstall_cmds=
  8733. postuninstall_cmds=
  8734. finish_cmds=
  8735. finish_eval=
  8736. shlibpath_var=
  8737. shlibpath_overrides_runpath=unknown
  8738. version_type=none
  8739. dynamic_linker="$host_os ld.so"
  8740. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8741. need_lib_prefix=unknown
  8742. hardcode_into_libs=no
  8743. # when you set need_version to no, make sure it does not cause -set_version
  8744. # flags to be left without arguments
  8745. need_version=unknown
  8746. case $host_os in
  8747. aix3*)
  8748. version_type=linux # correct to gnu/linux during the next big refactor
  8749. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8750. shlibpath_var=LIBPATH
  8751. # AIX 3 has no versioning support, so we append a major version to the name.
  8752. soname_spec='${libname}${release}${shared_ext}$major'
  8753. ;;
  8754. aix[4-9]*)
  8755. version_type=linux # correct to gnu/linux during the next big refactor
  8756. need_lib_prefix=no
  8757. need_version=no
  8758. hardcode_into_libs=yes
  8759. if test "$host_cpu" = ia64; then
  8760. # AIX 5 supports IA64
  8761. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8762. shlibpath_var=LD_LIBRARY_PATH
  8763. else
  8764. # With GCC up to 2.95.x, collect2 would create an import file
  8765. # for dependence libraries. The import file would start with
  8766. # the line `#! .'. This would cause the generated library to
  8767. # depend on `.', always an invalid library. This was fixed in
  8768. # development snapshots of GCC prior to 3.0.
  8769. case $host_os in
  8770. aix4 | aix4.[01] | aix4.[01].*)
  8771. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8772. echo ' yes '
  8773. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8774. :
  8775. else
  8776. can_build_shared=no
  8777. fi
  8778. ;;
  8779. esac
  8780. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8781. # soname into executable. Probably we can add versioning support to
  8782. # collect2, so additional links can be useful in future.
  8783. if test "$aix_use_runtimelinking" = yes; then
  8784. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8785. # instead of lib<name>.a to let people know that these are not
  8786. # typical AIX shared libraries.
  8787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8788. else
  8789. # We preserve .a as extension for shared libraries through AIX4.2
  8790. # and later when we are not doing run time linking.
  8791. library_names_spec='${libname}${release}.a $libname.a'
  8792. soname_spec='${libname}${release}${shared_ext}$major'
  8793. fi
  8794. shlibpath_var=LIBPATH
  8795. fi
  8796. ;;
  8797. amigaos*)
  8798. case $host_cpu in
  8799. powerpc)
  8800. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8801. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8803. ;;
  8804. m68k)
  8805. library_names_spec='$libname.ixlibrary $libname.a'
  8806. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8807. 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'
  8808. ;;
  8809. esac
  8810. ;;
  8811. beos*)
  8812. library_names_spec='${libname}${shared_ext}'
  8813. dynamic_linker="$host_os ld.so"
  8814. shlibpath_var=LIBRARY_PATH
  8815. ;;
  8816. bsdi[45]*)
  8817. version_type=linux # correct to gnu/linux during the next big refactor
  8818. need_version=no
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8820. soname_spec='${libname}${release}${shared_ext}$major'
  8821. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8824. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8825. # the default ld.so.conf also contains /usr/contrib/lib and
  8826. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8827. # libtool to hard-code these into programs
  8828. ;;
  8829. cygwin* | mingw* | pw32* | cegcc*)
  8830. version_type=windows
  8831. shrext_cmds=".dll"
  8832. need_version=no
  8833. need_lib_prefix=no
  8834. case $GCC,$cc_basename in
  8835. yes,*)
  8836. # gcc
  8837. library_names_spec='$libname.dll.a'
  8838. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8839. postinstall_cmds='base_file=`basename \${file}`~
  8840. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8841. dldir=$destdir/`dirname \$dlpath`~
  8842. test -d \$dldir || mkdir -p \$dldir~
  8843. $install_prog $dir/$dlname \$dldir/$dlname~
  8844. chmod a+x \$dldir/$dlname~
  8845. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8846. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8847. fi'
  8848. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8849. dlpath=$dir/\$dldll~
  8850. $RM \$dlpath'
  8851. shlibpath_overrides_runpath=yes
  8852. case $host_os in
  8853. cygwin*)
  8854. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8855. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8856. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8857. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8858. ;;
  8859. mingw* | cegcc*)
  8860. # MinGW DLLs use traditional 'lib' prefix
  8861. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8862. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8863. ;;
  8864. pw32*)
  8865. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8866. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8867. ;;
  8868. esac
  8869. dynamic_linker='Win32 ld.exe'
  8870. ;;
  8871. *,cl*)
  8872. # Native MSVC
  8873. libname_spec='$name'
  8874. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8875. library_names_spec='${libname}.dll.lib'
  8876. case $build_os in
  8877. mingw*)
  8878. sys_lib_search_path_spec=
  8879. lt_save_ifs=$IFS
  8880. IFS=';'
  8881. for lt_path in $LIB
  8882. do
  8883. IFS=$lt_save_ifs
  8884. # Let DOS variable expansion print the short 8.3 style file name.
  8885. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8886. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8887. done
  8888. IFS=$lt_save_ifs
  8889. # Convert to MSYS style.
  8890. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8891. ;;
  8892. cygwin*)
  8893. # Convert to unix form, then to dos form, then back to unix form
  8894. # but this time dos style (no spaces!) so that the unix form looks
  8895. # like /cygdrive/c/PROGRA~1:/cygdr...
  8896. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8897. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8898. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8899. ;;
  8900. *)
  8901. sys_lib_search_path_spec="$LIB"
  8902. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8903. # It is most probably a Windows format PATH.
  8904. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8905. else
  8906. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8907. fi
  8908. # FIXME: find the short name or the path components, as spaces are
  8909. # common. (e.g. "Program Files" -> "PROGRA~1")
  8910. ;;
  8911. esac
  8912. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8913. postinstall_cmds='base_file=`basename \${file}`~
  8914. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8915. dldir=$destdir/`dirname \$dlpath`~
  8916. test -d \$dldir || mkdir -p \$dldir~
  8917. $install_prog $dir/$dlname \$dldir/$dlname'
  8918. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8919. dlpath=$dir/\$dldll~
  8920. $RM \$dlpath'
  8921. shlibpath_overrides_runpath=yes
  8922. dynamic_linker='Win32 link.exe'
  8923. ;;
  8924. *)
  8925. # Assume MSVC wrapper
  8926. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8927. dynamic_linker='Win32 ld.exe'
  8928. ;;
  8929. esac
  8930. # FIXME: first we should search . and the directory the executable is in
  8931. shlibpath_var=PATH
  8932. ;;
  8933. darwin* | rhapsody*)
  8934. dynamic_linker="$host_os dyld"
  8935. version_type=darwin
  8936. need_lib_prefix=no
  8937. need_version=no
  8938. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8939. soname_spec='${libname}${release}${major}$shared_ext'
  8940. shlibpath_overrides_runpath=yes
  8941. shlibpath_var=DYLD_LIBRARY_PATH
  8942. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8943. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8944. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8945. ;;
  8946. dgux*)
  8947. version_type=linux # correct to gnu/linux during the next big refactor
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. shlibpath_var=LD_LIBRARY_PATH
  8953. ;;
  8954. freebsd* | dragonfly*)
  8955. # DragonFly does not have aout. When/if they implement a new
  8956. # versioning mechanism, adjust this.
  8957. if test -x /usr/bin/objformat; then
  8958. objformat=`/usr/bin/objformat`
  8959. else
  8960. case $host_os in
  8961. freebsd[23].*) objformat=aout ;;
  8962. *) objformat=elf ;;
  8963. esac
  8964. fi
  8965. version_type=freebsd-$objformat
  8966. case $version_type in
  8967. freebsd-elf*)
  8968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8969. need_version=no
  8970. need_lib_prefix=no
  8971. ;;
  8972. freebsd-*)
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8974. need_version=yes
  8975. ;;
  8976. esac
  8977. shlibpath_var=LD_LIBRARY_PATH
  8978. case $host_os in
  8979. freebsd2.*)
  8980. shlibpath_overrides_runpath=yes
  8981. ;;
  8982. freebsd3.[01]* | freebsdelf3.[01]*)
  8983. shlibpath_overrides_runpath=yes
  8984. hardcode_into_libs=yes
  8985. ;;
  8986. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8987. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8988. shlibpath_overrides_runpath=no
  8989. hardcode_into_libs=yes
  8990. ;;
  8991. *) # from 4.6 on, and DragonFly
  8992. shlibpath_overrides_runpath=yes
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. esac
  8996. ;;
  8997. gnu*)
  8998. version_type=linux # correct to gnu/linux during the next big refactor
  8999. need_lib_prefix=no
  9000. need_version=no
  9001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9002. soname_spec='${libname}${release}${shared_ext}$major'
  9003. shlibpath_var=LD_LIBRARY_PATH
  9004. shlibpath_overrides_runpath=no
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. haiku*)
  9008. version_type=linux # correct to gnu/linux during the next big refactor
  9009. need_lib_prefix=no
  9010. need_version=no
  9011. dynamic_linker="$host_os runtime_loader"
  9012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9013. soname_spec='${libname}${release}${shared_ext}$major'
  9014. shlibpath_var=LIBRARY_PATH
  9015. shlibpath_overrides_runpath=yes
  9016. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9017. hardcode_into_libs=yes
  9018. ;;
  9019. hpux9* | hpux10* | hpux11*)
  9020. # Give a soname corresponding to the major version so that dld.sl refuses to
  9021. # link against other versions.
  9022. version_type=sunos
  9023. need_lib_prefix=no
  9024. need_version=no
  9025. case $host_cpu in
  9026. ia64*)
  9027. shrext_cmds='.so'
  9028. hardcode_into_libs=yes
  9029. dynamic_linker="$host_os dld.so"
  9030. shlibpath_var=LD_LIBRARY_PATH
  9031. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. if test "X$HPUX_IA64_MODE" = X32; then
  9035. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9036. else
  9037. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9038. fi
  9039. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9040. ;;
  9041. hppa*64*)
  9042. shrext_cmds='.sl'
  9043. hardcode_into_libs=yes
  9044. dynamic_linker="$host_os dld.sl"
  9045. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9046. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9051. ;;
  9052. *)
  9053. shrext_cmds='.sl'
  9054. dynamic_linker="$host_os dld.sl"
  9055. shlibpath_var=SHLIB_PATH
  9056. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9058. soname_spec='${libname}${release}${shared_ext}$major'
  9059. ;;
  9060. esac
  9061. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9062. postinstall_cmds='chmod 555 $lib'
  9063. # or fails outright, so override atomically:
  9064. install_override_mode=555
  9065. ;;
  9066. interix[3-9]*)
  9067. version_type=linux # correct to gnu/linux during the next big refactor
  9068. need_lib_prefix=no
  9069. need_version=no
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9071. soname_spec='${libname}${release}${shared_ext}$major'
  9072. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. irix5* | irix6* | nonstopux*)
  9078. case $host_os in
  9079. nonstopux*) version_type=nonstopux ;;
  9080. *)
  9081. if test "$lt_cv_prog_gnu_ld" = yes; then
  9082. version_type=linux # correct to gnu/linux during the next big refactor
  9083. else
  9084. version_type=irix
  9085. fi ;;
  9086. esac
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. soname_spec='${libname}${release}${shared_ext}$major'
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9091. case $host_os in
  9092. irix5* | nonstopux*)
  9093. libsuff= shlibsuff=
  9094. ;;
  9095. *)
  9096. case $LD in # libtool.m4 will add one of these switches to LD
  9097. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9098. libsuff= shlibsuff= libmagic=32-bit;;
  9099. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9100. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9101. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9102. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9103. *) libsuff= shlibsuff= libmagic=never-match;;
  9104. esac
  9105. ;;
  9106. esac
  9107. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9108. shlibpath_overrides_runpath=no
  9109. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9110. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9111. hardcode_into_libs=yes
  9112. ;;
  9113. # No shared lib support for Linux oldld, aout, or coff.
  9114. linux*oldld* | linux*aout* | linux*coff*)
  9115. dynamic_linker=no
  9116. ;;
  9117. # This must be glibc/ELF.
  9118. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9119. version_type=linux # correct to gnu/linux during the next big refactor
  9120. need_lib_prefix=no
  9121. need_version=no
  9122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9123. soname_spec='${libname}${release}${shared_ext}$major'
  9124. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9125. shlibpath_var=LD_LIBRARY_PATH
  9126. shlibpath_overrides_runpath=no
  9127. # Some binutils ld are patched to set DT_RUNPATH
  9128. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. lt_cv_shlibpath_overrides_runpath=no
  9132. save_LDFLAGS=$LDFLAGS
  9133. save_libdir=$libdir
  9134. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9135. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9137. /* end confdefs.h. */
  9138. int
  9139. main ()
  9140. {
  9141. ;
  9142. return 0;
  9143. }
  9144. _ACEOF
  9145. if ac_fn_c_try_link "$LINENO"; then :
  9146. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9147. lt_cv_shlibpath_overrides_runpath=yes
  9148. fi
  9149. fi
  9150. rm -f core conftest.err conftest.$ac_objext \
  9151. conftest$ac_exeext conftest.$ac_ext
  9152. LDFLAGS=$save_LDFLAGS
  9153. libdir=$save_libdir
  9154. fi
  9155. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9156. # This implies no fast_install, which is unacceptable.
  9157. # Some rework will be needed to allow for fast_install
  9158. # before this can be enabled.
  9159. hardcode_into_libs=yes
  9160. # Append ld.so.conf contents to the search path
  9161. if test -f /etc/ld.so.conf; then
  9162. 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' ' '`
  9163. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9164. fi
  9165. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9166. # powerpc, because MkLinux only supported shared libraries with the
  9167. # GNU dynamic linker. Since this was broken with cross compilers,
  9168. # most powerpc-linux boxes support dynamic linking these days and
  9169. # people can always --disable-shared, the test was removed, and we
  9170. # assume the GNU/Linux dynamic linker is in use.
  9171. dynamic_linker='GNU/Linux ld.so'
  9172. ;;
  9173. netbsd*)
  9174. version_type=sunos
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9179. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9180. dynamic_linker='NetBSD (a.out) ld.so'
  9181. else
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9183. soname_spec='${libname}${release}${shared_ext}$major'
  9184. dynamic_linker='NetBSD ld.elf_so'
  9185. fi
  9186. shlibpath_var=LD_LIBRARY_PATH
  9187. shlibpath_overrides_runpath=yes
  9188. hardcode_into_libs=yes
  9189. ;;
  9190. newsos6)
  9191. version_type=linux # correct to gnu/linux during the next big refactor
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9193. shlibpath_var=LD_LIBRARY_PATH
  9194. shlibpath_overrides_runpath=yes
  9195. ;;
  9196. *nto* | *qnx*)
  9197. version_type=qnx
  9198. need_lib_prefix=no
  9199. need_version=no
  9200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9201. soname_spec='${libname}${release}${shared_ext}$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=no
  9204. hardcode_into_libs=yes
  9205. dynamic_linker='ldqnx.so'
  9206. ;;
  9207. openbsd*)
  9208. version_type=sunos
  9209. sys_lib_dlsearch_path_spec="/usr/lib"
  9210. need_lib_prefix=no
  9211. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9212. case $host_os in
  9213. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9214. *) need_version=no ;;
  9215. esac
  9216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9218. shlibpath_var=LD_LIBRARY_PATH
  9219. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9220. case $host_os in
  9221. openbsd2.[89] | openbsd2.[89].*)
  9222. shlibpath_overrides_runpath=no
  9223. ;;
  9224. *)
  9225. shlibpath_overrides_runpath=yes
  9226. ;;
  9227. esac
  9228. else
  9229. shlibpath_overrides_runpath=yes
  9230. fi
  9231. ;;
  9232. os2*)
  9233. libname_spec='$name'
  9234. shrext_cmds=".dll"
  9235. need_lib_prefix=no
  9236. library_names_spec='$libname${shared_ext} $libname.a'
  9237. dynamic_linker='OS/2 ld.exe'
  9238. shlibpath_var=LIBPATH
  9239. ;;
  9240. osf3* | osf4* | osf5*)
  9241. version_type=osf
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. soname_spec='${libname}${release}${shared_ext}$major'
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9248. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9249. ;;
  9250. rdos*)
  9251. dynamic_linker=no
  9252. ;;
  9253. solaris*)
  9254. version_type=linux # correct to gnu/linux during the next big refactor
  9255. need_lib_prefix=no
  9256. need_version=no
  9257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9258. soname_spec='${libname}${release}${shared_ext}$major'
  9259. shlibpath_var=LD_LIBRARY_PATH
  9260. shlibpath_overrides_runpath=yes
  9261. hardcode_into_libs=yes
  9262. # ldd complains unless libraries are executable
  9263. postinstall_cmds='chmod +x $lib'
  9264. ;;
  9265. sunos4*)
  9266. version_type=sunos
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9268. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=yes
  9271. if test "$with_gnu_ld" = yes; then
  9272. need_lib_prefix=no
  9273. fi
  9274. need_version=yes
  9275. ;;
  9276. sysv4 | sysv4.3*)
  9277. version_type=linux # correct to gnu/linux during the next big refactor
  9278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9279. soname_spec='${libname}${release}${shared_ext}$major'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. case $host_vendor in
  9282. sni)
  9283. shlibpath_overrides_runpath=no
  9284. need_lib_prefix=no
  9285. runpath_var=LD_RUN_PATH
  9286. ;;
  9287. siemens)
  9288. need_lib_prefix=no
  9289. ;;
  9290. motorola)
  9291. need_lib_prefix=no
  9292. need_version=no
  9293. shlibpath_overrides_runpath=no
  9294. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9295. ;;
  9296. esac
  9297. ;;
  9298. sysv4*MP*)
  9299. if test -d /usr/nec ;then
  9300. version_type=linux # correct to gnu/linux during the next big refactor
  9301. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9302. soname_spec='$libname${shared_ext}.$major'
  9303. shlibpath_var=LD_LIBRARY_PATH
  9304. fi
  9305. ;;
  9306. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9307. version_type=freebsd-elf
  9308. need_lib_prefix=no
  9309. need_version=no
  9310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9311. soname_spec='${libname}${release}${shared_ext}$major'
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. shlibpath_overrides_runpath=yes
  9314. hardcode_into_libs=yes
  9315. if test "$with_gnu_ld" = yes; then
  9316. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9317. else
  9318. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9319. case $host_os in
  9320. sco3.2v5*)
  9321. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9322. ;;
  9323. esac
  9324. fi
  9325. sys_lib_dlsearch_path_spec='/usr/lib'
  9326. ;;
  9327. tpf*)
  9328. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9329. version_type=linux # correct to gnu/linux during the next big refactor
  9330. need_lib_prefix=no
  9331. need_version=no
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9333. shlibpath_var=LD_LIBRARY_PATH
  9334. shlibpath_overrides_runpath=no
  9335. hardcode_into_libs=yes
  9336. ;;
  9337. uts4*)
  9338. version_type=linux # correct to gnu/linux during the next big refactor
  9339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9340. soname_spec='${libname}${release}${shared_ext}$major'
  9341. shlibpath_var=LD_LIBRARY_PATH
  9342. ;;
  9343. *)
  9344. dynamic_linker=no
  9345. ;;
  9346. esac
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9348. $as_echo "$dynamic_linker" >&6; }
  9349. test "$dynamic_linker" = no && can_build_shared=no
  9350. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9351. if test "$GCC" = yes; then
  9352. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9353. fi
  9354. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9355. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9356. fi
  9357. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9358. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9359. fi
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9361. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9362. hardcode_action=
  9363. if test -n "$hardcode_libdir_flag_spec" ||
  9364. test -n "$runpath_var" ||
  9365. test "X$hardcode_automatic" = "Xyes" ; then
  9366. # We can hardcode non-existent directories.
  9367. if test "$hardcode_direct" != no &&
  9368. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9369. # have to relink, otherwise we might link with an installed library
  9370. # when we should be linking with a yet-to-be-installed one
  9371. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9372. test "$hardcode_minus_L" != no; then
  9373. # Linking always hardcodes the temporary library directory.
  9374. hardcode_action=relink
  9375. else
  9376. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9377. hardcode_action=immediate
  9378. fi
  9379. else
  9380. # We cannot hardcode anything, or else we can only hardcode existing
  9381. # directories.
  9382. hardcode_action=unsupported
  9383. fi
  9384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9385. $as_echo "$hardcode_action" >&6; }
  9386. if test "$hardcode_action" = relink ||
  9387. test "$inherit_rpath" = yes; then
  9388. # Fast installation is not supported
  9389. enable_fast_install=no
  9390. elif test "$shlibpath_overrides_runpath" = yes ||
  9391. test "$enable_shared" = no; then
  9392. # Fast installation is not necessary
  9393. enable_fast_install=needless
  9394. fi
  9395. if test "x$enable_dlopen" != xyes; then
  9396. enable_dlopen=unknown
  9397. enable_dlopen_self=unknown
  9398. enable_dlopen_self_static=unknown
  9399. else
  9400. lt_cv_dlopen=no
  9401. lt_cv_dlopen_libs=
  9402. case $host_os in
  9403. beos*)
  9404. lt_cv_dlopen="load_add_on"
  9405. lt_cv_dlopen_libs=
  9406. lt_cv_dlopen_self=yes
  9407. ;;
  9408. mingw* | pw32* | cegcc*)
  9409. lt_cv_dlopen="LoadLibrary"
  9410. lt_cv_dlopen_libs=
  9411. ;;
  9412. cygwin*)
  9413. lt_cv_dlopen="dlopen"
  9414. lt_cv_dlopen_libs=
  9415. ;;
  9416. darwin*)
  9417. # if libdl is installed we need to link against it
  9418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9419. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9420. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9421. $as_echo_n "(cached) " >&6
  9422. else
  9423. ac_check_lib_save_LIBS=$LIBS
  9424. LIBS="-ldl $LIBS"
  9425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9426. /* end confdefs.h. */
  9427. /* Override any GCC internal prototype to avoid an error.
  9428. Use char because int might match the return type of a GCC
  9429. builtin and then its argument prototype would still apply. */
  9430. #ifdef __cplusplus
  9431. extern "C"
  9432. #endif
  9433. char dlopen ();
  9434. int
  9435. main ()
  9436. {
  9437. return dlopen ();
  9438. ;
  9439. return 0;
  9440. }
  9441. _ACEOF
  9442. if ac_fn_c_try_link "$LINENO"; then :
  9443. ac_cv_lib_dl_dlopen=yes
  9444. else
  9445. ac_cv_lib_dl_dlopen=no
  9446. fi
  9447. rm -f core conftest.err conftest.$ac_objext \
  9448. conftest$ac_exeext conftest.$ac_ext
  9449. LIBS=$ac_check_lib_save_LIBS
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9452. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9453. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9454. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9455. else
  9456. lt_cv_dlopen="dyld"
  9457. lt_cv_dlopen_libs=
  9458. lt_cv_dlopen_self=yes
  9459. fi
  9460. ;;
  9461. *)
  9462. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9463. if test "x$ac_cv_func_shl_load" = xyes; then :
  9464. lt_cv_dlopen="shl_load"
  9465. else
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9467. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9468. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9469. $as_echo_n "(cached) " >&6
  9470. else
  9471. ac_check_lib_save_LIBS=$LIBS
  9472. LIBS="-ldld $LIBS"
  9473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9474. /* end confdefs.h. */
  9475. /* Override any GCC internal prototype to avoid an error.
  9476. Use char because int might match the return type of a GCC
  9477. builtin and then its argument prototype would still apply. */
  9478. #ifdef __cplusplus
  9479. extern "C"
  9480. #endif
  9481. char shl_load ();
  9482. int
  9483. main ()
  9484. {
  9485. return shl_load ();
  9486. ;
  9487. return 0;
  9488. }
  9489. _ACEOF
  9490. if ac_fn_c_try_link "$LINENO"; then :
  9491. ac_cv_lib_dld_shl_load=yes
  9492. else
  9493. ac_cv_lib_dld_shl_load=no
  9494. fi
  9495. rm -f core conftest.err conftest.$ac_objext \
  9496. conftest$ac_exeext conftest.$ac_ext
  9497. LIBS=$ac_check_lib_save_LIBS
  9498. fi
  9499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9500. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9501. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9502. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9503. else
  9504. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9505. if test "x$ac_cv_func_dlopen" = xyes; then :
  9506. lt_cv_dlopen="dlopen"
  9507. else
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9509. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9510. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. ac_check_lib_save_LIBS=$LIBS
  9514. LIBS="-ldl $LIBS"
  9515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9516. /* end confdefs.h. */
  9517. /* Override any GCC internal prototype to avoid an error.
  9518. Use char because int might match the return type of a GCC
  9519. builtin and then its argument prototype would still apply. */
  9520. #ifdef __cplusplus
  9521. extern "C"
  9522. #endif
  9523. char dlopen ();
  9524. int
  9525. main ()
  9526. {
  9527. return dlopen ();
  9528. ;
  9529. return 0;
  9530. }
  9531. _ACEOF
  9532. if ac_fn_c_try_link "$LINENO"; then :
  9533. ac_cv_lib_dl_dlopen=yes
  9534. else
  9535. ac_cv_lib_dl_dlopen=no
  9536. fi
  9537. rm -f core conftest.err conftest.$ac_objext \
  9538. conftest$ac_exeext conftest.$ac_ext
  9539. LIBS=$ac_check_lib_save_LIBS
  9540. fi
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9542. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9543. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9544. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9545. else
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9547. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9548. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. ac_check_lib_save_LIBS=$LIBS
  9552. LIBS="-lsvld $LIBS"
  9553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9554. /* end confdefs.h. */
  9555. /* Override any GCC internal prototype to avoid an error.
  9556. Use char because int might match the return type of a GCC
  9557. builtin and then its argument prototype would still apply. */
  9558. #ifdef __cplusplus
  9559. extern "C"
  9560. #endif
  9561. char dlopen ();
  9562. int
  9563. main ()
  9564. {
  9565. return dlopen ();
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_c_try_link "$LINENO"; then :
  9571. ac_cv_lib_svld_dlopen=yes
  9572. else
  9573. ac_cv_lib_svld_dlopen=no
  9574. fi
  9575. rm -f core conftest.err conftest.$ac_objext \
  9576. conftest$ac_exeext conftest.$ac_ext
  9577. LIBS=$ac_check_lib_save_LIBS
  9578. fi
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9580. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9581. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9582. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9583. else
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9585. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9586. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9587. $as_echo_n "(cached) " >&6
  9588. else
  9589. ac_check_lib_save_LIBS=$LIBS
  9590. LIBS="-ldld $LIBS"
  9591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9592. /* end confdefs.h. */
  9593. /* Override any GCC internal prototype to avoid an error.
  9594. Use char because int might match the return type of a GCC
  9595. builtin and then its argument prototype would still apply. */
  9596. #ifdef __cplusplus
  9597. extern "C"
  9598. #endif
  9599. char dld_link ();
  9600. int
  9601. main ()
  9602. {
  9603. return dld_link ();
  9604. ;
  9605. return 0;
  9606. }
  9607. _ACEOF
  9608. if ac_fn_c_try_link "$LINENO"; then :
  9609. ac_cv_lib_dld_dld_link=yes
  9610. else
  9611. ac_cv_lib_dld_dld_link=no
  9612. fi
  9613. rm -f core conftest.err conftest.$ac_objext \
  9614. conftest$ac_exeext conftest.$ac_ext
  9615. LIBS=$ac_check_lib_save_LIBS
  9616. fi
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9618. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9619. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9620. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9621. fi
  9622. fi
  9623. fi
  9624. fi
  9625. fi
  9626. fi
  9627. ;;
  9628. esac
  9629. if test "x$lt_cv_dlopen" != xno; then
  9630. enable_dlopen=yes
  9631. else
  9632. enable_dlopen=no
  9633. fi
  9634. case $lt_cv_dlopen in
  9635. dlopen)
  9636. save_CPPFLAGS="$CPPFLAGS"
  9637. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9638. save_LDFLAGS="$LDFLAGS"
  9639. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9640. save_LIBS="$LIBS"
  9641. LIBS="$lt_cv_dlopen_libs $LIBS"
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9643. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9644. if ${lt_cv_dlopen_self+:} false; then :
  9645. $as_echo_n "(cached) " >&6
  9646. else
  9647. if test "$cross_compiling" = yes; then :
  9648. lt_cv_dlopen_self=cross
  9649. else
  9650. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9651. lt_status=$lt_dlunknown
  9652. cat > conftest.$ac_ext <<_LT_EOF
  9653. #line $LINENO "configure"
  9654. #include "confdefs.h"
  9655. #if HAVE_DLFCN_H
  9656. #include <dlfcn.h>
  9657. #endif
  9658. #include <stdio.h>
  9659. #ifdef RTLD_GLOBAL
  9660. # define LT_DLGLOBAL RTLD_GLOBAL
  9661. #else
  9662. # ifdef DL_GLOBAL
  9663. # define LT_DLGLOBAL DL_GLOBAL
  9664. # else
  9665. # define LT_DLGLOBAL 0
  9666. # endif
  9667. #endif
  9668. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9669. find out it does not work in some platform. */
  9670. #ifndef LT_DLLAZY_OR_NOW
  9671. # ifdef RTLD_LAZY
  9672. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9673. # else
  9674. # ifdef DL_LAZY
  9675. # define LT_DLLAZY_OR_NOW DL_LAZY
  9676. # else
  9677. # ifdef RTLD_NOW
  9678. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9679. # else
  9680. # ifdef DL_NOW
  9681. # define LT_DLLAZY_OR_NOW DL_NOW
  9682. # else
  9683. # define LT_DLLAZY_OR_NOW 0
  9684. # endif
  9685. # endif
  9686. # endif
  9687. # endif
  9688. #endif
  9689. /* When -fvisbility=hidden is used, assume the code has been annotated
  9690. correspondingly for the symbols needed. */
  9691. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9692. int fnord () __attribute__((visibility("default")));
  9693. #endif
  9694. int fnord () { return 42; }
  9695. int main ()
  9696. {
  9697. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9698. int status = $lt_dlunknown;
  9699. if (self)
  9700. {
  9701. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9702. else
  9703. {
  9704. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9705. else puts (dlerror ());
  9706. }
  9707. /* dlclose (self); */
  9708. }
  9709. else
  9710. puts (dlerror ());
  9711. return status;
  9712. }
  9713. _LT_EOF
  9714. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9715. (eval $ac_link) 2>&5
  9716. ac_status=$?
  9717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9718. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9719. (./conftest; exit; ) >&5 2>/dev/null
  9720. lt_status=$?
  9721. case x$lt_status in
  9722. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9723. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9724. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9725. esac
  9726. else :
  9727. # compilation failed
  9728. lt_cv_dlopen_self=no
  9729. fi
  9730. fi
  9731. rm -fr conftest*
  9732. fi
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9734. $as_echo "$lt_cv_dlopen_self" >&6; }
  9735. if test "x$lt_cv_dlopen_self" = xyes; then
  9736. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9738. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9739. if ${lt_cv_dlopen_self_static+:} false; then :
  9740. $as_echo_n "(cached) " >&6
  9741. else
  9742. if test "$cross_compiling" = yes; then :
  9743. lt_cv_dlopen_self_static=cross
  9744. else
  9745. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9746. lt_status=$lt_dlunknown
  9747. cat > conftest.$ac_ext <<_LT_EOF
  9748. #line $LINENO "configure"
  9749. #include "confdefs.h"
  9750. #if HAVE_DLFCN_H
  9751. #include <dlfcn.h>
  9752. #endif
  9753. #include <stdio.h>
  9754. #ifdef RTLD_GLOBAL
  9755. # define LT_DLGLOBAL RTLD_GLOBAL
  9756. #else
  9757. # ifdef DL_GLOBAL
  9758. # define LT_DLGLOBAL DL_GLOBAL
  9759. # else
  9760. # define LT_DLGLOBAL 0
  9761. # endif
  9762. #endif
  9763. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9764. find out it does not work in some platform. */
  9765. #ifndef LT_DLLAZY_OR_NOW
  9766. # ifdef RTLD_LAZY
  9767. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9768. # else
  9769. # ifdef DL_LAZY
  9770. # define LT_DLLAZY_OR_NOW DL_LAZY
  9771. # else
  9772. # ifdef RTLD_NOW
  9773. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9774. # else
  9775. # ifdef DL_NOW
  9776. # define LT_DLLAZY_OR_NOW DL_NOW
  9777. # else
  9778. # define LT_DLLAZY_OR_NOW 0
  9779. # endif
  9780. # endif
  9781. # endif
  9782. # endif
  9783. #endif
  9784. /* When -fvisbility=hidden is used, assume the code has been annotated
  9785. correspondingly for the symbols needed. */
  9786. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9787. int fnord () __attribute__((visibility("default")));
  9788. #endif
  9789. int fnord () { return 42; }
  9790. int main ()
  9791. {
  9792. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9793. int status = $lt_dlunknown;
  9794. if (self)
  9795. {
  9796. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9797. else
  9798. {
  9799. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9800. else puts (dlerror ());
  9801. }
  9802. /* dlclose (self); */
  9803. }
  9804. else
  9805. puts (dlerror ());
  9806. return status;
  9807. }
  9808. _LT_EOF
  9809. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9810. (eval $ac_link) 2>&5
  9811. ac_status=$?
  9812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9813. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9814. (./conftest; exit; ) >&5 2>/dev/null
  9815. lt_status=$?
  9816. case x$lt_status in
  9817. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9818. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9819. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9820. esac
  9821. else :
  9822. # compilation failed
  9823. lt_cv_dlopen_self_static=no
  9824. fi
  9825. fi
  9826. rm -fr conftest*
  9827. fi
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9829. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9830. fi
  9831. CPPFLAGS="$save_CPPFLAGS"
  9832. LDFLAGS="$save_LDFLAGS"
  9833. LIBS="$save_LIBS"
  9834. ;;
  9835. esac
  9836. case $lt_cv_dlopen_self in
  9837. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9838. *) enable_dlopen_self=unknown ;;
  9839. esac
  9840. case $lt_cv_dlopen_self_static in
  9841. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9842. *) enable_dlopen_self_static=unknown ;;
  9843. esac
  9844. fi
  9845. striplib=
  9846. old_striplib=
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9848. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9849. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9850. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9851. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9853. $as_echo "yes" >&6; }
  9854. else
  9855. # FIXME - insert some real tests, host_os isn't really good enough
  9856. case $host_os in
  9857. darwin*)
  9858. if test -n "$STRIP" ; then
  9859. striplib="$STRIP -x"
  9860. old_striplib="$STRIP -S"
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9862. $as_echo "yes" >&6; }
  9863. else
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9865. $as_echo "no" >&6; }
  9866. fi
  9867. ;;
  9868. *)
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9870. $as_echo "no" >&6; }
  9871. ;;
  9872. esac
  9873. fi
  9874. # Report which library types will actually be built
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9876. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9878. $as_echo "$can_build_shared" >&6; }
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9880. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9881. test "$can_build_shared" = "no" && enable_shared=no
  9882. # On AIX, shared libraries and static libraries use the same namespace, and
  9883. # are all built from PIC.
  9884. case $host_os in
  9885. aix3*)
  9886. test "$enable_shared" = yes && enable_static=no
  9887. if test -n "$RANLIB"; then
  9888. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9889. postinstall_cmds='$RANLIB $lib'
  9890. fi
  9891. ;;
  9892. aix[4-9]*)
  9893. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9894. test "$enable_shared" = yes && enable_static=no
  9895. fi
  9896. ;;
  9897. esac
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9899. $as_echo "$enable_shared" >&6; }
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9901. $as_echo_n "checking whether to build static libraries... " >&6; }
  9902. # Make sure either enable_shared or enable_static is yes.
  9903. test "$enable_shared" = yes || enable_static=yes
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9905. $as_echo "$enable_static" >&6; }
  9906. fi
  9907. ac_ext=c
  9908. ac_cpp='$CPP $CPPFLAGS'
  9909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9912. CC="$lt_save_CC"
  9913. ac_config_commands="$ac_config_commands libtool"
  9914. # Only expand once:
  9915. if test -n "$ac_tool_prefix"; then
  9916. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9917. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9919. $as_echo_n "checking for $ac_word... " >&6; }
  9920. if ${ac_cv_prog_RC+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. if test -n "$RC"; then
  9924. ac_cv_prog_RC="$RC" # Let the user override the test.
  9925. else
  9926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9927. for as_dir in $PATH
  9928. do
  9929. IFS=$as_save_IFS
  9930. test -z "$as_dir" && as_dir=.
  9931. for ac_exec_ext in '' $ac_executable_extensions; do
  9932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9933. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9935. break 2
  9936. fi
  9937. done
  9938. done
  9939. IFS=$as_save_IFS
  9940. fi
  9941. fi
  9942. RC=$ac_cv_prog_RC
  9943. if test -n "$RC"; then
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9945. $as_echo "$RC" >&6; }
  9946. else
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9948. $as_echo "no" >&6; }
  9949. fi
  9950. fi
  9951. if test -z "$ac_cv_prog_RC"; then
  9952. ac_ct_RC=$RC
  9953. # Extract the first word of "windres", so it can be a program name with args.
  9954. set dummy windres; ac_word=$2
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9956. $as_echo_n "checking for $ac_word... " >&6; }
  9957. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9958. $as_echo_n "(cached) " >&6
  9959. else
  9960. if test -n "$ac_ct_RC"; then
  9961. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9962. else
  9963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9964. for as_dir in $PATH
  9965. do
  9966. IFS=$as_save_IFS
  9967. test -z "$as_dir" && as_dir=.
  9968. for ac_exec_ext in '' $ac_executable_extensions; do
  9969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9970. ac_cv_prog_ac_ct_RC="windres"
  9971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9972. break 2
  9973. fi
  9974. done
  9975. done
  9976. IFS=$as_save_IFS
  9977. fi
  9978. fi
  9979. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9980. if test -n "$ac_ct_RC"; then
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9982. $as_echo "$ac_ct_RC" >&6; }
  9983. else
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9985. $as_echo "no" >&6; }
  9986. fi
  9987. if test "x$ac_ct_RC" = x; then
  9988. RC=""
  9989. else
  9990. case $cross_compiling:$ac_tool_warned in
  9991. yes:)
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9993. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9994. ac_tool_warned=yes ;;
  9995. esac
  9996. RC=$ac_ct_RC
  9997. fi
  9998. else
  9999. RC="$ac_cv_prog_RC"
  10000. fi
  10001. # Source file extension for RC test sources.
  10002. ac_ext=rc
  10003. # Object file extension for compiled RC test sources.
  10004. objext=o
  10005. objext_RC=$objext
  10006. # Code to be used in simple compile tests
  10007. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10008. # Code to be used in simple link tests
  10009. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10010. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10011. # If no C compiler was specified, use CC.
  10012. LTCC=${LTCC-"$CC"}
  10013. # If no C compiler flags were specified, use CFLAGS.
  10014. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10015. # Allow CC to be a program name with arguments.
  10016. compiler=$CC
  10017. # save warnings/boilerplate of simple test code
  10018. ac_outfile=conftest.$ac_objext
  10019. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10020. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10021. _lt_compiler_boilerplate=`cat conftest.err`
  10022. $RM conftest*
  10023. ac_outfile=conftest.$ac_objext
  10024. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10025. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10026. _lt_linker_boilerplate=`cat conftest.err`
  10027. $RM -r conftest*
  10028. # Allow CC to be a program name with arguments.
  10029. lt_save_CC="$CC"
  10030. lt_save_CFLAGS=$CFLAGS
  10031. lt_save_GCC=$GCC
  10032. GCC=
  10033. CC=${RC-"windres"}
  10034. CFLAGS=
  10035. compiler=$CC
  10036. compiler_RC=$CC
  10037. for cc_temp in $compiler""; do
  10038. case $cc_temp in
  10039. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10040. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10041. \-*) ;;
  10042. *) break;;
  10043. esac
  10044. done
  10045. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10046. lt_cv_prog_compiler_c_o_RC=yes
  10047. if test -n "$compiler"; then
  10048. :
  10049. fi
  10050. GCC=$lt_save_GCC
  10051. ac_ext=c
  10052. ac_cpp='$CPP $CPPFLAGS'
  10053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10056. CC=$lt_save_CC
  10057. CFLAGS=$lt_save_CFLAGS
  10058. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10059. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10060. LT_REVISION=$SDL_INTERFACE_AGE
  10061. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10062. ac_ext=c
  10063. ac_cpp='$CPP $CPPFLAGS'
  10064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10067. if test -n "$ac_tool_prefix"; then
  10068. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10069. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10071. $as_echo_n "checking for $ac_word... " >&6; }
  10072. if ${ac_cv_prog_CC+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. if test -n "$CC"; then
  10076. ac_cv_prog_CC="$CC" # Let the user override the test.
  10077. else
  10078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10079. for as_dir in $PATH
  10080. do
  10081. IFS=$as_save_IFS
  10082. test -z "$as_dir" && as_dir=.
  10083. for ac_exec_ext in '' $ac_executable_extensions; do
  10084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10085. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10087. break 2
  10088. fi
  10089. done
  10090. done
  10091. IFS=$as_save_IFS
  10092. fi
  10093. fi
  10094. CC=$ac_cv_prog_CC
  10095. if test -n "$CC"; then
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10097. $as_echo "$CC" >&6; }
  10098. else
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10100. $as_echo "no" >&6; }
  10101. fi
  10102. fi
  10103. if test -z "$ac_cv_prog_CC"; then
  10104. ac_ct_CC=$CC
  10105. # Extract the first word of "gcc", so it can be a program name with args.
  10106. set dummy gcc; ac_word=$2
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10108. $as_echo_n "checking for $ac_word... " >&6; }
  10109. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10110. $as_echo_n "(cached) " >&6
  10111. else
  10112. if test -n "$ac_ct_CC"; then
  10113. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10114. else
  10115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10116. for as_dir in $PATH
  10117. do
  10118. IFS=$as_save_IFS
  10119. test -z "$as_dir" && as_dir=.
  10120. for ac_exec_ext in '' $ac_executable_extensions; do
  10121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10122. ac_cv_prog_ac_ct_CC="gcc"
  10123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10124. break 2
  10125. fi
  10126. done
  10127. done
  10128. IFS=$as_save_IFS
  10129. fi
  10130. fi
  10131. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10132. if test -n "$ac_ct_CC"; then
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10134. $as_echo "$ac_ct_CC" >&6; }
  10135. else
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10137. $as_echo "no" >&6; }
  10138. fi
  10139. if test "x$ac_ct_CC" = x; then
  10140. CC=""
  10141. else
  10142. case $cross_compiling:$ac_tool_warned in
  10143. yes:)
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10145. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10146. ac_tool_warned=yes ;;
  10147. esac
  10148. CC=$ac_ct_CC
  10149. fi
  10150. else
  10151. CC="$ac_cv_prog_CC"
  10152. fi
  10153. if test -z "$CC"; then
  10154. if test -n "$ac_tool_prefix"; then
  10155. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10156. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10158. $as_echo_n "checking for $ac_word... " >&6; }
  10159. if ${ac_cv_prog_CC+:} false; then :
  10160. $as_echo_n "(cached) " >&6
  10161. else
  10162. if test -n "$CC"; then
  10163. ac_cv_prog_CC="$CC" # Let the user override the test.
  10164. else
  10165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10166. for as_dir in $PATH
  10167. do
  10168. IFS=$as_save_IFS
  10169. test -z "$as_dir" && as_dir=.
  10170. for ac_exec_ext in '' $ac_executable_extensions; do
  10171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10172. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10174. break 2
  10175. fi
  10176. done
  10177. done
  10178. IFS=$as_save_IFS
  10179. fi
  10180. fi
  10181. CC=$ac_cv_prog_CC
  10182. if test -n "$CC"; then
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10184. $as_echo "$CC" >&6; }
  10185. else
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10187. $as_echo "no" >&6; }
  10188. fi
  10189. fi
  10190. fi
  10191. if test -z "$CC"; then
  10192. # Extract the first word of "cc", so it can be a program name with args.
  10193. set dummy cc; ac_word=$2
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10195. $as_echo_n "checking for $ac_word... " >&6; }
  10196. if ${ac_cv_prog_CC+:} false; then :
  10197. $as_echo_n "(cached) " >&6
  10198. else
  10199. if test -n "$CC"; then
  10200. ac_cv_prog_CC="$CC" # Let the user override the test.
  10201. else
  10202. ac_prog_rejected=no
  10203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10204. for as_dir in $PATH
  10205. do
  10206. IFS=$as_save_IFS
  10207. test -z "$as_dir" && as_dir=.
  10208. for ac_exec_ext in '' $ac_executable_extensions; do
  10209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10210. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10211. ac_prog_rejected=yes
  10212. continue
  10213. fi
  10214. ac_cv_prog_CC="cc"
  10215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10216. break 2
  10217. fi
  10218. done
  10219. done
  10220. IFS=$as_save_IFS
  10221. if test $ac_prog_rejected = yes; then
  10222. # We found a bogon in the path, so make sure we never use it.
  10223. set dummy $ac_cv_prog_CC
  10224. shift
  10225. if test $# != 0; then
  10226. # We chose a different compiler from the bogus one.
  10227. # However, it has the same basename, so the bogon will be chosen
  10228. # first if we set CC to just the basename; use the full file name.
  10229. shift
  10230. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10231. fi
  10232. fi
  10233. fi
  10234. fi
  10235. CC=$ac_cv_prog_CC
  10236. if test -n "$CC"; then
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10238. $as_echo "$CC" >&6; }
  10239. else
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10241. $as_echo "no" >&6; }
  10242. fi
  10243. fi
  10244. if test -z "$CC"; then
  10245. if test -n "$ac_tool_prefix"; then
  10246. for ac_prog in cl.exe
  10247. do
  10248. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10249. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10251. $as_echo_n "checking for $ac_word... " >&6; }
  10252. if ${ac_cv_prog_CC+:} false; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. if test -n "$CC"; then
  10256. ac_cv_prog_CC="$CC" # Let the user override the test.
  10257. else
  10258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10259. for as_dir in $PATH
  10260. do
  10261. IFS=$as_save_IFS
  10262. test -z "$as_dir" && as_dir=.
  10263. for ac_exec_ext in '' $ac_executable_extensions; do
  10264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10265. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10267. break 2
  10268. fi
  10269. done
  10270. done
  10271. IFS=$as_save_IFS
  10272. fi
  10273. fi
  10274. CC=$ac_cv_prog_CC
  10275. if test -n "$CC"; then
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10277. $as_echo "$CC" >&6; }
  10278. else
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10280. $as_echo "no" >&6; }
  10281. fi
  10282. test -n "$CC" && break
  10283. done
  10284. fi
  10285. if test -z "$CC"; then
  10286. ac_ct_CC=$CC
  10287. for ac_prog in cl.exe
  10288. do
  10289. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10290. set dummy $ac_prog; ac_word=$2
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10292. $as_echo_n "checking for $ac_word... " >&6; }
  10293. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. if test -n "$ac_ct_CC"; then
  10297. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10298. else
  10299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10300. for as_dir in $PATH
  10301. do
  10302. IFS=$as_save_IFS
  10303. test -z "$as_dir" && as_dir=.
  10304. for ac_exec_ext in '' $ac_executable_extensions; do
  10305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10306. ac_cv_prog_ac_ct_CC="$ac_prog"
  10307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10308. break 2
  10309. fi
  10310. done
  10311. done
  10312. IFS=$as_save_IFS
  10313. fi
  10314. fi
  10315. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10316. if test -n "$ac_ct_CC"; then
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10318. $as_echo "$ac_ct_CC" >&6; }
  10319. else
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10321. $as_echo "no" >&6; }
  10322. fi
  10323. test -n "$ac_ct_CC" && break
  10324. done
  10325. if test "x$ac_ct_CC" = x; then
  10326. CC=""
  10327. else
  10328. case $cross_compiling:$ac_tool_warned in
  10329. yes:)
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10332. ac_tool_warned=yes ;;
  10333. esac
  10334. CC=$ac_ct_CC
  10335. fi
  10336. fi
  10337. fi
  10338. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10340. as_fn_error $? "no acceptable C compiler found in \$PATH
  10341. See \`config.log' for more details" "$LINENO" 5; }
  10342. # Provide some information about the compiler.
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10344. set X $ac_compile
  10345. ac_compiler=$2
  10346. for ac_option in --version -v -V -qversion; do
  10347. { { ac_try="$ac_compiler $ac_option >&5"
  10348. case "(($ac_try" in
  10349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10350. *) ac_try_echo=$ac_try;;
  10351. esac
  10352. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10353. $as_echo "$ac_try_echo"; } >&5
  10354. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10355. ac_status=$?
  10356. if test -s conftest.err; then
  10357. sed '10a\
  10358. ... rest of stderr output deleted ...
  10359. 10q' conftest.err >conftest.er1
  10360. cat conftest.er1 >&5
  10361. fi
  10362. rm -f conftest.er1 conftest.err
  10363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10364. test $ac_status = 0; }
  10365. done
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10367. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10368. if ${ac_cv_c_compiler_gnu+:} false; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10372. /* end confdefs.h. */
  10373. int
  10374. main ()
  10375. {
  10376. #ifndef __GNUC__
  10377. choke me
  10378. #endif
  10379. ;
  10380. return 0;
  10381. }
  10382. _ACEOF
  10383. if ac_fn_c_try_compile "$LINENO"; then :
  10384. ac_compiler_gnu=yes
  10385. else
  10386. ac_compiler_gnu=no
  10387. fi
  10388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10389. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10390. fi
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10392. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10393. if test $ac_compiler_gnu = yes; then
  10394. GCC=yes
  10395. else
  10396. GCC=
  10397. fi
  10398. ac_test_CFLAGS=${CFLAGS+set}
  10399. ac_save_CFLAGS=$CFLAGS
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10401. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10402. if ${ac_cv_prog_cc_g+:} false; then :
  10403. $as_echo_n "(cached) " >&6
  10404. else
  10405. ac_save_c_werror_flag=$ac_c_werror_flag
  10406. ac_c_werror_flag=yes
  10407. ac_cv_prog_cc_g=no
  10408. CFLAGS="-g"
  10409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10410. /* end confdefs.h. */
  10411. int
  10412. main ()
  10413. {
  10414. ;
  10415. return 0;
  10416. }
  10417. _ACEOF
  10418. if ac_fn_c_try_compile "$LINENO"; then :
  10419. ac_cv_prog_cc_g=yes
  10420. else
  10421. CFLAGS=""
  10422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10423. /* end confdefs.h. */
  10424. int
  10425. main ()
  10426. {
  10427. ;
  10428. return 0;
  10429. }
  10430. _ACEOF
  10431. if ac_fn_c_try_compile "$LINENO"; then :
  10432. else
  10433. ac_c_werror_flag=$ac_save_c_werror_flag
  10434. CFLAGS="-g"
  10435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10436. /* end confdefs.h. */
  10437. int
  10438. main ()
  10439. {
  10440. ;
  10441. return 0;
  10442. }
  10443. _ACEOF
  10444. if ac_fn_c_try_compile "$LINENO"; then :
  10445. ac_cv_prog_cc_g=yes
  10446. fi
  10447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10448. fi
  10449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10450. fi
  10451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10452. ac_c_werror_flag=$ac_save_c_werror_flag
  10453. fi
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10455. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10456. if test "$ac_test_CFLAGS" = set; then
  10457. CFLAGS=$ac_save_CFLAGS
  10458. elif test $ac_cv_prog_cc_g = yes; then
  10459. if test "$GCC" = yes; then
  10460. CFLAGS="-g -O2"
  10461. else
  10462. CFLAGS="-g"
  10463. fi
  10464. else
  10465. if test "$GCC" = yes; then
  10466. CFLAGS="-O2"
  10467. else
  10468. CFLAGS=
  10469. fi
  10470. fi
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10472. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10473. if ${ac_cv_prog_cc_c89+:} false; then :
  10474. $as_echo_n "(cached) " >&6
  10475. else
  10476. ac_cv_prog_cc_c89=no
  10477. ac_save_CC=$CC
  10478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10479. /* end confdefs.h. */
  10480. #include <stdarg.h>
  10481. #include <stdio.h>
  10482. struct stat;
  10483. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10484. struct buf { int x; };
  10485. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10486. static char *e (p, i)
  10487. char **p;
  10488. int i;
  10489. {
  10490. return p[i];
  10491. }
  10492. static char *f (char * (*g) (char **, int), char **p, ...)
  10493. {
  10494. char *s;
  10495. va_list v;
  10496. va_start (v,p);
  10497. s = g (p, va_arg (v,int));
  10498. va_end (v);
  10499. return s;
  10500. }
  10501. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10502. function prototypes and stuff, but not '\xHH' hex character constants.
  10503. These don't provoke an error unfortunately, instead are silently treated
  10504. as 'x'. The following induces an error, until -std is added to get
  10505. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10506. array size at least. It's necessary to write '\x00'==0 to get something
  10507. that's true only with -std. */
  10508. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10509. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10510. inside strings and character constants. */
  10511. #define FOO(x) 'x'
  10512. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10513. int test (int i, double x);
  10514. struct s1 {int (*f) (int a);};
  10515. struct s2 {int (*f) (double a);};
  10516. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10517. int argc;
  10518. char **argv;
  10519. int
  10520. main ()
  10521. {
  10522. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10523. ;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10528. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10529. do
  10530. CC="$ac_save_CC $ac_arg"
  10531. if ac_fn_c_try_compile "$LINENO"; then :
  10532. ac_cv_prog_cc_c89=$ac_arg
  10533. fi
  10534. rm -f core conftest.err conftest.$ac_objext
  10535. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10536. done
  10537. rm -f conftest.$ac_ext
  10538. CC=$ac_save_CC
  10539. fi
  10540. # AC_CACHE_VAL
  10541. case "x$ac_cv_prog_cc_c89" in
  10542. x)
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10544. $as_echo "none needed" >&6; } ;;
  10545. xno)
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10547. $as_echo "unsupported" >&6; } ;;
  10548. *)
  10549. CC="$CC $ac_cv_prog_cc_c89"
  10550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10551. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10552. esac
  10553. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10554. fi
  10555. ac_ext=c
  10556. ac_cpp='$CPP $CPPFLAGS'
  10557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10560. ac_ext=cpp
  10561. ac_cpp='$CXXCPP $CPPFLAGS'
  10562. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10563. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10564. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10565. if test -z "$CXX"; then
  10566. if test -n "$CCC"; then
  10567. CXX=$CCC
  10568. else
  10569. if test -n "$ac_tool_prefix"; then
  10570. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10571. do
  10572. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10573. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10575. $as_echo_n "checking for $ac_word... " >&6; }
  10576. if ${ac_cv_prog_CXX+:} false; then :
  10577. $as_echo_n "(cached) " >&6
  10578. else
  10579. if test -n "$CXX"; then
  10580. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10581. else
  10582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10583. for as_dir in $PATH
  10584. do
  10585. IFS=$as_save_IFS
  10586. test -z "$as_dir" && as_dir=.
  10587. for ac_exec_ext in '' $ac_executable_extensions; do
  10588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10589. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10591. break 2
  10592. fi
  10593. done
  10594. done
  10595. IFS=$as_save_IFS
  10596. fi
  10597. fi
  10598. CXX=$ac_cv_prog_CXX
  10599. if test -n "$CXX"; then
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10601. $as_echo "$CXX" >&6; }
  10602. else
  10603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10604. $as_echo "no" >&6; }
  10605. fi
  10606. test -n "$CXX" && break
  10607. done
  10608. fi
  10609. if test -z "$CXX"; then
  10610. ac_ct_CXX=$CXX
  10611. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10612. do
  10613. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10614. set dummy $ac_prog; ac_word=$2
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10616. $as_echo_n "checking for $ac_word... " >&6; }
  10617. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10618. $as_echo_n "(cached) " >&6
  10619. else
  10620. if test -n "$ac_ct_CXX"; then
  10621. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10622. else
  10623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10624. for as_dir in $PATH
  10625. do
  10626. IFS=$as_save_IFS
  10627. test -z "$as_dir" && as_dir=.
  10628. for ac_exec_ext in '' $ac_executable_extensions; do
  10629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10630. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10632. break 2
  10633. fi
  10634. done
  10635. done
  10636. IFS=$as_save_IFS
  10637. fi
  10638. fi
  10639. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10640. if test -n "$ac_ct_CXX"; then
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10642. $as_echo "$ac_ct_CXX" >&6; }
  10643. else
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10645. $as_echo "no" >&6; }
  10646. fi
  10647. test -n "$ac_ct_CXX" && break
  10648. done
  10649. if test "x$ac_ct_CXX" = x; then
  10650. CXX="g++"
  10651. else
  10652. case $cross_compiling:$ac_tool_warned in
  10653. yes:)
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10656. ac_tool_warned=yes ;;
  10657. esac
  10658. CXX=$ac_ct_CXX
  10659. fi
  10660. fi
  10661. fi
  10662. fi
  10663. # Provide some information about the compiler.
  10664. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10665. set X $ac_compile
  10666. ac_compiler=$2
  10667. for ac_option in --version -v -V -qversion; do
  10668. { { ac_try="$ac_compiler $ac_option >&5"
  10669. case "(($ac_try" in
  10670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10671. *) ac_try_echo=$ac_try;;
  10672. esac
  10673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10674. $as_echo "$ac_try_echo"; } >&5
  10675. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10676. ac_status=$?
  10677. if test -s conftest.err; then
  10678. sed '10a\
  10679. ... rest of stderr output deleted ...
  10680. 10q' conftest.err >conftest.er1
  10681. cat conftest.er1 >&5
  10682. fi
  10683. rm -f conftest.er1 conftest.err
  10684. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10685. test $ac_status = 0; }
  10686. done
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10688. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10689. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10690. $as_echo_n "(cached) " >&6
  10691. else
  10692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10693. /* end confdefs.h. */
  10694. int
  10695. main ()
  10696. {
  10697. #ifndef __GNUC__
  10698. choke me
  10699. #endif
  10700. ;
  10701. return 0;
  10702. }
  10703. _ACEOF
  10704. if ac_fn_cxx_try_compile "$LINENO"; then :
  10705. ac_compiler_gnu=yes
  10706. else
  10707. ac_compiler_gnu=no
  10708. fi
  10709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10710. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10711. fi
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10713. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10714. if test $ac_compiler_gnu = yes; then
  10715. GXX=yes
  10716. else
  10717. GXX=
  10718. fi
  10719. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10720. ac_save_CXXFLAGS=$CXXFLAGS
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10722. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10723. if ${ac_cv_prog_cxx_g+:} false; then :
  10724. $as_echo_n "(cached) " >&6
  10725. else
  10726. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10727. ac_cxx_werror_flag=yes
  10728. ac_cv_prog_cxx_g=no
  10729. CXXFLAGS="-g"
  10730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10731. /* end confdefs.h. */
  10732. int
  10733. main ()
  10734. {
  10735. ;
  10736. return 0;
  10737. }
  10738. _ACEOF
  10739. if ac_fn_cxx_try_compile "$LINENO"; then :
  10740. ac_cv_prog_cxx_g=yes
  10741. else
  10742. CXXFLAGS=""
  10743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10744. /* end confdefs.h. */
  10745. int
  10746. main ()
  10747. {
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. if ac_fn_cxx_try_compile "$LINENO"; then :
  10753. else
  10754. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10755. CXXFLAGS="-g"
  10756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10757. /* end confdefs.h. */
  10758. int
  10759. main ()
  10760. {
  10761. ;
  10762. return 0;
  10763. }
  10764. _ACEOF
  10765. if ac_fn_cxx_try_compile "$LINENO"; then :
  10766. ac_cv_prog_cxx_g=yes
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10771. fi
  10772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10773. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10774. fi
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10776. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10777. if test "$ac_test_CXXFLAGS" = set; then
  10778. CXXFLAGS=$ac_save_CXXFLAGS
  10779. elif test $ac_cv_prog_cxx_g = yes; then
  10780. if test "$GXX" = yes; then
  10781. CXXFLAGS="-g -O2"
  10782. else
  10783. CXXFLAGS="-g"
  10784. fi
  10785. else
  10786. if test "$GXX" = yes; then
  10787. CXXFLAGS="-O2"
  10788. else
  10789. CXXFLAGS=
  10790. fi
  10791. fi
  10792. ac_ext=c
  10793. ac_cpp='$CPP $CPPFLAGS'
  10794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10797. func_stripname_cnf ()
  10798. {
  10799. case ${2} in
  10800. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10801. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10802. esac
  10803. } # func_stripname_cnf
  10804. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10805. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10806. (test "X$CXX" != "Xg++"))) ; then
  10807. ac_ext=cpp
  10808. ac_cpp='$CXXCPP $CPPFLAGS'
  10809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10813. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10814. if test -z "$CXXCPP"; then
  10815. if ${ac_cv_prog_CXXCPP+:} false; then :
  10816. $as_echo_n "(cached) " >&6
  10817. else
  10818. # Double quotes because CXXCPP needs to be expanded
  10819. for CXXCPP in "$CXX -E" "/lib/cpp"
  10820. do
  10821. ac_preproc_ok=false
  10822. for ac_cxx_preproc_warn_flag in '' yes
  10823. do
  10824. # Use a header file that comes with gcc, so configuring glibc
  10825. # with a fresh cross-compiler works.
  10826. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10827. # <limits.h> exists even on freestanding compilers.
  10828. # On the NeXT, cc -E runs the code through the compiler's parser,
  10829. # not just through cpp. "Syntax error" is here to catch this case.
  10830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10831. /* end confdefs.h. */
  10832. #ifdef __STDC__
  10833. # include <limits.h>
  10834. #else
  10835. # include <assert.h>
  10836. #endif
  10837. Syntax error
  10838. _ACEOF
  10839. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10840. else
  10841. # Broken: fails on valid input.
  10842. continue
  10843. fi
  10844. rm -f conftest.err conftest.i conftest.$ac_ext
  10845. # OK, works on sane cases. Now check whether nonexistent headers
  10846. # can be detected and how.
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. #include <ac_nonexistent.h>
  10850. _ACEOF
  10851. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10852. # Broken: success on invalid input.
  10853. continue
  10854. else
  10855. # Passes both tests.
  10856. ac_preproc_ok=:
  10857. break
  10858. fi
  10859. rm -f conftest.err conftest.i conftest.$ac_ext
  10860. done
  10861. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10862. rm -f conftest.i conftest.err conftest.$ac_ext
  10863. if $ac_preproc_ok; then :
  10864. break
  10865. fi
  10866. done
  10867. ac_cv_prog_CXXCPP=$CXXCPP
  10868. fi
  10869. CXXCPP=$ac_cv_prog_CXXCPP
  10870. else
  10871. ac_cv_prog_CXXCPP=$CXXCPP
  10872. fi
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10874. $as_echo "$CXXCPP" >&6; }
  10875. ac_preproc_ok=false
  10876. for ac_cxx_preproc_warn_flag in '' yes
  10877. do
  10878. # Use a header file that comes with gcc, so configuring glibc
  10879. # with a fresh cross-compiler works.
  10880. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10881. # <limits.h> exists even on freestanding compilers.
  10882. # On the NeXT, cc -E runs the code through the compiler's parser,
  10883. # not just through cpp. "Syntax error" is here to catch this case.
  10884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10885. /* end confdefs.h. */
  10886. #ifdef __STDC__
  10887. # include <limits.h>
  10888. #else
  10889. # include <assert.h>
  10890. #endif
  10891. Syntax error
  10892. _ACEOF
  10893. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10894. else
  10895. # Broken: fails on valid input.
  10896. continue
  10897. fi
  10898. rm -f conftest.err conftest.i conftest.$ac_ext
  10899. # OK, works on sane cases. Now check whether nonexistent headers
  10900. # can be detected and how.
  10901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10902. /* end confdefs.h. */
  10903. #include <ac_nonexistent.h>
  10904. _ACEOF
  10905. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10906. # Broken: success on invalid input.
  10907. continue
  10908. else
  10909. # Passes both tests.
  10910. ac_preproc_ok=:
  10911. break
  10912. fi
  10913. rm -f conftest.err conftest.i conftest.$ac_ext
  10914. done
  10915. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10916. rm -f conftest.i conftest.err conftest.$ac_ext
  10917. if $ac_preproc_ok; then :
  10918. else
  10919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10921. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10922. See \`config.log' for more details" "$LINENO" 5; }
  10923. fi
  10924. ac_ext=c
  10925. ac_cpp='$CPP $CPPFLAGS'
  10926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10929. else
  10930. _lt_caught_CXX_error=yes
  10931. fi
  10932. ac_ext=cpp
  10933. ac_cpp='$CXXCPP $CPPFLAGS'
  10934. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10935. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10936. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10937. archive_cmds_need_lc_CXX=no
  10938. allow_undefined_flag_CXX=
  10939. always_export_symbols_CXX=no
  10940. archive_expsym_cmds_CXX=
  10941. compiler_needs_object_CXX=no
  10942. export_dynamic_flag_spec_CXX=
  10943. hardcode_direct_CXX=no
  10944. hardcode_direct_absolute_CXX=no
  10945. hardcode_libdir_flag_spec_CXX=
  10946. hardcode_libdir_separator_CXX=
  10947. hardcode_minus_L_CXX=no
  10948. hardcode_shlibpath_var_CXX=unsupported
  10949. hardcode_automatic_CXX=no
  10950. inherit_rpath_CXX=no
  10951. module_cmds_CXX=
  10952. module_expsym_cmds_CXX=
  10953. link_all_deplibs_CXX=unknown
  10954. old_archive_cmds_CXX=$old_archive_cmds
  10955. reload_flag_CXX=$reload_flag
  10956. reload_cmds_CXX=$reload_cmds
  10957. no_undefined_flag_CXX=
  10958. whole_archive_flag_spec_CXX=
  10959. enable_shared_with_static_runtimes_CXX=no
  10960. # Source file extension for C++ test sources.
  10961. ac_ext=cpp
  10962. # Object file extension for compiled C++ test sources.
  10963. objext=o
  10964. objext_CXX=$objext
  10965. # No sense in running all these tests if we already determined that
  10966. # the CXX compiler isn't working. Some variables (like enable_shared)
  10967. # are currently assumed to apply to all compilers on this platform,
  10968. # and will be corrupted by setting them based on a non-working compiler.
  10969. if test "$_lt_caught_CXX_error" != yes; then
  10970. # Code to be used in simple compile tests
  10971. lt_simple_compile_test_code="int some_variable = 0;"
  10972. # Code to be used in simple link tests
  10973. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10974. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10975. # If no C compiler was specified, use CC.
  10976. LTCC=${LTCC-"$CC"}
  10977. # If no C compiler flags were specified, use CFLAGS.
  10978. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10979. # Allow CC to be a program name with arguments.
  10980. compiler=$CC
  10981. # save warnings/boilerplate of simple test code
  10982. ac_outfile=conftest.$ac_objext
  10983. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10984. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10985. _lt_compiler_boilerplate=`cat conftest.err`
  10986. $RM conftest*
  10987. ac_outfile=conftest.$ac_objext
  10988. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10989. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10990. _lt_linker_boilerplate=`cat conftest.err`
  10991. $RM -r conftest*
  10992. # Allow CC to be a program name with arguments.
  10993. lt_save_CC=$CC
  10994. lt_save_CFLAGS=$CFLAGS
  10995. lt_save_LD=$LD
  10996. lt_save_GCC=$GCC
  10997. GCC=$GXX
  10998. lt_save_with_gnu_ld=$with_gnu_ld
  10999. lt_save_path_LD=$lt_cv_path_LD
  11000. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11001. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11002. else
  11003. $as_unset lt_cv_prog_gnu_ld
  11004. fi
  11005. if test -n "${lt_cv_path_LDCXX+set}"; then
  11006. lt_cv_path_LD=$lt_cv_path_LDCXX
  11007. else
  11008. $as_unset lt_cv_path_LD
  11009. fi
  11010. test -z "${LDCXX+set}" || LD=$LDCXX
  11011. CC=${CXX-"c++"}
  11012. CFLAGS=$CXXFLAGS
  11013. compiler=$CC
  11014. compiler_CXX=$CC
  11015. for cc_temp in $compiler""; do
  11016. case $cc_temp in
  11017. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11018. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11019. \-*) ;;
  11020. *) break;;
  11021. esac
  11022. done
  11023. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11024. if test -n "$compiler"; then
  11025. # We don't want -fno-exception when compiling C++ code, so set the
  11026. # no_builtin_flag separately
  11027. if test "$GXX" = yes; then
  11028. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11029. else
  11030. lt_prog_compiler_no_builtin_flag_CXX=
  11031. fi
  11032. if test "$GXX" = yes; then
  11033. # Set up default GNU C++ configuration
  11034. # Check whether --with-gnu-ld was given.
  11035. if test "${with_gnu_ld+set}" = set; then :
  11036. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11037. else
  11038. with_gnu_ld=no
  11039. fi
  11040. ac_prog=ld
  11041. if test "$GCC" = yes; then
  11042. # Check if gcc -print-prog-name=ld gives a path.
  11043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11044. $as_echo_n "checking for ld used by $CC... " >&6; }
  11045. case $host in
  11046. *-*-mingw*)
  11047. # gcc leaves a trailing carriage return which upsets mingw
  11048. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11049. *)
  11050. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11051. esac
  11052. case $ac_prog in
  11053. # Accept absolute paths.
  11054. [\\/]* | ?:[\\/]*)
  11055. re_direlt='/[^/][^/]*/\.\./'
  11056. # Canonicalize the pathname of ld
  11057. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11058. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11059. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11060. done
  11061. test -z "$LD" && LD="$ac_prog"
  11062. ;;
  11063. "")
  11064. # If it fails, then pretend we aren't using GCC.
  11065. ac_prog=ld
  11066. ;;
  11067. *)
  11068. # If it is relative, then search for the first ld in PATH.
  11069. with_gnu_ld=unknown
  11070. ;;
  11071. esac
  11072. elif test "$with_gnu_ld" = yes; then
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11074. $as_echo_n "checking for GNU ld... " >&6; }
  11075. else
  11076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11077. $as_echo_n "checking for non-GNU ld... " >&6; }
  11078. fi
  11079. if ${lt_cv_path_LD+:} false; then :
  11080. $as_echo_n "(cached) " >&6
  11081. else
  11082. if test -z "$LD"; then
  11083. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11084. for ac_dir in $PATH; do
  11085. IFS="$lt_save_ifs"
  11086. test -z "$ac_dir" && ac_dir=.
  11087. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11088. lt_cv_path_LD="$ac_dir/$ac_prog"
  11089. # Check to see if the program is GNU ld. I'd rather use --version,
  11090. # but apparently some variants of GNU ld only accept -v.
  11091. # Break only if it was the GNU/non-GNU ld that we prefer.
  11092. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11093. *GNU* | *'with BFD'*)
  11094. test "$with_gnu_ld" != no && break
  11095. ;;
  11096. *)
  11097. test "$with_gnu_ld" != yes && break
  11098. ;;
  11099. esac
  11100. fi
  11101. done
  11102. IFS="$lt_save_ifs"
  11103. else
  11104. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11105. fi
  11106. fi
  11107. LD="$lt_cv_path_LD"
  11108. if test -n "$LD"; then
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11110. $as_echo "$LD" >&6; }
  11111. else
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11113. $as_echo "no" >&6; }
  11114. fi
  11115. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11117. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11118. if ${lt_cv_prog_gnu_ld+:} false; then :
  11119. $as_echo_n "(cached) " >&6
  11120. else
  11121. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11122. case `$LD -v 2>&1 </dev/null` in
  11123. *GNU* | *'with BFD'*)
  11124. lt_cv_prog_gnu_ld=yes
  11125. ;;
  11126. *)
  11127. lt_cv_prog_gnu_ld=no
  11128. ;;
  11129. esac
  11130. fi
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11132. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11133. with_gnu_ld=$lt_cv_prog_gnu_ld
  11134. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11135. # archiving commands below assume that GNU ld is being used.
  11136. if test "$with_gnu_ld" = yes; then
  11137. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11138. 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'
  11139. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11140. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11141. # If archive_cmds runs LD, not CC, wlarc should be empty
  11142. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11143. # investigate it a little bit more. (MM)
  11144. wlarc='${wl}'
  11145. # ancient GNU ld didn't support --whole-archive et. al.
  11146. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11147. $GREP 'no-whole-archive' > /dev/null; then
  11148. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11149. else
  11150. whole_archive_flag_spec_CXX=
  11151. fi
  11152. else
  11153. with_gnu_ld=no
  11154. wlarc=
  11155. # A generic and very simple default shared library creation
  11156. # command for GNU C++ for the case where it uses the native
  11157. # linker, instead of GNU ld. If possible, this setting should
  11158. # overridden to take advantage of the native linker features on
  11159. # the platform it is being used on.
  11160. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11161. fi
  11162. # Commands to make compiler produce verbose output that lists
  11163. # what "hidden" libraries, object files and flags are used when
  11164. # linking a shared library.
  11165. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11166. else
  11167. GXX=no
  11168. with_gnu_ld=no
  11169. wlarc=
  11170. fi
  11171. # PORTME: fill in a description of your system's C++ link characteristics
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11173. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11174. ld_shlibs_CXX=yes
  11175. case $host_os in
  11176. aix3*)
  11177. # FIXME: insert proper C++ library support
  11178. ld_shlibs_CXX=no
  11179. ;;
  11180. aix[4-9]*)
  11181. if test "$host_cpu" = ia64; then
  11182. # On IA64, the linker does run time linking by default, so we don't
  11183. # have to do anything special.
  11184. aix_use_runtimelinking=no
  11185. exp_sym_flag='-Bexport'
  11186. no_entry_flag=""
  11187. else
  11188. aix_use_runtimelinking=no
  11189. # Test if we are trying to use run time linking or normal
  11190. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11191. # need to do runtime linking.
  11192. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11193. for ld_flag in $LDFLAGS; do
  11194. case $ld_flag in
  11195. *-brtl*)
  11196. aix_use_runtimelinking=yes
  11197. break
  11198. ;;
  11199. esac
  11200. done
  11201. ;;
  11202. esac
  11203. exp_sym_flag='-bexport'
  11204. no_entry_flag='-bnoentry'
  11205. fi
  11206. # When large executables or shared objects are built, AIX ld can
  11207. # have problems creating the table of contents. If linking a library
  11208. # or program results in "error TOC overflow" add -mminimal-toc to
  11209. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11210. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11211. archive_cmds_CXX=''
  11212. hardcode_direct_CXX=yes
  11213. hardcode_direct_absolute_CXX=yes
  11214. hardcode_libdir_separator_CXX=':'
  11215. link_all_deplibs_CXX=yes
  11216. file_list_spec_CXX='${wl}-f,'
  11217. if test "$GXX" = yes; then
  11218. case $host_os in aix4.[012]|aix4.[012].*)
  11219. # We only want to do this on AIX 4.2 and lower, the check
  11220. # below for broken collect2 doesn't work under 4.3+
  11221. collect2name=`${CC} -print-prog-name=collect2`
  11222. if test -f "$collect2name" &&
  11223. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11224. then
  11225. # We have reworked collect2
  11226. :
  11227. else
  11228. # We have old collect2
  11229. hardcode_direct_CXX=unsupported
  11230. # It fails to find uninstalled libraries when the uninstalled
  11231. # path is not listed in the libpath. Setting hardcode_minus_L
  11232. # to unsupported forces relinking
  11233. hardcode_minus_L_CXX=yes
  11234. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11235. hardcode_libdir_separator_CXX=
  11236. fi
  11237. esac
  11238. shared_flag='-shared'
  11239. if test "$aix_use_runtimelinking" = yes; then
  11240. shared_flag="$shared_flag "'${wl}-G'
  11241. fi
  11242. else
  11243. # not using gcc
  11244. if test "$host_cpu" = ia64; then
  11245. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11246. # chokes on -Wl,-G. The following line is correct:
  11247. shared_flag='-G'
  11248. else
  11249. if test "$aix_use_runtimelinking" = yes; then
  11250. shared_flag='${wl}-G'
  11251. else
  11252. shared_flag='${wl}-bM:SRE'
  11253. fi
  11254. fi
  11255. fi
  11256. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11257. # It seems that -bexpall does not export symbols beginning with
  11258. # underscore (_), so it is better to generate a list of symbols to
  11259. # export.
  11260. always_export_symbols_CXX=yes
  11261. if test "$aix_use_runtimelinking" = yes; then
  11262. # Warning - without using the other runtime loading flags (-brtl),
  11263. # -berok will link without error, but may produce a broken library.
  11264. allow_undefined_flag_CXX='-berok'
  11265. # Determine the default libpath from the value encoded in an empty
  11266. # executable.
  11267. if test "${lt_cv_aix_libpath+set}" = set; then
  11268. aix_libpath=$lt_cv_aix_libpath
  11269. else
  11270. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11271. $as_echo_n "(cached) " >&6
  11272. else
  11273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11274. /* end confdefs.h. */
  11275. int
  11276. main ()
  11277. {
  11278. ;
  11279. return 0;
  11280. }
  11281. _ACEOF
  11282. if ac_fn_cxx_try_link "$LINENO"; then :
  11283. lt_aix_libpath_sed='
  11284. /Import File Strings/,/^$/ {
  11285. /^0/ {
  11286. s/^0 *\([^ ]*\) *$/\1/
  11287. p
  11288. }
  11289. }'
  11290. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11291. # Check for a 64-bit object if we didn't find anything.
  11292. if test -z "$lt_cv_aix_libpath__CXX"; then
  11293. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11294. fi
  11295. fi
  11296. rm -f core conftest.err conftest.$ac_objext \
  11297. conftest$ac_exeext conftest.$ac_ext
  11298. if test -z "$lt_cv_aix_libpath__CXX"; then
  11299. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11300. fi
  11301. fi
  11302. aix_libpath=$lt_cv_aix_libpath__CXX
  11303. fi
  11304. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11305. 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"
  11306. else
  11307. if test "$host_cpu" = ia64; then
  11308. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11309. allow_undefined_flag_CXX="-z nodefs"
  11310. 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"
  11311. else
  11312. # Determine the default libpath from the value encoded in an
  11313. # empty executable.
  11314. if test "${lt_cv_aix_libpath+set}" = set; then
  11315. aix_libpath=$lt_cv_aix_libpath
  11316. else
  11317. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11318. $as_echo_n "(cached) " >&6
  11319. else
  11320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11321. /* end confdefs.h. */
  11322. int
  11323. main ()
  11324. {
  11325. ;
  11326. return 0;
  11327. }
  11328. _ACEOF
  11329. if ac_fn_cxx_try_link "$LINENO"; then :
  11330. lt_aix_libpath_sed='
  11331. /Import File Strings/,/^$/ {
  11332. /^0/ {
  11333. s/^0 *\([^ ]*\) *$/\1/
  11334. p
  11335. }
  11336. }'
  11337. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11338. # Check for a 64-bit object if we didn't find anything.
  11339. if test -z "$lt_cv_aix_libpath__CXX"; then
  11340. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11341. fi
  11342. fi
  11343. rm -f core conftest.err conftest.$ac_objext \
  11344. conftest$ac_exeext conftest.$ac_ext
  11345. if test -z "$lt_cv_aix_libpath__CXX"; then
  11346. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11347. fi
  11348. fi
  11349. aix_libpath=$lt_cv_aix_libpath__CXX
  11350. fi
  11351. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11352. # Warning - without using the other run time loading flags,
  11353. # -berok will link without error, but may produce a broken library.
  11354. no_undefined_flag_CXX=' ${wl}-bernotok'
  11355. allow_undefined_flag_CXX=' ${wl}-berok'
  11356. if test "$with_gnu_ld" = yes; then
  11357. # We only use this code for GNU lds that support --whole-archive.
  11358. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11359. else
  11360. # Exported symbols can be pulled into shared objects from archives
  11361. whole_archive_flag_spec_CXX='$convenience'
  11362. fi
  11363. archive_cmds_need_lc_CXX=yes
  11364. # This is similar to how AIX traditionally builds its shared
  11365. # libraries.
  11366. 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'
  11367. fi
  11368. fi
  11369. ;;
  11370. beos*)
  11371. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11372. allow_undefined_flag_CXX=unsupported
  11373. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11374. # support --undefined. This deserves some investigation. FIXME
  11375. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11376. else
  11377. ld_shlibs_CXX=no
  11378. fi
  11379. ;;
  11380. chorus*)
  11381. case $cc_basename in
  11382. *)
  11383. # FIXME: insert proper C++ library support
  11384. ld_shlibs_CXX=no
  11385. ;;
  11386. esac
  11387. ;;
  11388. cygwin* | mingw* | pw32* | cegcc*)
  11389. case $GXX,$cc_basename in
  11390. ,cl* | no,cl*)
  11391. # Native MSVC
  11392. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11393. # no search path for DLLs.
  11394. hardcode_libdir_flag_spec_CXX=' '
  11395. allow_undefined_flag_CXX=unsupported
  11396. always_export_symbols_CXX=yes
  11397. file_list_spec_CXX='@'
  11398. # Tell ltmain to make .lib files, not .a files.
  11399. libext=lib
  11400. # Tell ltmain to make .dll files, not .so files.
  11401. shrext_cmds=".dll"
  11402. # FIXME: Setting linknames here is a bad hack.
  11403. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11404. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11405. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11406. else
  11407. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11408. fi~
  11409. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11410. linknames='
  11411. # The linker will not automatically build a static lib if we build a DLL.
  11412. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11413. enable_shared_with_static_runtimes_CXX=yes
  11414. # Don't use ranlib
  11415. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11416. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11417. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11418. case $lt_outputfile in
  11419. *.exe|*.EXE) ;;
  11420. *)
  11421. lt_outputfile="$lt_outputfile.exe"
  11422. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11423. ;;
  11424. esac~
  11425. func_to_tool_file "$lt_outputfile"~
  11426. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11427. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11428. $RM "$lt_outputfile.manifest";
  11429. fi'
  11430. ;;
  11431. *)
  11432. # g++
  11433. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11434. # as there is no search path for DLLs.
  11435. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11436. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11437. allow_undefined_flag_CXX=unsupported
  11438. always_export_symbols_CXX=no
  11439. enable_shared_with_static_runtimes_CXX=yes
  11440. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11441. 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'
  11442. # If the export-symbols file already is a .def file (1st line
  11443. # is EXPORTS), use it as is; otherwise, prepend...
  11444. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11445. cp $export_symbols $output_objdir/$soname.def;
  11446. else
  11447. echo EXPORTS > $output_objdir/$soname.def;
  11448. cat $export_symbols >> $output_objdir/$soname.def;
  11449. fi~
  11450. $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'
  11451. else
  11452. ld_shlibs_CXX=no
  11453. fi
  11454. ;;
  11455. esac
  11456. ;;
  11457. darwin* | rhapsody*)
  11458. archive_cmds_need_lc_CXX=no
  11459. hardcode_direct_CXX=no
  11460. hardcode_automatic_CXX=yes
  11461. hardcode_shlibpath_var_CXX=unsupported
  11462. if test "$lt_cv_ld_force_load" = "yes"; then
  11463. 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\"`'
  11464. else
  11465. whole_archive_flag_spec_CXX=''
  11466. fi
  11467. link_all_deplibs_CXX=yes
  11468. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11469. case $cc_basename in
  11470. ifort*) _lt_dar_can_shared=yes ;;
  11471. *) _lt_dar_can_shared=$GCC ;;
  11472. esac
  11473. if test "$_lt_dar_can_shared" = "yes"; then
  11474. output_verbose_link_cmd=func_echo_all
  11475. 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}"
  11476. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11477. 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}"
  11478. 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}"
  11479. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11480. 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}"
  11481. 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}"
  11482. fi
  11483. else
  11484. ld_shlibs_CXX=no
  11485. fi
  11486. ;;
  11487. dgux*)
  11488. case $cc_basename in
  11489. ec++*)
  11490. # FIXME: insert proper C++ library support
  11491. ld_shlibs_CXX=no
  11492. ;;
  11493. ghcx*)
  11494. # Green Hills C++ Compiler
  11495. # FIXME: insert proper C++ library support
  11496. ld_shlibs_CXX=no
  11497. ;;
  11498. *)
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. esac
  11503. ;;
  11504. freebsd2.*)
  11505. # C++ shared libraries reported to be fairly broken before
  11506. # switch to ELF
  11507. ld_shlibs_CXX=no
  11508. ;;
  11509. freebsd-elf*)
  11510. archive_cmds_need_lc_CXX=no
  11511. ;;
  11512. freebsd* | dragonfly*)
  11513. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11514. # conventions
  11515. ld_shlibs_CXX=yes
  11516. ;;
  11517. gnu*)
  11518. ;;
  11519. haiku*)
  11520. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11521. link_all_deplibs_CXX=yes
  11522. ;;
  11523. hpux9*)
  11524. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11525. hardcode_libdir_separator_CXX=:
  11526. export_dynamic_flag_spec_CXX='${wl}-E'
  11527. hardcode_direct_CXX=yes
  11528. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11529. # but as the default
  11530. # location of the library.
  11531. case $cc_basename in
  11532. CC*)
  11533. # FIXME: insert proper C++ library support
  11534. ld_shlibs_CXX=no
  11535. ;;
  11536. aCC*)
  11537. 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'
  11538. # Commands to make compiler produce verbose output that lists
  11539. # what "hidden" libraries, object files and flags are used when
  11540. # linking a shared library.
  11541. #
  11542. # There doesn't appear to be a way to prevent this compiler from
  11543. # explicitly linking system object files so we need to strip them
  11544. # from the output so that they don't get included in the library
  11545. # dependencies.
  11546. 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"'
  11547. ;;
  11548. *)
  11549. if test "$GXX" = yes; then
  11550. 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'
  11551. else
  11552. # FIXME: insert proper C++ library support
  11553. ld_shlibs_CXX=no
  11554. fi
  11555. ;;
  11556. esac
  11557. ;;
  11558. hpux10*|hpux11*)
  11559. if test $with_gnu_ld = no; then
  11560. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11561. hardcode_libdir_separator_CXX=:
  11562. case $host_cpu in
  11563. hppa*64*|ia64*)
  11564. ;;
  11565. *)
  11566. export_dynamic_flag_spec_CXX='${wl}-E'
  11567. ;;
  11568. esac
  11569. fi
  11570. case $host_cpu in
  11571. hppa*64*|ia64*)
  11572. hardcode_direct_CXX=no
  11573. hardcode_shlibpath_var_CXX=no
  11574. ;;
  11575. *)
  11576. hardcode_direct_CXX=yes
  11577. hardcode_direct_absolute_CXX=yes
  11578. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11579. # but as the default
  11580. # location of the library.
  11581. ;;
  11582. esac
  11583. case $cc_basename in
  11584. CC*)
  11585. # FIXME: insert proper C++ library support
  11586. ld_shlibs_CXX=no
  11587. ;;
  11588. aCC*)
  11589. case $host_cpu in
  11590. hppa*64*)
  11591. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11592. ;;
  11593. ia64*)
  11594. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11595. ;;
  11596. *)
  11597. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11598. ;;
  11599. esac
  11600. # Commands to make compiler produce verbose output that lists
  11601. # what "hidden" libraries, object files and flags are used when
  11602. # linking a shared library.
  11603. #
  11604. # There doesn't appear to be a way to prevent this compiler from
  11605. # explicitly linking system object files so we need to strip them
  11606. # from the output so that they don't get included in the library
  11607. # dependencies.
  11608. 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"'
  11609. ;;
  11610. *)
  11611. if test "$GXX" = yes; then
  11612. if test $with_gnu_ld = no; then
  11613. case $host_cpu in
  11614. hppa*64*)
  11615. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11616. ;;
  11617. ia64*)
  11618. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11619. ;;
  11620. *)
  11621. 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'
  11622. ;;
  11623. esac
  11624. fi
  11625. else
  11626. # FIXME: insert proper C++ library support
  11627. ld_shlibs_CXX=no
  11628. fi
  11629. ;;
  11630. esac
  11631. ;;
  11632. interix[3-9]*)
  11633. hardcode_direct_CXX=no
  11634. hardcode_shlibpath_var_CXX=no
  11635. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11636. export_dynamic_flag_spec_CXX='${wl}-E'
  11637. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11638. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11639. # default) and relocated if they conflict, which is a slow very memory
  11640. # consuming and fragmenting process. To avoid this, we pick a random,
  11641. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11642. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11643. 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'
  11644. 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'
  11645. ;;
  11646. irix5* | irix6*)
  11647. case $cc_basename in
  11648. CC*)
  11649. # SGI C++
  11650. 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'
  11651. # Archives containing C++ object files must be created using
  11652. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11653. # necessary to make sure instantiated templates are included
  11654. # in the archive.
  11655. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11656. ;;
  11657. *)
  11658. if test "$GXX" = yes; then
  11659. if test "$with_gnu_ld" = no; then
  11660. 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'
  11661. else
  11662. 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'
  11663. fi
  11664. fi
  11665. link_all_deplibs_CXX=yes
  11666. ;;
  11667. esac
  11668. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11669. hardcode_libdir_separator_CXX=:
  11670. inherit_rpath_CXX=yes
  11671. ;;
  11672. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11673. case $cc_basename in
  11674. KCC*)
  11675. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11676. # KCC will only create a shared library if the output file
  11677. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11678. # to its proper name (with version) after linking.
  11679. 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'
  11680. 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'
  11681. # Commands to make compiler produce verbose output that lists
  11682. # what "hidden" libraries, object files and flags are used when
  11683. # linking a shared library.
  11684. #
  11685. # There doesn't appear to be a way to prevent this compiler from
  11686. # explicitly linking system object files so we need to strip them
  11687. # from the output so that they don't get included in the library
  11688. # dependencies.
  11689. 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"'
  11690. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11691. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11692. # Archives containing C++ object files must be created using
  11693. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11694. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11695. ;;
  11696. icpc* | ecpc* )
  11697. # Intel C++
  11698. with_gnu_ld=yes
  11699. # version 8.0 and above of icpc choke on multiply defined symbols
  11700. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11701. # earlier do not add the objects themselves.
  11702. case `$CC -V 2>&1` in
  11703. *"Version 7."*)
  11704. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11705. 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'
  11706. ;;
  11707. *) # Version 8.0 or newer
  11708. tmp_idyn=
  11709. case $host_cpu in
  11710. ia64*) tmp_idyn=' -i_dynamic';;
  11711. esac
  11712. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11713. 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'
  11714. ;;
  11715. esac
  11716. archive_cmds_need_lc_CXX=no
  11717. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11718. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11719. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11720. ;;
  11721. pgCC* | pgcpp*)
  11722. # Portland Group C++ compiler
  11723. case `$CC -V` in
  11724. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11725. prelink_cmds_CXX='tpldir=Template.dir~
  11726. rm -rf $tpldir~
  11727. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11728. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11729. old_archive_cmds_CXX='tpldir=Template.dir~
  11730. rm -rf $tpldir~
  11731. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11732. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11733. $RANLIB $oldlib'
  11734. archive_cmds_CXX='tpldir=Template.dir~
  11735. rm -rf $tpldir~
  11736. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11737. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11738. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11739. rm -rf $tpldir~
  11740. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11741. $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'
  11742. ;;
  11743. *) # Version 6 and above use weak symbols
  11744. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11745. 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'
  11746. ;;
  11747. esac
  11748. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11749. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11750. 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'
  11751. ;;
  11752. cxx*)
  11753. # Compaq C++
  11754. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11755. 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'
  11756. runpath_var=LD_RUN_PATH
  11757. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11758. hardcode_libdir_separator_CXX=:
  11759. # Commands to make compiler produce verbose output that lists
  11760. # what "hidden" libraries, object files and flags are used when
  11761. # linking a shared library.
  11762. #
  11763. # There doesn't appear to be a way to prevent this compiler from
  11764. # explicitly linking system object files so we need to strip them
  11765. # from the output so that they don't get included in the library
  11766. # dependencies.
  11767. 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'
  11768. ;;
  11769. xl* | mpixl* | bgxl*)
  11770. # IBM XL 8.0 on PPC, with GNU ld
  11771. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11772. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11773. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11774. if test "x$supports_anon_versioning" = xyes; then
  11775. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11776. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11777. echo "local: *; };" >> $output_objdir/$libname.ver~
  11778. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11779. fi
  11780. ;;
  11781. *)
  11782. case `$CC -V 2>&1 | sed 5q` in
  11783. *Sun\ C*)
  11784. # Sun C++ 5.9
  11785. no_undefined_flag_CXX=' -zdefs'
  11786. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11787. 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'
  11788. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11789. 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'
  11790. compiler_needs_object_CXX=yes
  11791. # Not sure whether something based on
  11792. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11793. # would be better.
  11794. output_verbose_link_cmd='func_echo_all'
  11795. # Archives containing C++ object files must be created using
  11796. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11797. # necessary to make sure instantiated templates are included
  11798. # in the archive.
  11799. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11800. ;;
  11801. esac
  11802. ;;
  11803. esac
  11804. ;;
  11805. lynxos*)
  11806. # FIXME: insert proper C++ library support
  11807. ld_shlibs_CXX=no
  11808. ;;
  11809. m88k*)
  11810. # FIXME: insert proper C++ library support
  11811. ld_shlibs_CXX=no
  11812. ;;
  11813. mvs*)
  11814. case $cc_basename in
  11815. cxx*)
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. *)
  11820. # FIXME: insert proper C++ library support
  11821. ld_shlibs_CXX=no
  11822. ;;
  11823. esac
  11824. ;;
  11825. netbsd*)
  11826. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11827. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11828. wlarc=
  11829. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11830. hardcode_direct_CXX=yes
  11831. hardcode_shlibpath_var_CXX=no
  11832. fi
  11833. # Workaround some broken pre-1.5 toolchains
  11834. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11835. ;;
  11836. *nto* | *qnx*)
  11837. ld_shlibs_CXX=yes
  11838. ;;
  11839. openbsd2*)
  11840. # C++ shared libraries are fairly broken
  11841. ld_shlibs_CXX=no
  11842. ;;
  11843. openbsd*)
  11844. if test -f /usr/libexec/ld.so; then
  11845. hardcode_direct_CXX=yes
  11846. hardcode_shlibpath_var_CXX=no
  11847. hardcode_direct_absolute_CXX=yes
  11848. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11849. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11850. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11851. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11852. export_dynamic_flag_spec_CXX='${wl}-E'
  11853. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11854. fi
  11855. output_verbose_link_cmd=func_echo_all
  11856. else
  11857. ld_shlibs_CXX=no
  11858. fi
  11859. ;;
  11860. osf3* | osf4* | osf5*)
  11861. case $cc_basename in
  11862. KCC*)
  11863. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11864. # KCC will only create a shared library if the output file
  11865. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11866. # to its proper name (with version) after linking.
  11867. 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'
  11868. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11869. hardcode_libdir_separator_CXX=:
  11870. # Archives containing C++ object files must be created using
  11871. # the KAI C++ compiler.
  11872. case $host in
  11873. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11874. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11875. esac
  11876. ;;
  11877. RCC*)
  11878. # Rational C++ 2.4.1
  11879. # FIXME: insert proper C++ library support
  11880. ld_shlibs_CXX=no
  11881. ;;
  11882. cxx*)
  11883. case $host in
  11884. osf3*)
  11885. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11886. 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'
  11887. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11888. ;;
  11889. *)
  11890. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11891. 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'
  11892. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11893. echo "-hidden">> $lib.exp~
  11894. $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~
  11895. $RM $lib.exp'
  11896. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11897. ;;
  11898. esac
  11899. hardcode_libdir_separator_CXX=:
  11900. # Commands to make compiler produce verbose output that lists
  11901. # what "hidden" libraries, object files and flags are used when
  11902. # linking a shared library.
  11903. #
  11904. # There doesn't appear to be a way to prevent this compiler from
  11905. # explicitly linking system object files so we need to strip them
  11906. # from the output so that they don't get included in the library
  11907. # dependencies.
  11908. 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"'
  11909. ;;
  11910. *)
  11911. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11912. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11913. case $host in
  11914. osf3*)
  11915. 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'
  11916. ;;
  11917. *)
  11918. 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'
  11919. ;;
  11920. esac
  11921. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11922. hardcode_libdir_separator_CXX=:
  11923. # Commands to make compiler produce verbose output that lists
  11924. # what "hidden" libraries, object files and flags are used when
  11925. # linking a shared library.
  11926. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11927. else
  11928. # FIXME: insert proper C++ library support
  11929. ld_shlibs_CXX=no
  11930. fi
  11931. ;;
  11932. esac
  11933. ;;
  11934. psos*)
  11935. # FIXME: insert proper C++ library support
  11936. ld_shlibs_CXX=no
  11937. ;;
  11938. sunos4*)
  11939. case $cc_basename in
  11940. CC*)
  11941. # Sun C++ 4.x
  11942. # FIXME: insert proper C++ library support
  11943. ld_shlibs_CXX=no
  11944. ;;
  11945. lcc*)
  11946. # Lucid
  11947. # FIXME: insert proper C++ library support
  11948. ld_shlibs_CXX=no
  11949. ;;
  11950. *)
  11951. # FIXME: insert proper C++ library support
  11952. ld_shlibs_CXX=no
  11953. ;;
  11954. esac
  11955. ;;
  11956. solaris*)
  11957. case $cc_basename in
  11958. CC* | sunCC*)
  11959. # Sun C++ 4.2, 5.x and Centerline C++
  11960. archive_cmds_need_lc_CXX=yes
  11961. no_undefined_flag_CXX=' -zdefs'
  11962. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11963. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11964. $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'
  11965. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11966. hardcode_shlibpath_var_CXX=no
  11967. case $host_os in
  11968. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11969. *)
  11970. # The compiler driver will combine and reorder linker options,
  11971. # but understands `-z linker_flag'.
  11972. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11973. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11974. ;;
  11975. esac
  11976. link_all_deplibs_CXX=yes
  11977. output_verbose_link_cmd='func_echo_all'
  11978. # Archives containing C++ object files must be created using
  11979. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11980. # necessary to make sure instantiated templates are included
  11981. # in the archive.
  11982. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11983. ;;
  11984. gcx*)
  11985. # Green Hills C++ Compiler
  11986. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11987. # The C++ compiler must be used to create the archive.
  11988. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11989. ;;
  11990. *)
  11991. # GNU C++ compiler with Solaris linker
  11992. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11993. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11994. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11995. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11996. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11997. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11998. # Commands to make compiler produce verbose output that lists
  11999. # what "hidden" libraries, object files and flags are used when
  12000. # linking a shared library.
  12001. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12002. else
  12003. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12004. # platform.
  12005. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12006. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12007. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12008. # Commands to make compiler produce verbose output that lists
  12009. # what "hidden" libraries, object files and flags are used when
  12010. # linking a shared library.
  12011. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12012. fi
  12013. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12014. case $host_os in
  12015. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12016. *)
  12017. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12018. ;;
  12019. esac
  12020. fi
  12021. ;;
  12022. esac
  12023. ;;
  12024. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12025. no_undefined_flag_CXX='${wl}-z,text'
  12026. archive_cmds_need_lc_CXX=no
  12027. hardcode_shlibpath_var_CXX=no
  12028. runpath_var='LD_RUN_PATH'
  12029. case $cc_basename in
  12030. CC*)
  12031. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12032. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12033. ;;
  12034. *)
  12035. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12036. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12037. ;;
  12038. esac
  12039. ;;
  12040. sysv5* | sco3.2v5* | sco5v6*)
  12041. # Note: We can NOT use -z defs as we might desire, because we do not
  12042. # link with -lc, and that would cause any symbols used from libc to
  12043. # always be unresolved, which means just about no library would
  12044. # ever link correctly. If we're not using GNU ld we use -z text
  12045. # though, which does catch some bad symbols but isn't as heavy-handed
  12046. # as -z defs.
  12047. no_undefined_flag_CXX='${wl}-z,text'
  12048. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12049. archive_cmds_need_lc_CXX=no
  12050. hardcode_shlibpath_var_CXX=no
  12051. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12052. hardcode_libdir_separator_CXX=':'
  12053. link_all_deplibs_CXX=yes
  12054. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12055. runpath_var='LD_RUN_PATH'
  12056. case $cc_basename in
  12057. CC*)
  12058. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12059. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12060. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12061. '"$old_archive_cmds_CXX"
  12062. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12063. '"$reload_cmds_CXX"
  12064. ;;
  12065. *)
  12066. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12067. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. ;;
  12069. esac
  12070. ;;
  12071. tandem*)
  12072. case $cc_basename in
  12073. NCC*)
  12074. # NonStop-UX NCC 3.20
  12075. # FIXME: insert proper C++ library support
  12076. ld_shlibs_CXX=no
  12077. ;;
  12078. *)
  12079. # FIXME: insert proper C++ library support
  12080. ld_shlibs_CXX=no
  12081. ;;
  12082. esac
  12083. ;;
  12084. vxworks*)
  12085. # FIXME: insert proper C++ library support
  12086. ld_shlibs_CXX=no
  12087. ;;
  12088. *)
  12089. # FIXME: insert proper C++ library support
  12090. ld_shlibs_CXX=no
  12091. ;;
  12092. esac
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12094. $as_echo "$ld_shlibs_CXX" >&6; }
  12095. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12096. GCC_CXX="$GXX"
  12097. LD_CXX="$LD"
  12098. ## CAVEAT EMPTOR:
  12099. ## There is no encapsulation within the following macros, do not change
  12100. ## the running order or otherwise move them around unless you know exactly
  12101. ## what you are doing...
  12102. # Dependencies to place before and after the object being linked:
  12103. predep_objects_CXX=
  12104. postdep_objects_CXX=
  12105. predeps_CXX=
  12106. postdeps_CXX=
  12107. compiler_lib_search_path_CXX=
  12108. cat > conftest.$ac_ext <<_LT_EOF
  12109. class Foo
  12110. {
  12111. public:
  12112. Foo (void) { a = 0; }
  12113. private:
  12114. int a;
  12115. };
  12116. _LT_EOF
  12117. _lt_libdeps_save_CFLAGS=$CFLAGS
  12118. case "$CC $CFLAGS " in #(
  12119. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12120. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12121. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12122. esac
  12123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12124. (eval $ac_compile) 2>&5
  12125. ac_status=$?
  12126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12127. test $ac_status = 0; }; then
  12128. # Parse the compiler output and extract the necessary
  12129. # objects, libraries and library flags.
  12130. # Sentinel used to keep track of whether or not we are before
  12131. # the conftest object file.
  12132. pre_test_object_deps_done=no
  12133. for p in `eval "$output_verbose_link_cmd"`; do
  12134. case ${prev}${p} in
  12135. -L* | -R* | -l*)
  12136. # Some compilers place space between "-{L,R}" and the path.
  12137. # Remove the space.
  12138. if test $p = "-L" ||
  12139. test $p = "-R"; then
  12140. prev=$p
  12141. continue
  12142. fi
  12143. # Expand the sysroot to ease extracting the directories later.
  12144. if test -z "$prev"; then
  12145. case $p in
  12146. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12147. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12148. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12149. esac
  12150. fi
  12151. case $p in
  12152. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12153. esac
  12154. if test "$pre_test_object_deps_done" = no; then
  12155. case ${prev} in
  12156. -L | -R)
  12157. # Internal compiler library paths should come after those
  12158. # provided the user. The postdeps already come after the
  12159. # user supplied libs so there is no need to process them.
  12160. if test -z "$compiler_lib_search_path_CXX"; then
  12161. compiler_lib_search_path_CXX="${prev}${p}"
  12162. else
  12163. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12164. fi
  12165. ;;
  12166. # The "-l" case would never come before the object being
  12167. # linked, so don't bother handling this case.
  12168. esac
  12169. else
  12170. if test -z "$postdeps_CXX"; then
  12171. postdeps_CXX="${prev}${p}"
  12172. else
  12173. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12174. fi
  12175. fi
  12176. prev=
  12177. ;;
  12178. *.lto.$objext) ;; # Ignore GCC LTO objects
  12179. *.$objext)
  12180. # This assumes that the test object file only shows up
  12181. # once in the compiler output.
  12182. if test "$p" = "conftest.$objext"; then
  12183. pre_test_object_deps_done=yes
  12184. continue
  12185. fi
  12186. if test "$pre_test_object_deps_done" = no; then
  12187. if test -z "$predep_objects_CXX"; then
  12188. predep_objects_CXX="$p"
  12189. else
  12190. predep_objects_CXX="$predep_objects_CXX $p"
  12191. fi
  12192. else
  12193. if test -z "$postdep_objects_CXX"; then
  12194. postdep_objects_CXX="$p"
  12195. else
  12196. postdep_objects_CXX="$postdep_objects_CXX $p"
  12197. fi
  12198. fi
  12199. ;;
  12200. *) ;; # Ignore the rest.
  12201. esac
  12202. done
  12203. # Clean up.
  12204. rm -f a.out a.exe
  12205. else
  12206. echo "libtool.m4: error: problem compiling CXX test program"
  12207. fi
  12208. $RM -f confest.$objext
  12209. CFLAGS=$_lt_libdeps_save_CFLAGS
  12210. # PORTME: override above test on systems where it is broken
  12211. case $host_os in
  12212. interix[3-9]*)
  12213. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12214. # hack all around it, let's just trust "g++" to DTRT.
  12215. predep_objects_CXX=
  12216. postdep_objects_CXX=
  12217. postdeps_CXX=
  12218. ;;
  12219. linux*)
  12220. case `$CC -V 2>&1 | sed 5q` in
  12221. *Sun\ C*)
  12222. # Sun C++ 5.9
  12223. # The more standards-conforming stlport4 library is
  12224. # incompatible with the Cstd library. Avoid specifying
  12225. # it if it's in CXXFLAGS. Ignore libCrun as
  12226. # -library=stlport4 depends on it.
  12227. case " $CXX $CXXFLAGS " in
  12228. *" -library=stlport4 "*)
  12229. solaris_use_stlport4=yes
  12230. ;;
  12231. esac
  12232. if test "$solaris_use_stlport4" != yes; then
  12233. postdeps_CXX='-library=Cstd -library=Crun'
  12234. fi
  12235. ;;
  12236. esac
  12237. ;;
  12238. solaris*)
  12239. case $cc_basename in
  12240. CC* | sunCC*)
  12241. # The more standards-conforming stlport4 library is
  12242. # incompatible with the Cstd library. Avoid specifying
  12243. # it if it's in CXXFLAGS. Ignore libCrun as
  12244. # -library=stlport4 depends on it.
  12245. case " $CXX $CXXFLAGS " in
  12246. *" -library=stlport4 "*)
  12247. solaris_use_stlport4=yes
  12248. ;;
  12249. esac
  12250. # Adding this requires a known-good setup of shared libraries for
  12251. # Sun compiler versions before 5.6, else PIC objects from an old
  12252. # archive will be linked into the output, leading to subtle bugs.
  12253. if test "$solaris_use_stlport4" != yes; then
  12254. postdeps_CXX='-library=Cstd -library=Crun'
  12255. fi
  12256. ;;
  12257. esac
  12258. ;;
  12259. esac
  12260. case " $postdeps_CXX " in
  12261. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12262. esac
  12263. compiler_lib_search_dirs_CXX=
  12264. if test -n "${compiler_lib_search_path_CXX}"; then
  12265. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12266. fi
  12267. lt_prog_compiler_wl_CXX=
  12268. lt_prog_compiler_pic_CXX=
  12269. lt_prog_compiler_static_CXX=
  12270. # C++ specific cases for pic, static, wl, etc.
  12271. if test "$GXX" = yes; then
  12272. lt_prog_compiler_wl_CXX='-Wl,'
  12273. lt_prog_compiler_static_CXX='-static'
  12274. case $host_os in
  12275. aix*)
  12276. # All AIX code is PIC.
  12277. if test "$host_cpu" = ia64; then
  12278. # AIX 5 now supports IA64 processor
  12279. lt_prog_compiler_static_CXX='-Bstatic'
  12280. fi
  12281. ;;
  12282. amigaos*)
  12283. case $host_cpu in
  12284. powerpc)
  12285. # see comment about AmigaOS4 .so support
  12286. lt_prog_compiler_pic_CXX='-fPIC'
  12287. ;;
  12288. m68k)
  12289. # FIXME: we need at least 68020 code to build shared libraries, but
  12290. # adding the `-m68020' flag to GCC prevents building anything better,
  12291. # like `-m68040'.
  12292. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12293. ;;
  12294. esac
  12295. ;;
  12296. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12297. # PIC is the default for these OSes.
  12298. ;;
  12299. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12300. # This hack is so that the source file can tell whether it is being
  12301. # built for inclusion in a dll (and should export symbols for example).
  12302. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12303. # (--disable-auto-import) libraries
  12304. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12305. ;;
  12306. darwin* | rhapsody*)
  12307. # PIC is the default on this platform
  12308. # Common symbols not allowed in MH_DYLIB files
  12309. lt_prog_compiler_pic_CXX='-fno-common'
  12310. ;;
  12311. *djgpp*)
  12312. # DJGPP does not support shared libraries at all
  12313. lt_prog_compiler_pic_CXX=
  12314. ;;
  12315. haiku*)
  12316. # PIC is the default for Haiku.
  12317. # The "-static" flag exists, but is broken.
  12318. lt_prog_compiler_static_CXX=
  12319. ;;
  12320. interix[3-9]*)
  12321. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12322. # Instead, we relocate shared libraries at runtime.
  12323. ;;
  12324. sysv4*MP*)
  12325. if test -d /usr/nec; then
  12326. lt_prog_compiler_pic_CXX=-Kconform_pic
  12327. fi
  12328. ;;
  12329. hpux*)
  12330. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12331. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12332. # sets the default TLS model and affects inlining.
  12333. case $host_cpu in
  12334. hppa*64*)
  12335. ;;
  12336. *)
  12337. lt_prog_compiler_pic_CXX='-fPIC'
  12338. ;;
  12339. esac
  12340. ;;
  12341. *qnx* | *nto*)
  12342. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12343. # it will coredump.
  12344. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12345. ;;
  12346. *)
  12347. lt_prog_compiler_pic_CXX='-fPIC'
  12348. ;;
  12349. esac
  12350. else
  12351. case $host_os in
  12352. aix[4-9]*)
  12353. # All AIX code is PIC.
  12354. if test "$host_cpu" = ia64; then
  12355. # AIX 5 now supports IA64 processor
  12356. lt_prog_compiler_static_CXX='-Bstatic'
  12357. else
  12358. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12359. fi
  12360. ;;
  12361. chorus*)
  12362. case $cc_basename in
  12363. cxch68*)
  12364. # Green Hills C++ Compiler
  12365. # _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"
  12366. ;;
  12367. esac
  12368. ;;
  12369. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12370. # This hack is so that the source file can tell whether it is being
  12371. # built for inclusion in a dll (and should export symbols for example).
  12372. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12373. ;;
  12374. dgux*)
  12375. case $cc_basename in
  12376. ec++*)
  12377. lt_prog_compiler_pic_CXX='-KPIC'
  12378. ;;
  12379. ghcx*)
  12380. # Green Hills C++ Compiler
  12381. lt_prog_compiler_pic_CXX='-pic'
  12382. ;;
  12383. *)
  12384. ;;
  12385. esac
  12386. ;;
  12387. freebsd* | dragonfly*)
  12388. # FreeBSD uses GNU C++
  12389. ;;
  12390. hpux9* | hpux10* | hpux11*)
  12391. case $cc_basename in
  12392. CC*)
  12393. lt_prog_compiler_wl_CXX='-Wl,'
  12394. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12395. if test "$host_cpu" != ia64; then
  12396. lt_prog_compiler_pic_CXX='+Z'
  12397. fi
  12398. ;;
  12399. aCC*)
  12400. lt_prog_compiler_wl_CXX='-Wl,'
  12401. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12402. case $host_cpu in
  12403. hppa*64*|ia64*)
  12404. # +Z the default
  12405. ;;
  12406. *)
  12407. lt_prog_compiler_pic_CXX='+Z'
  12408. ;;
  12409. esac
  12410. ;;
  12411. *)
  12412. ;;
  12413. esac
  12414. ;;
  12415. interix*)
  12416. # This is c89, which is MS Visual C++ (no shared libs)
  12417. # Anyone wants to do a port?
  12418. ;;
  12419. irix5* | irix6* | nonstopux*)
  12420. case $cc_basename in
  12421. CC*)
  12422. lt_prog_compiler_wl_CXX='-Wl,'
  12423. lt_prog_compiler_static_CXX='-non_shared'
  12424. # CC pic flag -KPIC is the default.
  12425. ;;
  12426. *)
  12427. ;;
  12428. esac
  12429. ;;
  12430. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12431. case $cc_basename in
  12432. KCC*)
  12433. # KAI C++ Compiler
  12434. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12435. lt_prog_compiler_pic_CXX='-fPIC'
  12436. ;;
  12437. ecpc* )
  12438. # old Intel C++ for x86_64 which still supported -KPIC.
  12439. lt_prog_compiler_wl_CXX='-Wl,'
  12440. lt_prog_compiler_pic_CXX='-KPIC'
  12441. lt_prog_compiler_static_CXX='-static'
  12442. ;;
  12443. icpc* )
  12444. # Intel C++, used to be incompatible with GCC.
  12445. # ICC 10 doesn't accept -KPIC any more.
  12446. lt_prog_compiler_wl_CXX='-Wl,'
  12447. lt_prog_compiler_pic_CXX='-fPIC'
  12448. lt_prog_compiler_static_CXX='-static'
  12449. ;;
  12450. pgCC* | pgcpp*)
  12451. # Portland Group C++ compiler
  12452. lt_prog_compiler_wl_CXX='-Wl,'
  12453. lt_prog_compiler_pic_CXX='-fpic'
  12454. lt_prog_compiler_static_CXX='-Bstatic'
  12455. ;;
  12456. cxx*)
  12457. # Compaq C++
  12458. # Make sure the PIC flag is empty. It appears that all Alpha
  12459. # Linux and Compaq Tru64 Unix objects are PIC.
  12460. lt_prog_compiler_pic_CXX=
  12461. lt_prog_compiler_static_CXX='-non_shared'
  12462. ;;
  12463. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12464. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12465. lt_prog_compiler_wl_CXX='-Wl,'
  12466. lt_prog_compiler_pic_CXX='-qpic'
  12467. lt_prog_compiler_static_CXX='-qstaticlink'
  12468. ;;
  12469. *)
  12470. case `$CC -V 2>&1 | sed 5q` in
  12471. *Sun\ C*)
  12472. # Sun C++ 5.9
  12473. lt_prog_compiler_pic_CXX='-KPIC'
  12474. lt_prog_compiler_static_CXX='-Bstatic'
  12475. lt_prog_compiler_wl_CXX='-Qoption ld '
  12476. ;;
  12477. esac
  12478. ;;
  12479. esac
  12480. ;;
  12481. lynxos*)
  12482. ;;
  12483. m88k*)
  12484. ;;
  12485. mvs*)
  12486. case $cc_basename in
  12487. cxx*)
  12488. lt_prog_compiler_pic_CXX='-W c,exportall'
  12489. ;;
  12490. *)
  12491. ;;
  12492. esac
  12493. ;;
  12494. netbsd*)
  12495. ;;
  12496. *qnx* | *nto*)
  12497. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12498. # it will coredump.
  12499. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12500. ;;
  12501. osf3* | osf4* | osf5*)
  12502. case $cc_basename in
  12503. KCC*)
  12504. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12505. ;;
  12506. RCC*)
  12507. # Rational C++ 2.4.1
  12508. lt_prog_compiler_pic_CXX='-pic'
  12509. ;;
  12510. cxx*)
  12511. # Digital/Compaq C++
  12512. lt_prog_compiler_wl_CXX='-Wl,'
  12513. # Make sure the PIC flag is empty. It appears that all Alpha
  12514. # Linux and Compaq Tru64 Unix objects are PIC.
  12515. lt_prog_compiler_pic_CXX=
  12516. lt_prog_compiler_static_CXX='-non_shared'
  12517. ;;
  12518. *)
  12519. ;;
  12520. esac
  12521. ;;
  12522. psos*)
  12523. ;;
  12524. solaris*)
  12525. case $cc_basename in
  12526. CC* | sunCC*)
  12527. # Sun C++ 4.2, 5.x and Centerline C++
  12528. lt_prog_compiler_pic_CXX='-KPIC'
  12529. lt_prog_compiler_static_CXX='-Bstatic'
  12530. lt_prog_compiler_wl_CXX='-Qoption ld '
  12531. ;;
  12532. gcx*)
  12533. # Green Hills C++ Compiler
  12534. lt_prog_compiler_pic_CXX='-PIC'
  12535. ;;
  12536. *)
  12537. ;;
  12538. esac
  12539. ;;
  12540. sunos4*)
  12541. case $cc_basename in
  12542. CC*)
  12543. # Sun C++ 4.x
  12544. lt_prog_compiler_pic_CXX='-pic'
  12545. lt_prog_compiler_static_CXX='-Bstatic'
  12546. ;;
  12547. lcc*)
  12548. # Lucid
  12549. lt_prog_compiler_pic_CXX='-pic'
  12550. ;;
  12551. *)
  12552. ;;
  12553. esac
  12554. ;;
  12555. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12556. case $cc_basename in
  12557. CC*)
  12558. lt_prog_compiler_wl_CXX='-Wl,'
  12559. lt_prog_compiler_pic_CXX='-KPIC'
  12560. lt_prog_compiler_static_CXX='-Bstatic'
  12561. ;;
  12562. esac
  12563. ;;
  12564. tandem*)
  12565. case $cc_basename in
  12566. NCC*)
  12567. # NonStop-UX NCC 3.20
  12568. lt_prog_compiler_pic_CXX='-KPIC'
  12569. ;;
  12570. *)
  12571. ;;
  12572. esac
  12573. ;;
  12574. vxworks*)
  12575. ;;
  12576. *)
  12577. lt_prog_compiler_can_build_shared_CXX=no
  12578. ;;
  12579. esac
  12580. fi
  12581. case $host_os in
  12582. # For platforms which do not support PIC, -DPIC is meaningless:
  12583. *djgpp*)
  12584. lt_prog_compiler_pic_CXX=
  12585. ;;
  12586. *)
  12587. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12588. ;;
  12589. esac
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12591. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12592. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12593. $as_echo_n "(cached) " >&6
  12594. else
  12595. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12596. fi
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12598. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12599. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12600. #
  12601. # Check to make sure the PIC flag actually works.
  12602. #
  12603. if test -n "$lt_prog_compiler_pic_CXX"; then
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12605. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12606. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12607. $as_echo_n "(cached) " >&6
  12608. else
  12609. lt_cv_prog_compiler_pic_works_CXX=no
  12610. ac_outfile=conftest.$ac_objext
  12611. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12612. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12613. # Insert the option either (1) after the last *FLAGS variable, or
  12614. # (2) before a word containing "conftest.", or (3) at the end.
  12615. # Note that $ac_compile itself does not contain backslashes and begins
  12616. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12617. # The option is referenced via a variable to avoid confusing sed.
  12618. lt_compile=`echo "$ac_compile" | $SED \
  12619. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12620. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12621. -e 's:$: $lt_compiler_flag:'`
  12622. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12623. (eval "$lt_compile" 2>conftest.err)
  12624. ac_status=$?
  12625. cat conftest.err >&5
  12626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12627. if (exit $ac_status) && test -s "$ac_outfile"; then
  12628. # The compiler can only warn and ignore the option if not recognized
  12629. # So say no if there are warnings other than the usual output.
  12630. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12631. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12632. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12633. lt_cv_prog_compiler_pic_works_CXX=yes
  12634. fi
  12635. fi
  12636. $RM conftest*
  12637. fi
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12639. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12640. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12641. case $lt_prog_compiler_pic_CXX in
  12642. "" | " "*) ;;
  12643. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12644. esac
  12645. else
  12646. lt_prog_compiler_pic_CXX=
  12647. lt_prog_compiler_can_build_shared_CXX=no
  12648. fi
  12649. fi
  12650. #
  12651. # Check to make sure the static flag actually works.
  12652. #
  12653. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12655. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12656. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12657. $as_echo_n "(cached) " >&6
  12658. else
  12659. lt_cv_prog_compiler_static_works_CXX=no
  12660. save_LDFLAGS="$LDFLAGS"
  12661. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12662. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12663. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12664. # The linker can only warn and ignore the option if not recognized
  12665. # So say no if there are warnings
  12666. if test -s conftest.err; then
  12667. # Append any errors to the config.log.
  12668. cat conftest.err 1>&5
  12669. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12670. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12671. if diff conftest.exp conftest.er2 >/dev/null; then
  12672. lt_cv_prog_compiler_static_works_CXX=yes
  12673. fi
  12674. else
  12675. lt_cv_prog_compiler_static_works_CXX=yes
  12676. fi
  12677. fi
  12678. $RM -r conftest*
  12679. LDFLAGS="$save_LDFLAGS"
  12680. fi
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12682. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12683. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12684. :
  12685. else
  12686. lt_prog_compiler_static_CXX=
  12687. fi
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12689. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12690. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12691. $as_echo_n "(cached) " >&6
  12692. else
  12693. lt_cv_prog_compiler_c_o_CXX=no
  12694. $RM -r conftest 2>/dev/null
  12695. mkdir conftest
  12696. cd conftest
  12697. mkdir out
  12698. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12699. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12700. # Insert the option either (1) after the last *FLAGS variable, or
  12701. # (2) before a word containing "conftest.", or (3) at the end.
  12702. # Note that $ac_compile itself does not contain backslashes and begins
  12703. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12704. lt_compile=`echo "$ac_compile" | $SED \
  12705. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12706. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12707. -e 's:$: $lt_compiler_flag:'`
  12708. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12709. (eval "$lt_compile" 2>out/conftest.err)
  12710. ac_status=$?
  12711. cat out/conftest.err >&5
  12712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12713. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12714. then
  12715. # The compiler can only warn and ignore the option if not recognized
  12716. # So say no if there are warnings
  12717. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12718. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12719. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12720. lt_cv_prog_compiler_c_o_CXX=yes
  12721. fi
  12722. fi
  12723. chmod u+w . 2>&5
  12724. $RM conftest*
  12725. # SGI C++ compiler will create directory out/ii_files/ for
  12726. # template instantiation
  12727. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12728. $RM out/* && rmdir out
  12729. cd ..
  12730. $RM -r conftest
  12731. $RM conftest*
  12732. fi
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12734. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12736. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12737. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12738. $as_echo_n "(cached) " >&6
  12739. else
  12740. lt_cv_prog_compiler_c_o_CXX=no
  12741. $RM -r conftest 2>/dev/null
  12742. mkdir conftest
  12743. cd conftest
  12744. mkdir out
  12745. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12746. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12747. # Insert the option either (1) after the last *FLAGS variable, or
  12748. # (2) before a word containing "conftest.", or (3) at the end.
  12749. # Note that $ac_compile itself does not contain backslashes and begins
  12750. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12751. lt_compile=`echo "$ac_compile" | $SED \
  12752. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12753. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12754. -e 's:$: $lt_compiler_flag:'`
  12755. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12756. (eval "$lt_compile" 2>out/conftest.err)
  12757. ac_status=$?
  12758. cat out/conftest.err >&5
  12759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12760. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12761. then
  12762. # The compiler can only warn and ignore the option if not recognized
  12763. # So say no if there are warnings
  12764. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12765. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12766. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12767. lt_cv_prog_compiler_c_o_CXX=yes
  12768. fi
  12769. fi
  12770. chmod u+w . 2>&5
  12771. $RM conftest*
  12772. # SGI C++ compiler will create directory out/ii_files/ for
  12773. # template instantiation
  12774. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12775. $RM out/* && rmdir out
  12776. cd ..
  12777. $RM -r conftest
  12778. $RM conftest*
  12779. fi
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12781. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12782. hard_links="nottested"
  12783. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12784. # do not overwrite the value of need_locks provided by the user
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12786. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12787. hard_links=yes
  12788. $RM conftest*
  12789. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12790. touch conftest.a
  12791. ln conftest.a conftest.b 2>&5 || hard_links=no
  12792. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12794. $as_echo "$hard_links" >&6; }
  12795. if test "$hard_links" = no; then
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12797. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12798. need_locks=warn
  12799. fi
  12800. else
  12801. need_locks=no
  12802. fi
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12804. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12805. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12806. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12807. case $host_os in
  12808. aix[4-9]*)
  12809. # If we're using GNU nm, then we don't want the "-C" option.
  12810. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12811. # Also, AIX nm treats weak defined symbols like other global defined
  12812. # symbols, whereas GNU nm marks them as "W".
  12813. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12814. 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'
  12815. else
  12816. 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'
  12817. fi
  12818. ;;
  12819. pw32*)
  12820. export_symbols_cmds_CXX="$ltdll_cmds"
  12821. ;;
  12822. cygwin* | mingw* | cegcc*)
  12823. case $cc_basename in
  12824. cl*)
  12825. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12826. ;;
  12827. *)
  12828. 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'
  12829. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12830. ;;
  12831. esac
  12832. ;;
  12833. *)
  12834. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12835. ;;
  12836. esac
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12838. $as_echo "$ld_shlibs_CXX" >&6; }
  12839. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12840. with_gnu_ld_CXX=$with_gnu_ld
  12841. #
  12842. # Do we need to explicitly link libc?
  12843. #
  12844. case "x$archive_cmds_need_lc_CXX" in
  12845. x|xyes)
  12846. # Assume -lc should be added
  12847. archive_cmds_need_lc_CXX=yes
  12848. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12849. case $archive_cmds_CXX in
  12850. *'~'*)
  12851. # FIXME: we may have to deal with multi-command sequences.
  12852. ;;
  12853. '$CC '*)
  12854. # Test whether the compiler implicitly links with -lc since on some
  12855. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12856. # to ld, don't add -lc before -lgcc.
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12858. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12859. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12860. $as_echo_n "(cached) " >&6
  12861. else
  12862. $RM conftest*
  12863. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12865. (eval $ac_compile) 2>&5
  12866. ac_status=$?
  12867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12868. test $ac_status = 0; } 2>conftest.err; then
  12869. soname=conftest
  12870. lib=conftest
  12871. libobjs=conftest.$ac_objext
  12872. deplibs=
  12873. wl=$lt_prog_compiler_wl_CXX
  12874. pic_flag=$lt_prog_compiler_pic_CXX
  12875. compiler_flags=-v
  12876. linker_flags=-v
  12877. verstring=
  12878. output_objdir=.
  12879. libname=conftest
  12880. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12881. allow_undefined_flag_CXX=
  12882. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12883. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12884. ac_status=$?
  12885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12886. test $ac_status = 0; }
  12887. then
  12888. lt_cv_archive_cmds_need_lc_CXX=no
  12889. else
  12890. lt_cv_archive_cmds_need_lc_CXX=yes
  12891. fi
  12892. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12893. else
  12894. cat conftest.err 1>&5
  12895. fi
  12896. $RM conftest*
  12897. fi
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12899. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12900. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12901. ;;
  12902. esac
  12903. fi
  12904. ;;
  12905. esac
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12907. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12908. library_names_spec=
  12909. libname_spec='lib$name'
  12910. soname_spec=
  12911. shrext_cmds=".so"
  12912. postinstall_cmds=
  12913. postuninstall_cmds=
  12914. finish_cmds=
  12915. finish_eval=
  12916. shlibpath_var=
  12917. shlibpath_overrides_runpath=unknown
  12918. version_type=none
  12919. dynamic_linker="$host_os ld.so"
  12920. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12921. need_lib_prefix=unknown
  12922. hardcode_into_libs=no
  12923. # when you set need_version to no, make sure it does not cause -set_version
  12924. # flags to be left without arguments
  12925. need_version=unknown
  12926. case $host_os in
  12927. aix3*)
  12928. version_type=linux # correct to gnu/linux during the next big refactor
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12930. shlibpath_var=LIBPATH
  12931. # AIX 3 has no versioning support, so we append a major version to the name.
  12932. soname_spec='${libname}${release}${shared_ext}$major'
  12933. ;;
  12934. aix[4-9]*)
  12935. version_type=linux # correct to gnu/linux during the next big refactor
  12936. need_lib_prefix=no
  12937. need_version=no
  12938. hardcode_into_libs=yes
  12939. if test "$host_cpu" = ia64; then
  12940. # AIX 5 supports IA64
  12941. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12942. shlibpath_var=LD_LIBRARY_PATH
  12943. else
  12944. # With GCC up to 2.95.x, collect2 would create an import file
  12945. # for dependence libraries. The import file would start with
  12946. # the line `#! .'. This would cause the generated library to
  12947. # depend on `.', always an invalid library. This was fixed in
  12948. # development snapshots of GCC prior to 3.0.
  12949. case $host_os in
  12950. aix4 | aix4.[01] | aix4.[01].*)
  12951. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12952. echo ' yes '
  12953. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12954. :
  12955. else
  12956. can_build_shared=no
  12957. fi
  12958. ;;
  12959. esac
  12960. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12961. # soname into executable. Probably we can add versioning support to
  12962. # collect2, so additional links can be useful in future.
  12963. if test "$aix_use_runtimelinking" = yes; then
  12964. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12965. # instead of lib<name>.a to let people know that these are not
  12966. # typical AIX shared libraries.
  12967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12968. else
  12969. # We preserve .a as extension for shared libraries through AIX4.2
  12970. # and later when we are not doing run time linking.
  12971. library_names_spec='${libname}${release}.a $libname.a'
  12972. soname_spec='${libname}${release}${shared_ext}$major'
  12973. fi
  12974. shlibpath_var=LIBPATH
  12975. fi
  12976. ;;
  12977. amigaos*)
  12978. case $host_cpu in
  12979. powerpc)
  12980. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12981. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12983. ;;
  12984. m68k)
  12985. library_names_spec='$libname.ixlibrary $libname.a'
  12986. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12987. 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'
  12988. ;;
  12989. esac
  12990. ;;
  12991. beos*)
  12992. library_names_spec='${libname}${shared_ext}'
  12993. dynamic_linker="$host_os ld.so"
  12994. shlibpath_var=LIBRARY_PATH
  12995. ;;
  12996. bsdi[45]*)
  12997. version_type=linux # correct to gnu/linux during the next big refactor
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13002. shlibpath_var=LD_LIBRARY_PATH
  13003. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13004. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13005. # the default ld.so.conf also contains /usr/contrib/lib and
  13006. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13007. # libtool to hard-code these into programs
  13008. ;;
  13009. cygwin* | mingw* | pw32* | cegcc*)
  13010. version_type=windows
  13011. shrext_cmds=".dll"
  13012. need_version=no
  13013. need_lib_prefix=no
  13014. case $GCC,$cc_basename in
  13015. yes,*)
  13016. # gcc
  13017. library_names_spec='$libname.dll.a'
  13018. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13019. postinstall_cmds='base_file=`basename \${file}`~
  13020. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13021. dldir=$destdir/`dirname \$dlpath`~
  13022. test -d \$dldir || mkdir -p \$dldir~
  13023. $install_prog $dir/$dlname \$dldir/$dlname~
  13024. chmod a+x \$dldir/$dlname~
  13025. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13026. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13027. fi'
  13028. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13029. dlpath=$dir/\$dldll~
  13030. $RM \$dlpath'
  13031. shlibpath_overrides_runpath=yes
  13032. case $host_os in
  13033. cygwin*)
  13034. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13035. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13036. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13037. ;;
  13038. mingw* | cegcc*)
  13039. # MinGW DLLs use traditional 'lib' prefix
  13040. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13041. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13042. ;;
  13043. pw32*)
  13044. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13045. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13046. ;;
  13047. esac
  13048. dynamic_linker='Win32 ld.exe'
  13049. ;;
  13050. *,cl*)
  13051. # Native MSVC
  13052. libname_spec='$name'
  13053. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13054. library_names_spec='${libname}.dll.lib'
  13055. case $build_os in
  13056. mingw*)
  13057. sys_lib_search_path_spec=
  13058. lt_save_ifs=$IFS
  13059. IFS=';'
  13060. for lt_path in $LIB
  13061. do
  13062. IFS=$lt_save_ifs
  13063. # Let DOS variable expansion print the short 8.3 style file name.
  13064. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13065. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13066. done
  13067. IFS=$lt_save_ifs
  13068. # Convert to MSYS style.
  13069. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13070. ;;
  13071. cygwin*)
  13072. # Convert to unix form, then to dos form, then back to unix form
  13073. # but this time dos style (no spaces!) so that the unix form looks
  13074. # like /cygdrive/c/PROGRA~1:/cygdr...
  13075. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13076. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13077. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13078. ;;
  13079. *)
  13080. sys_lib_search_path_spec="$LIB"
  13081. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13082. # It is most probably a Windows format PATH.
  13083. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13084. else
  13085. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13086. fi
  13087. # FIXME: find the short name or the path components, as spaces are
  13088. # common. (e.g. "Program Files" -> "PROGRA~1")
  13089. ;;
  13090. esac
  13091. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13092. postinstall_cmds='base_file=`basename \${file}`~
  13093. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13094. dldir=$destdir/`dirname \$dlpath`~
  13095. test -d \$dldir || mkdir -p \$dldir~
  13096. $install_prog $dir/$dlname \$dldir/$dlname'
  13097. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13098. dlpath=$dir/\$dldll~
  13099. $RM \$dlpath'
  13100. shlibpath_overrides_runpath=yes
  13101. dynamic_linker='Win32 link.exe'
  13102. ;;
  13103. *)
  13104. # Assume MSVC wrapper
  13105. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13106. dynamic_linker='Win32 ld.exe'
  13107. ;;
  13108. esac
  13109. # FIXME: first we should search . and the directory the executable is in
  13110. shlibpath_var=PATH
  13111. ;;
  13112. darwin* | rhapsody*)
  13113. dynamic_linker="$host_os dyld"
  13114. version_type=darwin
  13115. need_lib_prefix=no
  13116. need_version=no
  13117. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13118. soname_spec='${libname}${release}${major}$shared_ext'
  13119. shlibpath_overrides_runpath=yes
  13120. shlibpath_var=DYLD_LIBRARY_PATH
  13121. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13122. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13123. ;;
  13124. dgux*)
  13125. version_type=linux # correct to gnu/linux during the next big refactor
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13129. soname_spec='${libname}${release}${shared_ext}$major'
  13130. shlibpath_var=LD_LIBRARY_PATH
  13131. ;;
  13132. freebsd* | dragonfly*)
  13133. # DragonFly does not have aout. When/if they implement a new
  13134. # versioning mechanism, adjust this.
  13135. if test -x /usr/bin/objformat; then
  13136. objformat=`/usr/bin/objformat`
  13137. else
  13138. case $host_os in
  13139. freebsd[23].*) objformat=aout ;;
  13140. *) objformat=elf ;;
  13141. esac
  13142. fi
  13143. version_type=freebsd-$objformat
  13144. case $version_type in
  13145. freebsd-elf*)
  13146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13147. need_version=no
  13148. need_lib_prefix=no
  13149. ;;
  13150. freebsd-*)
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13152. need_version=yes
  13153. ;;
  13154. esac
  13155. shlibpath_var=LD_LIBRARY_PATH
  13156. case $host_os in
  13157. freebsd2.*)
  13158. shlibpath_overrides_runpath=yes
  13159. ;;
  13160. freebsd3.[01]* | freebsdelf3.[01]*)
  13161. shlibpath_overrides_runpath=yes
  13162. hardcode_into_libs=yes
  13163. ;;
  13164. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13165. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13166. shlibpath_overrides_runpath=no
  13167. hardcode_into_libs=yes
  13168. ;;
  13169. *) # from 4.6 on, and DragonFly
  13170. shlibpath_overrides_runpath=yes
  13171. hardcode_into_libs=yes
  13172. ;;
  13173. esac
  13174. ;;
  13175. gnu*)
  13176. version_type=linux # correct to gnu/linux during the next big refactor
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13180. soname_spec='${libname}${release}${shared_ext}$major'
  13181. shlibpath_var=LD_LIBRARY_PATH
  13182. shlibpath_overrides_runpath=no
  13183. hardcode_into_libs=yes
  13184. ;;
  13185. haiku*)
  13186. version_type=linux # correct to gnu/linux during the next big refactor
  13187. need_lib_prefix=no
  13188. need_version=no
  13189. dynamic_linker="$host_os runtime_loader"
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. shlibpath_var=LIBRARY_PATH
  13193. shlibpath_overrides_runpath=yes
  13194. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13195. hardcode_into_libs=yes
  13196. ;;
  13197. hpux9* | hpux10* | hpux11*)
  13198. # Give a soname corresponding to the major version so that dld.sl refuses to
  13199. # link against other versions.
  13200. version_type=sunos
  13201. need_lib_prefix=no
  13202. need_version=no
  13203. case $host_cpu in
  13204. ia64*)
  13205. shrext_cmds='.so'
  13206. hardcode_into_libs=yes
  13207. dynamic_linker="$host_os dld.so"
  13208. shlibpath_var=LD_LIBRARY_PATH
  13209. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13211. soname_spec='${libname}${release}${shared_ext}$major'
  13212. if test "X$HPUX_IA64_MODE" = X32; then
  13213. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13214. else
  13215. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13216. fi
  13217. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13218. ;;
  13219. hppa*64*)
  13220. shrext_cmds='.sl'
  13221. hardcode_into_libs=yes
  13222. dynamic_linker="$host_os dld.sl"
  13223. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13224. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13226. soname_spec='${libname}${release}${shared_ext}$major'
  13227. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13228. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13229. ;;
  13230. *)
  13231. shrext_cmds='.sl'
  13232. dynamic_linker="$host_os dld.sl"
  13233. shlibpath_var=SHLIB_PATH
  13234. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13236. soname_spec='${libname}${release}${shared_ext}$major'
  13237. ;;
  13238. esac
  13239. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13240. postinstall_cmds='chmod 555 $lib'
  13241. # or fails outright, so override atomically:
  13242. install_override_mode=555
  13243. ;;
  13244. interix[3-9]*)
  13245. version_type=linux # correct to gnu/linux during the next big refactor
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13251. shlibpath_var=LD_LIBRARY_PATH
  13252. shlibpath_overrides_runpath=no
  13253. hardcode_into_libs=yes
  13254. ;;
  13255. irix5* | irix6* | nonstopux*)
  13256. case $host_os in
  13257. nonstopux*) version_type=nonstopux ;;
  13258. *)
  13259. if test "$lt_cv_prog_gnu_ld" = yes; then
  13260. version_type=linux # correct to gnu/linux during the next big refactor
  13261. else
  13262. version_type=irix
  13263. fi ;;
  13264. esac
  13265. need_lib_prefix=no
  13266. need_version=no
  13267. soname_spec='${libname}${release}${shared_ext}$major'
  13268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13269. case $host_os in
  13270. irix5* | nonstopux*)
  13271. libsuff= shlibsuff=
  13272. ;;
  13273. *)
  13274. case $LD in # libtool.m4 will add one of these switches to LD
  13275. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13276. libsuff= shlibsuff= libmagic=32-bit;;
  13277. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13278. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13279. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13280. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13281. *) libsuff= shlibsuff= libmagic=never-match;;
  13282. esac
  13283. ;;
  13284. esac
  13285. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13286. shlibpath_overrides_runpath=no
  13287. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13288. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13289. hardcode_into_libs=yes
  13290. ;;
  13291. # No shared lib support for Linux oldld, aout, or coff.
  13292. linux*oldld* | linux*aout* | linux*coff*)
  13293. dynamic_linker=no
  13294. ;;
  13295. # This must be glibc/ELF.
  13296. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13297. version_type=linux # correct to gnu/linux during the next big refactor
  13298. need_lib_prefix=no
  13299. need_version=no
  13300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13301. soname_spec='${libname}${release}${shared_ext}$major'
  13302. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13303. shlibpath_var=LD_LIBRARY_PATH
  13304. shlibpath_overrides_runpath=no
  13305. # Some binutils ld are patched to set DT_RUNPATH
  13306. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13307. $as_echo_n "(cached) " >&6
  13308. else
  13309. lt_cv_shlibpath_overrides_runpath=no
  13310. save_LDFLAGS=$LDFLAGS
  13311. save_libdir=$libdir
  13312. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13313. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13315. /* end confdefs.h. */
  13316. int
  13317. main ()
  13318. {
  13319. ;
  13320. return 0;
  13321. }
  13322. _ACEOF
  13323. if ac_fn_cxx_try_link "$LINENO"; then :
  13324. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13325. lt_cv_shlibpath_overrides_runpath=yes
  13326. fi
  13327. fi
  13328. rm -f core conftest.err conftest.$ac_objext \
  13329. conftest$ac_exeext conftest.$ac_ext
  13330. LDFLAGS=$save_LDFLAGS
  13331. libdir=$save_libdir
  13332. fi
  13333. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13334. # This implies no fast_install, which is unacceptable.
  13335. # Some rework will be needed to allow for fast_install
  13336. # before this can be enabled.
  13337. hardcode_into_libs=yes
  13338. # Append ld.so.conf contents to the search path
  13339. if test -f /etc/ld.so.conf; then
  13340. 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' ' '`
  13341. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13342. fi
  13343. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13344. # powerpc, because MkLinux only supported shared libraries with the
  13345. # GNU dynamic linker. Since this was broken with cross compilers,
  13346. # most powerpc-linux boxes support dynamic linking these days and
  13347. # people can always --disable-shared, the test was removed, and we
  13348. # assume the GNU/Linux dynamic linker is in use.
  13349. dynamic_linker='GNU/Linux ld.so'
  13350. ;;
  13351. netbsd*)
  13352. version_type=sunos
  13353. need_lib_prefix=no
  13354. need_version=no
  13355. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13357. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13358. dynamic_linker='NetBSD (a.out) ld.so'
  13359. else
  13360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13361. soname_spec='${libname}${release}${shared_ext}$major'
  13362. dynamic_linker='NetBSD ld.elf_so'
  13363. fi
  13364. shlibpath_var=LD_LIBRARY_PATH
  13365. shlibpath_overrides_runpath=yes
  13366. hardcode_into_libs=yes
  13367. ;;
  13368. newsos6)
  13369. version_type=linux # correct to gnu/linux during the next big refactor
  13370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13371. shlibpath_var=LD_LIBRARY_PATH
  13372. shlibpath_overrides_runpath=yes
  13373. ;;
  13374. *nto* | *qnx*)
  13375. version_type=qnx
  13376. need_lib_prefix=no
  13377. need_version=no
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13379. soname_spec='${libname}${release}${shared_ext}$major'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=no
  13382. hardcode_into_libs=yes
  13383. dynamic_linker='ldqnx.so'
  13384. ;;
  13385. openbsd*)
  13386. version_type=sunos
  13387. sys_lib_dlsearch_path_spec="/usr/lib"
  13388. need_lib_prefix=no
  13389. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13390. case $host_os in
  13391. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13392. *) need_version=no ;;
  13393. esac
  13394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13395. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13398. case $host_os in
  13399. openbsd2.[89] | openbsd2.[89].*)
  13400. shlibpath_overrides_runpath=no
  13401. ;;
  13402. *)
  13403. shlibpath_overrides_runpath=yes
  13404. ;;
  13405. esac
  13406. else
  13407. shlibpath_overrides_runpath=yes
  13408. fi
  13409. ;;
  13410. os2*)
  13411. libname_spec='$name'
  13412. shrext_cmds=".dll"
  13413. need_lib_prefix=no
  13414. library_names_spec='$libname${shared_ext} $libname.a'
  13415. dynamic_linker='OS/2 ld.exe'
  13416. shlibpath_var=LIBPATH
  13417. ;;
  13418. osf3* | osf4* | osf5*)
  13419. version_type=osf
  13420. need_lib_prefix=no
  13421. need_version=no
  13422. soname_spec='${libname}${release}${shared_ext}$major'
  13423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13424. shlibpath_var=LD_LIBRARY_PATH
  13425. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13426. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13427. ;;
  13428. rdos*)
  13429. dynamic_linker=no
  13430. ;;
  13431. solaris*)
  13432. version_type=linux # correct to gnu/linux during the next big refactor
  13433. need_lib_prefix=no
  13434. need_version=no
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. soname_spec='${libname}${release}${shared_ext}$major'
  13437. shlibpath_var=LD_LIBRARY_PATH
  13438. shlibpath_overrides_runpath=yes
  13439. hardcode_into_libs=yes
  13440. # ldd complains unless libraries are executable
  13441. postinstall_cmds='chmod +x $lib'
  13442. ;;
  13443. sunos4*)
  13444. version_type=sunos
  13445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13446. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13447. shlibpath_var=LD_LIBRARY_PATH
  13448. shlibpath_overrides_runpath=yes
  13449. if test "$with_gnu_ld" = yes; then
  13450. need_lib_prefix=no
  13451. fi
  13452. need_version=yes
  13453. ;;
  13454. sysv4 | sysv4.3*)
  13455. version_type=linux # correct to gnu/linux during the next big refactor
  13456. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13457. soname_spec='${libname}${release}${shared_ext}$major'
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. case $host_vendor in
  13460. sni)
  13461. shlibpath_overrides_runpath=no
  13462. need_lib_prefix=no
  13463. runpath_var=LD_RUN_PATH
  13464. ;;
  13465. siemens)
  13466. need_lib_prefix=no
  13467. ;;
  13468. motorola)
  13469. need_lib_prefix=no
  13470. need_version=no
  13471. shlibpath_overrides_runpath=no
  13472. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13473. ;;
  13474. esac
  13475. ;;
  13476. sysv4*MP*)
  13477. if test -d /usr/nec ;then
  13478. version_type=linux # correct to gnu/linux during the next big refactor
  13479. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13480. soname_spec='$libname${shared_ext}.$major'
  13481. shlibpath_var=LD_LIBRARY_PATH
  13482. fi
  13483. ;;
  13484. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13485. version_type=freebsd-elf
  13486. need_lib_prefix=no
  13487. need_version=no
  13488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13489. soname_spec='${libname}${release}${shared_ext}$major'
  13490. shlibpath_var=LD_LIBRARY_PATH
  13491. shlibpath_overrides_runpath=yes
  13492. hardcode_into_libs=yes
  13493. if test "$with_gnu_ld" = yes; then
  13494. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13495. else
  13496. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13497. case $host_os in
  13498. sco3.2v5*)
  13499. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13500. ;;
  13501. esac
  13502. fi
  13503. sys_lib_dlsearch_path_spec='/usr/lib'
  13504. ;;
  13505. tpf*)
  13506. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13507. version_type=linux # correct to gnu/linux during the next big refactor
  13508. need_lib_prefix=no
  13509. need_version=no
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. shlibpath_var=LD_LIBRARY_PATH
  13512. shlibpath_overrides_runpath=no
  13513. hardcode_into_libs=yes
  13514. ;;
  13515. uts4*)
  13516. version_type=linux # correct to gnu/linux during the next big refactor
  13517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13518. soname_spec='${libname}${release}${shared_ext}$major'
  13519. shlibpath_var=LD_LIBRARY_PATH
  13520. ;;
  13521. *)
  13522. dynamic_linker=no
  13523. ;;
  13524. esac
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13526. $as_echo "$dynamic_linker" >&6; }
  13527. test "$dynamic_linker" = no && can_build_shared=no
  13528. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13529. if test "$GCC" = yes; then
  13530. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13531. fi
  13532. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13533. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13534. fi
  13535. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13536. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13537. fi
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13539. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13540. hardcode_action_CXX=
  13541. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13542. test -n "$runpath_var_CXX" ||
  13543. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13544. # We can hardcode non-existent directories.
  13545. if test "$hardcode_direct_CXX" != no &&
  13546. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13547. # have to relink, otherwise we might link with an installed library
  13548. # when we should be linking with a yet-to-be-installed one
  13549. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13550. test "$hardcode_minus_L_CXX" != no; then
  13551. # Linking always hardcodes the temporary library directory.
  13552. hardcode_action_CXX=relink
  13553. else
  13554. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13555. hardcode_action_CXX=immediate
  13556. fi
  13557. else
  13558. # We cannot hardcode anything, or else we can only hardcode existing
  13559. # directories.
  13560. hardcode_action_CXX=unsupported
  13561. fi
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13563. $as_echo "$hardcode_action_CXX" >&6; }
  13564. if test "$hardcode_action_CXX" = relink ||
  13565. test "$inherit_rpath_CXX" = yes; then
  13566. # Fast installation is not supported
  13567. enable_fast_install=no
  13568. elif test "$shlibpath_overrides_runpath" = yes ||
  13569. test "$enable_shared" = no; then
  13570. # Fast installation is not necessary
  13571. enable_fast_install=needless
  13572. fi
  13573. fi # test -n "$compiler"
  13574. CC=$lt_save_CC
  13575. CFLAGS=$lt_save_CFLAGS
  13576. LDCXX=$LD
  13577. LD=$lt_save_LD
  13578. GCC=$lt_save_GCC
  13579. with_gnu_ld=$lt_save_with_gnu_ld
  13580. lt_cv_path_LDCXX=$lt_cv_path_LD
  13581. lt_cv_path_LD=$lt_save_path_LD
  13582. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13583. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13584. fi # test "$_lt_caught_CXX_error" != yes
  13585. ac_ext=c
  13586. ac_cpp='$CPP $CPPFLAGS'
  13587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13590. # Find a good install program. We prefer a C program (faster),
  13591. # so one script is as good as another. But avoid the broken or
  13592. # incompatible versions:
  13593. # SysV /etc/install, /usr/sbin/install
  13594. # SunOS /usr/etc/install
  13595. # IRIX /sbin/install
  13596. # AIX /bin/install
  13597. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13598. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13599. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13600. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13601. # OS/2's system install, which has a completely different semantic
  13602. # ./install, which can be erroneously created by make from ./install.sh.
  13603. # Reject install programs that cannot install multiple files.
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13605. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13606. if test -z "$INSTALL"; then
  13607. if ${ac_cv_path_install+:} false; then :
  13608. $as_echo_n "(cached) " >&6
  13609. else
  13610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13611. for as_dir in $PATH
  13612. do
  13613. IFS=$as_save_IFS
  13614. test -z "$as_dir" && as_dir=.
  13615. # Account for people who put trailing slashes in PATH elements.
  13616. case $as_dir/ in #((
  13617. ./ | .// | /[cC]/* | \
  13618. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13619. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13620. /usr/ucb/* ) ;;
  13621. *)
  13622. # OSF1 and SCO ODT 3.0 have their own names for install.
  13623. # Don't use installbsd from OSF since it installs stuff as root
  13624. # by default.
  13625. for ac_prog in ginstall scoinst install; do
  13626. for ac_exec_ext in '' $ac_executable_extensions; do
  13627. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13628. if test $ac_prog = install &&
  13629. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13630. # AIX install. It has an incompatible calling convention.
  13631. :
  13632. elif test $ac_prog = install &&
  13633. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13634. # program-specific install script used by HP pwplus--don't use.
  13635. :
  13636. else
  13637. rm -rf conftest.one conftest.two conftest.dir
  13638. echo one > conftest.one
  13639. echo two > conftest.two
  13640. mkdir conftest.dir
  13641. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13642. test -s conftest.one && test -s conftest.two &&
  13643. test -s conftest.dir/conftest.one &&
  13644. test -s conftest.dir/conftest.two
  13645. then
  13646. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13647. break 3
  13648. fi
  13649. fi
  13650. fi
  13651. done
  13652. done
  13653. ;;
  13654. esac
  13655. done
  13656. IFS=$as_save_IFS
  13657. rm -rf conftest.one conftest.two conftest.dir
  13658. fi
  13659. if test "${ac_cv_path_install+set}" = set; then
  13660. INSTALL=$ac_cv_path_install
  13661. else
  13662. # As a last resort, use the slow shell script. Don't cache a
  13663. # value for INSTALL within a source directory, because that will
  13664. # break other packages using the cache if that directory is
  13665. # removed, or if the value is a relative name.
  13666. INSTALL=$ac_install_sh
  13667. fi
  13668. fi
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13670. $as_echo "$INSTALL" >&6; }
  13671. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13672. # It thinks the first close brace ends the variable substitution.
  13673. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13674. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13675. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13677. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13678. set x ${MAKE-make}
  13679. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13680. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13681. $as_echo_n "(cached) " >&6
  13682. else
  13683. cat >conftest.make <<\_ACEOF
  13684. SHELL = /bin/sh
  13685. all:
  13686. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13687. _ACEOF
  13688. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13689. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13690. *@@@%%%=?*=@@@%%%*)
  13691. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13692. *)
  13693. eval ac_cv_prog_make_${ac_make}_set=no;;
  13694. esac
  13695. rm -f conftest.make
  13696. fi
  13697. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13699. $as_echo "yes" >&6; }
  13700. SET_MAKE=
  13701. else
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13703. $as_echo "no" >&6; }
  13704. SET_MAKE="MAKE=${MAKE-make}"
  13705. fi
  13706. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13707. if test -n "$ac_tool_prefix"; then
  13708. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13709. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13711. $as_echo_n "checking for $ac_word... " >&6; }
  13712. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13713. $as_echo_n "(cached) " >&6
  13714. else
  13715. case $PKG_CONFIG in
  13716. [\\/]* | ?:[\\/]*)
  13717. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13718. ;;
  13719. *)
  13720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13721. for as_dir in $PATH
  13722. do
  13723. IFS=$as_save_IFS
  13724. test -z "$as_dir" && as_dir=.
  13725. for ac_exec_ext in '' $ac_executable_extensions; do
  13726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13727. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13729. break 2
  13730. fi
  13731. done
  13732. done
  13733. IFS=$as_save_IFS
  13734. ;;
  13735. esac
  13736. fi
  13737. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13738. if test -n "$PKG_CONFIG"; then
  13739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13740. $as_echo "$PKG_CONFIG" >&6; }
  13741. else
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13743. $as_echo "no" >&6; }
  13744. fi
  13745. fi
  13746. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13747. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13748. # Extract the first word of "pkg-config", so it can be a program name with args.
  13749. set dummy pkg-config; ac_word=$2
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13751. $as_echo_n "checking for $ac_word... " >&6; }
  13752. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13753. $as_echo_n "(cached) " >&6
  13754. else
  13755. case $ac_pt_PKG_CONFIG in
  13756. [\\/]* | ?:[\\/]*)
  13757. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13758. ;;
  13759. *)
  13760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13761. for as_dir in $PATH
  13762. do
  13763. IFS=$as_save_IFS
  13764. test -z "$as_dir" && as_dir=.
  13765. for ac_exec_ext in '' $ac_executable_extensions; do
  13766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13767. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13769. break 2
  13770. fi
  13771. done
  13772. done
  13773. IFS=$as_save_IFS
  13774. ;;
  13775. esac
  13776. fi
  13777. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13778. if test -n "$ac_pt_PKG_CONFIG"; then
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13780. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13781. else
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13783. $as_echo "no" >&6; }
  13784. fi
  13785. if test "x$ac_pt_PKG_CONFIG" = x; then
  13786. PKG_CONFIG=""
  13787. else
  13788. case $cross_compiling:$ac_tool_warned in
  13789. yes:)
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13792. ac_tool_warned=yes ;;
  13793. esac
  13794. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13795. fi
  13796. else
  13797. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13798. fi
  13799. fi
  13800. if test -n "$PKG_CONFIG"; then
  13801. _pkg_min_version=0.9.0
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13803. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13804. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13806. $as_echo "yes" >&6; }
  13807. else
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13809. $as_echo "no" >&6; }
  13810. PKG_CONFIG=""
  13811. fi
  13812. fi
  13813. case "$host" in
  13814. *-*-mingw32*)
  13815. # Except on msys, where make can't handle full pathnames (bug 1972)
  13816. ;;
  13817. *)
  13818. srcdir=`cd $srcdir && pwd`
  13819. ;;
  13820. esac
  13821. INCLUDE="-I$srcdir/include"
  13822. case "$host" in
  13823. *-*-nto-qnx*)
  13824. ;;
  13825. *)
  13826. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13827. ;;
  13828. esac
  13829. if test x$srcdir != x.; then
  13830. INCLUDE="-Iinclude $INCLUDE"
  13831. elif test -d .hg; then
  13832. as_fn_error $? "
  13833. *** When building from Mercurial you should configure and build in a
  13834. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13835. " "$LINENO" 5
  13836. fi
  13837. BASE_CFLAGS=""
  13838. BASE_LDFLAGS=""
  13839. case "$host" in
  13840. *-*-cygwin*)
  13841. # We build SDL on cygwin without the UNIX emulation layer
  13842. save_CFLAGS="$CFLAGS"
  13843. have_no_cygwin=no
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13845. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13846. CFLAGS="$save_CFLAGS -mno-cygwin"
  13847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13848. /* end confdefs.h. */
  13849. int
  13850. main ()
  13851. {
  13852. ;
  13853. return 0;
  13854. }
  13855. _ACEOF
  13856. if ac_fn_c_try_compile "$LINENO"; then :
  13857. have_no_cygwin=yes
  13858. fi
  13859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13861. $as_echo "$have_no_cygwin" >&6; }
  13862. CFLAGS="$save_CFLAGS"
  13863. if test x$have_no_cygwin = xyes; then
  13864. BASE_CFLAGS="-mno-cygwin"
  13865. BASE_LDFLAGS="-mno-cygwin"
  13866. fi
  13867. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13868. ;;
  13869. esac
  13870. # Uncomment the following line if you want to force SDL and applications
  13871. # built with it to be compiled for a particular architecture.
  13872. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13873. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13874. # The default optimization for SDL is -O3 (Bug #31)
  13875. if test "x$orig_CFLAGS" = x; then
  13876. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13877. fi
  13878. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13879. BUILD_LDFLAGS="$LDFLAGS"
  13880. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13881. ## These are common directories to find software packages
  13882. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13883. # if test -d $path/include; then
  13884. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13885. # fi
  13886. # if test -d $path/lib; then
  13887. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13888. # fi
  13889. #done
  13890. SDL_CFLAGS="$BASE_CFLAGS"
  13891. SDL_LIBS="-lSDL2"
  13892. if test "x$BASE_LDFLAGS" != x; then
  13893. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13894. fi
  13895. if test "x$EXTRA_CFLAGS" != x; then
  13896. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13897. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13898. fi
  13899. if test "x$EXTRA_LDFLAGS" != x; then
  13900. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13901. fi
  13902. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13903. find_lib()
  13904. {
  13905. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13906. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13907. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13908. if test "$cross_compiling" = yes; then
  13909. host_lib_path=""
  13910. else
  13911. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13912. fi
  13913. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13914. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13915. if test x$lib != x; then
  13916. echo $lib
  13917. return
  13918. fi
  13919. done
  13920. # Try again, this time allowing more than one version digit after the .so
  13921. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13922. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13923. if test x$lib != x; then
  13924. echo $lib
  13925. return
  13926. fi
  13927. done
  13928. }
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13930. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13931. if ${ac_cv_c_const+:} false; then :
  13932. $as_echo_n "(cached) " >&6
  13933. else
  13934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13935. /* end confdefs.h. */
  13936. int
  13937. main ()
  13938. {
  13939. #ifndef __cplusplus
  13940. /* Ultrix mips cc rejects this sort of thing. */
  13941. typedef int charset[2];
  13942. const charset cs = { 0, 0 };
  13943. /* SunOS 4.1.1 cc rejects this. */
  13944. char const *const *pcpcc;
  13945. char **ppc;
  13946. /* NEC SVR4.0.2 mips cc rejects this. */
  13947. struct point {int x, y;};
  13948. static struct point const zero = {0,0};
  13949. /* AIX XL C 1.02.0.0 rejects this.
  13950. It does not let you subtract one const X* pointer from another in
  13951. an arm of an if-expression whose if-part is not a constant
  13952. expression */
  13953. const char *g = "string";
  13954. pcpcc = &g + (g ? g-g : 0);
  13955. /* HPUX 7.0 cc rejects these. */
  13956. ++pcpcc;
  13957. ppc = (char**) pcpcc;
  13958. pcpcc = (char const *const *) ppc;
  13959. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13960. char tx;
  13961. char *t = &tx;
  13962. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13963. *t++ = 0;
  13964. if (s) return 0;
  13965. }
  13966. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13967. int x[] = {25, 17};
  13968. const int *foo = &x[0];
  13969. ++foo;
  13970. }
  13971. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13972. typedef const int *iptr;
  13973. iptr p = 0;
  13974. ++p;
  13975. }
  13976. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13977. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13978. struct s { int j; const int *ap[3]; } bx;
  13979. struct s *b = &bx; b->j = 5;
  13980. }
  13981. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13982. const int foo = 10;
  13983. if (!foo) return 0;
  13984. }
  13985. return !cs[0] && !zero.x;
  13986. #endif
  13987. ;
  13988. return 0;
  13989. }
  13990. _ACEOF
  13991. if ac_fn_c_try_compile "$LINENO"; then :
  13992. ac_cv_c_const=yes
  13993. else
  13994. ac_cv_c_const=no
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13999. $as_echo "$ac_cv_c_const" >&6; }
  14000. if test $ac_cv_c_const = no; then
  14001. $as_echo "#define const /**/" >>confdefs.h
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14004. $as_echo_n "checking for inline... " >&6; }
  14005. if ${ac_cv_c_inline+:} false; then :
  14006. $as_echo_n "(cached) " >&6
  14007. else
  14008. ac_cv_c_inline=no
  14009. for ac_kw in inline __inline__ __inline; do
  14010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14011. /* end confdefs.h. */
  14012. #ifndef __cplusplus
  14013. typedef int foo_t;
  14014. static $ac_kw foo_t static_foo () {return 0; }
  14015. $ac_kw foo_t foo () {return 0; }
  14016. #endif
  14017. _ACEOF
  14018. if ac_fn_c_try_compile "$LINENO"; then :
  14019. ac_cv_c_inline=$ac_kw
  14020. fi
  14021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14022. test "$ac_cv_c_inline" != no && break
  14023. done
  14024. fi
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14026. $as_echo "$ac_cv_c_inline" >&6; }
  14027. case $ac_cv_c_inline in
  14028. inline | yes) ;;
  14029. *)
  14030. case $ac_cv_c_inline in
  14031. no) ac_val=;;
  14032. *) ac_val=$ac_cv_c_inline;;
  14033. esac
  14034. cat >>confdefs.h <<_ACEOF
  14035. #ifndef __cplusplus
  14036. #define inline $ac_val
  14037. #endif
  14038. _ACEOF
  14039. ;;
  14040. esac
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14042. $as_echo_n "checking for working volatile... " >&6; }
  14043. if ${ac_cv_c_volatile+:} false; then :
  14044. $as_echo_n "(cached) " >&6
  14045. else
  14046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14047. /* end confdefs.h. */
  14048. int
  14049. main ()
  14050. {
  14051. volatile int x;
  14052. int * volatile y = (int *) 0;
  14053. return !x && !y;
  14054. ;
  14055. return 0;
  14056. }
  14057. _ACEOF
  14058. if ac_fn_c_try_compile "$LINENO"; then :
  14059. ac_cv_c_volatile=yes
  14060. else
  14061. ac_cv_c_volatile=no
  14062. fi
  14063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14064. fi
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14066. $as_echo "$ac_cv_c_volatile" >&6; }
  14067. if test $ac_cv_c_volatile = no; then
  14068. $as_echo "#define volatile /**/" >>confdefs.h
  14069. fi
  14070. # Check whether --enable-assertions was given.
  14071. if test "${enable_assertions+set}" = set; then :
  14072. enableval=$enable_assertions;
  14073. else
  14074. enable_assertions=auto
  14075. fi
  14076. case "$enable_assertions" in
  14077. auto) # Use optimization settings to determine assertion level
  14078. ;;
  14079. disabled)
  14080. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14081. ;;
  14082. release)
  14083. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14084. ;;
  14085. enabled)
  14086. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14087. ;;
  14088. paranoid)
  14089. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14090. ;;
  14091. *)
  14092. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14093. ;;
  14094. esac
  14095. # Check whether --enable-dependency-tracking was given.
  14096. if test "${enable_dependency_tracking+set}" = set; then :
  14097. enableval=$enable_dependency_tracking;
  14098. else
  14099. enable_dependency_tracking=yes
  14100. fi
  14101. if test x$enable_dependency_tracking = xyes; then
  14102. have_gcc_mmd_mt=no
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14104. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14106. /* end confdefs.h. */
  14107. #if !defined(__GNUC__) || __GNUC__ < 3
  14108. #error Dependency tracking requires GCC 3.0 or newer
  14109. #endif
  14110. int
  14111. main ()
  14112. {
  14113. ;
  14114. return 0;
  14115. }
  14116. _ACEOF
  14117. if ac_fn_c_try_compile "$LINENO"; then :
  14118. have_gcc_mmd_mt=yes
  14119. fi
  14120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14122. $as_echo "$have_gcc_mmd_mt" >&6; }
  14123. if test x$have_gcc_mmd_mt = xyes; then
  14124. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14125. fi
  14126. fi
  14127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14128. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14129. have_no_undefined=no
  14130. case "$host" in
  14131. *-*-openbsd*)
  14132. ;;
  14133. *)
  14134. save_LDFLAGS="$LDFLAGS"
  14135. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14137. /* end confdefs.h. */
  14138. int
  14139. main ()
  14140. {
  14141. ;
  14142. return 0;
  14143. }
  14144. _ACEOF
  14145. if ac_fn_c_try_link "$LINENO"; then :
  14146. have_no_undefined=yes
  14147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14148. fi
  14149. rm -f core conftest.err conftest.$ac_objext \
  14150. conftest$ac_exeext conftest.$ac_ext
  14151. LDFLAGS="$save_LDFLAGS"
  14152. ;;
  14153. esac
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14155. $as_echo "$have_no_undefined" >&6; }
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14157. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14158. have_dynamicbase=no
  14159. case "$host" in
  14160. *)
  14161. save_LDFLAGS="$LDFLAGS"
  14162. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14164. /* end confdefs.h. */
  14165. int
  14166. main ()
  14167. {
  14168. ;
  14169. return 0;
  14170. }
  14171. _ACEOF
  14172. if ac_fn_c_try_link "$LINENO"; then :
  14173. have_dynamicbase=yes
  14174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14175. fi
  14176. rm -f core conftest.err conftest.$ac_objext \
  14177. conftest$ac_exeext conftest.$ac_ext
  14178. LDFLAGS="$save_LDFLAGS"
  14179. ;;
  14180. esac
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14182. $as_echo "$have_dynamicbase" >&6; }
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14184. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14185. have_nxcompat=no
  14186. case "$host" in
  14187. *)
  14188. save_LDFLAGS="$LDFLAGS"
  14189. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14191. /* end confdefs.h. */
  14192. int
  14193. main ()
  14194. {
  14195. ;
  14196. return 0;
  14197. }
  14198. _ACEOF
  14199. if ac_fn_c_try_link "$LINENO"; then :
  14200. have_nxcompat=yes
  14201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14202. fi
  14203. rm -f core conftest.err conftest.$ac_objext \
  14204. conftest$ac_exeext conftest.$ac_ext
  14205. LDFLAGS="$save_LDFLAGS"
  14206. ;;
  14207. esac
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14209. $as_echo "$have_nxcompat" >&6; }
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14211. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14212. have_high_entropy_va=no
  14213. case "$host" in
  14214. *)
  14215. save_LDFLAGS="$LDFLAGS"
  14216. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. int
  14220. main ()
  14221. {
  14222. ;
  14223. return 0;
  14224. }
  14225. _ACEOF
  14226. if ac_fn_c_try_link "$LINENO"; then :
  14227. have_high_entropy_va=yes
  14228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14229. fi
  14230. rm -f core conftest.err conftest.$ac_objext \
  14231. conftest$ac_exeext conftest.$ac_ext
  14232. LDFLAGS="$save_LDFLAGS"
  14233. ;;
  14234. esac
  14235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14236. $as_echo "$have_high_entropy_va" >&6; }
  14237. # Check whether --enable-libc was given.
  14238. if test "${enable_libc+set}" = set; then :
  14239. enableval=$enable_libc;
  14240. else
  14241. enable_libc=yes
  14242. fi
  14243. if test x$enable_libc = xyes; then
  14244. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14246. $as_echo_n "checking for ANSI C header files... " >&6; }
  14247. if ${ac_cv_header_stdc+:} false; then :
  14248. $as_echo_n "(cached) " >&6
  14249. else
  14250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14251. /* end confdefs.h. */
  14252. #include <stdlib.h>
  14253. #include <stdarg.h>
  14254. #include <string.h>
  14255. #include <float.h>
  14256. int
  14257. main ()
  14258. {
  14259. ;
  14260. return 0;
  14261. }
  14262. _ACEOF
  14263. if ac_fn_c_try_compile "$LINENO"; then :
  14264. ac_cv_header_stdc=yes
  14265. else
  14266. ac_cv_header_stdc=no
  14267. fi
  14268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14269. if test $ac_cv_header_stdc = yes; then
  14270. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14272. /* end confdefs.h. */
  14273. #include <string.h>
  14274. _ACEOF
  14275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14276. $EGREP "memchr" >/dev/null 2>&1; then :
  14277. else
  14278. ac_cv_header_stdc=no
  14279. fi
  14280. rm -f conftest*
  14281. fi
  14282. if test $ac_cv_header_stdc = yes; then
  14283. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14285. /* end confdefs.h. */
  14286. #include <stdlib.h>
  14287. _ACEOF
  14288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14289. $EGREP "free" >/dev/null 2>&1; then :
  14290. else
  14291. ac_cv_header_stdc=no
  14292. fi
  14293. rm -f conftest*
  14294. fi
  14295. if test $ac_cv_header_stdc = yes; then
  14296. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14297. if test "$cross_compiling" = yes; then :
  14298. :
  14299. else
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. #include <ctype.h>
  14303. #include <stdlib.h>
  14304. #if ((' ' & 0x0FF) == 0x020)
  14305. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14306. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14307. #else
  14308. # define ISLOWER(c) \
  14309. (('a' <= (c) && (c) <= 'i') \
  14310. || ('j' <= (c) && (c) <= 'r') \
  14311. || ('s' <= (c) && (c) <= 'z'))
  14312. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14313. #endif
  14314. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14315. int
  14316. main ()
  14317. {
  14318. int i;
  14319. for (i = 0; i < 256; i++)
  14320. if (XOR (islower (i), ISLOWER (i))
  14321. || toupper (i) != TOUPPER (i))
  14322. return 2;
  14323. return 0;
  14324. }
  14325. _ACEOF
  14326. if ac_fn_c_try_run "$LINENO"; then :
  14327. else
  14328. ac_cv_header_stdc=no
  14329. fi
  14330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14331. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14332. fi
  14333. fi
  14334. fi
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14336. $as_echo "$ac_cv_header_stdc" >&6; }
  14337. if test $ac_cv_header_stdc = yes; then
  14338. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14339. fi
  14340. 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
  14341. do :
  14342. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14343. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14344. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14345. cat >>confdefs.h <<_ACEOF
  14346. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14347. _ACEOF
  14348. fi
  14349. done
  14350. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14351. if test "x$ac_cv_type_size_t" = xyes; then :
  14352. else
  14353. cat >>confdefs.h <<_ACEOF
  14354. #define size_t unsigned int
  14355. _ACEOF
  14356. fi
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14358. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14359. if ${ac_cv_define_M_PI+:} false; then :
  14360. $as_echo_n "(cached) " >&6
  14361. else
  14362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14363. /* end confdefs.h. */
  14364. #include <math.h>
  14365. #ifdef M_PI
  14366. YES_IS_DEFINED
  14367. #endif
  14368. _ACEOF
  14369. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14370. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14371. ac_cv_define_M_PI=yes
  14372. else
  14373. ac_cv_define_M_PI=no
  14374. fi
  14375. rm -f conftest*
  14376. fi
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14378. $as_echo "$ac_cv_define_M_PI" >&6; }
  14379. if test "$ac_cv_define_M_PI" = "yes" ; then
  14380. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14381. fi
  14382. case "$host" in
  14383. *-*-cygwin* | *-*-mingw32*)
  14384. ;;
  14385. *)
  14386. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14387. # for constant arguments. Useless!
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14389. $as_echo_n "checking for working alloca.h... " >&6; }
  14390. if ${ac_cv_working_alloca_h+:} false; then :
  14391. $as_echo_n "(cached) " >&6
  14392. else
  14393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14394. /* end confdefs.h. */
  14395. #include <alloca.h>
  14396. int
  14397. main ()
  14398. {
  14399. char *p = (char *) alloca (2 * sizeof (int));
  14400. if (p) return 0;
  14401. ;
  14402. return 0;
  14403. }
  14404. _ACEOF
  14405. if ac_fn_c_try_link "$LINENO"; then :
  14406. ac_cv_working_alloca_h=yes
  14407. else
  14408. ac_cv_working_alloca_h=no
  14409. fi
  14410. rm -f core conftest.err conftest.$ac_objext \
  14411. conftest$ac_exeext conftest.$ac_ext
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14414. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14415. if test $ac_cv_working_alloca_h = yes; then
  14416. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14417. fi
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14419. $as_echo_n "checking for alloca... " >&6; }
  14420. if ${ac_cv_func_alloca_works+:} false; then :
  14421. $as_echo_n "(cached) " >&6
  14422. else
  14423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14424. /* end confdefs.h. */
  14425. #ifdef __GNUC__
  14426. # define alloca __builtin_alloca
  14427. #else
  14428. # ifdef _MSC_VER
  14429. # include <malloc.h>
  14430. # define alloca _alloca
  14431. # else
  14432. # ifdef HAVE_ALLOCA_H
  14433. # include <alloca.h>
  14434. # else
  14435. # ifdef _AIX
  14436. #pragma alloca
  14437. # else
  14438. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14439. void *alloca (size_t);
  14440. # endif
  14441. # endif
  14442. # endif
  14443. # endif
  14444. #endif
  14445. int
  14446. main ()
  14447. {
  14448. char *p = (char *) alloca (1);
  14449. if (p) return 0;
  14450. ;
  14451. return 0;
  14452. }
  14453. _ACEOF
  14454. if ac_fn_c_try_link "$LINENO"; then :
  14455. ac_cv_func_alloca_works=yes
  14456. else
  14457. ac_cv_func_alloca_works=no
  14458. fi
  14459. rm -f core conftest.err conftest.$ac_objext \
  14460. conftest$ac_exeext conftest.$ac_ext
  14461. fi
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14463. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14464. if test $ac_cv_func_alloca_works = yes; then
  14465. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14466. else
  14467. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14468. # that cause trouble. Some versions do not even contain alloca or
  14469. # contain a buggy version. If you still want to use their alloca,
  14470. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14471. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14472. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14474. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14475. if ${ac_cv_os_cray+:} false; then :
  14476. $as_echo_n "(cached) " >&6
  14477. else
  14478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14479. /* end confdefs.h. */
  14480. #if defined CRAY && ! defined CRAY2
  14481. webecray
  14482. #else
  14483. wenotbecray
  14484. #endif
  14485. _ACEOF
  14486. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14487. $EGREP "webecray" >/dev/null 2>&1; then :
  14488. ac_cv_os_cray=yes
  14489. else
  14490. ac_cv_os_cray=no
  14491. fi
  14492. rm -f conftest*
  14493. fi
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14495. $as_echo "$ac_cv_os_cray" >&6; }
  14496. if test $ac_cv_os_cray = yes; then
  14497. for ac_func in _getb67 GETB67 getb67; do
  14498. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14499. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14500. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14501. cat >>confdefs.h <<_ACEOF
  14502. #define CRAY_STACKSEG_END $ac_func
  14503. _ACEOF
  14504. break
  14505. fi
  14506. done
  14507. fi
  14508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14509. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14510. if ${ac_cv_c_stack_direction+:} false; then :
  14511. $as_echo_n "(cached) " >&6
  14512. else
  14513. if test "$cross_compiling" = yes; then :
  14514. ac_cv_c_stack_direction=0
  14515. else
  14516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14517. /* end confdefs.h. */
  14518. $ac_includes_default
  14519. int
  14520. find_stack_direction (int *addr, int depth)
  14521. {
  14522. int dir, dummy = 0;
  14523. if (! addr)
  14524. addr = &dummy;
  14525. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14526. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14527. return dir + dummy;
  14528. }
  14529. int
  14530. main (int argc, char **argv)
  14531. {
  14532. return find_stack_direction (0, argc + !argv + 20) < 0;
  14533. }
  14534. _ACEOF
  14535. if ac_fn_c_try_run "$LINENO"; then :
  14536. ac_cv_c_stack_direction=1
  14537. else
  14538. ac_cv_c_stack_direction=-1
  14539. fi
  14540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14542. fi
  14543. fi
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14545. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14546. cat >>confdefs.h <<_ACEOF
  14547. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14548. _ACEOF
  14549. fi
  14550. ;;
  14551. esac
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14553. $as_echo_n "checking for working memcmp... " >&6; }
  14554. if ${ac_cv_func_memcmp_working+:} false; then :
  14555. $as_echo_n "(cached) " >&6
  14556. else
  14557. if test "$cross_compiling" = yes; then :
  14558. ac_cv_func_memcmp_working=no
  14559. else
  14560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14561. /* end confdefs.h. */
  14562. $ac_includes_default
  14563. int
  14564. main ()
  14565. {
  14566. /* Some versions of memcmp are not 8-bit clean. */
  14567. char c0 = '\100', c1 = '\200', c2 = '\201';
  14568. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14569. return 1;
  14570. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14571. or more and with at least one buffer not starting on a 4-byte boundary.
  14572. William Lewis provided this test program. */
  14573. {
  14574. char foo[21];
  14575. char bar[21];
  14576. int i;
  14577. for (i = 0; i < 4; i++)
  14578. {
  14579. char *a = foo + i;
  14580. char *b = bar + i;
  14581. strcpy (a, "--------01111111");
  14582. strcpy (b, "--------10000000");
  14583. if (memcmp (a, b, 16) >= 0)
  14584. return 1;
  14585. }
  14586. return 0;
  14587. }
  14588. ;
  14589. return 0;
  14590. }
  14591. _ACEOF
  14592. if ac_fn_c_try_run "$LINENO"; then :
  14593. ac_cv_func_memcmp_working=yes
  14594. else
  14595. ac_cv_func_memcmp_working=no
  14596. fi
  14597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14599. fi
  14600. fi
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14602. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14603. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14604. *" memcmp.$ac_objext "* ) ;;
  14605. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14606. ;;
  14607. esac
  14608. if test x$ac_cv_func_memcmp_working = xyes; then
  14609. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14610. fi
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14612. $as_echo_n "checking for working strtod... " >&6; }
  14613. if ${ac_cv_func_strtod+:} false; then :
  14614. $as_echo_n "(cached) " >&6
  14615. else
  14616. if test "$cross_compiling" = yes; then :
  14617. ac_cv_func_strtod=no
  14618. else
  14619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14620. /* end confdefs.h. */
  14621. $ac_includes_default
  14622. #ifndef strtod
  14623. double strtod ();
  14624. #endif
  14625. int
  14626. main()
  14627. {
  14628. {
  14629. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14630. char *string = " +69";
  14631. char *term;
  14632. double value;
  14633. value = strtod (string, &term);
  14634. if (value != 69 || term != (string + 4))
  14635. return 1;
  14636. }
  14637. {
  14638. /* Under Solaris 2.4, strtod returns the wrong value for the
  14639. terminating character under some conditions. */
  14640. char *string = "NaN";
  14641. char *term;
  14642. strtod (string, &term);
  14643. if (term != string && *(term - 1) == 0)
  14644. return 1;
  14645. }
  14646. return 0;
  14647. }
  14648. _ACEOF
  14649. if ac_fn_c_try_run "$LINENO"; then :
  14650. ac_cv_func_strtod=yes
  14651. else
  14652. ac_cv_func_strtod=no
  14653. fi
  14654. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14655. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14656. fi
  14657. fi
  14658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14659. $as_echo "$ac_cv_func_strtod" >&6; }
  14660. if test $ac_cv_func_strtod = no; then
  14661. case " $LIBOBJS " in
  14662. *" strtod.$ac_objext "* ) ;;
  14663. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14664. ;;
  14665. esac
  14666. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14667. if test "x$ac_cv_func_pow" = xyes; then :
  14668. fi
  14669. if test $ac_cv_func_pow = no; then
  14670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14671. $as_echo_n "checking for pow in -lm... " >&6; }
  14672. if ${ac_cv_lib_m_pow+:} false; then :
  14673. $as_echo_n "(cached) " >&6
  14674. else
  14675. ac_check_lib_save_LIBS=$LIBS
  14676. LIBS="-lm $LIBS"
  14677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14678. /* end confdefs.h. */
  14679. /* Override any GCC internal prototype to avoid an error.
  14680. Use char because int might match the return type of a GCC
  14681. builtin and then its argument prototype would still apply. */
  14682. #ifdef __cplusplus
  14683. extern "C"
  14684. #endif
  14685. char pow ();
  14686. int
  14687. main ()
  14688. {
  14689. return pow ();
  14690. ;
  14691. return 0;
  14692. }
  14693. _ACEOF
  14694. if ac_fn_c_try_link "$LINENO"; then :
  14695. ac_cv_lib_m_pow=yes
  14696. else
  14697. ac_cv_lib_m_pow=no
  14698. fi
  14699. rm -f core conftest.err conftest.$ac_objext \
  14700. conftest$ac_exeext conftest.$ac_ext
  14701. LIBS=$ac_check_lib_save_LIBS
  14702. fi
  14703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14704. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14705. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14706. POW_LIB=-lm
  14707. else
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14709. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14710. fi
  14711. fi
  14712. fi
  14713. if test x$ac_cv_func_strtod = xyes; then
  14714. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14715. fi
  14716. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14717. if test "x$ac_cv_func_mprotect" = xyes; then :
  14718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14719. /* end confdefs.h. */
  14720. #include <sys/types.h>
  14721. #include <sys/mman.h>
  14722. int
  14723. main ()
  14724. {
  14725. ;
  14726. return 0;
  14727. }
  14728. _ACEOF
  14729. if ac_fn_c_try_compile "$LINENO"; then :
  14730. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14731. fi
  14732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14733. fi
  14734. 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 wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp 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 elf_aux_info poll _Exit
  14735. do :
  14736. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14737. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14738. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14739. cat >>confdefs.h <<_ACEOF
  14740. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14741. _ACEOF
  14742. fi
  14743. done
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14745. $as_echo_n "checking for pow in -lm... " >&6; }
  14746. if ${ac_cv_lib_m_pow+:} false; then :
  14747. $as_echo_n "(cached) " >&6
  14748. else
  14749. ac_check_lib_save_LIBS=$LIBS
  14750. LIBS="-lm $LIBS"
  14751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14752. /* end confdefs.h. */
  14753. /* Override any GCC internal prototype to avoid an error.
  14754. Use char because int might match the return type of a GCC
  14755. builtin and then its argument prototype would still apply. */
  14756. #ifdef __cplusplus
  14757. extern "C"
  14758. #endif
  14759. char pow ();
  14760. int
  14761. main ()
  14762. {
  14763. return pow ();
  14764. ;
  14765. return 0;
  14766. }
  14767. _ACEOF
  14768. if ac_fn_c_try_link "$LINENO"; then :
  14769. ac_cv_lib_m_pow=yes
  14770. else
  14771. ac_cv_lib_m_pow=no
  14772. fi
  14773. rm -f core conftest.err conftest.$ac_objext \
  14774. conftest$ac_exeext conftest.$ac_ext
  14775. LIBS=$ac_check_lib_save_LIBS
  14776. fi
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14778. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14779. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14780. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14781. fi
  14782. 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
  14783. do :
  14784. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14785. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14786. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14787. cat >>confdefs.h <<_ACEOF
  14788. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14789. _ACEOF
  14790. fi
  14791. done
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14793. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14794. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14795. $as_echo_n "(cached) " >&6
  14796. else
  14797. ac_check_lib_save_LIBS=$LIBS
  14798. LIBS="-liconv $LIBS"
  14799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14800. /* end confdefs.h. */
  14801. /* Override any GCC internal prototype to avoid an error.
  14802. Use char because int might match the return type of a GCC
  14803. builtin and then its argument prototype would still apply. */
  14804. #ifdef __cplusplus
  14805. extern "C"
  14806. #endif
  14807. char iconv_open ();
  14808. int
  14809. main ()
  14810. {
  14811. return iconv_open ();
  14812. ;
  14813. return 0;
  14814. }
  14815. _ACEOF
  14816. if ac_fn_c_try_link "$LINENO"; then :
  14817. ac_cv_lib_iconv_iconv_open=yes
  14818. else
  14819. ac_cv_lib_iconv_iconv_open=no
  14820. fi
  14821. rm -f core conftest.err conftest.$ac_objext \
  14822. conftest$ac_exeext conftest.$ac_ext
  14823. LIBS=$ac_check_lib_save_LIBS
  14824. fi
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14826. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14827. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14828. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14829. fi
  14830. for ac_func in iconv
  14831. do :
  14832. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14833. if test "x$ac_cv_func_iconv" = xyes; then :
  14834. cat >>confdefs.h <<_ACEOF
  14835. #define HAVE_ICONV 1
  14836. _ACEOF
  14837. fi
  14838. done
  14839. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14840. "
  14841. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14842. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14843. fi
  14844. for ac_header in libunwind.h
  14845. do :
  14846. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14847. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14848. cat >>confdefs.h <<_ACEOF
  14849. #define HAVE_LIBUNWIND_H 1
  14850. _ACEOF
  14851. fi
  14852. done
  14853. fi
  14854. # Check whether --enable-gcc-atomics was given.
  14855. if test "${enable_gcc_atomics+set}" = set; then :
  14856. enableval=$enable_gcc_atomics;
  14857. else
  14858. enable_gcc_atomics=yes
  14859. fi
  14860. if test x$enable_gcc_atomics = xyes; then
  14861. have_gcc_atomics=no
  14862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14863. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14865. /* end confdefs.h. */
  14866. int
  14867. main ()
  14868. {
  14869. int a;
  14870. void *x, *y, *z;
  14871. __sync_lock_test_and_set(&a, 4);
  14872. __sync_lock_test_and_set(&x, y);
  14873. __sync_fetch_and_add(&a, 1);
  14874. __sync_bool_compare_and_swap(&a, 5, 10);
  14875. __sync_bool_compare_and_swap(&x, y, z);
  14876. ;
  14877. return 0;
  14878. }
  14879. _ACEOF
  14880. if ac_fn_c_try_link "$LINENO"; then :
  14881. have_gcc_atomics=yes
  14882. fi
  14883. rm -f core conftest.err conftest.$ac_objext \
  14884. conftest$ac_exeext conftest.$ac_ext
  14885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14886. $as_echo "$have_gcc_atomics" >&6; }
  14887. if test x$have_gcc_atomics = xyes; then
  14888. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14889. else
  14890. # See if we have the minimum operation needed for GCC atomics
  14891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14892. /* end confdefs.h. */
  14893. int
  14894. main ()
  14895. {
  14896. int a;
  14897. __sync_lock_test_and_set(&a, 1);
  14898. __sync_lock_release(&a);
  14899. ;
  14900. return 0;
  14901. }
  14902. _ACEOF
  14903. if ac_fn_c_try_link "$LINENO"; then :
  14904. have_gcc_sync_lock_test_and_set=yes
  14905. fi
  14906. rm -f core conftest.err conftest.$ac_objext \
  14907. conftest$ac_exeext conftest.$ac_ext
  14908. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14909. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14910. fi
  14911. fi
  14912. fi
  14913. # Standard C sources
  14914. SOURCES="$SOURCES $srcdir/src/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14921. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14922. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14926. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14934. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14935. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14936. # Check whether --enable-atomic was given.
  14937. if test "${enable_atomic+set}" = set; then :
  14938. enableval=$enable_atomic;
  14939. else
  14940. enable_atomic=yes
  14941. fi
  14942. if test x$enable_atomic != xyes; then
  14943. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14944. else
  14945. SUMMARY_modules="${SUMMARY_modules} atomic"
  14946. fi
  14947. # Check whether --enable-audio was given.
  14948. if test "${enable_audio+set}" = set; then :
  14949. enableval=$enable_audio;
  14950. else
  14951. enable_audio=yes
  14952. fi
  14953. if test x$enable_audio != xyes; then
  14954. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14955. else
  14956. SUMMARY_modules="${SUMMARY_modules} audio"
  14957. fi
  14958. # Check whether --enable-video was given.
  14959. if test "${enable_video+set}" = set; then :
  14960. enableval=$enable_video;
  14961. else
  14962. enable_video=yes
  14963. fi
  14964. if test x$enable_video != xyes; then
  14965. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14966. else
  14967. SUMMARY_modules="${SUMMARY_modules} video"
  14968. fi
  14969. # Check whether --enable-render was given.
  14970. if test "${enable_render+set}" = set; then :
  14971. enableval=$enable_render;
  14972. else
  14973. enable_render=yes
  14974. fi
  14975. if test x$enable_render != xyes; then
  14976. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14977. else
  14978. SUMMARY_modules="${SUMMARY_modules} render"
  14979. fi
  14980. # Check whether --enable-events was given.
  14981. if test "${enable_events+set}" = set; then :
  14982. enableval=$enable_events;
  14983. else
  14984. enable_events=yes
  14985. fi
  14986. if test x$enable_events != xyes; then
  14987. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14988. else
  14989. SUMMARY_modules="${SUMMARY_modules} events"
  14990. fi
  14991. # Check whether --enable-joystick was given.
  14992. if test "${enable_joystick+set}" = set; then :
  14993. enableval=$enable_joystick;
  14994. else
  14995. enable_joystick=yes
  14996. fi
  14997. if test x$enable_joystick != xyes; then
  14998. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14999. else
  15000. SUMMARY_modules="${SUMMARY_modules} joystick"
  15001. fi
  15002. # Check whether --enable-haptic was given.
  15003. if test "${enable_haptic+set}" = set; then :
  15004. enableval=$enable_haptic;
  15005. else
  15006. enable_haptic=yes
  15007. fi
  15008. if test x$enable_haptic != xyes; then
  15009. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15010. else
  15011. SUMMARY_modules="${SUMMARY_modules} haptic"
  15012. fi
  15013. # Check whether --enable-sensor was given.
  15014. if test "${enable_sensor+set}" = set; then :
  15015. enableval=$enable_sensor;
  15016. else
  15017. enable_sensor=yes
  15018. fi
  15019. if test x$enable_sensor != xyes; then
  15020. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15021. else
  15022. SUMMARY_modules="${SUMMARY_modules} sensor"
  15023. fi
  15024. # Check whether --enable-power was given.
  15025. if test "${enable_power+set}" = set; then :
  15026. enableval=$enable_power;
  15027. else
  15028. enable_power=yes
  15029. fi
  15030. if test x$enable_power != xyes; then
  15031. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15032. else
  15033. SUMMARY_modules="${SUMMARY_modules} power"
  15034. fi
  15035. # Check whether --enable-filesystem was given.
  15036. if test "${enable_filesystem+set}" = set; then :
  15037. enableval=$enable_filesystem;
  15038. else
  15039. enable_filesystem=yes
  15040. fi
  15041. if test x$enable_filesystem != xyes; then
  15042. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15043. else
  15044. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15045. fi
  15046. # Check whether --enable-threads was given.
  15047. if test "${enable_threads+set}" = set; then :
  15048. enableval=$enable_threads;
  15049. else
  15050. enable_threads=yes
  15051. fi
  15052. if test x$enable_threads != xyes; then
  15053. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15054. else
  15055. SUMMARY_modules="${SUMMARY_modules} threads"
  15056. fi
  15057. # Check whether --enable-timers was given.
  15058. if test "${enable_timers+set}" = set; then :
  15059. enableval=$enable_timers;
  15060. else
  15061. enable_timers=yes
  15062. fi
  15063. if test x$enable_timers != xyes; then
  15064. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15065. else
  15066. SUMMARY_modules="${SUMMARY_modules} timers"
  15067. fi
  15068. # Check whether --enable-file was given.
  15069. if test "${enable_file+set}" = set; then :
  15070. enableval=$enable_file;
  15071. else
  15072. enable_file=yes
  15073. fi
  15074. if test x$enable_file != xyes; then
  15075. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15076. else
  15077. SUMMARY_modules="${SUMMARY_modules} file"
  15078. fi
  15079. # Check whether --enable-loadso was given.
  15080. if test "${enable_loadso+set}" = set; then :
  15081. enableval=$enable_loadso;
  15082. else
  15083. enable_loadso=yes
  15084. fi
  15085. if test x$enable_loadso != xyes; then
  15086. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15087. else
  15088. SUMMARY_modules="${SUMMARY_modules} loadso"
  15089. fi
  15090. # Check whether --enable-cpuinfo was given.
  15091. if test "${enable_cpuinfo+set}" = set; then :
  15092. enableval=$enable_cpuinfo;
  15093. else
  15094. enable_cpuinfo=yes
  15095. fi
  15096. if test x$enable_cpuinfo != xyes; then
  15097. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15098. else
  15099. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15100. fi
  15101. # Check whether --enable-assembly was given.
  15102. if test "${enable_assembly+set}" = set; then :
  15103. enableval=$enable_assembly;
  15104. else
  15105. enable_assembly=yes
  15106. fi
  15107. if test x$enable_assembly = xyes; then
  15108. SUMMARY_modules="${SUMMARY_modules} assembly"
  15109. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15110. # Make sure that we don't generate floating point code that would
  15111. # cause illegal instruction exceptions on older processors
  15112. case "$host" in
  15113. *-*-darwin*)
  15114. # Don't need to worry about Apple hardware, it's all SSE capable
  15115. default_ssemath=yes
  15116. ;;
  15117. *64-*-*)
  15118. # x86 64-bit architectures all have SSE instructions
  15119. default_ssemath=yes
  15120. ;;
  15121. *)
  15122. default_ssemath=no
  15123. ;;
  15124. esac
  15125. # Check whether --enable-ssemath was given.
  15126. if test "${enable_ssemath+set}" = set; then :
  15127. enableval=$enable_ssemath;
  15128. else
  15129. enable_ssemath=$default_ssemath
  15130. fi
  15131. if test x$enable_ssemath = xno; then
  15132. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15133. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15134. fi
  15135. fi
  15136. # Check whether --enable-mmx was given.
  15137. if test "${enable_mmx+set}" = set; then :
  15138. enableval=$enable_mmx;
  15139. else
  15140. enable_mmx=yes
  15141. fi
  15142. if test x$enable_mmx = xyes; then
  15143. save_CFLAGS="$CFLAGS"
  15144. have_gcc_mmx=no
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15146. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15147. mmx_CFLAGS="-mmmx"
  15148. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15150. /* end confdefs.h. */
  15151. #ifdef __MINGW32__
  15152. #include <_mingw.h>
  15153. #ifdef __MINGW64_VERSION_MAJOR
  15154. #include <intrin.h>
  15155. #else
  15156. #include <mmintrin.h>
  15157. #endif
  15158. #else
  15159. #include <mmintrin.h>
  15160. #endif
  15161. #ifndef __MMX__
  15162. #error Assembler CPP flag not enabled
  15163. #endif
  15164. int
  15165. main ()
  15166. {
  15167. ;
  15168. return 0;
  15169. }
  15170. _ACEOF
  15171. if ac_fn_c_try_compile "$LINENO"; then :
  15172. have_gcc_mmx=yes
  15173. fi
  15174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15176. $as_echo "$have_gcc_mmx" >&6; }
  15177. CFLAGS="$save_CFLAGS"
  15178. if test x$have_gcc_mmx = xyes; then
  15179. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15180. SUMMARY_math="${SUMMARY_math} mmx"
  15181. fi
  15182. fi
  15183. # Check whether --enable-3dnow was given.
  15184. if test "${enable_3dnow+set}" = set; then :
  15185. enableval=$enable_3dnow;
  15186. else
  15187. enable_3dnow=yes
  15188. fi
  15189. if test x$enable_3dnow = xyes; then
  15190. save_CFLAGS="$CFLAGS"
  15191. have_gcc_3dnow=no
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15193. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15194. amd3dnow_CFLAGS="-m3dnow"
  15195. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15197. /* end confdefs.h. */
  15198. #include <mm3dnow.h>
  15199. #ifndef __3dNOW__
  15200. #error Assembler CPP flag not enabled
  15201. #endif
  15202. int
  15203. main ()
  15204. {
  15205. void *p = 0;
  15206. _m_prefetch(p);
  15207. ;
  15208. return 0;
  15209. }
  15210. _ACEOF
  15211. if ac_fn_c_try_link "$LINENO"; then :
  15212. have_gcc_3dnow=yes
  15213. fi
  15214. rm -f core conftest.err conftest.$ac_objext \
  15215. conftest$ac_exeext conftest.$ac_ext
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15217. $as_echo "$have_gcc_3dnow" >&6; }
  15218. CFLAGS="$save_CFLAGS"
  15219. if test x$have_gcc_3dnow = xyes; then
  15220. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15221. SUMMARY_math="${SUMMARY_math} 3dnow"
  15222. fi
  15223. fi
  15224. # Check whether --enable-sse was given.
  15225. if test "${enable_sse+set}" = set; then :
  15226. enableval=$enable_sse;
  15227. else
  15228. enable_sse=yes
  15229. fi
  15230. if test x$enable_sse = xyes; then
  15231. save_CFLAGS="$CFLAGS"
  15232. have_gcc_sse=no
  15233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15234. $as_echo_n "checking for GCC -msse option... " >&6; }
  15235. sse_CFLAGS="-msse"
  15236. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15238. /* end confdefs.h. */
  15239. #ifdef __MINGW32__
  15240. #include <_mingw.h>
  15241. #ifdef __MINGW64_VERSION_MAJOR
  15242. #include <intrin.h>
  15243. #else
  15244. #include <xmmintrin.h>
  15245. #endif
  15246. #else
  15247. #include <xmmintrin.h>
  15248. #endif
  15249. #ifndef __SSE__
  15250. #error Assembler CPP flag not enabled
  15251. #endif
  15252. int
  15253. main ()
  15254. {
  15255. ;
  15256. return 0;
  15257. }
  15258. _ACEOF
  15259. if ac_fn_c_try_compile "$LINENO"; then :
  15260. have_gcc_sse=yes
  15261. fi
  15262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15264. $as_echo "$have_gcc_sse" >&6; }
  15265. CFLAGS="$save_CFLAGS"
  15266. if test x$have_gcc_sse = xyes; then
  15267. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15268. SUMMARY_math="${SUMMARY_math} sse"
  15269. fi
  15270. fi
  15271. # Check whether --enable-sse2 was given.
  15272. if test "${enable_sse2+set}" = set; then :
  15273. enableval=$enable_sse2;
  15274. else
  15275. enable_sse2=$default_ssemath
  15276. fi
  15277. if test x$enable_sse2 = xyes; then
  15278. save_CFLAGS="$CFLAGS"
  15279. have_gcc_sse2=no
  15280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15281. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15282. sse2_CFLAGS="-msse2"
  15283. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15285. /* end confdefs.h. */
  15286. #ifdef __MINGW32__
  15287. #include <_mingw.h>
  15288. #ifdef __MINGW64_VERSION_MAJOR
  15289. #include <intrin.h>
  15290. #else
  15291. #include <emmintrin.h>
  15292. #endif
  15293. #else
  15294. #include <emmintrin.h>
  15295. #endif
  15296. #ifndef __SSE2__
  15297. #error Assembler CPP flag not enabled
  15298. #endif
  15299. int
  15300. main ()
  15301. {
  15302. ;
  15303. return 0;
  15304. }
  15305. _ACEOF
  15306. if ac_fn_c_try_compile "$LINENO"; then :
  15307. have_gcc_sse2=yes
  15308. fi
  15309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15311. $as_echo "$have_gcc_sse2" >&6; }
  15312. CFLAGS="$save_CFLAGS"
  15313. if test x$have_gcc_sse2 = xyes; then
  15314. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15315. SUMMARY_math="${SUMMARY_math} sse2"
  15316. fi
  15317. fi
  15318. # Check whether --enable-sse3 was given.
  15319. if test "${enable_sse3+set}" = set; then :
  15320. enableval=$enable_sse3;
  15321. else
  15322. enable_sse3=$default_ssemath
  15323. fi
  15324. if test x$enable_sse3 = xyes; then
  15325. save_CFLAGS="$CFLAGS"
  15326. have_gcc_sse3=no
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15328. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15329. sse3_CFLAGS="-msse3"
  15330. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15332. /* end confdefs.h. */
  15333. #ifdef __MINGW32__
  15334. #include <_mingw.h>
  15335. #ifdef __MINGW64_VERSION_MAJOR
  15336. #include <intrin.h>
  15337. #else
  15338. #include <pmmintrin.h>
  15339. #endif
  15340. #else
  15341. #include <pmmintrin.h>
  15342. #endif
  15343. #ifndef __SSE2__
  15344. #error Assembler CPP flag not enabled
  15345. #endif
  15346. int
  15347. main ()
  15348. {
  15349. ;
  15350. return 0;
  15351. }
  15352. _ACEOF
  15353. if ac_fn_c_try_compile "$LINENO"; then :
  15354. have_gcc_sse3=yes
  15355. fi
  15356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15358. $as_echo "$have_gcc_sse3" >&6; }
  15359. CFLAGS="$save_CFLAGS"
  15360. if test x$have_gcc_sse3 = xyes; then
  15361. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15362. SUMMARY_math="${SUMMARY_math} sse3"
  15363. fi
  15364. fi
  15365. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15366. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15367. have_immintrin_h_hdr=yes
  15368. else
  15369. have_immintrin_h_hdr=no
  15370. fi
  15371. if test x$have_immintrin_h_hdr = xyes; then
  15372. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15373. fi
  15374. # Check whether --enable-altivec was given.
  15375. if test "${enable_altivec+set}" = set; then :
  15376. enableval=$enable_altivec;
  15377. else
  15378. enable_altivec=yes
  15379. fi
  15380. if test x$enable_altivec = xyes; then
  15381. save_CFLAGS="$CFLAGS"
  15382. have_gcc_altivec=no
  15383. have_altivec_h_hdr=no
  15384. altivec_CFLAGS="-maltivec"
  15385. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15387. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15389. /* end confdefs.h. */
  15390. #include <altivec.h>
  15391. vector unsigned int vzero() {
  15392. return vec_splat_u32(0);
  15393. }
  15394. int
  15395. main ()
  15396. {
  15397. ;
  15398. return 0;
  15399. }
  15400. _ACEOF
  15401. if ac_fn_c_try_compile "$LINENO"; then :
  15402. have_gcc_altivec=yes
  15403. have_altivec_h_hdr=yes
  15404. fi
  15405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15407. $as_echo "$have_gcc_altivec" >&6; }
  15408. if test x$have_gcc_altivec = xno; then
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15410. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15412. /* end confdefs.h. */
  15413. vector unsigned int vzero() {
  15414. return vec_splat_u32(0);
  15415. }
  15416. int
  15417. main ()
  15418. {
  15419. ;
  15420. return 0;
  15421. }
  15422. _ACEOF
  15423. if ac_fn_c_try_compile "$LINENO"; then :
  15424. have_gcc_altivec=yes
  15425. fi
  15426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15428. $as_echo "$have_gcc_altivec" >&6; }
  15429. fi
  15430. if test x$have_gcc_altivec = xno; then
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15432. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15433. altivec_CFLAGS="-faltivec"
  15434. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15436. /* end confdefs.h. */
  15437. #include <altivec.h>
  15438. vector unsigned int vzero() {
  15439. return vec_splat_u32(0);
  15440. }
  15441. int
  15442. main ()
  15443. {
  15444. ;
  15445. return 0;
  15446. }
  15447. _ACEOF
  15448. if ac_fn_c_try_compile "$LINENO"; then :
  15449. have_gcc_altivec=yes
  15450. have_altivec_h_hdr=yes
  15451. fi
  15452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15454. $as_echo "$have_gcc_altivec" >&6; }
  15455. fi
  15456. if test x$have_gcc_altivec = xno; then
  15457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15458. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15460. /* end confdefs.h. */
  15461. vector unsigned int vzero() {
  15462. return vec_splat_u32(0);
  15463. }
  15464. int
  15465. main ()
  15466. {
  15467. ;
  15468. return 0;
  15469. }
  15470. _ACEOF
  15471. if ac_fn_c_try_compile "$LINENO"; then :
  15472. have_gcc_altivec=yes
  15473. fi
  15474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15476. $as_echo "$have_gcc_altivec" >&6; }
  15477. fi
  15478. CFLAGS="$save_CFLAGS"
  15479. if test x$have_gcc_altivec = xyes; then
  15480. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15481. if test x$have_altivec_h_hdr = xyes; then
  15482. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15483. fi
  15484. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15485. SUMMARY_math="${SUMMARY_math} altivec"
  15486. fi
  15487. fi
  15488. fi
  15489. CheckOSS()
  15490. {
  15491. # Check whether --enable-oss was given.
  15492. if test "${enable_oss+set}" = set; then :
  15493. enableval=$enable_oss;
  15494. else
  15495. enable_oss=maybe
  15496. fi
  15497. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15498. # use sndio instead. So on there, we default to disabled. You can force
  15499. # it on if you really want, though.
  15500. if test x$enable_oss = xmaybe; then
  15501. enable_oss=yes
  15502. case "$host" in
  15503. *-*-openbsd*)
  15504. enable_oss=no;;
  15505. esac
  15506. fi
  15507. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15509. $as_echo_n "checking for OSS audio support... " >&6; }
  15510. have_oss=no
  15511. if test x$have_oss != xyes; then
  15512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15513. /* end confdefs.h. */
  15514. #include <sys/soundcard.h>
  15515. int
  15516. main ()
  15517. {
  15518. int arg = SNDCTL_DSP_SETFRAGMENT;
  15519. ;
  15520. return 0;
  15521. }
  15522. _ACEOF
  15523. if ac_fn_c_try_compile "$LINENO"; then :
  15524. have_oss=yes
  15525. fi
  15526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15527. fi
  15528. if test x$have_oss != xyes; then
  15529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15530. /* end confdefs.h. */
  15531. #include <soundcard.h>
  15532. int
  15533. main ()
  15534. {
  15535. int arg = SNDCTL_DSP_SETFRAGMENT;
  15536. ;
  15537. return 0;
  15538. }
  15539. _ACEOF
  15540. if ac_fn_c_try_compile "$LINENO"; then :
  15541. have_oss=yes
  15542. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15543. fi
  15544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15545. fi
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15547. $as_echo "$have_oss" >&6; }
  15548. if test x$have_oss = xyes; then
  15549. SUMMARY_audio="${SUMMARY_audio} oss"
  15550. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15551. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15552. have_audio=yes
  15553. # We may need to link with ossaudio emulation library
  15554. case "$host" in
  15555. *-*-openbsd*|*-*-netbsd*)
  15556. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15557. esac
  15558. fi
  15559. fi
  15560. }
  15561. CheckALSA()
  15562. {
  15563. # Check whether --enable-alsa was given.
  15564. if test "${enable_alsa+set}" = set; then :
  15565. enableval=$enable_alsa;
  15566. else
  15567. enable_alsa=yes
  15568. fi
  15569. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15570. alsa_save_CFLAGS="$CFLAGS"
  15571. alsa_save_LDFLAGS="$LDFLAGS"
  15572. alsa_save_LIBS="$LIBS"
  15573. alsa_found=yes
  15574. # Check whether --with-alsa-prefix was given.
  15575. if test "${with_alsa_prefix+set}" = set; then :
  15576. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15577. else
  15578. alsa_prefix=""
  15579. fi
  15580. # Check whether --with-alsa-inc-prefix was given.
  15581. if test "${with_alsa_inc_prefix+set}" = set; then :
  15582. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15583. else
  15584. alsa_inc_prefix=""
  15585. fi
  15586. # Check whether --enable-alsatest was given.
  15587. if test "${enable_alsatest+set}" = set; then :
  15588. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15589. else
  15590. enable_alsatest=yes
  15591. fi
  15592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15593. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15594. if test "$alsa_inc_prefix" != "" ; then
  15595. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15596. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15597. fi
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15599. $as_echo "$ALSA_CFLAGS" >&6; }
  15600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15601. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15602. if test "$alsa_prefix" != "" ; then
  15603. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15604. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15605. fi
  15606. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15607. LIBS=`echo $LIBS | sed 's/-lm//'`
  15608. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15609. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15610. LIBS=`echo $LIBS | sed 's/ //'`
  15611. LIBS="$ALSA_LIBS $LIBS"
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15613. $as_echo "$ALSA_LIBS" >&6; }
  15614. min_alsa_version=1.0.11
  15615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15616. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15617. no_alsa=""
  15618. alsa_min_major_version=`echo $min_alsa_version | \
  15619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15620. alsa_min_minor_version=`echo $min_alsa_version | \
  15621. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15622. alsa_min_micro_version=`echo $min_alsa_version | \
  15623. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15624. ac_ext=c
  15625. ac_cpp='$CPP $CPPFLAGS'
  15626. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15627. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15628. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15630. /* end confdefs.h. */
  15631. #include <alsa/asoundlib.h>
  15632. int
  15633. main ()
  15634. {
  15635. /* ensure backward compatibility */
  15636. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15637. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15638. #endif
  15639. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15640. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15641. #endif
  15642. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15643. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15644. #endif
  15645. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15646. exit(0);
  15647. # else
  15648. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15649. # error not present
  15650. # endif
  15651. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15652. exit(0);
  15653. # else
  15654. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15655. # error not present
  15656. # endif
  15657. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15658. # error not present
  15659. # endif
  15660. # endif
  15661. # endif
  15662. exit(0);
  15663. ;
  15664. return 0;
  15665. }
  15666. _ACEOF
  15667. if ac_fn_c_try_compile "$LINENO"; then :
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15669. $as_echo "found." >&6; }
  15670. else
  15671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15672. $as_echo "not present." >&6; }
  15673. alsa_found=no
  15674. fi
  15675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15676. ac_ext=c
  15677. ac_cpp='$CPP $CPPFLAGS'
  15678. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15679. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15680. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15681. if test "x$enable_alsatest" = "xyes"; then
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15683. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15684. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15685. $as_echo_n "(cached) " >&6
  15686. else
  15687. ac_check_lib_save_LIBS=$LIBS
  15688. LIBS="-lasound $LIBS"
  15689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15690. /* end confdefs.h. */
  15691. /* Override any GCC internal prototype to avoid an error.
  15692. Use char because int might match the return type of a GCC
  15693. builtin and then its argument prototype would still apply. */
  15694. #ifdef __cplusplus
  15695. extern "C"
  15696. #endif
  15697. char snd_ctl_open ();
  15698. int
  15699. main ()
  15700. {
  15701. return snd_ctl_open ();
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. if ac_fn_c_try_link "$LINENO"; then :
  15707. ac_cv_lib_asound_snd_ctl_open=yes
  15708. else
  15709. ac_cv_lib_asound_snd_ctl_open=no
  15710. fi
  15711. rm -f core conftest.err conftest.$ac_objext \
  15712. conftest$ac_exeext conftest.$ac_ext
  15713. LIBS=$ac_check_lib_save_LIBS
  15714. fi
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15716. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15717. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15718. cat >>confdefs.h <<_ACEOF
  15719. #define HAVE_LIBASOUND 1
  15720. _ACEOF
  15721. LIBS="-lasound $LIBS"
  15722. else
  15723. alsa_found=no
  15724. fi
  15725. fi
  15726. if test "x$alsa_found" = "xyes" ; then
  15727. have_alsa=yes
  15728. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15729. LIBS=`echo $LIBS | sed 's/ //'`
  15730. LIBS="-lasound $LIBS"
  15731. fi
  15732. if test "x$alsa_found" = "xno" ; then
  15733. have_alsa=no
  15734. CFLAGS="$alsa_save_CFLAGS"
  15735. LDFLAGS="$alsa_save_LDFLAGS"
  15736. LIBS="$alsa_save_LIBS"
  15737. ALSA_CFLAGS=""
  15738. ALSA_LIBS=""
  15739. fi
  15740. # Restore all flags from before the ALSA detection runs
  15741. CFLAGS="$alsa_save_CFLAGS"
  15742. LDFLAGS="$alsa_save_LDFLAGS"
  15743. LIBS="$alsa_save_LIBS"
  15744. if test x$have_alsa = xyes; then
  15745. # Check whether --enable-alsa-shared was given.
  15746. if test "${enable_alsa_shared+set}" = set; then :
  15747. enableval=$enable_alsa_shared;
  15748. else
  15749. enable_alsa_shared=yes
  15750. fi
  15751. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15752. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15753. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15754. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15755. if test x$have_loadso != xyes && \
  15756. test x$enable_alsa_shared = xyes; then
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15758. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15759. fi
  15760. if test x$have_loadso = xyes && \
  15761. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15762. echo "-- dynamic libasound -> $alsa_lib"
  15763. cat >>confdefs.h <<_ACEOF
  15764. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15765. _ACEOF
  15766. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15767. else
  15768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15769. SUMMARY_audio="${SUMMARY_audio} alsa"
  15770. fi
  15771. have_audio=yes
  15772. fi
  15773. fi
  15774. }
  15775. CheckJACK()
  15776. {
  15777. # Check whether --enable-jack was given.
  15778. if test "${enable_jack+set}" = set; then :
  15779. enableval=$enable_jack;
  15780. else
  15781. enable_jack=yes
  15782. fi
  15783. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15784. pkg_failed=no
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15786. $as_echo_n "checking for JACK... " >&6; }
  15787. if test -n "$JACK_CFLAGS"; then
  15788. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15789. elif test -n "$PKG_CONFIG"; then
  15790. if test -n "$PKG_CONFIG" && \
  15791. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15792. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15793. ac_status=$?
  15794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15795. test $ac_status = 0; }; then
  15796. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15797. else
  15798. pkg_failed=yes
  15799. fi
  15800. else
  15801. pkg_failed=untried
  15802. fi
  15803. if test -n "$JACK_LIBS"; then
  15804. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15805. elif test -n "$PKG_CONFIG"; then
  15806. if test -n "$PKG_CONFIG" && \
  15807. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15808. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15809. ac_status=$?
  15810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15811. test $ac_status = 0; }; then
  15812. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15813. else
  15814. pkg_failed=yes
  15815. fi
  15816. else
  15817. pkg_failed=untried
  15818. fi
  15819. if test $pkg_failed = yes; then
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15821. $as_echo "no" >&6; }
  15822. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15823. _pkg_short_errors_supported=yes
  15824. else
  15825. _pkg_short_errors_supported=no
  15826. fi
  15827. if test $_pkg_short_errors_supported = yes; then
  15828. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15829. else
  15830. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15831. fi
  15832. # Put the nasty error message in config.log where it belongs
  15833. echo "$JACK_PKG_ERRORS" >&5
  15834. audio_jack=no
  15835. elif test $pkg_failed = untried; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15837. $as_echo "no" >&6; }
  15838. audio_jack=no
  15839. else
  15840. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15841. JACK_LIBS=$pkg_cv_JACK_LIBS
  15842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15843. $as_echo "yes" >&6; }
  15844. audio_jack=yes
  15845. fi
  15846. if test x$audio_jack = xyes; then
  15847. # Check whether --enable-jack-shared was given.
  15848. if test "${enable_jack_shared+set}" = set; then :
  15849. enableval=$enable_jack_shared;
  15850. else
  15851. enable_jack_shared=yes
  15852. fi
  15853. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15854. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15855. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15856. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15857. if test x$have_loadso != xyes && \
  15858. test x$enable_jack_shared = xyes; then
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15860. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15861. fi
  15862. if test x$have_loadso = xyes && \
  15863. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15864. echo "-- dynamic libjack -> $jack_lib"
  15865. cat >>confdefs.h <<_ACEOF
  15866. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15867. _ACEOF
  15868. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15869. case "$host" in
  15870. # On Solaris, jack must be linked deferred explicitly
  15871. # to prevent undefined symbol failures.
  15872. *-*-solaris*)
  15873. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15875. esac
  15876. else
  15877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15878. SUMMARY_audio="${SUMMARY_audio} jack"
  15879. fi
  15880. have_audio=yes
  15881. fi
  15882. fi
  15883. }
  15884. CheckESD()
  15885. {
  15886. # Check whether --enable-esd was given.
  15887. if test "${enable_esd+set}" = set; then :
  15888. enableval=$enable_esd;
  15889. else
  15890. enable_esd=yes
  15891. fi
  15892. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15893. # Check whether --with-esd-prefix was given.
  15894. if test "${with_esd_prefix+set}" = set; then :
  15895. withval=$with_esd_prefix; esd_prefix="$withval"
  15896. else
  15897. esd_prefix=""
  15898. fi
  15899. # Check whether --with-esd-exec-prefix was given.
  15900. if test "${with_esd_exec_prefix+set}" = set; then :
  15901. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15902. else
  15903. esd_exec_prefix=""
  15904. fi
  15905. # Check whether --enable-esdtest was given.
  15906. if test "${enable_esdtest+set}" = set; then :
  15907. enableval=$enable_esdtest;
  15908. else
  15909. enable_esdtest=yes
  15910. fi
  15911. if test x$esd_exec_prefix != x ; then
  15912. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15913. if test x${ESD_CONFIG+set} != xset ; then
  15914. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15915. fi
  15916. fi
  15917. if test x$esd_prefix != x ; then
  15918. esd_args="$esd_args --prefix=$esd_prefix"
  15919. if test x${ESD_CONFIG+set} != xset ; then
  15920. ESD_CONFIG=$esd_prefix/bin/esd-config
  15921. fi
  15922. fi
  15923. # Extract the first word of "esd-config", so it can be a program name with args.
  15924. set dummy esd-config; ac_word=$2
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15926. $as_echo_n "checking for $ac_word... " >&6; }
  15927. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15928. $as_echo_n "(cached) " >&6
  15929. else
  15930. case $ESD_CONFIG in
  15931. [\\/]* | ?:[\\/]*)
  15932. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15933. ;;
  15934. *)
  15935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15936. for as_dir in $PATH
  15937. do
  15938. IFS=$as_save_IFS
  15939. test -z "$as_dir" && as_dir=.
  15940. for ac_exec_ext in '' $ac_executable_extensions; do
  15941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15942. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15944. break 2
  15945. fi
  15946. done
  15947. done
  15948. IFS=$as_save_IFS
  15949. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15950. ;;
  15951. esac
  15952. fi
  15953. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15954. if test -n "$ESD_CONFIG"; then
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15956. $as_echo "$ESD_CONFIG" >&6; }
  15957. else
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15959. $as_echo "no" >&6; }
  15960. fi
  15961. min_esd_version=0.2.8
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15963. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15964. no_esd=""
  15965. if test "$ESD_CONFIG" = "no" ; then
  15966. no_esd=yes
  15967. else
  15968. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15969. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15970. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15971. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15972. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15973. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15974. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15975. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15976. if test "x$enable_esdtest" = "xyes" ; then
  15977. ac_save_CFLAGS="$CFLAGS"
  15978. ac_save_LIBS="$LIBS"
  15979. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15980. LIBS="$LIBS $ESD_LIBS"
  15981. rm -f conf.esdtest
  15982. if test "$cross_compiling" = yes; then :
  15983. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15984. else
  15985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15986. /* end confdefs.h. */
  15987. #include <stdio.h>
  15988. #include <stdlib.h>
  15989. #include <string.h>
  15990. #include <esd.h>
  15991. char*
  15992. my_strdup (char *str)
  15993. {
  15994. char *new_str;
  15995. if (str)
  15996. {
  15997. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15998. strcpy (new_str, str);
  15999. }
  16000. else
  16001. new_str = NULL;
  16002. return new_str;
  16003. }
  16004. int main ()
  16005. {
  16006. int major, minor, micro;
  16007. char *tmp_version;
  16008. system ("touch conf.esdtest");
  16009. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16010. tmp_version = my_strdup("$min_esd_version");
  16011. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16012. printf("%s, bad version string\n", "$min_esd_version");
  16013. exit(1);
  16014. }
  16015. if (($esd_major_version > major) ||
  16016. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16017. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16018. {
  16019. return 0;
  16020. }
  16021. else
  16022. {
  16023. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16024. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16025. printf("*** best to upgrade to the required version.\n");
  16026. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16027. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16028. printf("*** config.cache before re-running configure\n");
  16029. return 1;
  16030. }
  16031. }
  16032. _ACEOF
  16033. if ac_fn_c_try_run "$LINENO"; then :
  16034. else
  16035. no_esd=yes
  16036. fi
  16037. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16038. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16039. fi
  16040. CFLAGS="$ac_save_CFLAGS"
  16041. LIBS="$ac_save_LIBS"
  16042. fi
  16043. fi
  16044. if test "x$no_esd" = x ; then
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16046. $as_echo "yes" >&6; }
  16047. have_esd=yes
  16048. else
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16050. $as_echo "no" >&6; }
  16051. if test "$ESD_CONFIG" = "no" ; then
  16052. echo "*** The esd-config script installed by ESD could not be found"
  16053. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16054. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16055. echo "*** full path to esd-config."
  16056. else
  16057. if test -f conf.esdtest ; then
  16058. :
  16059. else
  16060. echo "*** Could not run ESD test program, checking why..."
  16061. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16062. LIBS="$LIBS $ESD_LIBS"
  16063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16064. /* end confdefs.h. */
  16065. #include <stdio.h>
  16066. #include <esd.h>
  16067. int
  16068. main ()
  16069. {
  16070. return 0;
  16071. ;
  16072. return 0;
  16073. }
  16074. _ACEOF
  16075. if ac_fn_c_try_link "$LINENO"; then :
  16076. echo "*** The test program compiled, but did not run. This usually means"
  16077. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16078. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16079. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16080. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16081. echo "*** is required on your system"
  16082. echo "***"
  16083. echo "*** If you have an old version installed, it is best to remove it, although"
  16084. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16085. else
  16086. echo "*** The test program failed to compile or link. See the file config.log for the"
  16087. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16088. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16089. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16090. fi
  16091. rm -f core conftest.err conftest.$ac_objext \
  16092. conftest$ac_exeext conftest.$ac_ext
  16093. CFLAGS="$ac_save_CFLAGS"
  16094. LIBS="$ac_save_LIBS"
  16095. fi
  16096. fi
  16097. ESD_CFLAGS=""
  16098. ESD_LIBS=""
  16099. have_esd=no
  16100. fi
  16101. rm -f conf.esdtest
  16102. if test x$have_esd = xyes; then
  16103. # Check whether --enable-esd-shared was given.
  16104. if test "${enable_esd_shared+set}" = set; then :
  16105. enableval=$enable_esd_shared;
  16106. else
  16107. enable_esd_shared=yes
  16108. fi
  16109. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16110. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16111. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16112. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16113. if test x$have_loadso != xyes && \
  16114. test x$enable_esd_shared = xyes; then
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16116. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16117. fi
  16118. if test x$have_loadso = xyes && \
  16119. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16120. echo "-- dynamic libesd -> $esd_lib"
  16121. cat >>confdefs.h <<_ACEOF
  16122. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16123. _ACEOF
  16124. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16125. else
  16126. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16127. SUMMARY_audio="${SUMMARY_audio} esd"
  16128. fi
  16129. have_audio=yes
  16130. fi
  16131. fi
  16132. }
  16133. CheckPulseAudio()
  16134. {
  16135. # Check whether --enable-pulseaudio was given.
  16136. if test "${enable_pulseaudio+set}" = set; then :
  16137. enableval=$enable_pulseaudio;
  16138. else
  16139. enable_pulseaudio=yes
  16140. fi
  16141. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16142. pkg_failed=no
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16144. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16145. if test -n "$PULSEAUDIO_CFLAGS"; then
  16146. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16147. elif test -n "$PKG_CONFIG"; then
  16148. if test -n "$PKG_CONFIG" && \
  16149. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16150. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16151. ac_status=$?
  16152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16153. test $ac_status = 0; }; then
  16154. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16155. else
  16156. pkg_failed=yes
  16157. fi
  16158. else
  16159. pkg_failed=untried
  16160. fi
  16161. if test -n "$PULSEAUDIO_LIBS"; then
  16162. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16163. elif test -n "$PKG_CONFIG"; then
  16164. if test -n "$PKG_CONFIG" && \
  16165. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16166. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16167. ac_status=$?
  16168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16169. test $ac_status = 0; }; then
  16170. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16171. else
  16172. pkg_failed=yes
  16173. fi
  16174. else
  16175. pkg_failed=untried
  16176. fi
  16177. if test $pkg_failed = yes; then
  16178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16179. $as_echo "no" >&6; }
  16180. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16181. _pkg_short_errors_supported=yes
  16182. else
  16183. _pkg_short_errors_supported=no
  16184. fi
  16185. if test $_pkg_short_errors_supported = yes; then
  16186. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16187. else
  16188. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16189. fi
  16190. # Put the nasty error message in config.log where it belongs
  16191. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16192. audio_pulseaudio=no
  16193. elif test $pkg_failed = untried; then
  16194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16195. $as_echo "no" >&6; }
  16196. audio_pulseaudio=no
  16197. else
  16198. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16199. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16201. $as_echo "yes" >&6; }
  16202. audio_pulseaudio=yes
  16203. fi
  16204. if test x$audio_pulseaudio = xyes; then
  16205. # Check whether --enable-pulseaudio-shared was given.
  16206. if test "${enable_pulseaudio_shared+set}" = set; then :
  16207. enableval=$enable_pulseaudio_shared;
  16208. else
  16209. enable_pulseaudio_shared=yes
  16210. fi
  16211. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16212. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16213. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16214. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16215. if test x$have_loadso != xyes && \
  16216. test x$enable_pulseaudio_shared = xyes; then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16218. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16219. fi
  16220. if test x$have_loadso = xyes && \
  16221. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16222. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16223. cat >>confdefs.h <<_ACEOF
  16224. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16225. _ACEOF
  16226. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16227. case "$host" in
  16228. # On Solaris, pulseaudio must be linked deferred explicitly
  16229. # to prevent undefined symbol failures.
  16230. *-*-solaris*)
  16231. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16233. esac
  16234. else
  16235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16236. SUMMARY_audio="${SUMMARY_audio} pulse"
  16237. fi
  16238. have_audio=yes
  16239. fi
  16240. fi
  16241. }
  16242. CheckARTSC()
  16243. {
  16244. # Check whether --enable-arts was given.
  16245. if test "${enable_arts+set}" = set; then :
  16246. enableval=$enable_arts;
  16247. else
  16248. enable_arts=yes
  16249. fi
  16250. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16251. # Extract the first word of "artsc-config", so it can be a program name with args.
  16252. set dummy artsc-config; ac_word=$2
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16254. $as_echo_n "checking for $ac_word... " >&6; }
  16255. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16256. $as_echo_n "(cached) " >&6
  16257. else
  16258. case $ARTSCONFIG in
  16259. [\\/]* | ?:[\\/]*)
  16260. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16261. ;;
  16262. *)
  16263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16264. for as_dir in $PATH
  16265. do
  16266. IFS=$as_save_IFS
  16267. test -z "$as_dir" && as_dir=.
  16268. for ac_exec_ext in '' $ac_executable_extensions; do
  16269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16270. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16272. break 2
  16273. fi
  16274. done
  16275. done
  16276. IFS=$as_save_IFS
  16277. ;;
  16278. esac
  16279. fi
  16280. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16281. if test -n "$ARTSCONFIG"; then
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16283. $as_echo "$ARTSCONFIG" >&6; }
  16284. else
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16286. $as_echo "no" >&6; }
  16287. fi
  16288. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16289. : # arts isn't installed
  16290. else
  16291. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16292. ARTS_LIBS=`$ARTSCONFIG --libs`
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16294. $as_echo_n "checking for aRts development environment... " >&6; }
  16295. audio_arts=no
  16296. save_CFLAGS="$CFLAGS"
  16297. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16299. /* end confdefs.h. */
  16300. #include <artsc.h>
  16301. int
  16302. main ()
  16303. {
  16304. arts_stream_t stream;
  16305. ;
  16306. return 0;
  16307. }
  16308. _ACEOF
  16309. if ac_fn_c_try_compile "$LINENO"; then :
  16310. audio_arts=yes
  16311. fi
  16312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16313. CFLAGS="$save_CFLAGS"
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16315. $as_echo "$audio_arts" >&6; }
  16316. if test x$audio_arts = xyes; then
  16317. # Check whether --enable-arts-shared was given.
  16318. if test "${enable_arts_shared+set}" = set; then :
  16319. enableval=$enable_arts_shared;
  16320. else
  16321. enable_arts_shared=yes
  16322. fi
  16323. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16324. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16325. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16326. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16327. if test x$have_loadso != xyes && \
  16328. test x$enable_arts_shared = xyes; then
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16330. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16331. fi
  16332. if test x$have_loadso = xyes && \
  16333. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16334. echo "-- dynamic libartsc -> $arts_lib"
  16335. cat >>confdefs.h <<_ACEOF
  16336. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16337. _ACEOF
  16338. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16339. else
  16340. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16341. SUMMARY_audio="${SUMMARY_audio} arts"
  16342. fi
  16343. have_audio=yes
  16344. fi
  16345. fi
  16346. fi
  16347. }
  16348. CheckNAS()
  16349. {
  16350. # Check whether --enable-nas was given.
  16351. if test "${enable_nas+set}" = set; then :
  16352. enableval=$enable_nas;
  16353. else
  16354. enable_nas=yes
  16355. fi
  16356. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16357. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16358. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16359. have_nas_hdr=yes
  16360. fi
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16362. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16363. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16364. $as_echo_n "(cached) " >&6
  16365. else
  16366. ac_check_lib_save_LIBS=$LIBS
  16367. LIBS="-laudio $LIBS"
  16368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16369. /* end confdefs.h. */
  16370. /* Override any GCC internal prototype to avoid an error.
  16371. Use char because int might match the return type of a GCC
  16372. builtin and then its argument prototype would still apply. */
  16373. #ifdef __cplusplus
  16374. extern "C"
  16375. #endif
  16376. char AuOpenServer ();
  16377. int
  16378. main ()
  16379. {
  16380. return AuOpenServer ();
  16381. ;
  16382. return 0;
  16383. }
  16384. _ACEOF
  16385. if ac_fn_c_try_link "$LINENO"; then :
  16386. ac_cv_lib_audio_AuOpenServer=yes
  16387. else
  16388. ac_cv_lib_audio_AuOpenServer=no
  16389. fi
  16390. rm -f core conftest.err conftest.$ac_objext \
  16391. conftest$ac_exeext conftest.$ac_ext
  16392. LIBS=$ac_check_lib_save_LIBS
  16393. fi
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16395. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16396. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16397. have_nas_lib=yes
  16398. fi
  16399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16400. $as_echo_n "checking for NAS audio support... " >&6; }
  16401. have_nas=no
  16402. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16403. have_nas=yes
  16404. NAS_LIBS="-laudio"
  16405. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16406. have_nas=yes
  16407. NAS_CFLAGS="-I/usr/X11R6/include/"
  16408. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16409. fi
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16411. $as_echo "$have_nas" >&6; }
  16412. if test x$have_nas = xyes; then
  16413. # Check whether --enable-nas-shared was given.
  16414. if test "${enable_nas_shared+set}" = set; then :
  16415. enableval=$enable_nas_shared;
  16416. else
  16417. enable_nas_shared=yes
  16418. fi
  16419. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16420. if test x$have_loadso != xyes && \
  16421. test x$enable_nas_shared = xyes; then
  16422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16423. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16424. fi
  16425. if test x$have_loadso = xyes && \
  16426. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16427. echo "-- dynamic libaudio -> $nas_lib"
  16428. cat >>confdefs.h <<_ACEOF
  16429. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16430. _ACEOF
  16431. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16432. else
  16433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16434. SUMMARY_audio="${SUMMARY_audio} nas"
  16435. fi
  16436. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16437. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16438. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16439. have_audio=yes
  16440. fi
  16441. fi
  16442. }
  16443. CheckSNDIO()
  16444. {
  16445. # Check whether --enable-sndio was given.
  16446. if test "${enable_sndio+set}" = set; then :
  16447. enableval=$enable_sndio;
  16448. else
  16449. enable_sndio=yes
  16450. fi
  16451. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16452. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16453. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16454. have_sndio_hdr=yes
  16455. fi
  16456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16457. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16458. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16459. $as_echo_n "(cached) " >&6
  16460. else
  16461. ac_check_lib_save_LIBS=$LIBS
  16462. LIBS="-lsndio $LIBS"
  16463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16464. /* end confdefs.h. */
  16465. /* Override any GCC internal prototype to avoid an error.
  16466. Use char because int might match the return type of a GCC
  16467. builtin and then its argument prototype would still apply. */
  16468. #ifdef __cplusplus
  16469. extern "C"
  16470. #endif
  16471. char sio_open ();
  16472. int
  16473. main ()
  16474. {
  16475. return sio_open ();
  16476. ;
  16477. return 0;
  16478. }
  16479. _ACEOF
  16480. if ac_fn_c_try_link "$LINENO"; then :
  16481. ac_cv_lib_sndio_sio_open=yes
  16482. else
  16483. ac_cv_lib_sndio_sio_open=no
  16484. fi
  16485. rm -f core conftest.err conftest.$ac_objext \
  16486. conftest$ac_exeext conftest.$ac_ext
  16487. LIBS=$ac_check_lib_save_LIBS
  16488. fi
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16490. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16491. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16492. have_sndio_lib=yes
  16493. fi
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16495. $as_echo_n "checking for sndio audio support... " >&6; }
  16496. have_sndio=no
  16497. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16498. have_sndio=yes
  16499. SNDIO_LIBS="-lsndio"
  16500. fi
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16502. $as_echo "$have_sndio" >&6; }
  16503. if test x$have_sndio = xyes; then
  16504. # Check whether --enable-sndio-shared was given.
  16505. if test "${enable_sndio_shared+set}" = set; then :
  16506. enableval=$enable_sndio_shared;
  16507. else
  16508. enable_sndio_shared=yes
  16509. fi
  16510. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16511. if test x$have_loadso != xyes && \
  16512. test x$enable_sndio_shared = xyes; then
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16514. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16515. fi
  16516. if test x$have_loadso = xyes && \
  16517. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16518. echo "-- dynamic libsndio -> $sndio_lib"
  16519. cat >>confdefs.h <<_ACEOF
  16520. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16521. _ACEOF
  16522. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16523. else
  16524. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16525. SUMMARY_audio="${SUMMARY_audio} sndio"
  16526. fi
  16527. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16528. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16529. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16530. have_audio=yes
  16531. fi
  16532. fi
  16533. }
  16534. CheckFusionSound()
  16535. {
  16536. # Check whether --enable-fusionsound was given.
  16537. if test "${enable_fusionsound+set}" = set; then :
  16538. enableval=$enable_fusionsound;
  16539. else
  16540. enable_fusionsound=no
  16541. fi
  16542. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16543. pkg_failed=no
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16545. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16546. if test -n "$FUSIONSOUND_CFLAGS"; then
  16547. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16548. elif test -n "$PKG_CONFIG"; then
  16549. if test -n "$PKG_CONFIG" && \
  16550. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16551. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16552. ac_status=$?
  16553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16554. test $ac_status = 0; }; then
  16555. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16556. else
  16557. pkg_failed=yes
  16558. fi
  16559. else
  16560. pkg_failed=untried
  16561. fi
  16562. if test -n "$FUSIONSOUND_LIBS"; then
  16563. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16564. elif test -n "$PKG_CONFIG"; then
  16565. if test -n "$PKG_CONFIG" && \
  16566. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16567. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16568. ac_status=$?
  16569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16570. test $ac_status = 0; }; then
  16571. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16572. else
  16573. pkg_failed=yes
  16574. fi
  16575. else
  16576. pkg_failed=untried
  16577. fi
  16578. if test $pkg_failed = yes; then
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16580. $as_echo "no" >&6; }
  16581. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16582. _pkg_short_errors_supported=yes
  16583. else
  16584. _pkg_short_errors_supported=no
  16585. fi
  16586. if test $_pkg_short_errors_supported = yes; then
  16587. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16588. else
  16589. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16590. fi
  16591. # Put the nasty error message in config.log where it belongs
  16592. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16593. fusionsound=no
  16594. elif test $pkg_failed = untried; then
  16595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16596. $as_echo "no" >&6; }
  16597. fusionsound=no
  16598. else
  16599. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16600. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16602. $as_echo "yes" >&6; }
  16603. fusionsound=yes
  16604. fi
  16605. if test x$fusionsound = xyes; then
  16606. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16607. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16608. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16609. # Check whether --enable-fusionsound-shared was given.
  16610. if test "${enable_fusionsound_shared+set}" = set; then :
  16611. enableval=$enable_fusionsound_shared;
  16612. else
  16613. enable_fusionsound_shared=yes
  16614. fi
  16615. fusionsound_shared=no
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16617. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16618. if test x$have_loadso != xyes && \
  16619. test x$enable_fusionsound_shared = xyes; then
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16621. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16622. fi
  16623. if test x$have_loadso = xyes && \
  16624. test x$enable_fusionsound_shared = xyes; then
  16625. cat >>confdefs.h <<_ACEOF
  16626. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16627. _ACEOF
  16628. fusionsound_shared=yes
  16629. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16630. else
  16631. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16632. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16633. fi
  16634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16635. $as_echo "$fusionsound_shared" >&6; }
  16636. have_audio=yes
  16637. fi
  16638. fi
  16639. }
  16640. CheckDiskAudio()
  16641. {
  16642. # Check whether --enable-diskaudio was given.
  16643. if test "${enable_diskaudio+set}" = set; then :
  16644. enableval=$enable_diskaudio;
  16645. else
  16646. enable_diskaudio=yes
  16647. fi
  16648. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16649. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16650. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16651. SUMMARY_audio="${SUMMARY_audio} disk"
  16652. fi
  16653. }
  16654. CheckDummyAudio()
  16655. {
  16656. # Check whether --enable-dummyaudio was given.
  16657. if test "${enable_dummyaudio+set}" = set; then :
  16658. enableval=$enable_dummyaudio;
  16659. else
  16660. enable_dummyaudio=yes
  16661. fi
  16662. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16663. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16664. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16665. SUMMARY_audio="${SUMMARY_audio} dummy"
  16666. fi
  16667. }
  16668. CheckLibSampleRate()
  16669. {
  16670. # Check whether --enable-libsamplerate was given.
  16671. if test "${enable_libsamplerate+set}" = set; then :
  16672. enableval=$enable_libsamplerate;
  16673. else
  16674. enable_libsamplerate=yes
  16675. fi
  16676. if test x$enable_libsamplerate = xyes; then
  16677. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16678. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16679. have_samplerate_h_hdr=yes
  16680. else
  16681. have_samplerate_h_hdr=no
  16682. fi
  16683. if test x$have_samplerate_h_hdr = xyes; then
  16684. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16685. # Check whether --enable-libsamplerate-shared was given.
  16686. if test "${enable_libsamplerate_shared+set}" = set; then :
  16687. enableval=$enable_libsamplerate_shared;
  16688. else
  16689. enable_libsamplerate_shared=yes
  16690. fi
  16691. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16692. if test x$have_loadso != xyes && \
  16693. test x$enable_libsamplerate_shared = xyes; then
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16695. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16696. fi
  16697. if test x$have_loadso = xyes && \
  16698. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16699. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16700. cat >>confdefs.h <<_ACEOF
  16701. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16702. _ACEOF
  16703. else
  16704. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16705. fi
  16706. fi
  16707. fi
  16708. }
  16709. CheckARM()
  16710. {
  16711. # Check whether --enable-arm-simd was given.
  16712. if test "${enable_arm_simd+set}" = set; then :
  16713. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16714. else
  16715. enable_arm_simd=no
  16716. fi
  16717. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16718. save_CFLAGS="$CFLAGS"
  16719. have_arm_simd=no
  16720. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16722. $as_echo_n "checking for ARM SIMD... " >&6; }
  16723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16724. /* end confdefs.h. */
  16725. .text
  16726. .arch armv6
  16727. .object_arch armv4
  16728. .arm
  16729. .altmacro
  16730. #ifndef __ARM_EABI__
  16731. #error EABI is required (to be sure that calling conventions are compatible)
  16732. #endif
  16733. pld [r0]
  16734. uqadd8 r0, r0, r0
  16735. _ACEOF
  16736. if ac_fn_c_try_compile "$LINENO"; then :
  16737. have_arm_simd=yes
  16738. fi
  16739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16741. $as_echo "$have_arm_simd" >&6; }
  16742. CFLAGS="$save_CFLAGS"
  16743. if test x$have_arm_simd = xyes; then
  16744. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16745. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16746. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16747. fi
  16748. fi
  16749. }
  16750. CheckNEON()
  16751. {
  16752. # Check whether --enable-arm-neon was given.
  16753. if test "${enable_arm_neon+set}" = set; then :
  16754. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16755. else
  16756. enable_arm_neon=no
  16757. fi
  16758. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16759. save_CFLAGS="$CFLAGS"
  16760. have_arm_neon=no
  16761. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16763. $as_echo_n "checking for ARM NEON... " >&6; }
  16764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16765. /* end confdefs.h. */
  16766. .text
  16767. .fpu neon
  16768. .arch armv7a
  16769. .object_arch armv4
  16770. .eabi_attribute 10, 0
  16771. .arm
  16772. .altmacro
  16773. #ifndef __ARM_EABI__
  16774. #error EABI is required (to be sure that calling conventions are compatible)
  16775. #endif
  16776. pld [r0]
  16777. vmovn.u16 d0, q0
  16778. _ACEOF
  16779. if ac_fn_c_try_compile "$LINENO"; then :
  16780. have_arm_neon=yes
  16781. fi
  16782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16784. $as_echo "$have_arm_neon" >&6; }
  16785. CFLAGS="$save_CFLAGS"
  16786. if test x$have_arm_neon = xyes; then
  16787. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16788. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16789. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16790. fi
  16791. fi
  16792. }
  16793. CheckVisibilityHidden()
  16794. {
  16795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16796. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16797. have_gcc_fvisibility=no
  16798. visibility_CFLAGS="-fvisibility=hidden"
  16799. save_CFLAGS="$CFLAGS"
  16800. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16802. /* end confdefs.h. */
  16803. #if !defined(__GNUC__) || __GNUC__ < 4
  16804. #error SDL only uses visibility attributes in GCC 4 or newer
  16805. #endif
  16806. int
  16807. main ()
  16808. {
  16809. ;
  16810. return 0;
  16811. }
  16812. _ACEOF
  16813. if ac_fn_c_try_compile "$LINENO"; then :
  16814. have_gcc_fvisibility=yes
  16815. fi
  16816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16818. $as_echo "$have_gcc_fvisibility" >&6; }
  16819. CFLAGS="$save_CFLAGS"
  16820. if test x$have_gcc_fvisibility = xyes; then
  16821. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16822. fi
  16823. }
  16824. CheckNoStrictAliasing()
  16825. {
  16826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16827. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16828. have_gcc_no_strict_aliasing=no
  16829. save_CFLAGS="$CFLAGS"
  16830. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16832. /* end confdefs.h. */
  16833. int x = 0;
  16834. int
  16835. main ()
  16836. {
  16837. ;
  16838. return 0;
  16839. }
  16840. _ACEOF
  16841. if ac_fn_c_try_compile "$LINENO"; then :
  16842. have_gcc_no_strict_aliasing=yes
  16843. fi
  16844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16846. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16847. CFLAGS="$save_CFLAGS"
  16848. if test x$have_gcc_no_strict_aliasing = xyes; then
  16849. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16850. fi
  16851. }
  16852. CheckStackBoundary()
  16853. {
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16855. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16856. have_gcc_preferred_stack_boundary=no
  16857. save_CFLAGS="$CFLAGS"
  16858. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16860. /* end confdefs.h. */
  16861. int x = 0;
  16862. int
  16863. main ()
  16864. {
  16865. ;
  16866. return 0;
  16867. }
  16868. _ACEOF
  16869. if ac_fn_c_try_compile "$LINENO"; then :
  16870. have_gcc_preferred_stack_boundary=yes
  16871. fi
  16872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16874. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16875. CFLAGS="$save_CFLAGS"
  16876. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16877. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16878. fi
  16879. }
  16880. CheckDeclarationAfterStatement()
  16881. {
  16882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16883. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16884. have_gcc_declaration_after_statement=no
  16885. save_CFLAGS="$CFLAGS"
  16886. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16888. /* end confdefs.h. */
  16889. int x = 0;
  16890. int
  16891. main ()
  16892. {
  16893. ;
  16894. return 0;
  16895. }
  16896. _ACEOF
  16897. if ac_fn_c_try_compile "$LINENO"; then :
  16898. have_gcc_declaration_after_statement=yes
  16899. fi
  16900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16902. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16903. CFLAGS="$save_CFLAGS"
  16904. if test x$have_gcc_declaration_after_statement = xyes; then
  16905. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16906. fi
  16907. }
  16908. CheckWarnAll()
  16909. {
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16911. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16912. have_gcc_Wall=no
  16913. save_CFLAGS="$CFLAGS"
  16914. CFLAGS="$save_CFLAGS -Wall"
  16915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16916. /* end confdefs.h. */
  16917. int x = 0;
  16918. int
  16919. main ()
  16920. {
  16921. ;
  16922. return 0;
  16923. }
  16924. _ACEOF
  16925. if ac_fn_c_try_compile "$LINENO"; then :
  16926. have_gcc_Wall=yes
  16927. fi
  16928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16930. $as_echo "$have_gcc_Wall" >&6; }
  16931. CFLAGS="$save_CFLAGS"
  16932. if test x$have_gcc_Wall = xyes; then
  16933. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16935. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16936. need_gcc_Wno_multichar=no
  16937. case "$host" in
  16938. *-*-haiku*)
  16939. need_gcc_Wno_multichar=yes
  16940. ;;
  16941. esac
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16943. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16944. if test x$need_gcc_Wno_multichar = xyes; then
  16945. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16946. fi
  16947. fi
  16948. }
  16949. CheckWayland()
  16950. {
  16951. # Check whether --enable-video-wayland was given.
  16952. if test "${enable_video_wayland+set}" = set; then :
  16953. enableval=$enable_video_wayland;
  16954. else
  16955. enable_video_wayland=yes
  16956. fi
  16957. # Check whether --enable-video-wayland-qt-touch was given.
  16958. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16959. enableval=$enable_video_wayland_qt_touch;
  16960. else
  16961. enable_video_wayland_qt_touch=yes
  16962. fi
  16963. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16965. $as_echo_n "checking for Wayland support... " >&6; }
  16966. video_wayland=no
  16967. if test x$video_opengl_egl = xyes && \
  16968. test x$video_opengles_v2 = xyes; then
  16969. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16970. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16971. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16972. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16973. video_wayland=yes
  16974. fi
  16975. fi
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16977. $as_echo "$video_wayland" >&6; }
  16978. if test x$video_wayland = xyes; then
  16979. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16980. if test x$enable_video_wayland_qt_touch = xyes; then
  16981. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16982. fi
  16983. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16984. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16985. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16986. # Check whether --enable-wayland-shared was given.
  16987. if test "${enable_wayland_shared+set}" = set; then :
  16988. enableval=$enable_wayland_shared;
  16989. else
  16990. enable_wayland_shared=maybe
  16991. fi
  16992. case "$host" in
  16993. *)
  16994. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16995. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16996. if test x$wayland_egl_lib = x; then
  16997. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16998. fi
  16999. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17000. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17001. ;;
  17002. esac
  17003. if test x$enable_wayland_shared = xmaybe; then
  17004. enable_wayland_shared=yes
  17005. fi
  17006. if test x$have_loadso != xyes && \
  17007. test x$enable_wayland_shared = xyes; then
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17009. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17010. enable_wayland_shared=no
  17011. fi
  17012. if test x$have_loadso = xyes && \
  17013. test x$enable_wayland_shared = xyes && \
  17014. test x$wayland_client_lib != x && \
  17015. test x$wayland_egl_lib != x && \
  17016. test x$wayland_cursor_lib != x && \
  17017. test x$xkbcommon_lib != x; then
  17018. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17019. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17020. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17021. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17022. cat >>confdefs.h <<_ACEOF
  17023. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17024. _ACEOF
  17025. cat >>confdefs.h <<_ACEOF
  17026. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17027. _ACEOF
  17028. cat >>confdefs.h <<_ACEOF
  17029. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17030. _ACEOF
  17031. cat >>confdefs.h <<_ACEOF
  17032. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17033. _ACEOF
  17034. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17035. else
  17036. enable_wayland_shared=no
  17037. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17038. SUMMARY_video="${SUMMARY_video} wayland"
  17039. fi
  17040. have_video=yes
  17041. fi
  17042. fi
  17043. }
  17044. CheckNativeClient()
  17045. {
  17046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17047. /* end confdefs.h. */
  17048. #if !defined(__native_client__)
  17049. #error "NO NACL"
  17050. #endif
  17051. int
  17052. main ()
  17053. {
  17054. ;
  17055. return 0;
  17056. }
  17057. _ACEOF
  17058. if ac_fn_c_try_compile "$LINENO"; then :
  17059. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17060. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17061. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17062. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17063. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17064. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17065. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17066. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17067. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17068. SUMMARY_audio="${SUMMARY_audio} nacl"
  17069. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17070. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17071. fi
  17072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17073. }
  17074. CheckRPI()
  17075. {
  17076. # Check whether --enable-video-rpi was given.
  17077. if test "${enable_video_rpi+set}" = set; then :
  17078. enableval=$enable_video_rpi;
  17079. else
  17080. enable_video_rpi=yes
  17081. fi
  17082. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17083. pkg_failed=no
  17084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17085. $as_echo_n "checking for RPI... " >&6; }
  17086. if test -n "$RPI_CFLAGS"; then
  17087. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17088. elif test -n "$PKG_CONFIG"; then
  17089. if test -n "$PKG_CONFIG" && \
  17090. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17091. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17092. ac_status=$?
  17093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17094. test $ac_status = 0; }; then
  17095. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17096. else
  17097. pkg_failed=yes
  17098. fi
  17099. else
  17100. pkg_failed=untried
  17101. fi
  17102. if test -n "$RPI_LIBS"; then
  17103. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17104. elif test -n "$PKG_CONFIG"; then
  17105. if test -n "$PKG_CONFIG" && \
  17106. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17107. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17108. ac_status=$?
  17109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17110. test $ac_status = 0; }; then
  17111. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17112. else
  17113. pkg_failed=yes
  17114. fi
  17115. else
  17116. pkg_failed=untried
  17117. fi
  17118. if test $pkg_failed = yes; then
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17120. $as_echo "no" >&6; }
  17121. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17122. _pkg_short_errors_supported=yes
  17123. else
  17124. _pkg_short_errors_supported=no
  17125. fi
  17126. if test $_pkg_short_errors_supported = yes; then
  17127. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17128. else
  17129. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17130. fi
  17131. # Put the nasty error message in config.log where it belongs
  17132. echo "$RPI_PKG_ERRORS" >&5
  17133. video_rpi=no
  17134. elif test $pkg_failed = untried; then
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17136. $as_echo "no" >&6; }
  17137. video_rpi=no
  17138. else
  17139. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17140. RPI_LIBS=$pkg_cv_RPI_LIBS
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17142. $as_echo "yes" >&6; }
  17143. video_rpi=yes
  17144. fi
  17145. if test x$video_rpi = xno; then
  17146. if test x$ARCH = xnetbsd; then
  17147. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17148. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17149. else
  17150. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17151. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17152. fi
  17153. fi
  17154. # Save the original compiler flags and libraries
  17155. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17156. # Add the Raspberry Pi compiler flags and libraries
  17157. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17159. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17160. have_video_rpi=no
  17161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17162. /* end confdefs.h. */
  17163. #include <bcm_host.h>
  17164. int
  17165. main ()
  17166. {
  17167. bcm_host_init();
  17168. ;
  17169. return 0;
  17170. }
  17171. _ACEOF
  17172. if ac_fn_c_try_link "$LINENO"; then :
  17173. have_video_rpi=yes
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17178. $as_echo "$have_video_rpi" >&6; }
  17179. # Restore the compiler flags and libraries
  17180. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17181. if test x$have_video_rpi = xyes; then
  17182. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17183. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17184. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17186. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17187. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17188. SUMMARY_video="${SUMMARY_video} rpi"
  17189. fi
  17190. fi
  17191. }
  17192. CheckX11()
  17193. {
  17194. # Check whether --enable-video-x11 was given.
  17195. if test "${enable_video_x11+set}" = set; then :
  17196. enableval=$enable_video_x11;
  17197. else
  17198. enable_video_x11=yes
  17199. fi
  17200. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17201. case "$host" in
  17202. *-*-darwin*)
  17203. # This isn't necessary for X11, but fixes GLX detection
  17204. if test "x$x_includes" = xNONE && \
  17205. test "x$x_libraries" = xNONE && \
  17206. test -d /opt/X11/include && \
  17207. test -d /opt/X11/lib; then
  17208. x_includes="/opt/X11/include"
  17209. x_libraries="/opt/X11/lib"
  17210. fi
  17211. ;;
  17212. esac
  17213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17214. $as_echo_n "checking for X... " >&6; }
  17215. # Check whether --with-x was given.
  17216. if test "${with_x+set}" = set; then :
  17217. withval=$with_x;
  17218. fi
  17219. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17220. if test "x$with_x" = xno; then
  17221. # The user explicitly disabled X.
  17222. have_x=disabled
  17223. else
  17224. case $x_includes,$x_libraries in #(
  17225. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17226. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17227. $as_echo_n "(cached) " >&6
  17228. else
  17229. # One or both of the vars are not set, and there is no cached value.
  17230. ac_x_includes=no ac_x_libraries=no
  17231. rm -f -r conftest.dir
  17232. if mkdir conftest.dir; then
  17233. cd conftest.dir
  17234. cat >Imakefile <<'_ACEOF'
  17235. incroot:
  17236. @echo incroot='${INCROOT}'
  17237. usrlibdir:
  17238. @echo usrlibdir='${USRLIBDIR}'
  17239. libdir:
  17240. @echo libdir='${LIBDIR}'
  17241. _ACEOF
  17242. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17243. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17244. for ac_var in incroot usrlibdir libdir; do
  17245. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17246. done
  17247. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17248. for ac_extension in a so sl dylib la dll; do
  17249. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17250. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17251. ac_im_usrlibdir=$ac_im_libdir; break
  17252. fi
  17253. done
  17254. # Screen out bogus values from the imake configuration. They are
  17255. # bogus both because they are the default anyway, and because
  17256. # using them would break gcc on systems where it needs fixed includes.
  17257. case $ac_im_incroot in
  17258. /usr/include) ac_x_includes= ;;
  17259. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17260. esac
  17261. case $ac_im_usrlibdir in
  17262. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17263. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17264. esac
  17265. fi
  17266. cd ..
  17267. rm -f -r conftest.dir
  17268. fi
  17269. # Standard set of common directories for X headers.
  17270. # Check X11 before X11Rn because it is often a symlink to the current release.
  17271. ac_x_header_dirs='
  17272. /usr/X11/include
  17273. /usr/X11R7/include
  17274. /usr/X11R6/include
  17275. /usr/X11R5/include
  17276. /usr/X11R4/include
  17277. /usr/include/X11
  17278. /usr/include/X11R7
  17279. /usr/include/X11R6
  17280. /usr/include/X11R5
  17281. /usr/include/X11R4
  17282. /usr/local/X11/include
  17283. /usr/local/X11R7/include
  17284. /usr/local/X11R6/include
  17285. /usr/local/X11R5/include
  17286. /usr/local/X11R4/include
  17287. /usr/local/include/X11
  17288. /usr/local/include/X11R7
  17289. /usr/local/include/X11R6
  17290. /usr/local/include/X11R5
  17291. /usr/local/include/X11R4
  17292. /opt/X11/include
  17293. /usr/X386/include
  17294. /usr/x386/include
  17295. /usr/XFree86/include/X11
  17296. /usr/include
  17297. /usr/local/include
  17298. /usr/unsupported/include
  17299. /usr/athena/include
  17300. /usr/local/x11r5/include
  17301. /usr/lpp/Xamples/include
  17302. /usr/openwin/include
  17303. /usr/openwin/share/include'
  17304. if test "$ac_x_includes" = no; then
  17305. # Guess where to find include files, by looking for Xlib.h.
  17306. # First, try using that file with no special directory specified.
  17307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17308. /* end confdefs.h. */
  17309. #include <X11/Xlib.h>
  17310. _ACEOF
  17311. if ac_fn_c_try_cpp "$LINENO"; then :
  17312. # We can compile using X headers with no special include directory.
  17313. ac_x_includes=
  17314. else
  17315. for ac_dir in $ac_x_header_dirs; do
  17316. if test -r "$ac_dir/X11/Xlib.h"; then
  17317. ac_x_includes=$ac_dir
  17318. break
  17319. fi
  17320. done
  17321. fi
  17322. rm -f conftest.err conftest.i conftest.$ac_ext
  17323. fi # $ac_x_includes = no
  17324. if test "$ac_x_libraries" = no; then
  17325. # Check for the libraries.
  17326. # See if we find them without any special options.
  17327. # Don't add to $LIBS permanently.
  17328. ac_save_LIBS=$LIBS
  17329. LIBS="-lX11 $LIBS"
  17330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17331. /* end confdefs.h. */
  17332. #include <X11/Xlib.h>
  17333. int
  17334. main ()
  17335. {
  17336. XrmInitialize ()
  17337. ;
  17338. return 0;
  17339. }
  17340. _ACEOF
  17341. if ac_fn_c_try_link "$LINENO"; then :
  17342. LIBS=$ac_save_LIBS
  17343. # We can link X programs with no special library path.
  17344. ac_x_libraries=
  17345. else
  17346. LIBS=$ac_save_LIBS
  17347. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17348. do
  17349. # Don't even attempt the hair of trying to link an X program!
  17350. for ac_extension in a so sl dylib la dll; do
  17351. if test -r "$ac_dir/libX11.$ac_extension"; then
  17352. ac_x_libraries=$ac_dir
  17353. break 2
  17354. fi
  17355. done
  17356. done
  17357. fi
  17358. rm -f core conftest.err conftest.$ac_objext \
  17359. conftest$ac_exeext conftest.$ac_ext
  17360. fi # $ac_x_libraries = no
  17361. case $ac_x_includes,$ac_x_libraries in #(
  17362. no,* | *,no | *\'*)
  17363. # Didn't find X, or a directory has "'" in its name.
  17364. ac_cv_have_x="have_x=no";; #(
  17365. *)
  17366. # Record where we found X for the cache.
  17367. ac_cv_have_x="have_x=yes\
  17368. ac_x_includes='$ac_x_includes'\
  17369. ac_x_libraries='$ac_x_libraries'"
  17370. esac
  17371. fi
  17372. ;; #(
  17373. *) have_x=yes;;
  17374. esac
  17375. eval "$ac_cv_have_x"
  17376. fi # $with_x != no
  17377. if test "$have_x" != yes; then
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17379. $as_echo "$have_x" >&6; }
  17380. no_x=yes
  17381. else
  17382. # If each of the values was on the command line, it overrides each guess.
  17383. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17384. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17385. # Update the cache value to reflect the command line values.
  17386. ac_cv_have_x="have_x=yes\
  17387. ac_x_includes='$x_includes'\
  17388. ac_x_libraries='$x_libraries'"
  17389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17390. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17391. fi
  17392. if test "$no_x" = yes; then
  17393. # Not all programs may use this symbol, but it does not hurt to define it.
  17394. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17395. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17396. else
  17397. if test -n "$x_includes"; then
  17398. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17399. fi
  17400. # It would also be nice to do this for all -L options, not just this one.
  17401. if test -n "$x_libraries"; then
  17402. X_LIBS="$X_LIBS -L$x_libraries"
  17403. # For Solaris; some versions of Sun CC require a space after -R and
  17404. # others require no space. Words are not sufficient . . . .
  17405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17406. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17407. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17408. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17409. ac_c_werror_flag=yes
  17410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17411. /* end confdefs.h. */
  17412. int
  17413. main ()
  17414. {
  17415. ;
  17416. return 0;
  17417. }
  17418. _ACEOF
  17419. if ac_fn_c_try_link "$LINENO"; then :
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17421. $as_echo "no" >&6; }
  17422. X_LIBS="$X_LIBS -R$x_libraries"
  17423. else
  17424. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17426. /* end confdefs.h. */
  17427. int
  17428. main ()
  17429. {
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. if ac_fn_c_try_link "$LINENO"; then :
  17435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17436. $as_echo "yes" >&6; }
  17437. X_LIBS="$X_LIBS -R $x_libraries"
  17438. else
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17440. $as_echo "neither works" >&6; }
  17441. fi
  17442. rm -f core conftest.err conftest.$ac_objext \
  17443. conftest$ac_exeext conftest.$ac_ext
  17444. fi
  17445. rm -f core conftest.err conftest.$ac_objext \
  17446. conftest$ac_exeext conftest.$ac_ext
  17447. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17448. LIBS=$ac_xsave_LIBS
  17449. fi
  17450. # Check for system-dependent libraries X programs must link with.
  17451. # Do this before checking for the system-independent R6 libraries
  17452. # (-lICE), since we may need -lsocket or whatever for X linking.
  17453. if test "$ISC" = yes; then
  17454. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17455. else
  17456. # Martyn Johnson says this is needed for Ultrix, if the X
  17457. # libraries were built with DECnet support. And Karl Berry says
  17458. # the Alpha needs dnet_stub (dnet does not exist).
  17459. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17461. /* end confdefs.h. */
  17462. /* Override any GCC internal prototype to avoid an error.
  17463. Use char because int might match the return type of a GCC
  17464. builtin and then its argument prototype would still apply. */
  17465. #ifdef __cplusplus
  17466. extern "C"
  17467. #endif
  17468. char XOpenDisplay ();
  17469. int
  17470. main ()
  17471. {
  17472. return XOpenDisplay ();
  17473. ;
  17474. return 0;
  17475. }
  17476. _ACEOF
  17477. if ac_fn_c_try_link "$LINENO"; then :
  17478. else
  17479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17480. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17481. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17482. $as_echo_n "(cached) " >&6
  17483. else
  17484. ac_check_lib_save_LIBS=$LIBS
  17485. LIBS="-ldnet $LIBS"
  17486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17487. /* end confdefs.h. */
  17488. /* Override any GCC internal prototype to avoid an error.
  17489. Use char because int might match the return type of a GCC
  17490. builtin and then its argument prototype would still apply. */
  17491. #ifdef __cplusplus
  17492. extern "C"
  17493. #endif
  17494. char dnet_ntoa ();
  17495. int
  17496. main ()
  17497. {
  17498. return dnet_ntoa ();
  17499. ;
  17500. return 0;
  17501. }
  17502. _ACEOF
  17503. if ac_fn_c_try_link "$LINENO"; then :
  17504. ac_cv_lib_dnet_dnet_ntoa=yes
  17505. else
  17506. ac_cv_lib_dnet_dnet_ntoa=no
  17507. fi
  17508. rm -f core conftest.err conftest.$ac_objext \
  17509. conftest$ac_exeext conftest.$ac_ext
  17510. LIBS=$ac_check_lib_save_LIBS
  17511. fi
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17513. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17514. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17515. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17516. fi
  17517. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17519. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17520. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17521. $as_echo_n "(cached) " >&6
  17522. else
  17523. ac_check_lib_save_LIBS=$LIBS
  17524. LIBS="-ldnet_stub $LIBS"
  17525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17526. /* end confdefs.h. */
  17527. /* Override any GCC internal prototype to avoid an error.
  17528. Use char because int might match the return type of a GCC
  17529. builtin and then its argument prototype would still apply. */
  17530. #ifdef __cplusplus
  17531. extern "C"
  17532. #endif
  17533. char dnet_ntoa ();
  17534. int
  17535. main ()
  17536. {
  17537. return dnet_ntoa ();
  17538. ;
  17539. return 0;
  17540. }
  17541. _ACEOF
  17542. if ac_fn_c_try_link "$LINENO"; then :
  17543. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17544. else
  17545. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17546. fi
  17547. rm -f core conftest.err conftest.$ac_objext \
  17548. conftest$ac_exeext conftest.$ac_ext
  17549. LIBS=$ac_check_lib_save_LIBS
  17550. fi
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17552. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17553. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17554. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17555. fi
  17556. fi
  17557. fi
  17558. rm -f core conftest.err conftest.$ac_objext \
  17559. conftest$ac_exeext conftest.$ac_ext
  17560. LIBS="$ac_xsave_LIBS"
  17561. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17562. # to get the SysV transport functions.
  17563. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17564. # needs -lnsl.
  17565. # The nsl library prevents programs from opening the X display
  17566. # on Irix 5.2, according to T.E. Dickey.
  17567. # The functions gethostbyname, getservbyname, and inet_addr are
  17568. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17569. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17570. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17571. fi
  17572. if test $ac_cv_func_gethostbyname = no; then
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17574. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17575. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17576. $as_echo_n "(cached) " >&6
  17577. else
  17578. ac_check_lib_save_LIBS=$LIBS
  17579. LIBS="-lnsl $LIBS"
  17580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17581. /* end confdefs.h. */
  17582. /* Override any GCC internal prototype to avoid an error.
  17583. Use char because int might match the return type of a GCC
  17584. builtin and then its argument prototype would still apply. */
  17585. #ifdef __cplusplus
  17586. extern "C"
  17587. #endif
  17588. char gethostbyname ();
  17589. int
  17590. main ()
  17591. {
  17592. return gethostbyname ();
  17593. ;
  17594. return 0;
  17595. }
  17596. _ACEOF
  17597. if ac_fn_c_try_link "$LINENO"; then :
  17598. ac_cv_lib_nsl_gethostbyname=yes
  17599. else
  17600. ac_cv_lib_nsl_gethostbyname=no
  17601. fi
  17602. rm -f core conftest.err conftest.$ac_objext \
  17603. conftest$ac_exeext conftest.$ac_ext
  17604. LIBS=$ac_check_lib_save_LIBS
  17605. fi
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17607. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17608. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17609. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17610. fi
  17611. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17613. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17614. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17615. $as_echo_n "(cached) " >&6
  17616. else
  17617. ac_check_lib_save_LIBS=$LIBS
  17618. LIBS="-lbsd $LIBS"
  17619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17620. /* end confdefs.h. */
  17621. /* Override any GCC internal prototype to avoid an error.
  17622. Use char because int might match the return type of a GCC
  17623. builtin and then its argument prototype would still apply. */
  17624. #ifdef __cplusplus
  17625. extern "C"
  17626. #endif
  17627. char gethostbyname ();
  17628. int
  17629. main ()
  17630. {
  17631. return gethostbyname ();
  17632. ;
  17633. return 0;
  17634. }
  17635. _ACEOF
  17636. if ac_fn_c_try_link "$LINENO"; then :
  17637. ac_cv_lib_bsd_gethostbyname=yes
  17638. else
  17639. ac_cv_lib_bsd_gethostbyname=no
  17640. fi
  17641. rm -f core conftest.err conftest.$ac_objext \
  17642. conftest$ac_exeext conftest.$ac_ext
  17643. LIBS=$ac_check_lib_save_LIBS
  17644. fi
  17645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17646. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17647. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17648. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17649. fi
  17650. fi
  17651. fi
  17652. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17653. # socket/setsockopt and other routines are undefined under SCO ODT
  17654. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17655. # on later versions), says Simon Leinen: it contains gethostby*
  17656. # variants that don't use the name server (or something). -lsocket
  17657. # must be given before -lnsl if both are needed. We assume that
  17658. # if connect needs -lnsl, so does gethostbyname.
  17659. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17660. if test "x$ac_cv_func_connect" = xyes; then :
  17661. fi
  17662. if test $ac_cv_func_connect = no; then
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17664. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17665. if ${ac_cv_lib_socket_connect+:} false; then :
  17666. $as_echo_n "(cached) " >&6
  17667. else
  17668. ac_check_lib_save_LIBS=$LIBS
  17669. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17671. /* end confdefs.h. */
  17672. /* Override any GCC internal prototype to avoid an error.
  17673. Use char because int might match the return type of a GCC
  17674. builtin and then its argument prototype would still apply. */
  17675. #ifdef __cplusplus
  17676. extern "C"
  17677. #endif
  17678. char connect ();
  17679. int
  17680. main ()
  17681. {
  17682. return connect ();
  17683. ;
  17684. return 0;
  17685. }
  17686. _ACEOF
  17687. if ac_fn_c_try_link "$LINENO"; then :
  17688. ac_cv_lib_socket_connect=yes
  17689. else
  17690. ac_cv_lib_socket_connect=no
  17691. fi
  17692. rm -f core conftest.err conftest.$ac_objext \
  17693. conftest$ac_exeext conftest.$ac_ext
  17694. LIBS=$ac_check_lib_save_LIBS
  17695. fi
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17697. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17698. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17699. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17700. fi
  17701. fi
  17702. # Guillermo Gomez says -lposix is necessary on A/UX.
  17703. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17704. if test "x$ac_cv_func_remove" = xyes; then :
  17705. fi
  17706. if test $ac_cv_func_remove = no; then
  17707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17708. $as_echo_n "checking for remove in -lposix... " >&6; }
  17709. if ${ac_cv_lib_posix_remove+:} false; then :
  17710. $as_echo_n "(cached) " >&6
  17711. else
  17712. ac_check_lib_save_LIBS=$LIBS
  17713. LIBS="-lposix $LIBS"
  17714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17715. /* end confdefs.h. */
  17716. /* Override any GCC internal prototype to avoid an error.
  17717. Use char because int might match the return type of a GCC
  17718. builtin and then its argument prototype would still apply. */
  17719. #ifdef __cplusplus
  17720. extern "C"
  17721. #endif
  17722. char remove ();
  17723. int
  17724. main ()
  17725. {
  17726. return remove ();
  17727. ;
  17728. return 0;
  17729. }
  17730. _ACEOF
  17731. if ac_fn_c_try_link "$LINENO"; then :
  17732. ac_cv_lib_posix_remove=yes
  17733. else
  17734. ac_cv_lib_posix_remove=no
  17735. fi
  17736. rm -f core conftest.err conftest.$ac_objext \
  17737. conftest$ac_exeext conftest.$ac_ext
  17738. LIBS=$ac_check_lib_save_LIBS
  17739. fi
  17740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17741. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17742. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17743. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17744. fi
  17745. fi
  17746. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17747. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17748. if test "x$ac_cv_func_shmat" = xyes; then :
  17749. fi
  17750. if test $ac_cv_func_shmat = no; then
  17751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17752. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17753. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17754. $as_echo_n "(cached) " >&6
  17755. else
  17756. ac_check_lib_save_LIBS=$LIBS
  17757. LIBS="-lipc $LIBS"
  17758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17759. /* end confdefs.h. */
  17760. /* Override any GCC internal prototype to avoid an error.
  17761. Use char because int might match the return type of a GCC
  17762. builtin and then its argument prototype would still apply. */
  17763. #ifdef __cplusplus
  17764. extern "C"
  17765. #endif
  17766. char shmat ();
  17767. int
  17768. main ()
  17769. {
  17770. return shmat ();
  17771. ;
  17772. return 0;
  17773. }
  17774. _ACEOF
  17775. if ac_fn_c_try_link "$LINENO"; then :
  17776. ac_cv_lib_ipc_shmat=yes
  17777. else
  17778. ac_cv_lib_ipc_shmat=no
  17779. fi
  17780. rm -f core conftest.err conftest.$ac_objext \
  17781. conftest$ac_exeext conftest.$ac_ext
  17782. LIBS=$ac_check_lib_save_LIBS
  17783. fi
  17784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17785. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17786. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17787. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17788. fi
  17789. fi
  17790. fi
  17791. # Check for libraries that X11R6 Xt/Xaw programs need.
  17792. ac_save_LDFLAGS=$LDFLAGS
  17793. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17794. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17795. # check for ICE first), but we must link in the order -lSM -lICE or
  17796. # we get undefined symbols. So assume we have SM if we have ICE.
  17797. # These have to be linked with before -lX11, unlike the other
  17798. # libraries we check for below, so use a different variable.
  17799. # John Interrante, Karl Berry
  17800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17801. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17802. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17803. $as_echo_n "(cached) " >&6
  17804. else
  17805. ac_check_lib_save_LIBS=$LIBS
  17806. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17808. /* end confdefs.h. */
  17809. /* Override any GCC internal prototype to avoid an error.
  17810. Use char because int might match the return type of a GCC
  17811. builtin and then its argument prototype would still apply. */
  17812. #ifdef __cplusplus
  17813. extern "C"
  17814. #endif
  17815. char IceConnectionNumber ();
  17816. int
  17817. main ()
  17818. {
  17819. return IceConnectionNumber ();
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_link "$LINENO"; then :
  17825. ac_cv_lib_ICE_IceConnectionNumber=yes
  17826. else
  17827. ac_cv_lib_ICE_IceConnectionNumber=no
  17828. fi
  17829. rm -f core conftest.err conftest.$ac_objext \
  17830. conftest$ac_exeext conftest.$ac_ext
  17831. LIBS=$ac_check_lib_save_LIBS
  17832. fi
  17833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17834. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17835. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17836. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17837. fi
  17838. LDFLAGS=$ac_save_LDFLAGS
  17839. fi
  17840. if test x$have_x = xyes; then
  17841. # Check whether --enable-x11-shared was given.
  17842. if test "${enable_x11_shared+set}" = set; then :
  17843. enableval=$enable_x11_shared;
  17844. else
  17845. enable_x11_shared=maybe
  17846. fi
  17847. case "$host" in
  17848. *-*-darwin*)
  17849. # Apple now puts this in /opt/X11
  17850. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17851. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17852. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17853. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17854. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17855. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17856. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17857. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17858. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17859. ;;
  17860. *-*-openbsd*)
  17861. x11_lib='libX11.so'
  17862. x11ext_lib='libXext.so'
  17863. xcursor_lib='libXcursor.so'
  17864. xinerama_lib='libXinerama.so'
  17865. xinput_lib='libXi.so'
  17866. xrandr_lib='libXrandr.so'
  17867. xrender_lib='libXrender.so'
  17868. xss_lib='libXss.so'
  17869. xvidmode_lib='libXxf86vm.so'
  17870. ;;
  17871. *)
  17872. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17873. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17874. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17875. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17876. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17877. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17878. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17879. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17880. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17881. ;;
  17882. esac
  17883. if test x$ac_cv_func_shmat != xyes; then
  17884. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17885. fi
  17886. CFLAGS="$CFLAGS $X_CFLAGS"
  17887. LDFLAGS="$LDFLAGS $X_LIBS"
  17888. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17889. #include <X11/Xproto.h>
  17890. "
  17891. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17892. have_xext_h_hdr=yes
  17893. else
  17894. have_xext_h_hdr=no
  17895. fi
  17896. if test x$have_xext_h_hdr != xyes; then
  17897. as_fn_error $? "
  17898. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17899. " "$LINENO" 5
  17900. fi
  17901. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17902. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17903. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17904. # Needed so SDL applications can include SDL_syswm.h
  17905. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17906. if test x$enable_x11_shared = xmaybe; then
  17907. enable_x11_shared=yes
  17908. fi
  17909. if test x$have_loadso != xyes && \
  17910. test x$enable_x11_shared = xyes; then
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17912. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17913. enable_x11_shared=no
  17914. fi
  17915. if test x$have_loadso = xyes && \
  17916. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17917. echo "-- dynamic libX11 -> $x11_lib"
  17918. echo "-- dynamic libX11ext -> $x11ext_lib"
  17919. cat >>confdefs.h <<_ACEOF
  17920. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17921. _ACEOF
  17922. cat >>confdefs.h <<_ACEOF
  17923. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17924. _ACEOF
  17925. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17926. else
  17927. enable_x11_shared=no
  17928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17929. SUMMARY_video="${SUMMARY_video} x11"
  17930. fi
  17931. have_video=yes
  17932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17933. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17934. have_const_param_XextAddDisplay=no
  17935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17936. /* end confdefs.h. */
  17937. #include <X11/Xlib.h>
  17938. #include <X11/Xproto.h>
  17939. #include <X11/extensions/Xext.h>
  17940. #include <X11/extensions/extutil.h>
  17941. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17942. int
  17943. main ()
  17944. {
  17945. ;
  17946. return 0;
  17947. }
  17948. _ACEOF
  17949. if ac_fn_c_try_compile "$LINENO"; then :
  17950. have_const_param_XextAddDisplay=yes
  17951. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17952. fi
  17953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17955. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17957. $as_echo_n "checking for XGenericEvent... " >&6; }
  17958. have_XGenericEvent=no
  17959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17960. /* end confdefs.h. */
  17961. #include <X11/Xlib.h>
  17962. int
  17963. main ()
  17964. {
  17965. Display *display;
  17966. XEvent event;
  17967. XGenericEventCookie *cookie = &event.xcookie;
  17968. XNextEvent(display, &event);
  17969. XGetEventData(display, cookie);
  17970. XFreeEventData(display, cookie);
  17971. ;
  17972. return 0;
  17973. }
  17974. _ACEOF
  17975. if ac_fn_c_try_compile "$LINENO"; then :
  17976. have_XGenericEvent=yes
  17977. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17978. fi
  17979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17981. $as_echo "$have_XGenericEvent" >&6; }
  17982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17983. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17984. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17985. $as_echo_n "(cached) " >&6
  17986. else
  17987. ac_check_lib_save_LIBS=$LIBS
  17988. LIBS="-lX11 $LIBS"
  17989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17990. /* end confdefs.h. */
  17991. /* Override any GCC internal prototype to avoid an error.
  17992. Use char because int might match the return type of a GCC
  17993. builtin and then its argument prototype would still apply. */
  17994. #ifdef __cplusplus
  17995. extern "C"
  17996. #endif
  17997. char XkbKeycodeToKeysym ();
  17998. int
  17999. main ()
  18000. {
  18001. return XkbKeycodeToKeysym ();
  18002. ;
  18003. return 0;
  18004. }
  18005. _ACEOF
  18006. if ac_fn_c_try_link "$LINENO"; then :
  18007. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18008. else
  18009. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18010. fi
  18011. rm -f core conftest.err conftest.$ac_objext \
  18012. conftest$ac_exeext conftest.$ac_ext
  18013. LIBS=$ac_check_lib_save_LIBS
  18014. fi
  18015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18016. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18017. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18018. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18019. fi
  18020. # Check whether --enable-video-x11-xcursor was given.
  18021. if test "${enable_video_x11_xcursor+set}" = set; then :
  18022. enableval=$enable_video_x11_xcursor;
  18023. else
  18024. enable_video_x11_xcursor=yes
  18025. fi
  18026. if test x$enable_video_x11_xcursor = xyes; then
  18027. definitely_enable_video_x11_xcursor=no
  18028. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18029. "
  18030. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18031. have_xcursor_h_hdr=yes
  18032. else
  18033. have_xcursor_h_hdr=no
  18034. fi
  18035. if test x$have_xcursor_h_hdr = xyes; then
  18036. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18037. echo "-- dynamic libXcursor -> $xcursor_lib"
  18038. cat >>confdefs.h <<_ACEOF
  18039. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18040. _ACEOF
  18041. definitely_enable_video_x11_xcursor=yes
  18042. else
  18043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18044. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18045. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18046. $as_echo_n "(cached) " >&6
  18047. else
  18048. ac_check_lib_save_LIBS=$LIBS
  18049. LIBS="-lXcursor $LIBS"
  18050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18051. /* end confdefs.h. */
  18052. /* Override any GCC internal prototype to avoid an error.
  18053. Use char because int might match the return type of a GCC
  18054. builtin and then its argument prototype would still apply. */
  18055. #ifdef __cplusplus
  18056. extern "C"
  18057. #endif
  18058. char XcursorImageCreate ();
  18059. int
  18060. main ()
  18061. {
  18062. return XcursorImageCreate ();
  18063. ;
  18064. return 0;
  18065. }
  18066. _ACEOF
  18067. if ac_fn_c_try_link "$LINENO"; then :
  18068. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18069. else
  18070. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18071. fi
  18072. rm -f core conftest.err conftest.$ac_objext \
  18073. conftest$ac_exeext conftest.$ac_ext
  18074. LIBS=$ac_check_lib_save_LIBS
  18075. fi
  18076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18077. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18078. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18079. have_xcursor_lib=yes
  18080. fi
  18081. if test x$have_xcursor_lib = xyes ; then
  18082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18083. definitely_enable_video_x11_xcursor=yes
  18084. fi
  18085. fi
  18086. fi
  18087. fi
  18088. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18089. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18090. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18091. fi
  18092. # Check whether --enable-video-x11-xdbe was given.
  18093. if test "${enable_video_x11_xdbe+set}" = set; then :
  18094. enableval=$enable_video_x11_xdbe;
  18095. else
  18096. enable_video_x11_xdbe=yes
  18097. fi
  18098. if test x$enable_video_x11_xdbe = xyes; then
  18099. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18100. "
  18101. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18102. have_dbe_h_hdr=yes
  18103. else
  18104. have_dbe_h_hdr=no
  18105. fi
  18106. if test x$have_dbe_h_hdr = xyes; then
  18107. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18108. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18109. fi
  18110. fi
  18111. # Check whether --enable-video-x11-xinerama was given.
  18112. if test "${enable_video_x11_xinerama+set}" = set; then :
  18113. enableval=$enable_video_x11_xinerama;
  18114. else
  18115. enable_video_x11_xinerama=yes
  18116. fi
  18117. if test x$enable_video_x11_xinerama = xyes; then
  18118. definitely_enable_video_x11_xinerama=no
  18119. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18120. "
  18121. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18122. have_xinerama_h_hdr=yes
  18123. else
  18124. have_xinerama_h_hdr=no
  18125. fi
  18126. if test x$have_xinerama_h_hdr = xyes; then
  18127. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18128. echo "-- dynamic libXinerama -> $xinerama_lib"
  18129. cat >>confdefs.h <<_ACEOF
  18130. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18131. _ACEOF
  18132. definitely_enable_video_x11_xinerama=yes
  18133. else
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18135. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18136. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18137. $as_echo_n "(cached) " >&6
  18138. else
  18139. ac_check_lib_save_LIBS=$LIBS
  18140. LIBS="-lXinerama $LIBS"
  18141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18142. /* end confdefs.h. */
  18143. /* Override any GCC internal prototype to avoid an error.
  18144. Use char because int might match the return type of a GCC
  18145. builtin and then its argument prototype would still apply. */
  18146. #ifdef __cplusplus
  18147. extern "C"
  18148. #endif
  18149. char XineramaQueryExtension ();
  18150. int
  18151. main ()
  18152. {
  18153. return XineramaQueryExtension ();
  18154. ;
  18155. return 0;
  18156. }
  18157. _ACEOF
  18158. if ac_fn_c_try_link "$LINENO"; then :
  18159. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18160. else
  18161. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18162. fi
  18163. rm -f core conftest.err conftest.$ac_objext \
  18164. conftest$ac_exeext conftest.$ac_ext
  18165. LIBS=$ac_check_lib_save_LIBS
  18166. fi
  18167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18168. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18169. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18170. have_xinerama_lib=yes
  18171. fi
  18172. if test x$have_xinerama_lib = xyes ; then
  18173. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18174. definitely_enable_video_x11_xinerama=yes
  18175. fi
  18176. fi
  18177. fi
  18178. fi
  18179. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18180. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18181. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18182. fi
  18183. # Check whether --enable-video-x11-xinput was given.
  18184. if test "${enable_video_x11_xinput+set}" = set; then :
  18185. enableval=$enable_video_x11_xinput;
  18186. else
  18187. enable_video_x11_xinput=yes
  18188. fi
  18189. if test x$enable_video_x11_xinput = xyes; then
  18190. definitely_enable_video_x11_xinput=no
  18191. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18192. "
  18193. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18194. have_xinput_h_hdr=yes
  18195. else
  18196. have_xinput_h_hdr=no
  18197. fi
  18198. if test x$have_xinput_h_hdr = xyes; then
  18199. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18200. echo "-- dynamic libXi -> $xinput_lib"
  18201. cat >>confdefs.h <<_ACEOF
  18202. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18203. _ACEOF
  18204. definitely_enable_video_x11_xinput=yes
  18205. else
  18206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18207. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18208. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18209. $as_echo_n "(cached) " >&6
  18210. else
  18211. ac_check_lib_save_LIBS=$LIBS
  18212. LIBS="-lXi $LIBS"
  18213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18214. /* end confdefs.h. */
  18215. /* Override any GCC internal prototype to avoid an error.
  18216. Use char because int might match the return type of a GCC
  18217. builtin and then its argument prototype would still apply. */
  18218. #ifdef __cplusplus
  18219. extern "C"
  18220. #endif
  18221. char XOpenDevice ();
  18222. int
  18223. main ()
  18224. {
  18225. return XOpenDevice ();
  18226. ;
  18227. return 0;
  18228. }
  18229. _ACEOF
  18230. if ac_fn_c_try_link "$LINENO"; then :
  18231. ac_cv_lib_Xi_XOpenDevice=yes
  18232. else
  18233. ac_cv_lib_Xi_XOpenDevice=no
  18234. fi
  18235. rm -f core conftest.err conftest.$ac_objext \
  18236. conftest$ac_exeext conftest.$ac_ext
  18237. LIBS=$ac_check_lib_save_LIBS
  18238. fi
  18239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18240. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18241. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18242. have_xinput_lib=yes
  18243. fi
  18244. if test x$have_xinput_lib = xyes ; then
  18245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18246. definitely_enable_video_x11_xinput=yes
  18247. fi
  18248. fi
  18249. fi
  18250. fi
  18251. if test x$definitely_enable_video_x11_xinput = xyes; then
  18252. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18253. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18255. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18256. have_xinput2_multitouch=no
  18257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18258. /* end confdefs.h. */
  18259. #include <X11/Xlib.h>
  18260. #include <X11/Xproto.h>
  18261. #include <X11/extensions/XInput2.h>
  18262. int
  18263. main ()
  18264. {
  18265. int event_type = XI_TouchBegin;
  18266. XITouchClassInfo *t;
  18267. ;
  18268. return 0;
  18269. }
  18270. _ACEOF
  18271. if ac_fn_c_try_compile "$LINENO"; then :
  18272. have_xinput2_multitouch=yes
  18273. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18274. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18275. fi
  18276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18278. $as_echo "$have_xinput2_multitouch" >&6; }
  18279. fi
  18280. # Check whether --enable-video-x11-xrandr was given.
  18281. if test "${enable_video_x11_xrandr+set}" = set; then :
  18282. enableval=$enable_video_x11_xrandr;
  18283. else
  18284. enable_video_x11_xrandr=yes
  18285. fi
  18286. if test x$enable_video_x11_xrandr = xyes; then
  18287. definitely_enable_video_x11_xrandr=no
  18288. have_xrandr_h_hdr=no
  18289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18290. /* end confdefs.h. */
  18291. #include <X11/Xlib.h>
  18292. #include <X11/extensions/Xrandr.h>
  18293. int
  18294. main ()
  18295. {
  18296. XRRScreenResources *res = NULL;
  18297. ;
  18298. return 0;
  18299. }
  18300. _ACEOF
  18301. if ac_fn_c_try_compile "$LINENO"; then :
  18302. have_xrandr_h_hdr=yes
  18303. fi
  18304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18305. if test x$have_xrandr_h_hdr = xyes; then
  18306. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18307. echo "-- dynamic libXrandr -> $xrandr_lib"
  18308. cat >>confdefs.h <<_ACEOF
  18309. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18310. _ACEOF
  18311. definitely_enable_video_x11_xrandr=yes
  18312. else
  18313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18314. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18315. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18316. $as_echo_n "(cached) " >&6
  18317. else
  18318. ac_check_lib_save_LIBS=$LIBS
  18319. LIBS="-lXrandr $LIBS"
  18320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18321. /* end confdefs.h. */
  18322. /* Override any GCC internal prototype to avoid an error.
  18323. Use char because int might match the return type of a GCC
  18324. builtin and then its argument prototype would still apply. */
  18325. #ifdef __cplusplus
  18326. extern "C"
  18327. #endif
  18328. char XRRQueryExtension ();
  18329. int
  18330. main ()
  18331. {
  18332. return XRRQueryExtension ();
  18333. ;
  18334. return 0;
  18335. }
  18336. _ACEOF
  18337. if ac_fn_c_try_link "$LINENO"; then :
  18338. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18339. else
  18340. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18341. fi
  18342. rm -f core conftest.err conftest.$ac_objext \
  18343. conftest$ac_exeext conftest.$ac_ext
  18344. LIBS=$ac_check_lib_save_LIBS
  18345. fi
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18347. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18348. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18349. have_xrandr_lib=yes
  18350. fi
  18351. if test x$have_xrandr_lib = xyes ; then
  18352. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18353. definitely_enable_video_x11_xrandr=yes
  18354. fi
  18355. fi
  18356. fi
  18357. fi
  18358. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18359. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18360. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18361. fi
  18362. # Check whether --enable-video-x11-scrnsaver was given.
  18363. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18364. enableval=$enable_video_x11_scrnsaver;
  18365. else
  18366. enable_video_x11_scrnsaver=yes
  18367. fi
  18368. if test x$enable_video_x11_scrnsaver = xyes; then
  18369. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18370. "
  18371. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18372. have_scrnsaver_h_hdr=yes
  18373. else
  18374. have_scrnsaver_h_hdr=no
  18375. fi
  18376. if test x$have_scrnsaver_h_hdr = xyes; then
  18377. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18378. echo "-- dynamic libXss -> $xss_lib"
  18379. cat >>confdefs.h <<_ACEOF
  18380. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18381. _ACEOF
  18382. definitely_enable_video_x11_scrnsaver=yes
  18383. else
  18384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18385. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18386. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18387. $as_echo_n "(cached) " >&6
  18388. else
  18389. ac_check_lib_save_LIBS=$LIBS
  18390. LIBS="-lXss $LIBS"
  18391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18392. /* end confdefs.h. */
  18393. /* Override any GCC internal prototype to avoid an error.
  18394. Use char because int might match the return type of a GCC
  18395. builtin and then its argument prototype would still apply. */
  18396. #ifdef __cplusplus
  18397. extern "C"
  18398. #endif
  18399. char XScreenSaverSuspend ();
  18400. int
  18401. main ()
  18402. {
  18403. return XScreenSaverSuspend ();
  18404. ;
  18405. return 0;
  18406. }
  18407. _ACEOF
  18408. if ac_fn_c_try_link "$LINENO"; then :
  18409. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18410. else
  18411. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18412. fi
  18413. rm -f core conftest.err conftest.$ac_objext \
  18414. conftest$ac_exeext conftest.$ac_ext
  18415. LIBS=$ac_check_lib_save_LIBS
  18416. fi
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18418. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18419. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18420. have_xss_lib=yes
  18421. fi
  18422. if test x$have_xss_lib = xyes ; then
  18423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18424. definitely_enable_video_x11_scrnsaver=yes
  18425. fi
  18426. fi
  18427. fi
  18428. fi
  18429. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18430. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18431. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18432. fi
  18433. # Check whether --enable-video-x11-xshape was given.
  18434. if test "${enable_video_x11_xshape+set}" = set; then :
  18435. enableval=$enable_video_x11_xshape;
  18436. else
  18437. enable_video_x11_xshape=yes
  18438. fi
  18439. if test x$enable_video_x11_xshape = xyes; then
  18440. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18441. "
  18442. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18443. have_shape_h_hdr=yes
  18444. else
  18445. have_shape_h_hdr=no
  18446. fi
  18447. if test x$have_shape_h_hdr = xyes; then
  18448. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18449. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18450. fi
  18451. fi
  18452. # Check whether --enable-video-x11-vm was given.
  18453. if test "${enable_video_x11_vm+set}" = set; then :
  18454. enableval=$enable_video_x11_vm;
  18455. else
  18456. enable_video_x11_vm=yes
  18457. fi
  18458. if test x$enable_video_x11_vm = xyes; then
  18459. definitely_enable_video_x11_vm=no
  18460. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18461. "
  18462. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18463. have_vm_h_hdr=yes
  18464. else
  18465. have_vm_h_hdr=no
  18466. fi
  18467. if test x$have_vm_h_hdr = xyes; then
  18468. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18469. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18470. cat >>confdefs.h <<_ACEOF
  18471. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18472. _ACEOF
  18473. definitely_enable_video_x11_vm=yes
  18474. else
  18475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18476. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18477. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18478. $as_echo_n "(cached) " >&6
  18479. else
  18480. ac_check_lib_save_LIBS=$LIBS
  18481. LIBS="-lXxf86vm $LIBS"
  18482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18483. /* end confdefs.h. */
  18484. /* Override any GCC internal prototype to avoid an error.
  18485. Use char because int might match the return type of a GCC
  18486. builtin and then its argument prototype would still apply. */
  18487. #ifdef __cplusplus
  18488. extern "C"
  18489. #endif
  18490. char XF86VidModeQueryVersion ();
  18491. int
  18492. main ()
  18493. {
  18494. return XF86VidModeQueryVersion ();
  18495. ;
  18496. return 0;
  18497. }
  18498. _ACEOF
  18499. if ac_fn_c_try_link "$LINENO"; then :
  18500. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18501. else
  18502. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18503. fi
  18504. rm -f core conftest.err conftest.$ac_objext \
  18505. conftest$ac_exeext conftest.$ac_ext
  18506. LIBS=$ac_check_lib_save_LIBS
  18507. fi
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18509. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18510. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18511. have_vm_lib=yes
  18512. fi
  18513. if test x$have_vm_lib = xyes ; then
  18514. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18515. definitely_enable_video_x11_vm=yes
  18516. fi
  18517. fi
  18518. fi
  18519. fi
  18520. if test x$definitely_enable_video_x11_vm = xyes; then
  18521. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18522. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18523. fi
  18524. fi
  18525. else
  18526. # Prevent Mesa from including X11 headers
  18527. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18528. fi
  18529. }
  18530. CheckVivanteVideo()
  18531. {
  18532. # Check whether --enable-video-vivante was given.
  18533. if test "${enable_video_vivante+set}" = set; then :
  18534. enableval=$enable_video_vivante;
  18535. else
  18536. enable_video_vivante=yes
  18537. fi
  18538. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18540. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18541. have_vivante_vdk=no
  18542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18543. /* end confdefs.h. */
  18544. #define LINUX
  18545. #define EGL_API_FB
  18546. #include <gc_vdk.h>
  18547. int
  18548. main ()
  18549. {
  18550. ;
  18551. return 0;
  18552. }
  18553. _ACEOF
  18554. if ac_fn_c_try_compile "$LINENO"; then :
  18555. have_vivante_vdk=yes
  18556. fi
  18557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18559. $as_echo "$have_vivante_vdk" >&6; }
  18560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18561. $as_echo_n "checking for Vivante FB API... " >&6; }
  18562. have_vivante_egl=no
  18563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18564. /* end confdefs.h. */
  18565. #define LINUX
  18566. #define EGL_API_FB
  18567. #include <EGL/eglvivante.h>
  18568. int
  18569. main ()
  18570. {
  18571. ;
  18572. return 0;
  18573. }
  18574. _ACEOF
  18575. if ac_fn_c_try_compile "$LINENO"; then :
  18576. have_vivante_egl=yes
  18577. fi
  18578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18580. $as_echo "$have_vivante_egl" >&6; }
  18581. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18582. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18583. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18584. if test x$have_vivante_vdk = xyes; then
  18585. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18587. fi
  18588. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18589. SUMMARY_video="${SUMMARY_video} vivante"
  18590. have_video=yes
  18591. fi
  18592. fi
  18593. }
  18594. CheckHaikuVideo()
  18595. {
  18596. if test x$enable_video = xyes; then
  18597. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18598. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18599. have_video=yes
  18600. SUMMARY_video="${SUMMARY_video} haiku"
  18601. fi
  18602. }
  18603. CheckCOCOA()
  18604. {
  18605. # Check whether --enable-video-cocoa was given.
  18606. if test "${enable_video_cocoa+set}" = set; then :
  18607. enableval=$enable_video_cocoa;
  18608. else
  18609. enable_video_cocoa=yes
  18610. fi
  18611. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18612. save_CFLAGS="$CFLAGS"
  18613. CFLAGS="$CFLAGS -x objective-c"
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18615. $as_echo_n "checking for Cocoa framework... " >&6; }
  18616. have_cocoa=no
  18617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18618. /* end confdefs.h. */
  18619. #import <Cocoa/Cocoa.h>
  18620. int
  18621. main ()
  18622. {
  18623. ;
  18624. return 0;
  18625. }
  18626. _ACEOF
  18627. if ac_fn_c_try_compile "$LINENO"; then :
  18628. have_cocoa=yes
  18629. fi
  18630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18632. $as_echo "$have_cocoa" >&6; }
  18633. CFLAGS="$save_CFLAGS"
  18634. if test x$have_cocoa = xyes; then
  18635. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18636. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18637. SUMMARY_video="${SUMMARY_video} cocoa"
  18638. have_video=yes
  18639. fi
  18640. fi
  18641. }
  18642. CheckMETAL()
  18643. {
  18644. # Check whether --enable-video-metal was given.
  18645. if test "${enable_video_metal+set}" = set; then :
  18646. enableval=$enable_video_metal;
  18647. else
  18648. enable_video_metal=yes
  18649. fi
  18650. # Check whether --enable-render-metal was given.
  18651. if test "${enable_render_metal+set}" = set; then :
  18652. enableval=$enable_render_metal;
  18653. else
  18654. enable_render_metal=yes
  18655. fi
  18656. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18657. save_CFLAGS="$CFLAGS"
  18658. CFLAGS="$CFLAGS -x objective-c"
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18660. $as_echo_n "checking for Metal framework... " >&6; }
  18661. have_metal=no
  18662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18663. /* end confdefs.h. */
  18664. #import <Cocoa/Cocoa.h>
  18665. #import <Metal/Metal.h>
  18666. #import <QuartzCore/CAMetalLayer.h>
  18667. #if TARGET_CPU_X86
  18668. #error Metal doesn't work on this configuration
  18669. #endif
  18670. int
  18671. main ()
  18672. {
  18673. ;
  18674. return 0;
  18675. }
  18676. _ACEOF
  18677. if ac_fn_c_try_compile "$LINENO"; then :
  18678. have_metal=yes
  18679. fi
  18680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18681. CFLAGS="$save_CFLAGS"
  18682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18683. $as_echo "$have_metal" >&6; }
  18684. if test x$have_metal = xyes; then
  18685. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18686. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18687. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18688. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18689. fi
  18690. SUMMARY_video="${SUMMARY_video} metal"
  18691. else
  18692. enable_video_metal=no
  18693. enable_render_metal=no
  18694. fi
  18695. fi
  18696. }
  18697. CheckDirectFB()
  18698. {
  18699. # Check whether --enable-video-directfb was given.
  18700. if test "${enable_video_directfb+set}" = set; then :
  18701. enableval=$enable_video_directfb;
  18702. else
  18703. enable_video_directfb=no
  18704. fi
  18705. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18706. pkg_failed=no
  18707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18708. $as_echo_n "checking for DIRECTFB... " >&6; }
  18709. if test -n "$DIRECTFB_CFLAGS"; then
  18710. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18711. elif test -n "$PKG_CONFIG"; then
  18712. if test -n "$PKG_CONFIG" && \
  18713. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18714. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18715. ac_status=$?
  18716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18717. test $ac_status = 0; }; then
  18718. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18719. else
  18720. pkg_failed=yes
  18721. fi
  18722. else
  18723. pkg_failed=untried
  18724. fi
  18725. if test -n "$DIRECTFB_LIBS"; then
  18726. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18727. elif test -n "$PKG_CONFIG"; then
  18728. if test -n "$PKG_CONFIG" && \
  18729. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18730. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18731. ac_status=$?
  18732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18733. test $ac_status = 0; }; then
  18734. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18735. else
  18736. pkg_failed=yes
  18737. fi
  18738. else
  18739. pkg_failed=untried
  18740. fi
  18741. if test $pkg_failed = yes; then
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18743. $as_echo "no" >&6; }
  18744. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18745. _pkg_short_errors_supported=yes
  18746. else
  18747. _pkg_short_errors_supported=no
  18748. fi
  18749. if test $_pkg_short_errors_supported = yes; then
  18750. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18751. else
  18752. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18753. fi
  18754. # Put the nasty error message in config.log where it belongs
  18755. echo "$DIRECTFB_PKG_ERRORS" >&5
  18756. video_directfb=no
  18757. elif test $pkg_failed = untried; then
  18758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18759. $as_echo "no" >&6; }
  18760. video_directfb=no
  18761. else
  18762. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18763. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18765. $as_echo "yes" >&6; }
  18766. video_directfb=yes
  18767. fi
  18768. if test x$video_directfb = xyes; then
  18769. # SuSE 11.1 installs directfb-config without directfb-devel
  18770. save_CPPFLAGS="$CPPFLAGS"
  18771. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18772. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18773. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18774. have_directfb_hdr=yes
  18775. else
  18776. have_directfb_hdr=no
  18777. fi
  18778. CPPFLAGS="$save_CPPFLAGS"
  18779. video_directfb=$have_directfb_hdr
  18780. fi
  18781. if test x$video_directfb = xyes; then
  18782. # Check whether --enable-directfb-shared was given.
  18783. if test "${enable_directfb_shared+set}" = set; then :
  18784. enableval=$enable_directfb_shared;
  18785. else
  18786. enable_directfb_shared=yes
  18787. fi
  18788. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18789. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18790. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18791. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18793. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18794. directfb_shared=no
  18795. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18796. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18798. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18799. if test x$have_loadso != xyes && \
  18800. test x$enable_directfb_shared = xyes; then
  18801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18802. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18803. fi
  18804. if test x$have_loadso = xyes && \
  18805. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18806. directfb_shared=yes
  18807. echo "-- $directfb_lib_spec -> $directfb_lib"
  18808. cat >>confdefs.h <<_ACEOF
  18809. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18810. _ACEOF
  18811. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18812. else
  18813. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18814. SUMMARY_video="${SUMMARY_video} directfb"
  18815. fi
  18816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18817. $as_echo "$directfb_shared" >&6; }
  18818. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18819. have_video=yes
  18820. fi
  18821. fi
  18822. }
  18823. CheckKMSDRM()
  18824. {
  18825. # Check whether --enable-video-kmsdrm was given.
  18826. if test "${enable_video_kmsdrm+set}" = set; then :
  18827. enableval=$enable_video_kmsdrm;
  18828. else
  18829. enable_video_kmsdrm=no
  18830. fi
  18831. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18832. video_kmsdrm=no
  18833. pkg_failed=no
  18834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18835. $as_echo_n "checking for LIBDRM... " >&6; }
  18836. if test -n "$LIBDRM_CFLAGS"; then
  18837. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18838. elif test -n "$PKG_CONFIG"; then
  18839. if test -n "$PKG_CONFIG" && \
  18840. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18841. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18842. ac_status=$?
  18843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18844. test $ac_status = 0; }; then
  18845. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18846. else
  18847. pkg_failed=yes
  18848. fi
  18849. else
  18850. pkg_failed=untried
  18851. fi
  18852. if test -n "$LIBDRM_LIBS"; then
  18853. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18854. elif test -n "$PKG_CONFIG"; then
  18855. if test -n "$PKG_CONFIG" && \
  18856. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18857. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18858. ac_status=$?
  18859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18860. test $ac_status = 0; }; then
  18861. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  18862. else
  18863. pkg_failed=yes
  18864. fi
  18865. else
  18866. pkg_failed=untried
  18867. fi
  18868. if test $pkg_failed = yes; then
  18869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18870. $as_echo "no" >&6; }
  18871. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18872. _pkg_short_errors_supported=yes
  18873. else
  18874. _pkg_short_errors_supported=no
  18875. fi
  18876. if test $_pkg_short_errors_supported = yes; then
  18877. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1`
  18878. else
  18879. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1`
  18880. fi
  18881. # Put the nasty error message in config.log where it belongs
  18882. echo "$LIBDRM_PKG_ERRORS" >&5
  18883. libdrm_avail=no
  18884. elif test $pkg_failed = untried; then
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18886. $as_echo "no" >&6; }
  18887. libdrm_avail=no
  18888. else
  18889. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18890. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18892. $as_echo "yes" >&6; }
  18893. libdrm_avail=yes
  18894. fi
  18895. pkg_failed=no
  18896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18897. $as_echo_n "checking for LIBGBM... " >&6; }
  18898. if test -n "$LIBGBM_CFLAGS"; then
  18899. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18900. elif test -n "$PKG_CONFIG"; then
  18901. if test -n "$PKG_CONFIG" && \
  18902. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18903. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18904. ac_status=$?
  18905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18906. test $ac_status = 0; }; then
  18907. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  18908. else
  18909. pkg_failed=yes
  18910. fi
  18911. else
  18912. pkg_failed=untried
  18913. fi
  18914. if test -n "$LIBGBM_LIBS"; then
  18915. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18916. elif test -n "$PKG_CONFIG"; then
  18917. if test -n "$PKG_CONFIG" && \
  18918. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18919. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18920. ac_status=$?
  18921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18922. test $ac_status = 0; }; then
  18923. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  18924. else
  18925. pkg_failed=yes
  18926. fi
  18927. else
  18928. pkg_failed=untried
  18929. fi
  18930. if test $pkg_failed = yes; then
  18931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18932. $as_echo "no" >&6; }
  18933. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18934. _pkg_short_errors_supported=yes
  18935. else
  18936. _pkg_short_errors_supported=no
  18937. fi
  18938. if test $_pkg_short_errors_supported = yes; then
  18939. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1`
  18940. else
  18941. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1`
  18942. fi
  18943. # Put the nasty error message in config.log where it belongs
  18944. echo "$LIBGBM_PKG_ERRORS" >&5
  18945. libgbm_avail=no
  18946. elif test $pkg_failed = untried; then
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18948. $as_echo "no" >&6; }
  18949. libgbm_avail=no
  18950. else
  18951. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18952. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18954. $as_echo "yes" >&6; }
  18955. libgbm_avail=yes
  18956. fi
  18957. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18958. video_kmsdrm=yes
  18959. fi
  18960. if test x$video_kmsdrm = xyes; then
  18961. # Check whether --enable-kmsdrm-shared was given.
  18962. if test "${enable_kmsdrm_shared+set}" = set; then :
  18963. enableval=$enable_kmsdrm_shared;
  18964. else
  18965. enable_kmsdrm_shared=yes
  18966. fi
  18967. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18968. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18969. SOURCES="$SOURCES $srcdir/src/video/kmsdrm_legacy/*.c"
  18970. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18972. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18973. kmsdrm_shared=no
  18974. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18975. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18976. if test x$have_loadso != xyes && \
  18977. test x$enable_kmsdrm_shared = xyes; then
  18978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18979. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18980. fi
  18981. if test x$have_loadso = xyes && \
  18982. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18983. kmsdrm_shared=yes
  18984. cat >>confdefs.h <<_ACEOF
  18985. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18986. _ACEOF
  18987. cat >>confdefs.h <<_ACEOF
  18988. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18989. _ACEOF
  18990. cat >>confdefs.h <<_ACEOF
  18991. #define HAVE_KMSDRM_SHARED "TRUE"
  18992. _ACEOF
  18993. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18994. else
  18995. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18996. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18997. fi
  18998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18999. $as_echo "$kmsdrm_shared" >&6; }
  19000. have_video=yes
  19001. fi
  19002. fi
  19003. }
  19004. CheckDummyVideo()
  19005. {
  19006. # Check whether --enable-video-dummy was given.
  19007. if test "${enable_video_dummy+set}" = set; then :
  19008. enableval=$enable_video_dummy;
  19009. else
  19010. enable_video_dummy=yes
  19011. fi
  19012. if test x$enable_video_dummy = xyes; then
  19013. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19014. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19015. have_video=yes
  19016. SUMMARY_video="${SUMMARY_video} dummy"
  19017. fi
  19018. }
  19019. CheckQNXVideo()
  19020. {
  19021. if test x$enable_video = xyes; then
  19022. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19023. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19024. have_video=yes
  19025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19026. SUMMARY_video="${SUMMARY_video} qnx"
  19027. fi
  19028. }
  19029. CheckQNXAudio()
  19030. {
  19031. if test x$enable_audio = xyes; then
  19032. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19033. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19034. have_audio=yes
  19035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19036. SUMMARY_audio="${SUMMARY_audio} qsa"
  19037. fi
  19038. }
  19039. # Check whether --enable-video-opengl was given.
  19040. if test "${enable_video_opengl+set}" = set; then :
  19041. enableval=$enable_video_opengl;
  19042. else
  19043. enable_video_opengl=yes
  19044. fi
  19045. CheckOpenGLX11()
  19046. {
  19047. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19049. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19050. video_opengl=no
  19051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19052. /* end confdefs.h. */
  19053. #include <GL/gl.h>
  19054. #include <GL/glx.h>
  19055. int
  19056. main ()
  19057. {
  19058. ;
  19059. return 0;
  19060. }
  19061. _ACEOF
  19062. if ac_fn_c_try_compile "$LINENO"; then :
  19063. video_opengl=yes
  19064. fi
  19065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19067. $as_echo "$video_opengl" >&6; }
  19068. if test x$video_opengl = xyes; then
  19069. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19070. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19071. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19072. SUMMARY_video="${SUMMARY_video} opengl"
  19073. fi
  19074. fi
  19075. }
  19076. # Check whether --enable-video-opengles was given.
  19077. if test "${enable_video_opengles+set}" = set; then :
  19078. enableval=$enable_video_opengles;
  19079. else
  19080. enable_video_opengles=yes
  19081. fi
  19082. # Check whether --enable-video-opengles1 was given.
  19083. if test "${enable_video_opengles1+set}" = set; then :
  19084. enableval=$enable_video_opengles1;
  19085. else
  19086. enable_video_opengles1=yes
  19087. fi
  19088. # Check whether --enable-video-opengles2 was given.
  19089. if test "${enable_video_opengles2+set}" = set; then :
  19090. enableval=$enable_video_opengles2;
  19091. else
  19092. enable_video_opengles2=yes
  19093. fi
  19094. CheckOpenGLESX11()
  19095. {
  19096. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19098. $as_echo_n "checking for EGL support... " >&6; }
  19099. video_opengl_egl=no
  19100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19101. /* end confdefs.h. */
  19102. #define LINUX
  19103. #define EGL_API_FB
  19104. #define MESA_EGL_NO_X11_HEADERS
  19105. #define EGL_NO_X11
  19106. #include <EGL/egl.h>
  19107. #include <EGL/eglext.h>
  19108. int
  19109. main ()
  19110. {
  19111. ;
  19112. return 0;
  19113. }
  19114. _ACEOF
  19115. if ac_fn_c_try_compile "$LINENO"; then :
  19116. video_opengl_egl=yes
  19117. fi
  19118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19120. $as_echo "$video_opengl_egl" >&6; }
  19121. if test x$video_opengl_egl = xyes; then
  19122. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19123. fi
  19124. if test x$enable_video_opengles1 = xyes; then
  19125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19126. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19127. video_opengles_v1=no
  19128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19129. /* end confdefs.h. */
  19130. #include <GLES/gl.h>
  19131. #include <GLES/glext.h>
  19132. int
  19133. main ()
  19134. {
  19135. ;
  19136. return 0;
  19137. }
  19138. _ACEOF
  19139. if ac_fn_c_try_compile "$LINENO"; then :
  19140. video_opengles_v1=yes
  19141. fi
  19142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19144. $as_echo "$video_opengles_v1" >&6; }
  19145. if test x$video_opengles_v1 = xyes; then
  19146. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19147. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19148. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19149. fi
  19150. fi
  19151. if test x$enable_video_opengles2 = xyes; then
  19152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19153. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19154. video_opengles_v2=no
  19155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19156. /* end confdefs.h. */
  19157. #include <GLES2/gl2.h>
  19158. #include <GLES2/gl2ext.h>
  19159. int
  19160. main ()
  19161. {
  19162. ;
  19163. return 0;
  19164. }
  19165. _ACEOF
  19166. if ac_fn_c_try_compile "$LINENO"; then :
  19167. video_opengles_v2=yes
  19168. fi
  19169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19171. $as_echo "$video_opengles_v2" >&6; }
  19172. if test x$video_opengles_v2 = xyes; then
  19173. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19174. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19175. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19176. fi
  19177. fi
  19178. fi
  19179. }
  19180. CheckWINDOWSGL()
  19181. {
  19182. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19183. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19184. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19185. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19186. SUMMARY_video="${SUMMARY_video} opengl"
  19187. fi
  19188. }
  19189. CheckWINDOWSGLES()
  19190. {
  19191. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19193. $as_echo_n "checking for EGL support... " >&6; }
  19194. video_opengl_egl=no
  19195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19196. /* end confdefs.h. */
  19197. #include <EGL/egl.h>
  19198. int
  19199. main ()
  19200. {
  19201. ;
  19202. return 0;
  19203. }
  19204. _ACEOF
  19205. if ac_fn_c_try_compile "$LINENO"; then :
  19206. video_opengl_egl=yes
  19207. fi
  19208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19210. $as_echo "$video_opengl_egl" >&6; }
  19211. if test x$video_opengl_egl = xyes; then
  19212. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19213. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19214. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19215. fi
  19216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19217. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19218. video_opengles_v2=no
  19219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19220. /* end confdefs.h. */
  19221. #include <GLES2/gl2.h>
  19222. #include <GLES2/gl2ext.h>
  19223. int
  19224. main ()
  19225. {
  19226. ;
  19227. return 0;
  19228. }
  19229. _ACEOF
  19230. if ac_fn_c_try_compile "$LINENO"; then :
  19231. video_opengles_v2=yes
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19235. $as_echo "$video_opengles_v2" >&6; }
  19236. if test x$video_opengles_v2 = xyes; then
  19237. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19238. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19239. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19240. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19241. fi
  19242. fi
  19243. }
  19244. CheckHaikuGL()
  19245. {
  19246. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19247. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19248. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19249. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19251. SUMMARY_video="${SUMMARY_video} opengl"
  19252. fi
  19253. }
  19254. CheckMacGL()
  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_CGL 1" >>confdefs.h
  19259. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19260. SUMMARY_video="${SUMMARY_video} opengl"
  19261. fi
  19262. }
  19263. CheckMacGLES()
  19264. {
  19265. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19266. video_opengl_egl=yes
  19267. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19268. video_opengles_v2=yes
  19269. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19270. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19271. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19272. fi
  19273. }
  19274. CheckEmscriptenGLES()
  19275. {
  19276. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19278. $as_echo_n "checking for EGL support... " >&6; }
  19279. video_opengl_egl=no
  19280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19281. /* end confdefs.h. */
  19282. #include <EGL/egl.h>
  19283. int
  19284. main ()
  19285. {
  19286. ;
  19287. return 0;
  19288. }
  19289. _ACEOF
  19290. if ac_fn_c_try_compile "$LINENO"; then :
  19291. video_opengl_egl=yes
  19292. fi
  19293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19295. $as_echo "$video_opengl_egl" >&6; }
  19296. if test x$video_opengl_egl = xyes; then
  19297. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19298. fi
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19300. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19301. video_opengles_v2=no
  19302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19303. /* end confdefs.h. */
  19304. #include <GLES2/gl2.h>
  19305. #include <GLES2/gl2ext.h>
  19306. int
  19307. main ()
  19308. {
  19309. ;
  19310. return 0;
  19311. }
  19312. _ACEOF
  19313. if ac_fn_c_try_compile "$LINENO"; then :
  19314. video_opengles_v2=yes
  19315. fi
  19316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19318. $as_echo "$video_opengles_v2" >&6; }
  19319. if test x$video_opengles_v2 = xyes; then
  19320. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19321. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19322. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19323. fi
  19324. fi
  19325. }
  19326. # Check whether --enable-video-vulkan was given.
  19327. if test "${enable_video_vulkan+set}" = set; then :
  19328. enableval=$enable_video_vulkan;
  19329. else
  19330. enable_video_vulkan=yes
  19331. fi
  19332. CheckVulkan()
  19333. {
  19334. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19335. case "$host" in
  19336. *-*-android*)
  19337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19338. /* end confdefs.h. */
  19339. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19340. #error Vulkan doesn't work on this configuration
  19341. #endif
  19342. int
  19343. main ()
  19344. {
  19345. ;
  19346. return 0;
  19347. }
  19348. _ACEOF
  19349. if ac_fn_c_try_compile "$LINENO"; then :
  19350. else
  19351. enable_video_vulkan=no
  19352. fi
  19353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19354. ;;
  19355. *-*-darwin*)
  19356. save_CFLAGS="$CFLAGS"
  19357. CFLAGS="$CFLAGS -x objective-c"
  19358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19359. /* end confdefs.h. */
  19360. #include <Cocoa/Cocoa.h>
  19361. #include <Metal/Metal.h>
  19362. #include <QuartzCore/CAMetalLayer.h>
  19363. #if TARGET_CPU_X86
  19364. #error Vulkan doesn't work on this configuration
  19365. #endif
  19366. int
  19367. main ()
  19368. {
  19369. ;
  19370. return 0;
  19371. }
  19372. _ACEOF
  19373. if ac_fn_c_try_compile "$LINENO"; then :
  19374. else
  19375. enable_video_vulkan=no
  19376. fi
  19377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19378. CFLAGS="$save_CFLAGS"
  19379. ;;
  19380. *)
  19381. ;;
  19382. esac
  19383. if test x$enable_video_vulkan = xno; then
  19384. # For reasons I am totally unable to see, I get an undefined macro error if
  19385. # I put this in the AC_TRY_COMPILE.
  19386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19387. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19388. fi
  19389. fi
  19390. if test x$enable_video_vulkan = xyes; then
  19391. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19392. SUMMARY_video="${SUMMARY_video} vulkan"
  19393. fi
  19394. }
  19395. CheckInputEvents()
  19396. {
  19397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19398. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19399. use_input_events=no
  19400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19401. /* end confdefs.h. */
  19402. #include <linux/input.h>
  19403. int
  19404. main ()
  19405. {
  19406. #ifndef EVIOCGNAME
  19407. #error EVIOCGNAME() ioctl not available
  19408. #endif
  19409. ;
  19410. return 0;
  19411. }
  19412. _ACEOF
  19413. if ac_fn_c_try_compile "$LINENO"; then :
  19414. use_input_events=yes
  19415. fi
  19416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19418. $as_echo "$use_input_events" >&6; }
  19419. if test x$use_input_events = xyes; then
  19420. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19421. SUMMARY_input="${SUMMARY_input} linuxev"
  19422. fi
  19423. }
  19424. CheckInputKD()
  19425. {
  19426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19427. $as_echo_n "checking for Linux kd.h... " >&6; }
  19428. use_input_kd=no
  19429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19430. /* end confdefs.h. */
  19431. #include <linux/kd.h>
  19432. #include <linux/keyboard.h>
  19433. int
  19434. main ()
  19435. {
  19436. struct kbentry kbe;
  19437. kbe.kb_table = KG_CTRL;
  19438. ioctl(0, KDGKBENT, &kbe);
  19439. ;
  19440. return 0;
  19441. }
  19442. _ACEOF
  19443. if ac_fn_c_try_compile "$LINENO"; then :
  19444. use_input_kd=yes
  19445. fi
  19446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19448. $as_echo "$use_input_kd" >&6; }
  19449. if test x$use_input_kd = xyes; then
  19450. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19451. SUMMARY_input="${SUMMARY_input} linuxkd"
  19452. fi
  19453. }
  19454. CheckInputKBIO()
  19455. {
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19457. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19458. use_input_kbio=no
  19459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19460. /* end confdefs.h. */
  19461. #include <sys/kbio.h>
  19462. #include <sys/ioctl.h>
  19463. int
  19464. main ()
  19465. {
  19466. accentmap_t accTable;
  19467. ioctl(0, KDENABIO, 1);
  19468. ;
  19469. return 0;
  19470. }
  19471. _ACEOF
  19472. if ac_fn_c_try_compile "$LINENO"; then :
  19473. use_input_kbio=yes
  19474. fi
  19475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19477. $as_echo "$use_input_kbio" >&6; }
  19478. if test x$use_input_kbio = xyes; then
  19479. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19480. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19481. fi
  19482. }
  19483. CheckLibUDev()
  19484. {
  19485. # Check whether --enable-libudev was given.
  19486. if test "${enable_libudev+set}" = set; then :
  19487. enableval=$enable_libudev;
  19488. else
  19489. enable_libudev=yes
  19490. fi
  19491. if test x$enable_libudev = xyes; then
  19492. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19493. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19494. have_libudev_h_hdr=yes
  19495. else
  19496. have_libudev_h_hdr=no
  19497. fi
  19498. if test x$have_libudev_h_hdr = xyes; then
  19499. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19500. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19501. if test x$udev_lib != x; then
  19502. echo "-- dynamic udev -> $udev_lib"
  19503. cat >>confdefs.h <<_ACEOF
  19504. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19505. _ACEOF
  19506. fi
  19507. fi
  19508. fi
  19509. }
  19510. CheckDBus()
  19511. {
  19512. # Check whether --enable-dbus was given.
  19513. if test "${enable_dbus+set}" = set; then :
  19514. enableval=$enable_dbus;
  19515. else
  19516. enable_dbus=yes
  19517. fi
  19518. if test x$enable_dbus = xyes; then
  19519. pkg_failed=no
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19521. $as_echo_n "checking for DBUS... " >&6; }
  19522. if test -n "$DBUS_CFLAGS"; then
  19523. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19524. elif test -n "$PKG_CONFIG"; then
  19525. if test -n "$PKG_CONFIG" && \
  19526. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19527. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19528. ac_status=$?
  19529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19530. test $ac_status = 0; }; then
  19531. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19532. else
  19533. pkg_failed=yes
  19534. fi
  19535. else
  19536. pkg_failed=untried
  19537. fi
  19538. if test -n "$DBUS_LIBS"; then
  19539. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19540. elif test -n "$PKG_CONFIG"; then
  19541. if test -n "$PKG_CONFIG" && \
  19542. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19543. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19544. ac_status=$?
  19545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19546. test $ac_status = 0; }; then
  19547. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19548. else
  19549. pkg_failed=yes
  19550. fi
  19551. else
  19552. pkg_failed=untried
  19553. fi
  19554. if test $pkg_failed = yes; then
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19556. $as_echo "no" >&6; }
  19557. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19558. _pkg_short_errors_supported=yes
  19559. else
  19560. _pkg_short_errors_supported=no
  19561. fi
  19562. if test $_pkg_short_errors_supported = yes; then
  19563. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19564. else
  19565. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19566. fi
  19567. # Put the nasty error message in config.log where it belongs
  19568. echo "$DBUS_PKG_ERRORS" >&5
  19569. have_dbus=no
  19570. elif test $pkg_failed = untried; then
  19571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19572. $as_echo "no" >&6; }
  19573. have_dbus=no
  19574. else
  19575. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19576. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19578. $as_echo "yes" >&6; }
  19579. have_dbus=yes
  19580. fi
  19581. save_CFLAGS="$CFLAGS"
  19582. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19583. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19584. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19585. have_dbus_dbus_h_hdr=yes
  19586. else
  19587. have_dbus_dbus_h_hdr=no
  19588. fi
  19589. CFLAGS="$save_CFLAGS"
  19590. if test x$have_dbus_dbus_h_hdr = xyes; then
  19591. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19592. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19593. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19594. fi
  19595. fi
  19596. }
  19597. CheckIME()
  19598. {
  19599. # Check whether --enable-ime was given.
  19600. if test "${enable_ime+set}" = set; then :
  19601. enableval=$enable_ime;
  19602. else
  19603. enable_ime=yes
  19604. fi
  19605. if test x$enable_ime = xyes; then
  19606. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19607. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19608. fi
  19609. }
  19610. CheckInotify()
  19611. {
  19612. save_LIBS="$LIBS"
  19613. case "$host" in
  19614. *-*-freebsd*) LIBS="$LIBS -linotify"
  19615. ;;
  19616. esac
  19617. for ac_header in sys/inotify.h
  19618. do :
  19619. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19620. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19621. cat >>confdefs.h <<_ACEOF
  19622. #define HAVE_SYS_INOTIFY_H 1
  19623. _ACEOF
  19624. have_inotify_inotify_h_hdr=yes
  19625. fi
  19626. done
  19627. for ac_func in inotify_init
  19628. do :
  19629. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19630. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19631. cat >>confdefs.h <<_ACEOF
  19632. #define HAVE_INOTIFY_INIT 1
  19633. _ACEOF
  19634. have_inotify=yes
  19635. fi
  19636. done
  19637. for ac_func in inotify_init1
  19638. do :
  19639. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19640. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19641. cat >>confdefs.h <<_ACEOF
  19642. #define HAVE_INOTIFY_INIT1 1
  19643. _ACEOF
  19644. fi
  19645. done
  19646. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19647. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19648. case "$host" in
  19649. *-*-freebsd*)
  19650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19651. ;;
  19652. esac
  19653. fi
  19654. LIBS="$save_LIBS"
  19655. }
  19656. CheckIBus()
  19657. {
  19658. # Check whether --enable-ibus was given.
  19659. if test "${enable_ibus+set}" = set; then :
  19660. enableval=$enable_ibus;
  19661. else
  19662. enable_ibus=yes
  19663. fi
  19664. if test x$enable_ibus = xyes; then
  19665. pkg_failed=no
  19666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19667. $as_echo_n "checking for IBUS... " >&6; }
  19668. if test -n "$IBUS_CFLAGS"; then
  19669. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19670. elif test -n "$PKG_CONFIG"; then
  19671. if test -n "$PKG_CONFIG" && \
  19672. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19673. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19674. ac_status=$?
  19675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19676. test $ac_status = 0; }; then
  19677. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19678. else
  19679. pkg_failed=yes
  19680. fi
  19681. else
  19682. pkg_failed=untried
  19683. fi
  19684. if test -n "$IBUS_LIBS"; then
  19685. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19686. elif test -n "$PKG_CONFIG"; then
  19687. if test -n "$PKG_CONFIG" && \
  19688. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19689. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19690. ac_status=$?
  19691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19692. test $ac_status = 0; }; then
  19693. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19694. else
  19695. pkg_failed=yes
  19696. fi
  19697. else
  19698. pkg_failed=untried
  19699. fi
  19700. if test $pkg_failed = yes; then
  19701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19702. $as_echo "no" >&6; }
  19703. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19704. _pkg_short_errors_supported=yes
  19705. else
  19706. _pkg_short_errors_supported=no
  19707. fi
  19708. if test $_pkg_short_errors_supported = yes; then
  19709. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19710. else
  19711. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19712. fi
  19713. # Put the nasty error message in config.log where it belongs
  19714. echo "$IBUS_PKG_ERRORS" >&5
  19715. have_ibus=no
  19716. elif test $pkg_failed = untried; then
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19718. $as_echo "no" >&6; }
  19719. have_ibus=no
  19720. else
  19721. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19722. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19724. $as_echo "yes" >&6; }
  19725. have_ibus=yes
  19726. fi
  19727. save_CFLAGS="$CFLAGS"
  19728. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19729. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19730. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19731. have_ibus_ibus_h_hdr=yes
  19732. else
  19733. have_ibus_ibus_h_hdr=no
  19734. fi
  19735. CFLAGS="$save_CFLAGS"
  19736. if test x$have_ibus_ibus_h_hdr = xyes; then
  19737. if test x$enable_ime != xyes; then
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19739. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19740. have_ibus_ibus_h_hdr=no
  19741. elif test x$enable_dbus != xyes; then
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19743. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19744. have_ibus_ibus_h_hdr=no
  19745. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19747. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19748. have_ibus_ibus_h_hdr=no
  19749. else
  19750. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19751. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19752. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19753. fi
  19754. fi
  19755. fi
  19756. }
  19757. CheckFcitx()
  19758. {
  19759. # Check whether --enable-fcitx was given.
  19760. if test "${enable_fcitx+set}" = set; then :
  19761. enableval=$enable_fcitx;
  19762. else
  19763. enable_fcitx=yes
  19764. fi
  19765. if test x$enable_fcitx = xyes; then
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19767. $as_echo_n "checking for fcitx support... " >&6; }
  19768. have_fcitx=no
  19769. if test x$enable_ime != xyes; then
  19770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19771. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19772. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19774. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19775. else
  19776. have_fcitx=yes
  19777. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19778. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19779. fi
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19781. $as_echo "$have_fcitx" >&6; }
  19782. fi
  19783. }
  19784. CheckJoystickMFI()
  19785. {
  19786. # Check whether --enable-joystick-mfi was given.
  19787. if test "${enable_joystick_mfi+set}" = set; then :
  19788. enableval=$enable_joystick_mfi;
  19789. else
  19790. enable_joystick_mfi=yes
  19791. fi
  19792. if test x$enable_joystick_mfi = xyes; then
  19793. save_CFLAGS="$CFLAGS"
  19794. save_LDFLAGS="$LDFLAGS"
  19795. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  19796. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  19798. $as_echo_n "checking for GameController framework... " >&6; }
  19799. enable_joystick_mfi=no
  19800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19801. /* end confdefs.h. */
  19802. #include <AvailabilityMacros.h>
  19803. #include <TargetConditionals.h>
  19804. #import <GameController/GameController.h>
  19805. int
  19806. main ()
  19807. {
  19808. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  19809. #error GameController framework doesn't work on this configuration
  19810. #endif
  19811. #if TARGET_CPU_X86
  19812. #error GameController framework doesn't work on this configuration
  19813. #endif
  19814. ;
  19815. return 0;
  19816. }
  19817. _ACEOF
  19818. if ac_fn_c_try_link "$LINENO"; then :
  19819. enable_joystick_mfi=yes
  19820. fi
  19821. rm -f core conftest.err conftest.$ac_objext \
  19822. conftest$ac_exeext conftest.$ac_ext
  19823. CFLAGS="$save_CFLAGS"
  19824. LDFLAGS="$save_LDFLAGS"
  19825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  19826. $as_echo "$enable_joystick_mfi" >&6; }
  19827. if test x$enable_joystick_mfi = xyes; then
  19828. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  19829. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  19830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  19831. fi
  19832. fi
  19833. }
  19834. CheckPTHREAD()
  19835. {
  19836. # Check whether --enable-pthreads was given.
  19837. if test "${enable_pthreads+set}" = set; then :
  19838. enableval=$enable_pthreads;
  19839. else
  19840. enable_pthreads=yes
  19841. fi
  19842. # Check whether --enable-pthread-sem was given.
  19843. if test "${enable_pthread_sem+set}" = set; then :
  19844. enableval=$enable_pthread_sem;
  19845. else
  19846. enable_pthread_sem=yes
  19847. fi
  19848. case "$host" in
  19849. *-*-android*)
  19850. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19851. pthread_lib=""
  19852. ;;
  19853. *-*-linux*|*-*-uclinux*)
  19854. pthread_cflags="-D_REENTRANT"
  19855. pthread_lib="-lpthread"
  19856. ;;
  19857. *-*-bsdi*)
  19858. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19859. pthread_lib=""
  19860. ;;
  19861. *-*-darwin*)
  19862. pthread_cflags="-D_THREAD_SAFE"
  19863. # causes Carbon.p complaints?
  19864. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19865. ;;
  19866. *-*-freebsd*|*-*-dragonfly*)
  19867. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19868. pthread_lib="-pthread"
  19869. ;;
  19870. *-*-netbsd*)
  19871. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19872. pthread_lib="-lpthread"
  19873. ;;
  19874. *-*-openbsd*)
  19875. pthread_cflags="-D_REENTRANT"
  19876. pthread_lib="-pthread"
  19877. ;;
  19878. *-*-solaris2.9)
  19879. # From Solaris 9+, posix4's preferred name is rt.
  19880. pthread_cflags="-D_REENTRANT"
  19881. pthread_lib="-lpthread -lrt"
  19882. ;;
  19883. *-*-solaris2.10)
  19884. # Solaris 10+ merged pthread into libc.
  19885. pthread_cflags="-D_REENTRANT"
  19886. pthread_lib="-lrt"
  19887. ;;
  19888. *-*-solaris*)
  19889. # Solaris 11+ merged rt into libc.
  19890. pthread_cflags="-D_REENTRANT"
  19891. pthread_lib=""
  19892. ;;
  19893. *-*-sysv5*)
  19894. pthread_cflags="-D_REENTRANT -Kthread"
  19895. pthread_lib=""
  19896. ;;
  19897. *-*-aix*)
  19898. pthread_cflags="-D_REENTRANT -mthreads"
  19899. pthread_lib="-lpthread"
  19900. ;;
  19901. *-*-hpux11*)
  19902. pthread_cflags="-D_REENTRANT"
  19903. pthread_lib="-L/usr/lib -lpthread"
  19904. ;;
  19905. *-*-haiku*)
  19906. pthread_cflags="-D_REENTRANT"
  19907. pthread_lib=""
  19908. ;;
  19909. *-*-nto*)
  19910. pthread_cflags="-D_REENTRANT"
  19911. pthread_lib=""
  19912. ;;
  19913. *)
  19914. pthread_cflags="-D_REENTRANT"
  19915. pthread_lib="-lpthread"
  19916. ;;
  19917. esac
  19918. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19919. # Save the original compiler flags and libraries
  19920. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19921. # Add the pthread compiler flags and libraries
  19922. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19923. # Check to see if we have pthread support on this system
  19924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19925. $as_echo_n "checking for pthreads... " >&6; }
  19926. use_pthreads=no
  19927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19928. /* end confdefs.h. */
  19929. #include <pthread.h>
  19930. int
  19931. main ()
  19932. {
  19933. pthread_attr_t type;
  19934. pthread_attr_init(&type);
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. if ac_fn_c_try_link "$LINENO"; then :
  19940. use_pthreads=yes
  19941. fi
  19942. rm -f core conftest.err conftest.$ac_objext \
  19943. conftest$ac_exeext conftest.$ac_ext
  19944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19945. $as_echo "$use_pthreads" >&6; }
  19946. # Restore the compiler flags and libraries
  19947. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19948. # Do futher testing if we have pthread support...
  19949. if test x$use_pthreads = xyes; then
  19950. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19951. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19952. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19953. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19954. # Save the original compiler flags and libraries
  19955. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19956. # Add the pthread compiler flags and libraries
  19957. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19958. # Check to see if recursive mutexes are available
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19960. $as_echo_n "checking for recursive mutexes... " >&6; }
  19961. has_recursive_mutexes=no
  19962. if test x$has_recursive_mutexes = xno; then
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. #define _GNU_SOURCE 1
  19966. #include <pthread.h>
  19967. int
  19968. main ()
  19969. {
  19970. pthread_mutexattr_t attr;
  19971. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19972. ;
  19973. return 0;
  19974. }
  19975. _ACEOF
  19976. if ac_fn_c_try_link "$LINENO"; then :
  19977. has_recursive_mutexes=yes
  19978. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19979. fi
  19980. rm -f core conftest.err conftest.$ac_objext \
  19981. conftest$ac_exeext conftest.$ac_ext
  19982. fi
  19983. if test x$has_recursive_mutexes = xno; then
  19984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19985. /* end confdefs.h. */
  19986. #define _GNU_SOURCE 1
  19987. #include <pthread.h>
  19988. int
  19989. main ()
  19990. {
  19991. pthread_mutexattr_t attr;
  19992. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19993. ;
  19994. return 0;
  19995. }
  19996. _ACEOF
  19997. if ac_fn_c_try_link "$LINENO"; then :
  19998. has_recursive_mutexes=yes
  19999. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20000. fi
  20001. rm -f core conftest.err conftest.$ac_objext \
  20002. conftest$ac_exeext conftest.$ac_ext
  20003. fi
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20005. $as_echo "$has_recursive_mutexes" >&6; }
  20006. # Check to see if pthread semaphore support is missing
  20007. if test x$enable_pthread_sem = xyes; then
  20008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20009. $as_echo_n "checking for pthread semaphores... " >&6; }
  20010. have_pthread_sem=no
  20011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20012. /* end confdefs.h. */
  20013. #include <pthread.h>
  20014. #include <semaphore.h>
  20015. int
  20016. main ()
  20017. {
  20018. ;
  20019. return 0;
  20020. }
  20021. _ACEOF
  20022. if ac_fn_c_try_compile "$LINENO"; then :
  20023. have_pthread_sem=yes
  20024. fi
  20025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20027. $as_echo "$have_pthread_sem" >&6; }
  20028. fi
  20029. if test x$have_pthread_sem = xyes; then
  20030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20031. $as_echo_n "checking for sem_timedwait... " >&6; }
  20032. have_sem_timedwait=no
  20033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20034. /* end confdefs.h. */
  20035. #include <pthread.h>
  20036. #include <semaphore.h>
  20037. int
  20038. main ()
  20039. {
  20040. sem_timedwait(NULL, NULL);
  20041. ;
  20042. return 0;
  20043. }
  20044. _ACEOF
  20045. if ac_fn_c_try_link "$LINENO"; then :
  20046. have_sem_timedwait=yes
  20047. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext \
  20050. conftest$ac_exeext conftest.$ac_ext
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20052. $as_echo "$have_sem_timedwait" >&6; }
  20053. fi
  20054. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20055. "
  20056. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20057. have_pthread_np_h=yes
  20058. else
  20059. have_pthread_np_h=no
  20060. fi
  20061. if test x$have_pthread_np_h = xyes; then
  20062. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20063. fi
  20064. # Check to see if pthread naming is available
  20065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20066. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20068. /* end confdefs.h. */
  20069. /* Override any GCC internal prototype to avoid an error.
  20070. Use char because int might match the return type of a GCC
  20071. builtin and then its argument prototype would still apply. */
  20072. #ifdef __cplusplus
  20073. extern "C"
  20074. #endif
  20075. char pthread_setname_np ();
  20076. int
  20077. main ()
  20078. {
  20079. return pthread_setname_np ();
  20080. ;
  20081. return 0;
  20082. }
  20083. _ACEOF
  20084. if ac_fn_c_try_link "$LINENO"; then :
  20085. has_pthread_setname_np=yes
  20086. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20087. else
  20088. has_pthread_setname_np=no
  20089. fi
  20090. rm -f core conftest.err conftest.$ac_objext \
  20091. conftest$ac_exeext conftest.$ac_ext
  20092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20093. $as_echo "$has_pthread_setname_np" >&6; }
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20095. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20097. /* end confdefs.h. */
  20098. /* Override any GCC internal prototype to avoid an error.
  20099. Use char because int might match the return type of a GCC
  20100. builtin and then its argument prototype would still apply. */
  20101. #ifdef __cplusplus
  20102. extern "C"
  20103. #endif
  20104. char pthread_set_name_np ();
  20105. int
  20106. main ()
  20107. {
  20108. return pthread_set_name_np ();
  20109. ;
  20110. return 0;
  20111. }
  20112. _ACEOF
  20113. if ac_fn_c_try_link "$LINENO"; then :
  20114. has_pthread_set_name_np=yes
  20115. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20116. else
  20117. has_pthread_set_name_np=no
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext \
  20120. conftest$ac_exeext conftest.$ac_ext
  20121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20122. $as_echo "$has_pthread_set_name_np" >&6; }
  20123. # Restore the compiler flags and libraries
  20124. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20125. # Basic thread creation functions
  20126. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20127. # Semaphores
  20128. # We can fake these with mutexes and condition variables if necessary
  20129. if test x$have_pthread_sem = xyes; then
  20130. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20131. else
  20132. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20133. fi
  20134. # Mutexes
  20135. # We can fake these with semaphores if necessary
  20136. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20137. # Condition variables
  20138. # We can fake these with semaphores and mutexes if necessary
  20139. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20140. # Thread local storage
  20141. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20142. have_threads=yes
  20143. fi
  20144. fi
  20145. }
  20146. CheckWINDOWS()
  20147. {
  20148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20149. $as_echo_n "checking Windows compiler... " >&6; }
  20150. have_win32_gcc=no
  20151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20152. /* end confdefs.h. */
  20153. #include <windows.h>
  20154. int
  20155. main ()
  20156. {
  20157. ;
  20158. return 0;
  20159. }
  20160. _ACEOF
  20161. if ac_fn_c_try_compile "$LINENO"; then :
  20162. have_win32_gcc=yes
  20163. fi
  20164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20166. $as_echo "$have_win32_gcc" >&6; }
  20167. if test x$have_win32_gcc != xyes; then
  20168. as_fn_error $? "
  20169. *** Your compiler ($CC) does not produce Windows executables!
  20170. " "$LINENO" 5
  20171. fi
  20172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20173. $as_echo_n "checking Windows CE... " >&6; }
  20174. have_wince=no
  20175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20176. /* end confdefs.h. */
  20177. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20178. #error This is not Windows CE
  20179. #endif
  20180. int
  20181. main ()
  20182. {
  20183. ;
  20184. return 0;
  20185. }
  20186. _ACEOF
  20187. if ac_fn_c_try_compile "$LINENO"; then :
  20188. have_wince=yes
  20189. as_fn_error $? "
  20190. *** Sorry, Windows CE is no longer supported.
  20191. " "$LINENO" 5
  20192. fi
  20193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20195. $as_echo "$have_wince" >&6; }
  20196. # This fixes Windows stack alignment with newer GCC
  20197. CheckStackBoundary
  20198. }
  20199. CheckDIRECTX()
  20200. {
  20201. # Check whether --enable-directx was given.
  20202. if test "${enable_directx+set}" = set; then :
  20203. enableval=$enable_directx;
  20204. else
  20205. enable_directx=yes
  20206. fi
  20207. if test x$enable_directx = xyes; then
  20208. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20209. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20210. have_d3d=yes
  20211. fi
  20212. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20213. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20214. have_d3d11=yes
  20215. fi
  20216. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20217. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20218. have_ddraw=yes
  20219. fi
  20220. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20221. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20222. have_dsound=yes
  20223. fi
  20224. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20225. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20226. have_dinput=yes
  20227. fi
  20228. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20229. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20230. have_dxgi=yes
  20231. fi
  20232. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20233. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20234. have_xinput=yes
  20235. fi
  20236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20237. /* end confdefs.h. */
  20238. #include <windows.h>
  20239. #include <xinput.h>
  20240. XINPUT_GAMEPAD_EX x1;
  20241. int
  20242. main ()
  20243. {
  20244. ;
  20245. return 0;
  20246. }
  20247. _ACEOF
  20248. if ac_fn_c_try_compile "$LINENO"; then :
  20249. have_xinput_gamepadex=yes
  20250. fi
  20251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20253. /* end confdefs.h. */
  20254. #include <windows.h>
  20255. #include <xinput.h>
  20256. XINPUT_STATE_EX s1;
  20257. int
  20258. main ()
  20259. {
  20260. ;
  20261. return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_compile "$LINENO"; then :
  20265. have_xinput_stateex=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20268. if test x$have_ddraw = xyes; then
  20269. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20270. fi
  20271. if test x$have_dinput = xyes; then
  20272. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20273. fi
  20274. if test x$have_dsound = xyes; then
  20275. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20276. fi
  20277. if test x$have_dxgi = xyes; then
  20278. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20279. fi
  20280. if test x$have_xinput = xyes; then
  20281. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20282. fi
  20283. if test x$have_xinput_gamepadex = xyes; then
  20284. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20285. fi
  20286. if test x$have_xinput_stateex = xyes; then
  20287. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20288. fi
  20289. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20290. # FIXME: ...so force it off for now.
  20291. case "$host" in
  20292. *-*-cygwin*)
  20293. have_dinput=false
  20294. ;;
  20295. esac
  20296. fi
  20297. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20298. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20299. have_wasapi=yes
  20300. fi
  20301. if test x$have_wasapi = xyes; then
  20302. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20303. fi
  20304. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20305. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20306. else
  20307. have_wasapi=no
  20308. fi
  20309. if test x$have_wasapi = xyes; then
  20310. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20311. fi
  20312. # Check whether --enable-wasapi was given.
  20313. if test "${enable_wasapi+set}" = set; then :
  20314. enableval=$enable_wasapi;
  20315. else
  20316. enable_wasapi=yes
  20317. fi
  20318. }
  20319. CheckDLOPEN()
  20320. {
  20321. # Check whether --enable-sdl-dlopen was given.
  20322. if test "${enable_sdl_dlopen+set}" = set; then :
  20323. enableval=$enable_sdl_dlopen;
  20324. else
  20325. enable_sdl_dlopen=yes
  20326. fi
  20327. if test x$enable_sdl_dlopen = xyes; then
  20328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20329. $as_echo_n "checking for dlopen... " >&6; }
  20330. have_dlopen=no
  20331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20332. /* end confdefs.h. */
  20333. #include <dlfcn.h>
  20334. int
  20335. main ()
  20336. {
  20337. void *handle = dlopen("", RTLD_NOW);
  20338. const char *loaderror = (char *) dlerror();
  20339. ;
  20340. return 0;
  20341. }
  20342. _ACEOF
  20343. if ac_fn_c_try_compile "$LINENO"; then :
  20344. have_dlopen=yes
  20345. fi
  20346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20348. $as_echo "$have_dlopen" >&6; }
  20349. if test x$have_dlopen = xyes; then
  20350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20351. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20352. if ${ac_cv_lib_c_dlopen+:} false; then :
  20353. $as_echo_n "(cached) " >&6
  20354. else
  20355. ac_check_lib_save_LIBS=$LIBS
  20356. LIBS="-lc $LIBS"
  20357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20358. /* end confdefs.h. */
  20359. /* Override any GCC internal prototype to avoid an error.
  20360. Use char because int might match the return type of a GCC
  20361. builtin and then its argument prototype would still apply. */
  20362. #ifdef __cplusplus
  20363. extern "C"
  20364. #endif
  20365. char dlopen ();
  20366. int
  20367. main ()
  20368. {
  20369. return dlopen ();
  20370. ;
  20371. return 0;
  20372. }
  20373. _ACEOF
  20374. if ac_fn_c_try_link "$LINENO"; then :
  20375. ac_cv_lib_c_dlopen=yes
  20376. else
  20377. ac_cv_lib_c_dlopen=no
  20378. fi
  20379. rm -f core conftest.err conftest.$ac_objext \
  20380. conftest$ac_exeext conftest.$ac_ext
  20381. LIBS=$ac_check_lib_save_LIBS
  20382. fi
  20383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20384. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20385. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20386. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20387. else
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20389. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20390. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20391. $as_echo_n "(cached) " >&6
  20392. else
  20393. ac_check_lib_save_LIBS=$LIBS
  20394. LIBS="-ldl $LIBS"
  20395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20396. /* end confdefs.h. */
  20397. /* Override any GCC internal prototype to avoid an error.
  20398. Use char because int might match the return type of a GCC
  20399. builtin and then its argument prototype would still apply. */
  20400. #ifdef __cplusplus
  20401. extern "C"
  20402. #endif
  20403. char dlopen ();
  20404. int
  20405. main ()
  20406. {
  20407. return dlopen ();
  20408. ;
  20409. return 0;
  20410. }
  20411. _ACEOF
  20412. if ac_fn_c_try_link "$LINENO"; then :
  20413. ac_cv_lib_dl_dlopen=yes
  20414. else
  20415. ac_cv_lib_dl_dlopen=no
  20416. fi
  20417. rm -f core conftest.err conftest.$ac_objext \
  20418. conftest$ac_exeext conftest.$ac_ext
  20419. LIBS=$ac_check_lib_save_LIBS
  20420. fi
  20421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20422. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20423. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20424. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20425. else
  20426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20427. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20428. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20429. $as_echo_n "(cached) " >&6
  20430. else
  20431. ac_check_lib_save_LIBS=$LIBS
  20432. LIBS="-lltdl $LIBS"
  20433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20434. /* end confdefs.h. */
  20435. /* Override any GCC internal prototype to avoid an error.
  20436. Use char because int might match the return type of a GCC
  20437. builtin and then its argument prototype would still apply. */
  20438. #ifdef __cplusplus
  20439. extern "C"
  20440. #endif
  20441. char dlopen ();
  20442. int
  20443. main ()
  20444. {
  20445. return dlopen ();
  20446. ;
  20447. return 0;
  20448. }
  20449. _ACEOF
  20450. if ac_fn_c_try_link "$LINENO"; then :
  20451. ac_cv_lib_ltdl_dlopen=yes
  20452. else
  20453. ac_cv_lib_ltdl_dlopen=no
  20454. fi
  20455. rm -f core conftest.err conftest.$ac_objext \
  20456. conftest$ac_exeext conftest.$ac_ext
  20457. LIBS=$ac_check_lib_save_LIBS
  20458. fi
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20460. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20461. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20463. fi
  20464. fi
  20465. fi
  20466. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20467. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20468. have_loadso=yes
  20469. fi
  20470. fi
  20471. }
  20472. CheckUSBHID()
  20473. {
  20474. case "$host" in
  20475. *-*-*bsd*|*-*-dragonfly*)
  20476. if test x$enable_joystick = xyes; then
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20478. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20479. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20480. $as_echo_n "(cached) " >&6
  20481. else
  20482. ac_check_lib_save_LIBS=$LIBS
  20483. LIBS="-lusbhid $LIBS"
  20484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20485. /* end confdefs.h. */
  20486. /* Override any GCC internal prototype to avoid an error.
  20487. Use char because int might match the return type of a GCC
  20488. builtin and then its argument prototype would still apply. */
  20489. #ifdef __cplusplus
  20490. extern "C"
  20491. #endif
  20492. char hid_init ();
  20493. int
  20494. main ()
  20495. {
  20496. return hid_init ();
  20497. ;
  20498. return 0;
  20499. }
  20500. _ACEOF
  20501. if ac_fn_c_try_link "$LINENO"; then :
  20502. ac_cv_lib_usbhid_hid_init=yes
  20503. else
  20504. ac_cv_lib_usbhid_hid_init=no
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext \
  20507. conftest$ac_exeext conftest.$ac_ext
  20508. LIBS=$ac_check_lib_save_LIBS
  20509. fi
  20510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20511. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20512. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20513. have_libusbhid=yes
  20514. fi
  20515. if test x$have_libusbhid = xyes; then
  20516. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20517. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20518. USB_CFLAGS="-DHAVE_USBHID_H"
  20519. fi
  20520. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20521. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20522. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20523. fi
  20524. USB_LIBS="$USB_LIBS -lusbhid"
  20525. else
  20526. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20527. if test "x$ac_cv_header_usb_h" = xyes; then :
  20528. USB_CFLAGS="-DHAVE_USB_H"
  20529. fi
  20530. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20531. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20532. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20533. fi
  20534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20535. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20536. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20537. $as_echo_n "(cached) " >&6
  20538. else
  20539. ac_check_lib_save_LIBS=$LIBS
  20540. LIBS="-lusb $LIBS"
  20541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20542. /* end confdefs.h. */
  20543. /* Override any GCC internal prototype to avoid an error.
  20544. Use char because int might match the return type of a GCC
  20545. builtin and then its argument prototype would still apply. */
  20546. #ifdef __cplusplus
  20547. extern "C"
  20548. #endif
  20549. char hid_init ();
  20550. int
  20551. main ()
  20552. {
  20553. return hid_init ();
  20554. ;
  20555. return 0;
  20556. }
  20557. _ACEOF
  20558. if ac_fn_c_try_link "$LINENO"; then :
  20559. ac_cv_lib_usb_hid_init=yes
  20560. else
  20561. ac_cv_lib_usb_hid_init=no
  20562. fi
  20563. rm -f core conftest.err conftest.$ac_objext \
  20564. conftest$ac_exeext conftest.$ac_ext
  20565. LIBS=$ac_check_lib_save_LIBS
  20566. fi
  20567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20568. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20569. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20570. USB_LIBS="$USB_LIBS -lusb"
  20571. fi
  20572. fi
  20573. save_CFLAGS="$CFLAGS"
  20574. CFLAGS="$CFLAGS $USB_CFLAGS"
  20575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20576. $as_echo_n "checking for usbhid... " >&6; }
  20577. have_usbhid=no
  20578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20579. /* end confdefs.h. */
  20580. #include <sys/types.h>
  20581. #if defined(HAVE_USB_H)
  20582. #include <usb.h>
  20583. #endif
  20584. #ifdef __DragonFly__
  20585. # include <bus/u4b/usb.h>
  20586. # include <bus/u4b/usbhid.h>
  20587. #else
  20588. # include <dev/usb/usb.h>
  20589. # include <dev/usb/usbhid.h>
  20590. #endif
  20591. #if defined(HAVE_USBHID_H)
  20592. #include <usbhid.h>
  20593. #elif defined(HAVE_LIBUSB_H)
  20594. #include <libusb.h>
  20595. #elif defined(HAVE_LIBUSBHID_H)
  20596. #include <libusbhid.h>
  20597. #endif
  20598. int
  20599. main ()
  20600. {
  20601. struct report_desc *repdesc;
  20602. struct usb_ctl_report *repbuf;
  20603. hid_kind_t hidkind;
  20604. ;
  20605. return 0;
  20606. }
  20607. _ACEOF
  20608. if ac_fn_c_try_compile "$LINENO"; then :
  20609. have_usbhid=yes
  20610. fi
  20611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20613. $as_echo "$have_usbhid" >&6; }
  20614. if test x$have_usbhid = xyes; then
  20615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20616. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20617. have_usbhid_ucr_data=no
  20618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20619. /* end confdefs.h. */
  20620. #include <sys/types.h>
  20621. #if defined(HAVE_USB_H)
  20622. #include <usb.h>
  20623. #endif
  20624. #ifdef __DragonFly__
  20625. # include <bus/u4b/usb.h>
  20626. # include <bus/u4b/usbhid.h>
  20627. #else
  20628. # include <dev/usb/usb.h>
  20629. # include <dev/usb/usbhid.h>
  20630. #endif
  20631. #if defined(HAVE_USBHID_H)
  20632. #include <usbhid.h>
  20633. #elif defined(HAVE_LIBUSB_H)
  20634. #include <libusb.h>
  20635. #elif defined(HAVE_LIBUSBHID_H)
  20636. #include <libusbhid.h>
  20637. #endif
  20638. int
  20639. main ()
  20640. {
  20641. struct usb_ctl_report buf;
  20642. if (buf.ucr_data) { }
  20643. ;
  20644. return 0;
  20645. }
  20646. _ACEOF
  20647. if ac_fn_c_try_compile "$LINENO"; then :
  20648. have_usbhid_ucr_data=yes
  20649. fi
  20650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20651. if test x$have_usbhid_ucr_data = xyes; then
  20652. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20653. fi
  20654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20655. $as_echo "$have_usbhid_ucr_data" >&6; }
  20656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20657. $as_echo_n "checking for new usbhid API... " >&6; }
  20658. have_usbhid_new=no
  20659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20660. /* end confdefs.h. */
  20661. #include <sys/types.h>
  20662. #if defined(HAVE_USB_H)
  20663. #include <usb.h>
  20664. #endif
  20665. #ifdef __DragonFly__
  20666. #include <bus/u4b/usb.h>
  20667. #include <bus/u4b/usbhid.h>
  20668. #else
  20669. #include <dev/usb/usb.h>
  20670. #include <dev/usb/usbhid.h>
  20671. #endif
  20672. #if defined(HAVE_USBHID_H)
  20673. #include <usbhid.h>
  20674. #elif defined(HAVE_LIBUSB_H)
  20675. #include <libusb.h>
  20676. #elif defined(HAVE_LIBUSBHID_H)
  20677. #include <libusbhid.h>
  20678. #endif
  20679. int
  20680. main ()
  20681. {
  20682. report_desc_t d;
  20683. hid_start_parse(d, 1, 1);
  20684. ;
  20685. return 0;
  20686. }
  20687. _ACEOF
  20688. if ac_fn_c_try_compile "$LINENO"; then :
  20689. have_usbhid_new=yes
  20690. fi
  20691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20692. if test x$have_usbhid_new = xyes; then
  20693. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20694. fi
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20696. $as_echo "$have_usbhid_new" >&6; }
  20697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20698. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20699. have_machine_joystick=no
  20700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20701. /* end confdefs.h. */
  20702. #include <machine/joystick.h>
  20703. int
  20704. main ()
  20705. {
  20706. struct joystick t;
  20707. ;
  20708. return 0;
  20709. }
  20710. _ACEOF
  20711. if ac_fn_c_try_compile "$LINENO"; then :
  20712. have_machine_joystick=yes
  20713. fi
  20714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20715. if test x$have_machine_joystick = xyes; then
  20716. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20717. fi
  20718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20719. $as_echo "$have_machine_joystick" >&6; }
  20720. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20721. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20722. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20723. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20724. have_joystick=yes
  20725. fi
  20726. CFLAGS="$save_CFLAGS"
  20727. fi
  20728. ;;
  20729. esac
  20730. }
  20731. CheckHIDAPI()
  20732. {
  20733. # Check whether --enable-hidapi was given.
  20734. if test "${enable_hidapi+set}" = set; then :
  20735. enableval=$enable_hidapi;
  20736. else
  20737. enable_hidapi=yes
  20738. fi
  20739. # Check whether --enable-hidapi-libusb was given.
  20740. if test "${enable_hidapi_libusb+set}" = set; then :
  20741. enableval=$enable_hidapi_libusb;
  20742. else
  20743. enable_hidapi_libusb=maybe
  20744. fi
  20745. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20746. case "$host" in
  20747. # libusb does not support iOS
  20748. *-ios-* )
  20749. enable_hidapi_libusb=no
  20750. ;;
  20751. # On the other hand, *BSD specifically uses libusb only
  20752. *-*-*bsd* )
  20753. enable_hidapi_libusb=yes
  20754. require_hidapi_libusb=yes
  20755. ;;
  20756. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20757. *-*-cygwin* | *-*-mingw32*)
  20758. enable_joystick_rawinput=yes
  20759. ;;
  20760. esac
  20761. hidapi_support=yes
  20762. if test x$enable_hidapi_libusb = xyes; then
  20763. pkg_failed=no
  20764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20765. $as_echo_n "checking for LIBUSB... " >&6; }
  20766. if test -n "$LIBUSB_CFLAGS"; then
  20767. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20768. elif test -n "$PKG_CONFIG"; then
  20769. if test -n "$PKG_CONFIG" && \
  20770. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20771. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20772. ac_status=$?
  20773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20774. test $ac_status = 0; }; then
  20775. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20776. else
  20777. pkg_failed=yes
  20778. fi
  20779. else
  20780. pkg_failed=untried
  20781. fi
  20782. if test -n "$LIBUSB_LIBS"; then
  20783. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20784. elif test -n "$PKG_CONFIG"; then
  20785. if test -n "$PKG_CONFIG" && \
  20786. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20787. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20788. ac_status=$?
  20789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20790. test $ac_status = 0; }; then
  20791. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20792. else
  20793. pkg_failed=yes
  20794. fi
  20795. else
  20796. pkg_failed=untried
  20797. fi
  20798. if test $pkg_failed = yes; then
  20799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20800. $as_echo "no" >&6; }
  20801. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20802. _pkg_short_errors_supported=yes
  20803. else
  20804. _pkg_short_errors_supported=no
  20805. fi
  20806. if test $_pkg_short_errors_supported = yes; then
  20807. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20808. else
  20809. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20810. fi
  20811. # Put the nasty error message in config.log where it belongs
  20812. echo "$LIBUSB_PKG_ERRORS" >&5
  20813. have_libusb=no
  20814. elif test $pkg_failed = untried; then
  20815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20816. $as_echo "no" >&6; }
  20817. have_libusb=no
  20818. else
  20819. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20820. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20822. $as_echo "yes" >&6; }
  20823. have_libusb=yes
  20824. fi
  20825. save_CFLAGS="$CFLAGS"
  20826. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20827. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20828. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20829. have_libusb_h=yes
  20830. fi
  20831. CFLAGS="$save_CFLAGS"
  20832. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  20833. hidapi_support=no
  20834. fi
  20835. fi
  20836. if test x$hidapi_support = xyes; then
  20837. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20838. if test x$enable_joystick_rawinput = xyes; then
  20839. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20840. fi
  20841. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20842. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20843. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20844. if test x$have_libusb_h = xyes; then
  20845. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20846. if test x$require_hidapi_libusb = xyes; then
  20847. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20848. else
  20849. if test x$have_loadso != xyes; then
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20851. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20852. fi
  20853. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20854. libusb_lib=""
  20855. case "$host" in
  20856. *-*-darwin* )
  20857. libusb_lib="libusb-1.0.0.dylib"
  20858. ;;
  20859. *-*-cygwin* | *-*-mingw32* )
  20860. libusb_lib="libusb-1.0.dll"
  20861. ;;
  20862. esac
  20863. if test x$libusb_lib = x; then
  20864. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20865. fi
  20866. cat >>confdefs.h <<_ACEOF
  20867. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20868. _ACEOF
  20869. fi
  20870. fi
  20871. fi
  20872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20873. $as_echo_n "checking for hidapi support... " >&6; }
  20874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20875. $as_echo "$hidapi_support" >&6; }
  20876. fi
  20877. }
  20878. CheckClockGettime()
  20879. {
  20880. # Check whether --enable-clock_gettime was given.
  20881. if test "${enable_clock_gettime+set}" = set; then :
  20882. enableval=$enable_clock_gettime;
  20883. else
  20884. enable_clock_gettime=yes
  20885. fi
  20886. if test x$enable_clock_gettime = xyes; then
  20887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20888. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20889. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20890. $as_echo_n "(cached) " >&6
  20891. else
  20892. ac_check_lib_save_LIBS=$LIBS
  20893. LIBS="-lrt $LIBS"
  20894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20895. /* end confdefs.h. */
  20896. /* Override any GCC internal prototype to avoid an error.
  20897. Use char because int might match the return type of a GCC
  20898. builtin and then its argument prototype would still apply. */
  20899. #ifdef __cplusplus
  20900. extern "C"
  20901. #endif
  20902. char clock_gettime ();
  20903. int
  20904. main ()
  20905. {
  20906. return clock_gettime ();
  20907. ;
  20908. return 0;
  20909. }
  20910. _ACEOF
  20911. if ac_fn_c_try_link "$LINENO"; then :
  20912. ac_cv_lib_rt_clock_gettime=yes
  20913. else
  20914. ac_cv_lib_rt_clock_gettime=no
  20915. fi
  20916. rm -f core conftest.err conftest.$ac_objext \
  20917. conftest$ac_exeext conftest.$ac_ext
  20918. LIBS=$ac_check_lib_save_LIBS
  20919. fi
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20921. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20922. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20923. have_clock_gettime=yes
  20924. fi
  20925. if test x$have_clock_gettime = xyes; then
  20926. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20928. else
  20929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20930. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20931. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20932. $as_echo_n "(cached) " >&6
  20933. else
  20934. ac_check_lib_save_LIBS=$LIBS
  20935. LIBS="-lc $LIBS"
  20936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20937. /* end confdefs.h. */
  20938. /* Override any GCC internal prototype to avoid an error.
  20939. Use char because int might match the return type of a GCC
  20940. builtin and then its argument prototype would still apply. */
  20941. #ifdef __cplusplus
  20942. extern "C"
  20943. #endif
  20944. char clock_gettime ();
  20945. int
  20946. main ()
  20947. {
  20948. return clock_gettime ();
  20949. ;
  20950. return 0;
  20951. }
  20952. _ACEOF
  20953. if ac_fn_c_try_link "$LINENO"; then :
  20954. ac_cv_lib_c_clock_gettime=yes
  20955. else
  20956. ac_cv_lib_c_clock_gettime=no
  20957. fi
  20958. rm -f core conftest.err conftest.$ac_objext \
  20959. conftest$ac_exeext conftest.$ac_ext
  20960. LIBS=$ac_check_lib_save_LIBS
  20961. fi
  20962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20963. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20964. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20965. have_clock_gettime=yes
  20966. fi
  20967. if test x$have_clock_gettime = xyes; then
  20968. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20969. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20970. fi
  20971. fi
  20972. fi
  20973. }
  20974. CheckLinuxVersion()
  20975. {
  20976. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20977. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20978. have_linux_version_h=yes
  20979. fi
  20980. if test x$have_linux_version_h = xyes; then
  20981. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20982. fi
  20983. }
  20984. CheckRPATH()
  20985. {
  20986. # Check whether --enable-rpath was given.
  20987. if test "${enable_rpath+set}" = set; then :
  20988. enableval=$enable_rpath;
  20989. else
  20990. enable_rpath=yes
  20991. fi
  20992. }
  20993. CheckEventSignals()
  20994. {
  20995. # Check whether --enable-backgrounding-signal was given.
  20996. if test "${enable_backgrounding_signal+set}" = set; then :
  20997. enableval=$enable_backgrounding_signal;
  20998. else
  20999. enable_backgrounding_signal=no
  21000. fi
  21001. if test x$enable_backgrounding_signal != xno; then
  21002. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21003. fi
  21004. # Check whether --enable-foregrounding-signal was given.
  21005. if test "${enable_foregrounding_signal+set}" = set; then :
  21006. enableval=$enable_foregrounding_signal;
  21007. else
  21008. enable_foregrounding_signal=no
  21009. fi
  21010. if test x$enable_foregrounding_signal != xno; then
  21011. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21012. fi
  21013. }
  21014. CheckVirtualJoystick()
  21015. {
  21016. # Check whether --enable-joystick-virtual was given.
  21017. if test "${enable_joystick_virtual+set}" = set; then :
  21018. enableval=$enable_joystick_virtual;
  21019. else
  21020. enable_joystick_virtual=yes
  21021. fi
  21022. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21023. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21024. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21025. have_joystick_virtual=yes
  21026. fi
  21027. }
  21028. CheckWarnAll
  21029. CheckNoStrictAliasing
  21030. CheckEventSignals
  21031. have_locale=no
  21032. case "$host" in
  21033. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21034. case "$host" in
  21035. *-*-android*)
  21036. # Android
  21037. ARCH=android
  21038. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21039. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21040. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21041. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21043. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21044. if test x$enable_video = xyes; then
  21045. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21046. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21047. SUMMARY_video="${SUMMARY_video} android"
  21048. fi
  21049. ;;
  21050. *-*-linux*) ARCH=linux ;;
  21051. *-*-uclinux*) ARCH=linux ;;
  21052. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21053. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21054. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21055. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21056. *-*-bsdi*) ARCH=bsdi ;;
  21057. *-*-freebsd*) ARCH=freebsd ;;
  21058. *-*-dragonfly*) ARCH=freebsd ;;
  21059. *-*-netbsd*) ARCH=netbsd ;;
  21060. *-*-openbsd*) ARCH=openbsd ;;
  21061. *-*-sysv5*) ARCH=sysv5 ;;
  21062. *-*-solaris*) ARCH=solaris ;;
  21063. *-*-hpux*) ARCH=hpux ;;
  21064. *-*-aix*) ARCH=aix ;;
  21065. *-*-minix*) ARCH=minix ;;
  21066. *-*-nto*) ARCH=nto
  21067. CheckQNXVideo
  21068. ;;
  21069. esac
  21070. CheckVisibilityHidden
  21071. CheckDeclarationAfterStatement
  21072. CheckDummyVideo
  21073. CheckDiskAudio
  21074. CheckDummyAudio
  21075. CheckDLOPEN
  21076. CheckARM
  21077. CheckNEON
  21078. CheckOSS
  21079. CheckALSA
  21080. CheckPulseAudio
  21081. CheckJACK
  21082. CheckARTSC
  21083. CheckESD
  21084. CheckNAS
  21085. CheckSNDIO
  21086. CheckFusionSound
  21087. CheckLibSampleRate
  21088. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21089. CheckRPI
  21090. CheckX11
  21091. CheckDirectFB
  21092. CheckKMSDRM
  21093. CheckOpenGLX11
  21094. CheckOpenGLESX11
  21095. CheckVulkan
  21096. CheckWayland
  21097. CheckInputEvents
  21098. CheckLibUDev
  21099. CheckDBus
  21100. CheckIME
  21101. CheckInotify
  21102. CheckIBus
  21103. CheckFcitx
  21104. case $ARCH in
  21105. linux)
  21106. CheckInputKD
  21107. ;;
  21108. freebsd)
  21109. CheckInputKBIO
  21110. ;;
  21111. esac
  21112. CheckUSBHID
  21113. CheckHIDAPI
  21114. CheckPTHREAD
  21115. CheckClockGettime
  21116. CheckLinuxVersion
  21117. CheckRPATH
  21118. CheckVivanteVideo
  21119. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21120. have_misc=yes
  21121. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21122. have_locale=yes
  21123. # Set up files for the audio library
  21124. if test x$enable_audio = xyes; then
  21125. case $ARCH in
  21126. sysv5|solaris|hpux)
  21127. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21128. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21129. SUMMARY_audio="${SUMMARY_audio} sun"
  21130. have_audio=yes
  21131. ;;
  21132. netbsd) # Don't use this on OpenBSD, it's busted.
  21133. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21134. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21135. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21136. have_audio=yes
  21137. ;;
  21138. aix)
  21139. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21140. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21141. SUMMARY_audio="${SUMMARY_audio} paudio"
  21142. have_audio=yes
  21143. ;;
  21144. android)
  21145. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21146. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21147. SUMMARY_audio="${SUMMARY_audio} android"
  21148. have_audio=yes
  21149. ;;
  21150. nto)
  21151. CheckQNXAudio
  21152. ;;
  21153. esac
  21154. fi
  21155. # Set up files for the joystick library
  21156. if test x$enable_joystick = xyes; then
  21157. case $ARCH in
  21158. linux)
  21159. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21160. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21161. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21162. have_joystick=yes
  21163. ;;
  21164. freebsd)
  21165. if test x$use_input_events = xyes; then
  21166. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21167. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21168. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21169. have_joystick=yes
  21170. fi
  21171. ;;
  21172. android)
  21173. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21174. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21175. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21176. have_joystick=yes
  21177. ;;
  21178. esac
  21179. fi
  21180. # Set up files for the haptic library
  21181. if test x$enable_haptic = xyes; then
  21182. case $ARCH in
  21183. linux|freebsd)
  21184. if test x$use_input_events = xyes; then
  21185. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21186. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21187. have_haptic=yes
  21188. fi
  21189. ;;
  21190. android)
  21191. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21192. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21193. have_haptic=yes
  21194. ;;
  21195. esac
  21196. fi
  21197. # Set up files for the sensor library
  21198. if test x$enable_sensor = xyes; then
  21199. case $ARCH in
  21200. android)
  21201. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21202. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21203. have_sensor=yes
  21204. ;;
  21205. esac
  21206. fi
  21207. # Set up files for the power library
  21208. if test x$enable_power = xyes; then
  21209. case $ARCH in
  21210. linux)
  21211. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21212. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21213. have_power=yes
  21214. ;;
  21215. android)
  21216. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21217. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21218. have_power=yes
  21219. ;;
  21220. esac
  21221. fi
  21222. # Set up files for the filesystem library
  21223. if test x$enable_filesystem = xyes; then
  21224. case $ARCH in
  21225. android)
  21226. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21227. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21228. have_filesystem=yes
  21229. ;;
  21230. *)
  21231. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21232. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21233. have_filesystem=yes
  21234. ;;
  21235. esac
  21236. fi
  21237. # Set up files for the timer library
  21238. if test x$enable_timers = xyes; then
  21239. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21240. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21241. have_timers=yes
  21242. fi
  21243. # Set up files for udev hotplugging support
  21244. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21245. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21246. fi
  21247. # Set up files for evdev input
  21248. if test x$use_input_events = xyes; then
  21249. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21250. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21251. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21252. fi
  21253. # Set up other core UNIX files
  21254. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21255. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21256. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21257. ;;
  21258. *-*-cygwin* | *-*-mingw32*)
  21259. ARCH=win32
  21260. if test "$build" != "$host"; then # cross-compiling
  21261. # Default cross-compile location
  21262. ac_default_prefix=/usr/local/cross-tools/$host
  21263. else
  21264. # Look for the location of the tools and install there
  21265. if test "$BUILD_PREFIX" != ""; then
  21266. ac_default_prefix=$BUILD_PREFIX
  21267. fi
  21268. fi
  21269. CheckDeclarationAfterStatement
  21270. CheckDummyVideo
  21271. CheckDiskAudio
  21272. CheckDummyAudio
  21273. CheckWINDOWS
  21274. CheckWINDOWSGL
  21275. CheckWINDOWSGLES
  21276. CheckVulkan
  21277. CheckDIRECTX
  21278. CheckHIDAPI
  21279. # Set up the core platform files
  21280. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21281. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21282. have_misc=yes
  21283. # Use the Windows locale APIs.
  21284. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21285. have_locale=yes
  21286. # Set up files for the video library
  21287. if test x$enable_video = xyes; then
  21288. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21289. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21290. have_video=yes
  21291. # Check whether --enable-render-d3d was given.
  21292. if test "${enable_render_d3d+set}" = set; then :
  21293. enableval=$enable_render_d3d;
  21294. else
  21295. enable_render_d3d=yes
  21296. fi
  21297. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21298. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21299. SUMMARY_video="${SUMMARY_video} d3d9"
  21300. fi
  21301. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21302. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21303. SUMMARY_video="${SUMMARY_video} d3d11"
  21304. fi
  21305. fi
  21306. # Set up files for the audio library
  21307. if test x$enable_audio = xyes; then
  21308. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21309. SUMMARY_audio="${SUMMARY_audio} winmm"
  21310. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21311. if test x$have_dsound = xyes; then
  21312. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21313. SUMMARY_audio="${SUMMARY_audio} directsound"
  21314. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21315. fi
  21316. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21317. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21318. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21319. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21320. fi
  21321. have_audio=yes
  21322. fi
  21323. # Set up files for the joystick library
  21324. if test x$enable_joystick = xyes; then
  21325. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21326. if test x$have_xinput = xyes; then
  21327. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21328. fi
  21329. if test x$have_dinput = xyes; then
  21330. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21332. fi
  21333. else
  21334. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21335. fi
  21336. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21337. have_joystick=yes
  21338. fi
  21339. if test x$enable_haptic = xyes; then
  21340. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21341. if test x$have_xinput = xyes; then
  21342. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21343. fi
  21344. if test x$have_dinput = xyes; then
  21345. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21346. fi
  21347. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21348. have_haptic=yes
  21349. fi
  21350. fi
  21351. # Set up files for the sensor library
  21352. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21353. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21354. have_winsensors=yes
  21355. else
  21356. have_winsensors=no
  21357. fi
  21358. if test x$have_winsensors = xyes; then
  21359. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21360. fi
  21361. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21362. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21363. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21364. have_sensor=yes
  21365. fi
  21366. # Set up files for the power library
  21367. if test x$enable_power = xyes; then
  21368. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21369. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21370. have_power=yes
  21371. fi
  21372. # Set up files for the filesystem library
  21373. if test x$enable_filesystem = xyes; then
  21374. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21375. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21376. have_filesystem=yes
  21377. fi
  21378. # Set up files for the thread library
  21379. if test x$enable_threads = xyes; then
  21380. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21381. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21382. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21383. have_threads=yes
  21384. fi
  21385. # Set up files for the timer library
  21386. if test x$enable_timers = xyes; then
  21387. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21388. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21389. have_timers=yes
  21390. fi
  21391. # Set up files for the shared object loading library
  21392. if test x$enable_loadso = xyes; then
  21393. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21394. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21395. have_loadso=yes
  21396. fi
  21397. # Set up the system libraries we need
  21398. if test -f /lib/w32api/libuuid.a; then
  21399. LIBUUID=/lib/w32api/libuuid.a
  21400. else
  21401. LIBUUID=-luuid
  21402. fi
  21403. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21404. # The Windows platform requires special setup
  21405. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21406. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21407. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21408. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21409. # Check to see if this is a mingw or cygwin build
  21410. have_mingw32=
  21411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21412. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21413. if ${ac_cv_lib_mingw32_main+:} false; then :
  21414. $as_echo_n "(cached) " >&6
  21415. else
  21416. ac_check_lib_save_LIBS=$LIBS
  21417. LIBS="-lmingw32 $LIBS"
  21418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21419. /* end confdefs.h. */
  21420. int
  21421. main ()
  21422. {
  21423. return main ();
  21424. ;
  21425. return 0;
  21426. }
  21427. _ACEOF
  21428. if ac_fn_c_try_link "$LINENO"; then :
  21429. ac_cv_lib_mingw32_main=yes
  21430. else
  21431. ac_cv_lib_mingw32_main=no
  21432. fi
  21433. rm -f core conftest.err conftest.$ac_objext \
  21434. conftest$ac_exeext conftest.$ac_ext
  21435. LIBS=$ac_check_lib_save_LIBS
  21436. fi
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21438. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21439. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21440. have_mingw32=yes
  21441. fi
  21442. if test x$have_mingw32 = xyes; then
  21443. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21444. else
  21445. SDL_LIBS="-lcygwin $SDL_LIBS"
  21446. fi
  21447. ;;
  21448. *-*-beos*)
  21449. as_fn_error $? "
  21450. *** BeOS support has been removed as of SDL 2.0.2.
  21451. " "$LINENO" 5
  21452. ;;
  21453. *-*-haiku*)
  21454. ARCH=haiku
  21455. ac_default_prefix=/boot/system
  21456. CheckDummyVideo
  21457. CheckDiskAudio
  21458. CheckDummyAudio
  21459. CheckDLOPEN
  21460. CheckHaikuVideo
  21461. CheckHaikuGL
  21462. CheckPTHREAD
  21463. # Set up files for the audio library
  21464. if test x$enable_audio = xyes; then
  21465. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21466. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21467. SUMMARY_audio="${SUMMARY_audio} haiku"
  21468. have_audio=yes
  21469. fi
  21470. # Set up files for the joystick library
  21471. if test x$enable_joystick = xyes; then
  21472. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21473. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21474. have_joystick=yes
  21475. fi
  21476. # Set up files for the timer library
  21477. if test x$enable_timers = xyes; then
  21478. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21479. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21480. have_timers=yes
  21481. fi
  21482. # Set up files for the system power library
  21483. if test x$enable_power = xyes; then
  21484. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21485. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21486. have_power=yes
  21487. fi
  21488. # Set up files for the system filesystem library
  21489. if test x$enable_filesystem = xyes; then
  21490. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21491. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21492. have_filesystem=yes
  21493. fi
  21494. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21495. have_misc=yes
  21496. # Set up files for the locale library
  21497. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21498. have_locale=yes
  21499. # The Haiku platform requires special setup.
  21500. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21501. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21502. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21503. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21504. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21506. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21507. if eval \${$as_ac_File+:} false; then :
  21508. $as_echo_n "(cached) " >&6
  21509. else
  21510. test "$cross_compiling" = yes &&
  21511. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21512. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21513. eval "$as_ac_File=yes"
  21514. else
  21515. eval "$as_ac_File=no"
  21516. fi
  21517. fi
  21518. eval ac_res=\$$as_ac_File
  21519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21520. $as_echo "$ac_res" >&6; }
  21521. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21522. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21523. else
  21524. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21525. fi
  21526. ;;
  21527. *-ios-*)
  21528. ARCH=ios
  21529. CheckVisibilityHidden
  21530. CheckDeclarationAfterStatement
  21531. CheckDummyVideo
  21532. CheckDiskAudio
  21533. CheckDummyAudio
  21534. CheckDLOPEN
  21535. CheckMETAL
  21536. CheckVulkan
  21537. CheckPTHREAD
  21538. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21539. have_misc=yes
  21540. # Set up files for the locale library
  21541. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21542. have_locale=yes
  21543. # Set up files for the audio library
  21544. if test x$enable_audio = xyes; then
  21545. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21546. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21547. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21548. have_audio=yes
  21549. fi
  21550. # Set up files for the joystick library
  21551. if test x$enable_joystick = xyes; then
  21552. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21553. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21554. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21555. have_joystick=yes
  21556. else
  21557. # Need this code for accelerometer as joystick support
  21558. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21559. fi
  21560. # Set up files for the haptic library
  21561. #if test x$enable_haptic = xyes; then
  21562. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21563. # have_haptic=yes
  21564. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21565. #fi
  21566. # Set up files for the sensor library
  21567. if test x$enable_sensor = xyes; then
  21568. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21569. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21570. have_sensor=yes
  21571. fi
  21572. # Set up files for the power library
  21573. if test x$enable_power = xyes; then
  21574. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21575. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21576. have_power=yes
  21577. fi
  21578. # Set up files for the filesystem library
  21579. if test x$enable_filesystem = xyes; then
  21580. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21581. have_filesystem=yes
  21582. fi
  21583. # Set up additional files for the file library
  21584. if test x$enable_file = xyes; then
  21585. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21586. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21587. fi
  21588. # Set up files for the timer library
  21589. if test x$enable_timers = xyes; then
  21590. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21591. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21592. have_timers=yes
  21593. fi
  21594. # Set up other core UNIX files
  21595. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21596. # The iOS platform requires special setup.
  21597. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21598. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21599. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21600. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21601. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21602. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21605. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21608. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21610. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21611. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21614. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21616. fi
  21617. ;;
  21618. *-*-darwin* )
  21619. # This could be either full "Mac OS X", or plain "Darwin" which is
  21620. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21621. # Next line is broken, and a few files below require Mac OS X (full)
  21622. ARCH=macosx
  21623. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21624. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21625. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21626. CheckVisibilityHidden
  21627. CheckDeclarationAfterStatement
  21628. CheckDummyVideo
  21629. CheckDiskAudio
  21630. CheckDummyAudio
  21631. CheckDLOPEN
  21632. CheckCOCOA
  21633. CheckMETAL
  21634. CheckX11
  21635. CheckMacGL
  21636. CheckMacGLES
  21637. CheckOpenGLX11
  21638. CheckVulkan
  21639. CheckPTHREAD
  21640. CheckHIDAPI
  21641. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21642. have_misc=yes
  21643. # Set up files for the locale library
  21644. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21645. have_locale=yes
  21646. # Set up files for the audio library
  21647. if test x$enable_audio = xyes; then
  21648. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21649. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21651. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21652. have_audio=yes
  21653. fi
  21654. # Set up files for the joystick library
  21655. if test x$enable_joystick = xyes; then
  21656. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21657. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21658. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21659. CheckJoystickMFI
  21660. have_joystick=yes
  21661. fi
  21662. # Set up files for the haptic library
  21663. if test x$enable_haptic = xyes; then
  21664. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21667. have_haptic=yes
  21668. fi
  21669. # Set up files for the power library
  21670. if test x$enable_power = xyes; then
  21671. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21672. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21673. have_power=yes
  21674. fi
  21675. # Set up files for the filesystem library
  21676. if test x$enable_filesystem = xyes; then
  21677. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21678. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21679. have_filesystem=yes
  21680. fi
  21681. # Set up files for the timer library
  21682. if test x$enable_timers = xyes; then
  21683. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21684. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21685. have_timers=yes
  21686. fi
  21687. # Set up additional files for the file library
  21688. if test x$enable_file = xyes; then
  21689. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21690. fi
  21691. # Set up other core UNIX files
  21692. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21693. # The Mac OS X platform requires special setup.
  21694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21695. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21697. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21698. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21699. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21700. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21701. fi
  21702. ;;
  21703. *-nacl|*-pnacl)
  21704. ARCH=nacl
  21705. CheckNativeClient
  21706. CheckDummyAudio
  21707. CheckDummyVideo
  21708. CheckInputEvents
  21709. CheckPTHREAD
  21710. # Set up files for the timer library
  21711. if test x$enable_timers = xyes; then
  21712. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21713. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21714. have_timers=yes
  21715. fi
  21716. if test x$enable_filesystem = xyes; then
  21717. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21718. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21719. have_filesystem=yes
  21720. fi
  21721. ;;
  21722. *-*-emscripten* )
  21723. if test x$enable_video = xyes; then
  21724. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21725. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21726. have_video=yes
  21727. SUMMARY_video="${SUMMARY_video} emscripten"
  21728. fi
  21729. if test x$enable_audio = xyes; then
  21730. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21731. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21732. have_audio=yes
  21733. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21734. fi
  21735. CheckVisibilityHidden
  21736. CheckDeclarationAfterStatement
  21737. CheckDummyVideo
  21738. CheckDiskAudio
  21739. CheckDummyAudio
  21740. CheckDLOPEN
  21741. CheckClockGettime
  21742. CheckEmscriptenGLES
  21743. # Set up files for the power library
  21744. if test x$enable_power = xyes; then
  21745. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21746. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21747. have_power=yes
  21748. fi
  21749. # Set up files for the power library
  21750. if test x$enable_joystick = xyes; then
  21751. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21752. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21753. have_joystick=yes
  21754. fi
  21755. # Set up files for the filesystem library
  21756. if test x$enable_filesystem = xyes; then
  21757. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21759. have_filesystem=yes
  21760. fi
  21761. # Set up files for the timer library
  21762. if test x$enable_timers = xyes; then
  21763. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21765. have_timers=yes
  21766. fi
  21767. # Set up files for the locale library
  21768. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21769. have_locale=yes
  21770. ;;
  21771. *-*-riscos*)
  21772. ARCH=riscos
  21773. CheckVisibilityHidden
  21774. CheckDeclarationAfterStatement
  21775. CheckDummyVideo
  21776. CheckDiskAudio
  21777. CheckDummyAudio
  21778. CheckDLOPEN
  21779. CheckOSS
  21780. CheckPTHREAD
  21781. CheckClockGettime
  21782. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  21783. have_misc=yes
  21784. # Set up files for the timer library
  21785. if test x$enable_timers = xyes; then
  21786. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21787. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21788. have_timers=yes
  21789. fi
  21790. ;;
  21791. *)
  21792. as_fn_error $? "
  21793. *** Unsupported host: Please add to configure.ac
  21794. " "$LINENO" 5
  21795. ;;
  21796. esac
  21797. CheckVirtualJoystick
  21798. # Check whether to install sdl2-config
  21799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21800. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21801. # Check whether --enable-sdl2-config was given.
  21802. if test "${enable_sdl2_config+set}" = set; then :
  21803. enableval=$enable_sdl2_config; case "${enableval}" in
  21804. yes) enable_sdl2_config="TRUE" ;;
  21805. no) enable_sdl2_config="FALSE" ;;
  21806. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21807. esac
  21808. else
  21809. enable_sdl2_config="TRUE"
  21810. fi
  21811. if test "$enable_sdl2_config" = "TRUE"; then
  21812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21813. $as_echo "yes" >&6; }
  21814. else
  21815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21816. $as_echo "no" >&6; }
  21817. fi
  21818. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21819. # Verify that we have all the platform specific files we need
  21820. if test x$have_misc != xyes; then
  21821. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  21822. fi
  21823. if test x$have_locale != xyes; then
  21824. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21825. fi
  21826. if test x$have_joystick != xyes; then
  21827. if test x$enable_joystick = xyes; then
  21828. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21829. fi
  21830. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21831. fi
  21832. if test x$have_haptic != xyes; then
  21833. if test x$enable_haptic = xyes; then
  21834. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21835. fi
  21836. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21837. fi
  21838. if test x$have_sensor != xyes; then
  21839. if test x$enable_sensor = xyes; then
  21840. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21841. fi
  21842. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21843. fi
  21844. if test x$have_threads != xyes; then
  21845. if test x$enable_threads = xyes; then
  21846. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21847. fi
  21848. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21849. fi
  21850. if test x$have_timers != xyes; then
  21851. if test x$enable_timers = xyes; then
  21852. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21853. fi
  21854. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21855. fi
  21856. if test x$have_filesystem != xyes; then
  21857. if test x$enable_filesystem = xyes; then
  21858. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21859. fi
  21860. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21861. fi
  21862. if test x$have_loadso != xyes; then
  21863. if test x$enable_loadso = xyes; then
  21864. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21865. fi
  21866. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21867. fi
  21868. if test x$SDLMAIN_SOURCES = x; then
  21869. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21870. fi
  21871. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21872. if test x$video_wayland = xyes; then
  21873. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21874. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21875. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21876. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21877. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21878. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21879. echo ;\
  21880. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21881. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21882. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21883. echo ;\
  21884. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21885. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21886. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21887. echo ;\
  21888. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21889. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21890. done ;\
  21891. echo ;\
  21892. 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`
  21893. fi
  21894. OBJECTS=`echo $SOURCES`
  21895. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21896. for EXT in asm cc m c S; do
  21897. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21898. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21899. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21900. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21901. done
  21902. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21903. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21904. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21905. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21906. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21907. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21908. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21909. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21910. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21911. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21912. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21913. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21914. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21915. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21916. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21917. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21918. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21919. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21920. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21921. # Set runtime shared library paths as needed
  21922. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21923. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21924. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21926. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21927. have_enable_new_dtags=no
  21928. save_LDFLAGS="$LDFLAGS"
  21929. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21931. /* end confdefs.h. */
  21932. int
  21933. main ()
  21934. {
  21935. ;
  21936. return 0;
  21937. }
  21938. _ACEOF
  21939. if ac_fn_c_try_link "$LINENO"; then :
  21940. have_enable_new_dtags=yes
  21941. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21942. fi
  21943. rm -f core conftest.err conftest.$ac_objext \
  21944. conftest$ac_exeext conftest.$ac_ext
  21945. LDFLAGS="$save_LDFLAGS"
  21946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21947. $as_echo "$have_enable_new_dtags" >&6; }
  21948. fi
  21949. if test $ARCH = solaris; then
  21950. SDL_RLD_FLAGS="-R\${libdir}"
  21951. fi
  21952. else
  21953. SDL_RLD_FLAGS=""
  21954. fi
  21955. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21956. if test x$enable_shared = xyes; then
  21957. PKG_CONFIG_LIBS_PRIV="
  21958. Libs.private:"
  21959. ENABLE_SHARED_TRUE=
  21960. ENABLE_SHARED_FALSE="#"
  21961. else
  21962. PKG_CONFIG_LIBS_PRIV=
  21963. ENABLE_SHARED_TRUE="#"
  21964. ENABLE_SHARED_FALSE=
  21965. fi
  21966. if test x$enable_static = xyes; then
  21967. ENABLE_STATIC_TRUE=
  21968. ENABLE_STATIC_FALSE="#"
  21969. else
  21970. ENABLE_STATIC_TRUE="#"
  21971. ENABLE_STATIC_FALSE=
  21972. fi
  21973. cat >Makefile.rules <<__EOF__
  21974. # Build rules for objects
  21975. -include \$(OBJECTS:.lo=.d)
  21976. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21977. $srcdir/src/SDL.c: update-revision
  21978. $DEPENDS
  21979. $VERSION_DEPENDS
  21980. $SDLMAIN_DEPENDS
  21981. $SDLTEST_DEPENDS
  21982. $WAYLAND_PROTOCOLS_DEPENDS
  21983. __EOF__
  21984. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21985. ac_config_commands="$ac_config_commands sdl2_config"
  21986. SUMMARY="SDL2 Configure Summary:\n"
  21987. if test x$enable_shared = xyes; then
  21988. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21989. fi
  21990. if test x$enable_static = xyes; then
  21991. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21992. fi
  21993. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21994. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21995. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21996. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21997. if test x$have_x = xyes; then
  21998. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21999. fi
  22000. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22001. if test x$have_joystick_virtual = xyes; then
  22002. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22003. else
  22004. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22005. fi
  22006. if test x$have_samplerate_h_hdr = xyes; then
  22007. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22008. else
  22009. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22010. fi
  22011. if test x$have_libudev_h_hdr = xyes; then
  22012. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22013. else
  22014. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22015. fi
  22016. if test x$have_dbus_dbus_h_hdr = xyes; then
  22017. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22018. else
  22019. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22020. fi
  22021. if test x$enable_ime = xyes; then
  22022. SUMMARY="${SUMMARY}Using ime : YES\n"
  22023. else
  22024. SUMMARY="${SUMMARY}Using ime : NO\n"
  22025. fi
  22026. if test x$have_ibus_ibus_h_hdr = xyes; then
  22027. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22028. else
  22029. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22030. fi
  22031. if test x$have_fcitx = xyes; then
  22032. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22033. else
  22034. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22035. fi
  22036. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22037. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22038. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22039. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22040. SUMMARY="${SUMMARY}configure script with:\n"
  22041. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22042. fi
  22043. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22044. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22045. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22046. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22047. SUMMARY="${SUMMARY}configure script with:\n"
  22048. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22049. fi
  22050. ac_config_commands="$ac_config_commands summary"
  22051. cat >confcache <<\_ACEOF
  22052. # This file is a shell script that caches the results of configure
  22053. # tests run on this system so they can be shared between configure
  22054. # scripts and configure runs, see configure's option --config-cache.
  22055. # It is not useful on other systems. If it contains results you don't
  22056. # want to keep, you may remove or edit it.
  22057. #
  22058. # config.status only pays attention to the cache file if you give it
  22059. # the --recheck option to rerun configure.
  22060. #
  22061. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22062. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22063. # following values.
  22064. _ACEOF
  22065. # The following way of writing the cache mishandles newlines in values,
  22066. # but we know of no workaround that is simple, portable, and efficient.
  22067. # So, we kill variables containing newlines.
  22068. # Ultrix sh set writes to stderr and can't be redirected directly,
  22069. # and sets the high bit in the cache file unless we assign to the vars.
  22070. (
  22071. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22072. eval ac_val=\$$ac_var
  22073. case $ac_val in #(
  22074. *${as_nl}*)
  22075. case $ac_var in #(
  22076. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22077. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22078. esac
  22079. case $ac_var in #(
  22080. _ | IFS | as_nl) ;; #(
  22081. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22082. *) { eval $ac_var=; unset $ac_var;} ;;
  22083. esac ;;
  22084. esac
  22085. done
  22086. (set) 2>&1 |
  22087. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22088. *${as_nl}ac_space=\ *)
  22089. # `set' does not quote correctly, so add quotes: double-quote
  22090. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22091. sed -n \
  22092. "s/'/'\\\\''/g;
  22093. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22094. ;; #(
  22095. *)
  22096. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22097. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22098. ;;
  22099. esac |
  22100. sort
  22101. ) |
  22102. sed '
  22103. /^ac_cv_env_/b end
  22104. t clear
  22105. :clear
  22106. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22107. t end
  22108. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22109. :end' >>confcache
  22110. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22111. if test -w "$cache_file"; then
  22112. if test "x$cache_file" != "x/dev/null"; then
  22113. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22114. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22115. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22116. cat confcache >"$cache_file"
  22117. else
  22118. case $cache_file in #(
  22119. */* | ?:*)
  22120. mv -f confcache "$cache_file"$$ &&
  22121. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22122. *)
  22123. mv -f confcache "$cache_file" ;;
  22124. esac
  22125. fi
  22126. fi
  22127. else
  22128. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22129. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22130. fi
  22131. fi
  22132. rm -f confcache
  22133. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22134. # Let make expand exec_prefix.
  22135. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22136. DEFS=-DHAVE_CONFIG_H
  22137. ac_libobjs=
  22138. ac_ltlibobjs=
  22139. U=
  22140. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22141. # 1. Remove the extension, and $U if already installed.
  22142. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22143. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22144. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22145. # will be set to the directory where LIBOBJS objects are built.
  22146. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22147. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22148. done
  22149. LIBOBJS=$ac_libobjs
  22150. LTLIBOBJS=$ac_ltlibobjs
  22151. : "${CONFIG_STATUS=./config.status}"
  22152. ac_write_fail=0
  22153. ac_clean_files_save=$ac_clean_files
  22154. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22155. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22156. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22157. as_write_fail=0
  22158. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22159. #! $SHELL
  22160. # Generated by $as_me.
  22161. # Run this file to recreate the current configuration.
  22162. # Compiler output produced by configure, useful for debugging
  22163. # configure, is in config.log if it exists.
  22164. debug=false
  22165. ac_cs_recheck=false
  22166. ac_cs_silent=false
  22167. SHELL=\${CONFIG_SHELL-$SHELL}
  22168. export SHELL
  22169. _ASEOF
  22170. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22171. ## -------------------- ##
  22172. ## M4sh Initialization. ##
  22173. ## -------------------- ##
  22174. # Be more Bourne compatible
  22175. DUALCASE=1; export DUALCASE # for MKS sh
  22176. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22177. emulate sh
  22178. NULLCMD=:
  22179. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22180. # is contrary to our usage. Disable this feature.
  22181. alias -g '${1+"$@"}'='"$@"'
  22182. setopt NO_GLOB_SUBST
  22183. else
  22184. case `(set -o) 2>/dev/null` in #(
  22185. *posix*) :
  22186. set -o posix ;; #(
  22187. *) :
  22188. ;;
  22189. esac
  22190. fi
  22191. as_nl='
  22192. '
  22193. export as_nl
  22194. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22195. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22196. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22197. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22198. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22199. # but without wasting forks for bash or zsh.
  22200. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22201. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22202. as_echo='print -r --'
  22203. as_echo_n='print -rn --'
  22204. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22205. as_echo='printf %s\n'
  22206. as_echo_n='printf %s'
  22207. else
  22208. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22209. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22210. as_echo_n='/usr/ucb/echo -n'
  22211. else
  22212. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22213. as_echo_n_body='eval
  22214. arg=$1;
  22215. case $arg in #(
  22216. *"$as_nl"*)
  22217. expr "X$arg" : "X\\(.*\\)$as_nl";
  22218. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22219. esac;
  22220. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22221. '
  22222. export as_echo_n_body
  22223. as_echo_n='sh -c $as_echo_n_body as_echo'
  22224. fi
  22225. export as_echo_body
  22226. as_echo='sh -c $as_echo_body as_echo'
  22227. fi
  22228. # The user is always right.
  22229. if test "${PATH_SEPARATOR+set}" != set; then
  22230. PATH_SEPARATOR=:
  22231. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22232. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22233. PATH_SEPARATOR=';'
  22234. }
  22235. fi
  22236. # IFS
  22237. # We need space, tab and new line, in precisely that order. Quoting is
  22238. # there to prevent editors from complaining about space-tab.
  22239. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22240. # splitting by setting IFS to empty value.)
  22241. IFS=" "" $as_nl"
  22242. # Find who we are. Look in the path if we contain no directory separator.
  22243. as_myself=
  22244. case $0 in #((
  22245. *[\\/]* ) as_myself=$0 ;;
  22246. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22247. for as_dir in $PATH
  22248. do
  22249. IFS=$as_save_IFS
  22250. test -z "$as_dir" && as_dir=.
  22251. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22252. done
  22253. IFS=$as_save_IFS
  22254. ;;
  22255. esac
  22256. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22257. # in which case we are not to be found in the path.
  22258. if test "x$as_myself" = x; then
  22259. as_myself=$0
  22260. fi
  22261. if test ! -f "$as_myself"; then
  22262. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22263. exit 1
  22264. fi
  22265. # Unset variables that we do not need and which cause bugs (e.g. in
  22266. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22267. # suppresses any "Segmentation fault" message there. '((' could
  22268. # trigger a bug in pdksh 5.2.14.
  22269. for as_var in BASH_ENV ENV MAIL MAILPATH
  22270. do eval test x\${$as_var+set} = xset \
  22271. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22272. done
  22273. PS1='$ '
  22274. PS2='> '
  22275. PS4='+ '
  22276. # NLS nuisances.
  22277. LC_ALL=C
  22278. export LC_ALL
  22279. LANGUAGE=C
  22280. export LANGUAGE
  22281. # CDPATH.
  22282. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22283. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22284. # ----------------------------------------
  22285. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22286. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22287. # script with STATUS, using 1 if that was 0.
  22288. as_fn_error ()
  22289. {
  22290. as_status=$1; test $as_status -eq 0 && as_status=1
  22291. if test "$4"; then
  22292. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22293. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22294. fi
  22295. $as_echo "$as_me: error: $2" >&2
  22296. as_fn_exit $as_status
  22297. } # as_fn_error
  22298. # as_fn_set_status STATUS
  22299. # -----------------------
  22300. # Set $? to STATUS, without forking.
  22301. as_fn_set_status ()
  22302. {
  22303. return $1
  22304. } # as_fn_set_status
  22305. # as_fn_exit STATUS
  22306. # -----------------
  22307. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22308. as_fn_exit ()
  22309. {
  22310. set +e
  22311. as_fn_set_status $1
  22312. exit $1
  22313. } # as_fn_exit
  22314. # as_fn_unset VAR
  22315. # ---------------
  22316. # Portably unset VAR.
  22317. as_fn_unset ()
  22318. {
  22319. { eval $1=; unset $1;}
  22320. }
  22321. as_unset=as_fn_unset
  22322. # as_fn_append VAR VALUE
  22323. # ----------------------
  22324. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22325. # advantage of any shell optimizations that allow amortized linear growth over
  22326. # repeated appends, instead of the typical quadratic growth present in naive
  22327. # implementations.
  22328. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22329. eval 'as_fn_append ()
  22330. {
  22331. eval $1+=\$2
  22332. }'
  22333. else
  22334. as_fn_append ()
  22335. {
  22336. eval $1=\$$1\$2
  22337. }
  22338. fi # as_fn_append
  22339. # as_fn_arith ARG...
  22340. # ------------------
  22341. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22342. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22343. # must be portable across $(()) and expr.
  22344. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22345. eval 'as_fn_arith ()
  22346. {
  22347. as_val=$(( $* ))
  22348. }'
  22349. else
  22350. as_fn_arith ()
  22351. {
  22352. as_val=`expr "$@" || test $? -eq 1`
  22353. }
  22354. fi # as_fn_arith
  22355. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22356. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22357. as_expr=expr
  22358. else
  22359. as_expr=false
  22360. fi
  22361. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22362. as_basename=basename
  22363. else
  22364. as_basename=false
  22365. fi
  22366. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22367. as_dirname=dirname
  22368. else
  22369. as_dirname=false
  22370. fi
  22371. as_me=`$as_basename -- "$0" ||
  22372. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22373. X"$0" : 'X\(//\)$' \| \
  22374. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22375. $as_echo X/"$0" |
  22376. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22377. s//\1/
  22378. q
  22379. }
  22380. /^X\/\(\/\/\)$/{
  22381. s//\1/
  22382. q
  22383. }
  22384. /^X\/\(\/\).*/{
  22385. s//\1/
  22386. q
  22387. }
  22388. s/.*/./; q'`
  22389. # Avoid depending upon Character Ranges.
  22390. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22391. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22392. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22393. as_cr_digits='0123456789'
  22394. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22395. ECHO_C= ECHO_N= ECHO_T=
  22396. case `echo -n x` in #(((((
  22397. -n*)
  22398. case `echo 'xy\c'` in
  22399. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22400. xy) ECHO_C='\c';;
  22401. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22402. ECHO_T=' ';;
  22403. esac;;
  22404. *)
  22405. ECHO_N='-n';;
  22406. esac
  22407. rm -f conf$$ conf$$.exe conf$$.file
  22408. if test -d conf$$.dir; then
  22409. rm -f conf$$.dir/conf$$.file
  22410. else
  22411. rm -f conf$$.dir
  22412. mkdir conf$$.dir 2>/dev/null
  22413. fi
  22414. if (echo >conf$$.file) 2>/dev/null; then
  22415. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22416. as_ln_s='ln -s'
  22417. # ... but there are two gotchas:
  22418. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22419. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22420. # In both cases, we have to default to `cp -pR'.
  22421. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22422. as_ln_s='cp -pR'
  22423. elif ln conf$$.file conf$$ 2>/dev/null; then
  22424. as_ln_s=ln
  22425. else
  22426. as_ln_s='cp -pR'
  22427. fi
  22428. else
  22429. as_ln_s='cp -pR'
  22430. fi
  22431. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22432. rmdir conf$$.dir 2>/dev/null
  22433. # as_fn_mkdir_p
  22434. # -------------
  22435. # Create "$as_dir" as a directory, including parents if necessary.
  22436. as_fn_mkdir_p ()
  22437. {
  22438. case $as_dir in #(
  22439. -*) as_dir=./$as_dir;;
  22440. esac
  22441. test -d "$as_dir" || eval $as_mkdir_p || {
  22442. as_dirs=
  22443. while :; do
  22444. case $as_dir in #(
  22445. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22446. *) as_qdir=$as_dir;;
  22447. esac
  22448. as_dirs="'$as_qdir' $as_dirs"
  22449. as_dir=`$as_dirname -- "$as_dir" ||
  22450. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22451. X"$as_dir" : 'X\(//\)[^/]' \| \
  22452. X"$as_dir" : 'X\(//\)$' \| \
  22453. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22454. $as_echo X"$as_dir" |
  22455. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22456. s//\1/
  22457. q
  22458. }
  22459. /^X\(\/\/\)[^/].*/{
  22460. s//\1/
  22461. q
  22462. }
  22463. /^X\(\/\/\)$/{
  22464. s//\1/
  22465. q
  22466. }
  22467. /^X\(\/\).*/{
  22468. s//\1/
  22469. q
  22470. }
  22471. s/.*/./; q'`
  22472. test -d "$as_dir" && break
  22473. done
  22474. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22475. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22476. } # as_fn_mkdir_p
  22477. if mkdir -p . 2>/dev/null; then
  22478. as_mkdir_p='mkdir -p "$as_dir"'
  22479. else
  22480. test -d ./-p && rmdir ./-p
  22481. as_mkdir_p=false
  22482. fi
  22483. # as_fn_executable_p FILE
  22484. # -----------------------
  22485. # Test if FILE is an executable regular file.
  22486. as_fn_executable_p ()
  22487. {
  22488. test -f "$1" && test -x "$1"
  22489. } # as_fn_executable_p
  22490. as_test_x='test -x'
  22491. as_executable_p=as_fn_executable_p
  22492. # Sed expression to map a string onto a valid CPP name.
  22493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22494. # Sed expression to map a string onto a valid variable name.
  22495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22496. exec 6>&1
  22497. ## ----------------------------------- ##
  22498. ## Main body of $CONFIG_STATUS script. ##
  22499. ## ----------------------------------- ##
  22500. _ASEOF
  22501. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22502. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22503. # Save the log message, to keep $0 and so on meaningful, and to
  22504. # report actual input values of CONFIG_FILES etc. instead of their
  22505. # values after options handling.
  22506. ac_log="
  22507. This file was extended by $as_me, which was
  22508. generated by GNU Autoconf 2.69. Invocation command line was
  22509. CONFIG_FILES = $CONFIG_FILES
  22510. CONFIG_HEADERS = $CONFIG_HEADERS
  22511. CONFIG_LINKS = $CONFIG_LINKS
  22512. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22513. $ $0 $@
  22514. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22515. "
  22516. _ACEOF
  22517. case $ac_config_files in *"
  22518. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22519. esac
  22520. case $ac_config_headers in *"
  22521. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22522. esac
  22523. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22524. # Files that config.status was made for.
  22525. config_files="$ac_config_files"
  22526. config_headers="$ac_config_headers"
  22527. config_commands="$ac_config_commands"
  22528. _ACEOF
  22529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22530. ac_cs_usage="\
  22531. \`$as_me' instantiates files and other configuration actions
  22532. from templates according to the current configuration. Unless the files
  22533. and actions are specified as TAGs, all are instantiated by default.
  22534. Usage: $0 [OPTION]... [TAG]...
  22535. -h, --help print this help, then exit
  22536. -V, --version print version number and configuration settings, then exit
  22537. --config print configuration, then exit
  22538. -q, --quiet, --silent
  22539. do not print progress messages
  22540. -d, --debug don't remove temporary files
  22541. --recheck update $as_me by reconfiguring in the same conditions
  22542. --file=FILE[:TEMPLATE]
  22543. instantiate the configuration file FILE
  22544. --header=FILE[:TEMPLATE]
  22545. instantiate the configuration header FILE
  22546. Configuration files:
  22547. $config_files
  22548. Configuration headers:
  22549. $config_headers
  22550. Configuration commands:
  22551. $config_commands
  22552. Report bugs to the package provider."
  22553. _ACEOF
  22554. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22555. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22556. ac_cs_version="\\
  22557. config.status
  22558. configured by $0, generated by GNU Autoconf 2.69,
  22559. with options \\"\$ac_cs_config\\"
  22560. Copyright (C) 2012 Free Software Foundation, Inc.
  22561. This config.status script is free software; the Free Software Foundation
  22562. gives unlimited permission to copy, distribute and modify it."
  22563. ac_pwd='$ac_pwd'
  22564. srcdir='$srcdir'
  22565. INSTALL='$INSTALL'
  22566. AWK='$AWK'
  22567. test -n "\$AWK" || AWK=awk
  22568. _ACEOF
  22569. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22570. # The default lists apply if the user does not specify any file.
  22571. ac_need_defaults=:
  22572. while test $# != 0
  22573. do
  22574. case $1 in
  22575. --*=?*)
  22576. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22577. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22578. ac_shift=:
  22579. ;;
  22580. --*=)
  22581. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22582. ac_optarg=
  22583. ac_shift=:
  22584. ;;
  22585. *)
  22586. ac_option=$1
  22587. ac_optarg=$2
  22588. ac_shift=shift
  22589. ;;
  22590. esac
  22591. case $ac_option in
  22592. # Handling of the options.
  22593. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22594. ac_cs_recheck=: ;;
  22595. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22596. $as_echo "$ac_cs_version"; exit ;;
  22597. --config | --confi | --conf | --con | --co | --c )
  22598. $as_echo "$ac_cs_config"; exit ;;
  22599. --debug | --debu | --deb | --de | --d | -d )
  22600. debug=: ;;
  22601. --file | --fil | --fi | --f )
  22602. $ac_shift
  22603. case $ac_optarg in
  22604. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22605. '') as_fn_error $? "missing file argument" ;;
  22606. esac
  22607. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22608. ac_need_defaults=false;;
  22609. --header | --heade | --head | --hea )
  22610. $ac_shift
  22611. case $ac_optarg in
  22612. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22613. esac
  22614. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22615. ac_need_defaults=false;;
  22616. --he | --h)
  22617. # Conflict between --help and --header
  22618. as_fn_error $? "ambiguous option: \`$1'
  22619. Try \`$0 --help' for more information.";;
  22620. --help | --hel | -h )
  22621. $as_echo "$ac_cs_usage"; exit ;;
  22622. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22623. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22624. ac_cs_silent=: ;;
  22625. # This is an error.
  22626. -*) as_fn_error $? "unrecognized option: \`$1'
  22627. Try \`$0 --help' for more information." ;;
  22628. *) as_fn_append ac_config_targets " $1"
  22629. ac_need_defaults=false ;;
  22630. esac
  22631. shift
  22632. done
  22633. ac_configure_extra_args=
  22634. if $ac_cs_silent; then
  22635. exec 6>/dev/null
  22636. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22637. fi
  22638. _ACEOF
  22639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22640. if \$ac_cs_recheck; then
  22641. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22642. shift
  22643. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22644. CONFIG_SHELL='$SHELL'
  22645. export CONFIG_SHELL
  22646. exec "\$@"
  22647. fi
  22648. _ACEOF
  22649. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22650. exec 5>>config.log
  22651. {
  22652. echo
  22653. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22654. ## Running $as_me. ##
  22655. _ASBOX
  22656. $as_echo "$ac_log"
  22657. } >&5
  22658. _ACEOF
  22659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22660. #
  22661. # INIT-COMMANDS
  22662. #
  22663. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22664. # if CDPATH is set.
  22665. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22666. sed_quote_subst='$sed_quote_subst'
  22667. double_quote_subst='$double_quote_subst'
  22668. delay_variable_subst='$delay_variable_subst'
  22669. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22670. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22671. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22672. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22673. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22674. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22675. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22676. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22677. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22678. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22679. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22680. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22681. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22682. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22683. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22684. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22685. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22686. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22687. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22688. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22689. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22690. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22691. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22692. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22693. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22694. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22695. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22696. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22697. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22698. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22699. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22700. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22701. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22702. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22703. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22704. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22705. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22706. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22707. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22708. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22709. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22710. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22711. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22712. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22713. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22714. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22715. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22716. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22717. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22718. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22719. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22720. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22721. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22722. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22723. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22724. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22725. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22726. 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"`'
  22727. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22728. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22729. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22730. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22731. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22732. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22733. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22734. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22735. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22736. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22737. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22738. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22739. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22740. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22741. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22742. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22743. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22744. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22745. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22746. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22747. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22748. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22749. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22750. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22751. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22752. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22753. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22754. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22755. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22756. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22757. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22758. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22759. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22760. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22761. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22762. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22763. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22764. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22765. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22766. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22767. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22768. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22769. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22770. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22771. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22772. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22773. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22774. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22775. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22776. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22777. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22778. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22779. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22780. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22781. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22782. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22783. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22784. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22785. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22786. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22787. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22788. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22789. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22790. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22791. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22792. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22793. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22794. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22795. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22796. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22797. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22798. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22799. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22800. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22801. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22802. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22803. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22804. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22805. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22806. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22807. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22808. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22809. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22810. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22811. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22812. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22813. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22814. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22815. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22816. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22817. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22818. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22819. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22820. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22821. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22822. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22823. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22824. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22825. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22826. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22827. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22828. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22829. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22830. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22831. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22832. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22833. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22834. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22835. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22836. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22837. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22838. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22839. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22840. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22841. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22842. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22843. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22844. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22845. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22846. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22847. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22848. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22849. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22850. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22851. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22852. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22853. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22854. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22855. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22856. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22857. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22858. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22859. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22860. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22861. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22862. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22863. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22864. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22865. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22866. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22867. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22868. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22869. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22870. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22871. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22872. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22873. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22874. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22875. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22876. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22877. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22878. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22879. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22880. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22881. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22882. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22883. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22884. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22885. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22886. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22887. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22888. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22889. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22890. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22891. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22892. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22893. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22894. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22895. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22896. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22897. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22898. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22899. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22900. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22901. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22902. LTCC='$LTCC'
  22903. LTCFLAGS='$LTCFLAGS'
  22904. compiler='$compiler_DEFAULT'
  22905. # A function that is used when there is no print builtin or printf.
  22906. func_fallback_echo ()
  22907. {
  22908. eval 'cat <<_LTECHO_EOF
  22909. \$1
  22910. _LTECHO_EOF'
  22911. }
  22912. # Quote evaled strings.
  22913. for var in AS \
  22914. DLLTOOL \
  22915. OBJDUMP \
  22916. SHELL \
  22917. ECHO \
  22918. PATH_SEPARATOR \
  22919. SED \
  22920. GREP \
  22921. EGREP \
  22922. FGREP \
  22923. LD \
  22924. NM \
  22925. LN_S \
  22926. lt_SP2NL \
  22927. lt_NL2SP \
  22928. reload_flag \
  22929. deplibs_check_method \
  22930. file_magic_cmd \
  22931. file_magic_glob \
  22932. want_nocaseglob \
  22933. sharedlib_from_linklib_cmd \
  22934. AR \
  22935. AR_FLAGS \
  22936. archiver_list_spec \
  22937. STRIP \
  22938. RANLIB \
  22939. CC \
  22940. CFLAGS \
  22941. compiler \
  22942. lt_cv_sys_global_symbol_pipe \
  22943. lt_cv_sys_global_symbol_to_cdecl \
  22944. lt_cv_sys_global_symbol_to_c_name_address \
  22945. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22946. nm_file_list_spec \
  22947. lt_prog_compiler_no_builtin_flag \
  22948. lt_prog_compiler_pic \
  22949. lt_prog_compiler_wl \
  22950. lt_prog_compiler_static \
  22951. lt_cv_prog_compiler_c_o \
  22952. need_locks \
  22953. MANIFEST_TOOL \
  22954. DSYMUTIL \
  22955. NMEDIT \
  22956. LIPO \
  22957. OTOOL \
  22958. OTOOL64 \
  22959. shrext_cmds \
  22960. export_dynamic_flag_spec \
  22961. whole_archive_flag_spec \
  22962. compiler_needs_object \
  22963. with_gnu_ld \
  22964. allow_undefined_flag \
  22965. no_undefined_flag \
  22966. hardcode_libdir_flag_spec \
  22967. hardcode_libdir_separator \
  22968. exclude_expsyms \
  22969. include_expsyms \
  22970. file_list_spec \
  22971. variables_saved_for_relink \
  22972. libname_spec \
  22973. library_names_spec \
  22974. soname_spec \
  22975. install_override_mode \
  22976. finish_eval \
  22977. old_striplib \
  22978. striplib \
  22979. compiler_lib_search_dirs \
  22980. predep_objects \
  22981. postdep_objects \
  22982. predeps \
  22983. postdeps \
  22984. compiler_lib_search_path \
  22985. LD_RC \
  22986. LD_CXX \
  22987. reload_flag_RC \
  22988. reload_flag_CXX \
  22989. compiler_RC \
  22990. compiler_CXX \
  22991. lt_prog_compiler_no_builtin_flag_RC \
  22992. lt_prog_compiler_no_builtin_flag_CXX \
  22993. lt_prog_compiler_pic_RC \
  22994. lt_prog_compiler_pic_CXX \
  22995. lt_prog_compiler_wl_RC \
  22996. lt_prog_compiler_wl_CXX \
  22997. lt_prog_compiler_static_RC \
  22998. lt_prog_compiler_static_CXX \
  22999. lt_cv_prog_compiler_c_o_RC \
  23000. lt_cv_prog_compiler_c_o_CXX \
  23001. export_dynamic_flag_spec_RC \
  23002. export_dynamic_flag_spec_CXX \
  23003. whole_archive_flag_spec_RC \
  23004. whole_archive_flag_spec_CXX \
  23005. compiler_needs_object_RC \
  23006. compiler_needs_object_CXX \
  23007. with_gnu_ld_RC \
  23008. with_gnu_ld_CXX \
  23009. allow_undefined_flag_RC \
  23010. allow_undefined_flag_CXX \
  23011. no_undefined_flag_RC \
  23012. no_undefined_flag_CXX \
  23013. hardcode_libdir_flag_spec_RC \
  23014. hardcode_libdir_flag_spec_CXX \
  23015. hardcode_libdir_separator_RC \
  23016. hardcode_libdir_separator_CXX \
  23017. exclude_expsyms_RC \
  23018. exclude_expsyms_CXX \
  23019. include_expsyms_RC \
  23020. include_expsyms_CXX \
  23021. file_list_spec_RC \
  23022. file_list_spec_CXX \
  23023. compiler_lib_search_dirs_RC \
  23024. compiler_lib_search_dirs_CXX \
  23025. predep_objects_RC \
  23026. predep_objects_CXX \
  23027. postdep_objects_RC \
  23028. postdep_objects_CXX \
  23029. predeps_RC \
  23030. predeps_CXX \
  23031. postdeps_RC \
  23032. postdeps_CXX \
  23033. compiler_lib_search_path_RC \
  23034. compiler_lib_search_path_CXX; do
  23035. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23036. *[\\\\\\\`\\"\\\$]*)
  23037. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23038. ;;
  23039. *)
  23040. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23041. ;;
  23042. esac
  23043. done
  23044. # Double-quote double-evaled strings.
  23045. for var in reload_cmds \
  23046. old_postinstall_cmds \
  23047. old_postuninstall_cmds \
  23048. old_archive_cmds \
  23049. extract_expsyms_cmds \
  23050. old_archive_from_new_cmds \
  23051. old_archive_from_expsyms_cmds \
  23052. archive_cmds \
  23053. archive_expsym_cmds \
  23054. module_cmds \
  23055. module_expsym_cmds \
  23056. export_symbols_cmds \
  23057. prelink_cmds \
  23058. postlink_cmds \
  23059. postinstall_cmds \
  23060. postuninstall_cmds \
  23061. finish_cmds \
  23062. sys_lib_search_path_spec \
  23063. sys_lib_dlsearch_path_spec \
  23064. reload_cmds_RC \
  23065. reload_cmds_CXX \
  23066. old_archive_cmds_RC \
  23067. old_archive_cmds_CXX \
  23068. old_archive_from_new_cmds_RC \
  23069. old_archive_from_new_cmds_CXX \
  23070. old_archive_from_expsyms_cmds_RC \
  23071. old_archive_from_expsyms_cmds_CXX \
  23072. archive_cmds_RC \
  23073. archive_cmds_CXX \
  23074. archive_expsym_cmds_RC \
  23075. archive_expsym_cmds_CXX \
  23076. module_cmds_RC \
  23077. module_cmds_CXX \
  23078. module_expsym_cmds_RC \
  23079. module_expsym_cmds_CXX \
  23080. export_symbols_cmds_RC \
  23081. export_symbols_cmds_CXX \
  23082. prelink_cmds_RC \
  23083. prelink_cmds_CXX \
  23084. postlink_cmds_RC \
  23085. postlink_cmds_CXX; do
  23086. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23087. *[\\\\\\\`\\"\\\$]*)
  23088. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23089. ;;
  23090. *)
  23091. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23092. ;;
  23093. esac
  23094. done
  23095. ac_aux_dir='$ac_aux_dir'
  23096. xsi_shell='$xsi_shell'
  23097. lt_shell_append='$lt_shell_append'
  23098. # See if we are running on zsh, and set the options which allow our
  23099. # commands through without removal of \ escapes INIT.
  23100. if test -n "\${ZSH_VERSION+set}" ; then
  23101. setopt NO_GLOB_SUBST
  23102. fi
  23103. PACKAGE='$PACKAGE'
  23104. VERSION='$VERSION'
  23105. TIMESTAMP='$TIMESTAMP'
  23106. RM='$RM'
  23107. ofile='$ofile'
  23108. SUMMARY="$SUMMARY"
  23109. _ACEOF
  23110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23111. # Handling of arguments.
  23112. for ac_config_target in $ac_config_targets
  23113. do
  23114. case $ac_config_target in
  23115. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23116. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23117. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23118. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23119. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23120. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23121. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23122. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23123. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23124. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23125. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23126. esac
  23127. done
  23128. # If the user did not use the arguments to specify the items to instantiate,
  23129. # then the envvar interface is used. Set only those that are not.
  23130. # We use the long form for the default assignment because of an extremely
  23131. # bizarre bug on SunOS 4.1.3.
  23132. if $ac_need_defaults; then
  23133. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23134. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23135. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23136. fi
  23137. # Have a temporary directory for convenience. Make it in the build tree
  23138. # simply because there is no reason against having it here, and in addition,
  23139. # creating and moving files from /tmp can sometimes cause problems.
  23140. # Hook for its removal unless debugging.
  23141. # Note that there is a small window in which the directory will not be cleaned:
  23142. # after its creation but before its name has been assigned to `$tmp'.
  23143. $debug ||
  23144. {
  23145. tmp= ac_tmp=
  23146. trap 'exit_status=$?
  23147. : "${ac_tmp:=$tmp}"
  23148. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23149. ' 0
  23150. trap 'as_fn_exit 1' 1 2 13 15
  23151. }
  23152. # Create a (secure) tmp directory for tmp files.
  23153. {
  23154. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23155. test -d "$tmp"
  23156. } ||
  23157. {
  23158. tmp=./conf$$-$RANDOM
  23159. (umask 077 && mkdir "$tmp")
  23160. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23161. ac_tmp=$tmp
  23162. # Set up the scripts for CONFIG_FILES section.
  23163. # No need to generate them if there are no CONFIG_FILES.
  23164. # This happens for instance with `./config.status config.h'.
  23165. if test -n "$CONFIG_FILES"; then
  23166. ac_cr=`echo X | tr X '\015'`
  23167. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23168. # But we know of no other shell where ac_cr would be empty at this
  23169. # point, so we can use a bashism as a fallback.
  23170. if test "x$ac_cr" = x; then
  23171. eval ac_cr=\$\'\\r\'
  23172. fi
  23173. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23174. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23175. ac_cs_awk_cr='\\r'
  23176. else
  23177. ac_cs_awk_cr=$ac_cr
  23178. fi
  23179. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23180. _ACEOF
  23181. {
  23182. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23183. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23184. echo "_ACEOF"
  23185. } >conf$$subs.sh ||
  23186. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23187. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23188. ac_delim='%!_!# '
  23189. for ac_last_try in false false false false false :; do
  23190. . ./conf$$subs.sh ||
  23191. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23192. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23193. if test $ac_delim_n = $ac_delim_num; then
  23194. break
  23195. elif $ac_last_try; then
  23196. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23197. else
  23198. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23199. fi
  23200. done
  23201. rm -f conf$$subs.sh
  23202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23203. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23204. _ACEOF
  23205. sed -n '
  23206. h
  23207. s/^/S["/; s/!.*/"]=/
  23208. p
  23209. g
  23210. s/^[^!]*!//
  23211. :repl
  23212. t repl
  23213. s/'"$ac_delim"'$//
  23214. t delim
  23215. :nl
  23216. h
  23217. s/\(.\{148\}\)..*/\1/
  23218. t more1
  23219. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23220. p
  23221. n
  23222. b repl
  23223. :more1
  23224. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23225. p
  23226. g
  23227. s/.\{148\}//
  23228. t nl
  23229. :delim
  23230. h
  23231. s/\(.\{148\}\)..*/\1/
  23232. t more2
  23233. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23234. p
  23235. b
  23236. :more2
  23237. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23238. p
  23239. g
  23240. s/.\{148\}//
  23241. t delim
  23242. ' <conf$$subs.awk | sed '
  23243. /^[^""]/{
  23244. N
  23245. s/\n//
  23246. }
  23247. ' >>$CONFIG_STATUS || ac_write_fail=1
  23248. rm -f conf$$subs.awk
  23249. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23250. _ACAWK
  23251. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23252. for (key in S) S_is_set[key] = 1
  23253. FS = ""
  23254. }
  23255. {
  23256. line = $ 0
  23257. nfields = split(line, field, "@")
  23258. substed = 0
  23259. len = length(field[1])
  23260. for (i = 2; i < nfields; i++) {
  23261. key = field[i]
  23262. keylen = length(key)
  23263. if (S_is_set[key]) {
  23264. value = S[key]
  23265. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23266. len += length(value) + length(field[++i])
  23267. substed = 1
  23268. } else
  23269. len += 1 + keylen
  23270. }
  23271. print line
  23272. }
  23273. _ACAWK
  23274. _ACEOF
  23275. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23276. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23277. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23278. else
  23279. cat
  23280. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23281. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23282. _ACEOF
  23283. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23284. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23285. # trailing colons and then remove the whole line if VPATH becomes empty
  23286. # (actually we leave an empty line to preserve line numbers).
  23287. if test "x$srcdir" = x.; then
  23288. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23289. h
  23290. s///
  23291. s/^/:/
  23292. s/[ ]*$/:/
  23293. s/:\$(srcdir):/:/g
  23294. s/:\${srcdir}:/:/g
  23295. s/:@srcdir@:/:/g
  23296. s/^:*//
  23297. s/:*$//
  23298. x
  23299. s/\(=[ ]*\).*/\1/
  23300. G
  23301. s/\n//
  23302. s/^[^=]*=[ ]*$//
  23303. }'
  23304. fi
  23305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23306. fi # test -n "$CONFIG_FILES"
  23307. # Set up the scripts for CONFIG_HEADERS section.
  23308. # No need to generate them if there are no CONFIG_HEADERS.
  23309. # This happens for instance with `./config.status Makefile'.
  23310. if test -n "$CONFIG_HEADERS"; then
  23311. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23312. BEGIN {
  23313. _ACEOF
  23314. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23315. # here-document in config.status, that substitutes the proper values into
  23316. # config.h.in to produce config.h.
  23317. # Create a delimiter string that does not exist in confdefs.h, to ease
  23318. # handling of long lines.
  23319. ac_delim='%!_!# '
  23320. for ac_last_try in false false :; do
  23321. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23322. if test -z "$ac_tt"; then
  23323. break
  23324. elif $ac_last_try; then
  23325. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23326. else
  23327. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23328. fi
  23329. done
  23330. # For the awk script, D is an array of macro values keyed by name,
  23331. # likewise P contains macro parameters if any. Preserve backslash
  23332. # newline sequences.
  23333. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23334. sed -n '
  23335. s/.\{148\}/&'"$ac_delim"'/g
  23336. t rset
  23337. :rset
  23338. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23339. t def
  23340. d
  23341. :def
  23342. s/\\$//
  23343. t bsnl
  23344. s/["\\]/\\&/g
  23345. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23346. D["\1"]=" \3"/p
  23347. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23348. d
  23349. :bsnl
  23350. s/["\\]/\\&/g
  23351. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23352. D["\1"]=" \3\\\\\\n"\\/p
  23353. t cont
  23354. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23355. t cont
  23356. d
  23357. :cont
  23358. n
  23359. s/.\{148\}/&'"$ac_delim"'/g
  23360. t clear
  23361. :clear
  23362. s/\\$//
  23363. t bsnlc
  23364. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23365. d
  23366. :bsnlc
  23367. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23368. b cont
  23369. ' <confdefs.h | sed '
  23370. s/'"$ac_delim"'/"\\\
  23371. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23372. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23373. for (key in D) D_is_set[key] = 1
  23374. FS = ""
  23375. }
  23376. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23377. line = \$ 0
  23378. split(line, arg, " ")
  23379. if (arg[1] == "#") {
  23380. defundef = arg[2]
  23381. mac1 = arg[3]
  23382. } else {
  23383. defundef = substr(arg[1], 2)
  23384. mac1 = arg[2]
  23385. }
  23386. split(mac1, mac2, "(") #)
  23387. macro = mac2[1]
  23388. prefix = substr(line, 1, index(line, defundef) - 1)
  23389. if (D_is_set[macro]) {
  23390. # Preserve the white space surrounding the "#".
  23391. print prefix "define", macro P[macro] D[macro]
  23392. next
  23393. } else {
  23394. # Replace #undef with comments. This is necessary, for example,
  23395. # in the case of _POSIX_SOURCE, which is predefined and required
  23396. # on some systems where configure will not decide to define it.
  23397. if (defundef == "undef") {
  23398. print "/*", prefix defundef, macro, "*/"
  23399. next
  23400. }
  23401. }
  23402. }
  23403. { print }
  23404. _ACAWK
  23405. _ACEOF
  23406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23407. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23408. fi # test -n "$CONFIG_HEADERS"
  23409. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23410. shift
  23411. for ac_tag
  23412. do
  23413. case $ac_tag in
  23414. :[FHLC]) ac_mode=$ac_tag; continue;;
  23415. esac
  23416. case $ac_mode$ac_tag in
  23417. :[FHL]*:*);;
  23418. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23419. :[FH]-) ac_tag=-:-;;
  23420. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23421. esac
  23422. ac_save_IFS=$IFS
  23423. IFS=:
  23424. set x $ac_tag
  23425. IFS=$ac_save_IFS
  23426. shift
  23427. ac_file=$1
  23428. shift
  23429. case $ac_mode in
  23430. :L) ac_source=$1;;
  23431. :[FH])
  23432. ac_file_inputs=
  23433. for ac_f
  23434. do
  23435. case $ac_f in
  23436. -) ac_f="$ac_tmp/stdin";;
  23437. *) # Look for the file first in the build tree, then in the source tree
  23438. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23439. # because $ac_f cannot contain `:'.
  23440. test -f "$ac_f" ||
  23441. case $ac_f in
  23442. [\\/$]*) false;;
  23443. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23444. esac ||
  23445. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23446. esac
  23447. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23448. as_fn_append ac_file_inputs " '$ac_f'"
  23449. done
  23450. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23451. # use $as_me), people would be surprised to read:
  23452. # /* config.h. Generated by config.status. */
  23453. configure_input='Generated from '`
  23454. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23455. `' by configure.'
  23456. if test x"$ac_file" != x-; then
  23457. configure_input="$ac_file. $configure_input"
  23458. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23459. $as_echo "$as_me: creating $ac_file" >&6;}
  23460. fi
  23461. # Neutralize special characters interpreted by sed in replacement strings.
  23462. case $configure_input in #(
  23463. *\&* | *\|* | *\\* )
  23464. ac_sed_conf_input=`$as_echo "$configure_input" |
  23465. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23466. *) ac_sed_conf_input=$configure_input;;
  23467. esac
  23468. case $ac_tag in
  23469. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23470. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23471. esac
  23472. ;;
  23473. esac
  23474. ac_dir=`$as_dirname -- "$ac_file" ||
  23475. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23476. X"$ac_file" : 'X\(//\)[^/]' \| \
  23477. X"$ac_file" : 'X\(//\)$' \| \
  23478. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23479. $as_echo X"$ac_file" |
  23480. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23481. s//\1/
  23482. q
  23483. }
  23484. /^X\(\/\/\)[^/].*/{
  23485. s//\1/
  23486. q
  23487. }
  23488. /^X\(\/\/\)$/{
  23489. s//\1/
  23490. q
  23491. }
  23492. /^X\(\/\).*/{
  23493. s//\1/
  23494. q
  23495. }
  23496. s/.*/./; q'`
  23497. as_dir="$ac_dir"; as_fn_mkdir_p
  23498. ac_builddir=.
  23499. case "$ac_dir" in
  23500. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23501. *)
  23502. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23503. # A ".." for each directory in $ac_dir_suffix.
  23504. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23505. case $ac_top_builddir_sub in
  23506. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23507. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23508. esac ;;
  23509. esac
  23510. ac_abs_top_builddir=$ac_pwd
  23511. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23512. # for backward compatibility:
  23513. ac_top_builddir=$ac_top_build_prefix
  23514. case $srcdir in
  23515. .) # We are building in place.
  23516. ac_srcdir=.
  23517. ac_top_srcdir=$ac_top_builddir_sub
  23518. ac_abs_top_srcdir=$ac_pwd ;;
  23519. [\\/]* | ?:[\\/]* ) # Absolute name.
  23520. ac_srcdir=$srcdir$ac_dir_suffix;
  23521. ac_top_srcdir=$srcdir
  23522. ac_abs_top_srcdir=$srcdir ;;
  23523. *) # Relative name.
  23524. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23525. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23526. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23527. esac
  23528. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23529. case $ac_mode in
  23530. :F)
  23531. #
  23532. # CONFIG_FILE
  23533. #
  23534. case $INSTALL in
  23535. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23536. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23537. esac
  23538. _ACEOF
  23539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23540. # If the template does not know about datarootdir, expand it.
  23541. # FIXME: This hack should be removed a few years after 2.60.
  23542. ac_datarootdir_hack=; ac_datarootdir_seen=
  23543. ac_sed_dataroot='
  23544. /datarootdir/ {
  23545. p
  23546. q
  23547. }
  23548. /@datadir@/p
  23549. /@docdir@/p
  23550. /@infodir@/p
  23551. /@localedir@/p
  23552. /@mandir@/p'
  23553. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23554. *datarootdir*) ac_datarootdir_seen=yes;;
  23555. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23557. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23558. _ACEOF
  23559. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23560. ac_datarootdir_hack='
  23561. s&@datadir@&$datadir&g
  23562. s&@docdir@&$docdir&g
  23563. s&@infodir@&$infodir&g
  23564. s&@localedir@&$localedir&g
  23565. s&@mandir@&$mandir&g
  23566. s&\\\${datarootdir}&$datarootdir&g' ;;
  23567. esac
  23568. _ACEOF
  23569. # Neutralize VPATH when `$srcdir' = `.'.
  23570. # Shell code in configure.ac might set extrasub.
  23571. # FIXME: do we really want to maintain this feature?
  23572. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23573. ac_sed_extra="$ac_vpsub
  23574. $extrasub
  23575. _ACEOF
  23576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23577. :t
  23578. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23579. s|@configure_input@|$ac_sed_conf_input|;t t
  23580. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23581. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23582. s&@srcdir@&$ac_srcdir&;t t
  23583. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23584. s&@top_srcdir@&$ac_top_srcdir&;t t
  23585. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23586. s&@builddir@&$ac_builddir&;t t
  23587. s&@abs_builddir@&$ac_abs_builddir&;t t
  23588. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23589. s&@INSTALL@&$ac_INSTALL&;t t
  23590. $ac_datarootdir_hack
  23591. "
  23592. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23593. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23594. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23595. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23596. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23597. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23599. which seems to be undefined. Please make sure it is defined" >&5
  23600. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23601. which seems to be undefined. Please make sure it is defined" >&2;}
  23602. rm -f "$ac_tmp/stdin"
  23603. case $ac_file in
  23604. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23605. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23606. esac \
  23607. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23608. ;;
  23609. :H)
  23610. #
  23611. # CONFIG_HEADER
  23612. #
  23613. if test x"$ac_file" != x-; then
  23614. {
  23615. $as_echo "/* $configure_input */" \
  23616. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23617. } >"$ac_tmp/config.h" \
  23618. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23619. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23620. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23621. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23622. else
  23623. rm -f "$ac_file"
  23624. mv "$ac_tmp/config.h" "$ac_file" \
  23625. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23626. fi
  23627. else
  23628. $as_echo "/* $configure_input */" \
  23629. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23630. || as_fn_error $? "could not create -" "$LINENO" 5
  23631. fi
  23632. ;;
  23633. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23634. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23635. ;;
  23636. esac
  23637. case $ac_file$ac_mode in
  23638. "libtool":C)
  23639. # See if we are running on zsh, and set the options which allow our
  23640. # commands through without removal of \ escapes.
  23641. if test -n "${ZSH_VERSION+set}" ; then
  23642. setopt NO_GLOB_SUBST
  23643. fi
  23644. cfgfile="${ofile}T"
  23645. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23646. $RM "$cfgfile"
  23647. cat <<_LT_EOF >> "$cfgfile"
  23648. #! $SHELL
  23649. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23650. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23651. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23652. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23653. #
  23654. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23655. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23656. # Foundation, Inc.
  23657. # Written by Gordon Matzigkeit, 1996
  23658. #
  23659. # This file is part of GNU Libtool.
  23660. #
  23661. # GNU Libtool is free software; you can redistribute it and/or
  23662. # modify it under the terms of the GNU General Public License as
  23663. # published by the Free Software Foundation; either version 2 of
  23664. # the License, or (at your option) any later version.
  23665. #
  23666. # As a special exception to the GNU General Public License,
  23667. # if you distribute this file as part of a program or library that
  23668. # is built using GNU Libtool, you may include this file under the
  23669. # same distribution terms that you use for the rest of that program.
  23670. #
  23671. # GNU Libtool is distributed in the hope that it will be useful,
  23672. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23673. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23674. # GNU General Public License for more details.
  23675. #
  23676. # You should have received a copy of the GNU General Public License
  23677. # along with GNU Libtool; see the file COPYING. If not, a copy
  23678. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23679. # obtained by writing to the Free Software Foundation, Inc.,
  23680. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23681. # The names of the tagged configurations supported by this script.
  23682. available_tags="RC CXX "
  23683. # ### BEGIN LIBTOOL CONFIG
  23684. # Which release of libtool.m4 was used?
  23685. macro_version=$macro_version
  23686. macro_revision=$macro_revision
  23687. # Assembler program.
  23688. AS=$lt_AS
  23689. # DLL creation program.
  23690. DLLTOOL=$lt_DLLTOOL
  23691. # Object dumper program.
  23692. OBJDUMP=$lt_OBJDUMP
  23693. # Whether or not to build shared libraries.
  23694. build_libtool_libs=$enable_shared
  23695. # Whether or not to build static libraries.
  23696. build_old_libs=$enable_static
  23697. # What type of objects to build.
  23698. pic_mode=$pic_mode
  23699. # Whether or not to optimize for fast installation.
  23700. fast_install=$enable_fast_install
  23701. # Shell to use when invoking shell scripts.
  23702. SHELL=$lt_SHELL
  23703. # An echo program that protects backslashes.
  23704. ECHO=$lt_ECHO
  23705. # The PATH separator for the build system.
  23706. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23707. # The host system.
  23708. host_alias=$host_alias
  23709. host=$host
  23710. host_os=$host_os
  23711. # The build system.
  23712. build_alias=$build_alias
  23713. build=$build
  23714. build_os=$build_os
  23715. # A sed program that does not truncate output.
  23716. SED=$lt_SED
  23717. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23718. Xsed="\$SED -e 1s/^X//"
  23719. # A grep program that handles long lines.
  23720. GREP=$lt_GREP
  23721. # An ERE matcher.
  23722. EGREP=$lt_EGREP
  23723. # A literal string matcher.
  23724. FGREP=$lt_FGREP
  23725. # A BSD- or MS-compatible name lister.
  23726. NM=$lt_NM
  23727. # Whether we need soft or hard links.
  23728. LN_S=$lt_LN_S
  23729. # What is the maximum length of a command?
  23730. max_cmd_len=$max_cmd_len
  23731. # Object file suffix (normally "o").
  23732. objext=$ac_objext
  23733. # Executable file suffix (normally "").
  23734. exeext=$exeext
  23735. # whether the shell understands "unset".
  23736. lt_unset=$lt_unset
  23737. # turn spaces into newlines.
  23738. SP2NL=$lt_lt_SP2NL
  23739. # turn newlines into spaces.
  23740. NL2SP=$lt_lt_NL2SP
  23741. # convert \$build file names to \$host format.
  23742. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23743. # convert \$build files to toolchain format.
  23744. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23745. # Method to check whether dependent libraries are shared objects.
  23746. deplibs_check_method=$lt_deplibs_check_method
  23747. # Command to use when deplibs_check_method = "file_magic".
  23748. file_magic_cmd=$lt_file_magic_cmd
  23749. # How to find potential files when deplibs_check_method = "file_magic".
  23750. file_magic_glob=$lt_file_magic_glob
  23751. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23752. want_nocaseglob=$lt_want_nocaseglob
  23753. # Command to associate shared and link libraries.
  23754. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23755. # The archiver.
  23756. AR=$lt_AR
  23757. # Flags to create an archive.
  23758. AR_FLAGS=$lt_AR_FLAGS
  23759. # How to feed a file listing to the archiver.
  23760. archiver_list_spec=$lt_archiver_list_spec
  23761. # A symbol stripping program.
  23762. STRIP=$lt_STRIP
  23763. # Commands used to install an old-style archive.
  23764. RANLIB=$lt_RANLIB
  23765. old_postinstall_cmds=$lt_old_postinstall_cmds
  23766. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23767. # Whether to use a lock for old archive extraction.
  23768. lock_old_archive_extraction=$lock_old_archive_extraction
  23769. # A C compiler.
  23770. LTCC=$lt_CC
  23771. # LTCC compiler flags.
  23772. LTCFLAGS=$lt_CFLAGS
  23773. # Take the output of nm and produce a listing of raw symbols and C names.
  23774. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23775. # Transform the output of nm in a proper C declaration.
  23776. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23777. # Transform the output of nm in a C name address pair.
  23778. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23779. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23780. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23781. # Specify filename containing input files for \$NM.
  23782. nm_file_list_spec=$lt_nm_file_list_spec
  23783. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23784. lt_sysroot=$lt_sysroot
  23785. # The name of the directory that contains temporary libtool files.
  23786. objdir=$objdir
  23787. # Used to examine libraries when file_magic_cmd begins with "file".
  23788. MAGIC_CMD=$MAGIC_CMD
  23789. # Must we lock files when doing compilation?
  23790. need_locks=$lt_need_locks
  23791. # Manifest tool.
  23792. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23793. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23794. DSYMUTIL=$lt_DSYMUTIL
  23795. # Tool to change global to local symbols on Mac OS X.
  23796. NMEDIT=$lt_NMEDIT
  23797. # Tool to manipulate fat objects and archives on Mac OS X.
  23798. LIPO=$lt_LIPO
  23799. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23800. OTOOL=$lt_OTOOL
  23801. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23802. OTOOL64=$lt_OTOOL64
  23803. # Old archive suffix (normally "a").
  23804. libext=$libext
  23805. # Shared library suffix (normally ".so").
  23806. shrext_cmds=$lt_shrext_cmds
  23807. # The commands to extract the exported symbol list from a shared archive.
  23808. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23809. # Variables whose values should be saved in libtool wrapper scripts and
  23810. # restored at link time.
  23811. variables_saved_for_relink=$lt_variables_saved_for_relink
  23812. # Do we need the "lib" prefix for modules?
  23813. need_lib_prefix=$need_lib_prefix
  23814. # Do we need a version for libraries?
  23815. need_version=$need_version
  23816. # Library versioning type.
  23817. version_type=$version_type
  23818. # Shared library runtime path variable.
  23819. runpath_var=$runpath_var
  23820. # Shared library path variable.
  23821. shlibpath_var=$shlibpath_var
  23822. # Is shlibpath searched before the hard-coded library search path?
  23823. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23824. # Format of library name prefix.
  23825. libname_spec=$lt_libname_spec
  23826. # List of archive names. First name is the real one, the rest are links.
  23827. # The last name is the one that the linker finds with -lNAME
  23828. library_names_spec=$lt_library_names_spec
  23829. # The coded name of the library, if different from the real name.
  23830. soname_spec=$lt_soname_spec
  23831. # Permission mode override for installation of shared libraries.
  23832. install_override_mode=$lt_install_override_mode
  23833. # Command to use after installation of a shared archive.
  23834. postinstall_cmds=$lt_postinstall_cmds
  23835. # Command to use after uninstallation of a shared archive.
  23836. postuninstall_cmds=$lt_postuninstall_cmds
  23837. # Commands used to finish a libtool library installation in a directory.
  23838. finish_cmds=$lt_finish_cmds
  23839. # As "finish_cmds", except a single script fragment to be evaled but
  23840. # not shown.
  23841. finish_eval=$lt_finish_eval
  23842. # Whether we should hardcode library paths into libraries.
  23843. hardcode_into_libs=$hardcode_into_libs
  23844. # Compile-time system search path for libraries.
  23845. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23846. # Run-time system search path for libraries.
  23847. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23848. # Whether dlopen is supported.
  23849. dlopen_support=$enable_dlopen
  23850. # Whether dlopen of programs is supported.
  23851. dlopen_self=$enable_dlopen_self
  23852. # Whether dlopen of statically linked programs is supported.
  23853. dlopen_self_static=$enable_dlopen_self_static
  23854. # Commands to strip libraries.
  23855. old_striplib=$lt_old_striplib
  23856. striplib=$lt_striplib
  23857. # The linker used to build libraries.
  23858. LD=$lt_LD
  23859. # How to create reloadable object files.
  23860. reload_flag=$lt_reload_flag
  23861. reload_cmds=$lt_reload_cmds
  23862. # Commands used to build an old-style archive.
  23863. old_archive_cmds=$lt_old_archive_cmds
  23864. # A language specific compiler.
  23865. CC=$lt_compiler
  23866. # Is the compiler the GNU compiler?
  23867. with_gcc=$GCC
  23868. # Compiler flag to turn off builtin functions.
  23869. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23870. # Additional compiler flags for building library objects.
  23871. pic_flag=$lt_lt_prog_compiler_pic
  23872. # How to pass a linker flag through the compiler.
  23873. wl=$lt_lt_prog_compiler_wl
  23874. # Compiler flag to prevent dynamic linking.
  23875. link_static_flag=$lt_lt_prog_compiler_static
  23876. # Does compiler simultaneously support -c and -o options?
  23877. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23878. # Whether or not to add -lc for building shared libraries.
  23879. build_libtool_need_lc=$archive_cmds_need_lc
  23880. # Whether or not to disallow shared libs when runtime libs are static.
  23881. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23882. # Compiler flag to allow reflexive dlopens.
  23883. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23884. # Compiler flag to generate shared objects directly from archives.
  23885. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23886. # Whether the compiler copes with passing no objects directly.
  23887. compiler_needs_object=$lt_compiler_needs_object
  23888. # Create an old-style archive from a shared archive.
  23889. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23890. # Create a temporary old-style archive to link instead of a shared archive.
  23891. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23892. # Commands used to build a shared archive.
  23893. archive_cmds=$lt_archive_cmds
  23894. archive_expsym_cmds=$lt_archive_expsym_cmds
  23895. # Commands used to build a loadable module if different from building
  23896. # a shared archive.
  23897. module_cmds=$lt_module_cmds
  23898. module_expsym_cmds=$lt_module_expsym_cmds
  23899. # Whether we are building with GNU ld or not.
  23900. with_gnu_ld=$lt_with_gnu_ld
  23901. # Flag that allows shared libraries with undefined symbols to be built.
  23902. allow_undefined_flag=$lt_allow_undefined_flag
  23903. # Flag that enforces no undefined symbols.
  23904. no_undefined_flag=$lt_no_undefined_flag
  23905. # Flag to hardcode \$libdir into a binary during linking.
  23906. # This must work even if \$libdir does not exist
  23907. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23908. # Whether we need a single "-rpath" flag with a separated argument.
  23909. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23910. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23911. # DIR into the resulting binary.
  23912. hardcode_direct=$hardcode_direct
  23913. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23914. # DIR into the resulting binary and the resulting library dependency is
  23915. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23916. # library is relocated.
  23917. hardcode_direct_absolute=$hardcode_direct_absolute
  23918. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23919. # into the resulting binary.
  23920. hardcode_minus_L=$hardcode_minus_L
  23921. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23922. # into the resulting binary.
  23923. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23924. # Set to "yes" if building a shared library automatically hardcodes DIR
  23925. # into the library and all subsequent libraries and executables linked
  23926. # against it.
  23927. hardcode_automatic=$hardcode_automatic
  23928. # Set to yes if linker adds runtime paths of dependent libraries
  23929. # to runtime path list.
  23930. inherit_rpath=$inherit_rpath
  23931. # Whether libtool must link a program against all its dependency libraries.
  23932. link_all_deplibs=$link_all_deplibs
  23933. # Set to "yes" if exported symbols are required.
  23934. always_export_symbols=$always_export_symbols
  23935. # The commands to list exported symbols.
  23936. export_symbols_cmds=$lt_export_symbols_cmds
  23937. # Symbols that should not be listed in the preloaded symbols.
  23938. exclude_expsyms=$lt_exclude_expsyms
  23939. # Symbols that must always be exported.
  23940. include_expsyms=$lt_include_expsyms
  23941. # Commands necessary for linking programs (against libraries) with templates.
  23942. prelink_cmds=$lt_prelink_cmds
  23943. # Commands necessary for finishing linking programs.
  23944. postlink_cmds=$lt_postlink_cmds
  23945. # Specify filename containing input files.
  23946. file_list_spec=$lt_file_list_spec
  23947. # How to hardcode a shared library path into an executable.
  23948. hardcode_action=$hardcode_action
  23949. # The directories searched by this compiler when creating a shared library.
  23950. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23951. # Dependencies to place before and after the objects being linked to
  23952. # create a shared library.
  23953. predep_objects=$lt_predep_objects
  23954. postdep_objects=$lt_postdep_objects
  23955. predeps=$lt_predeps
  23956. postdeps=$lt_postdeps
  23957. # The library search path used internally by the compiler when linking
  23958. # a shared library.
  23959. compiler_lib_search_path=$lt_compiler_lib_search_path
  23960. # ### END LIBTOOL CONFIG
  23961. _LT_EOF
  23962. case $host_os in
  23963. aix3*)
  23964. cat <<\_LT_EOF >> "$cfgfile"
  23965. # AIX sometimes has problems with the GCC collect2 program. For some
  23966. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23967. # vanish in a puff of smoke.
  23968. if test "X${COLLECT_NAMES+set}" != Xset; then
  23969. COLLECT_NAMES=
  23970. export COLLECT_NAMES
  23971. fi
  23972. _LT_EOF
  23973. ;;
  23974. esac
  23975. ltmain="$ac_aux_dir/ltmain.sh"
  23976. # We use sed instead of cat because bash on DJGPP gets confused if
  23977. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23978. # text mode, it properly converts lines to CR/LF. This bash problem
  23979. # is reportedly fixed, but why not run on old versions too?
  23980. sed '$q' "$ltmain" >> "$cfgfile" \
  23981. || (rm -f "$cfgfile"; exit 1)
  23982. if test x"$xsi_shell" = xyes; then
  23983. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23984. func_dirname ()\
  23985. {\
  23986. \ case ${1} in\
  23987. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23988. \ * ) func_dirname_result="${3}" ;;\
  23989. \ esac\
  23990. } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
  23995. func_basename ()\
  23996. {\
  23997. \ func_basename_result="${1##*/}"\
  23998. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23999. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24000. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24001. test 0 -eq $? || _lt_function_replace_fail=:
  24002. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24003. func_dirname_and_basename ()\
  24004. {\
  24005. \ case ${1} in\
  24006. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24007. \ * ) func_dirname_result="${3}" ;;\
  24008. \ esac\
  24009. \ func_basename_result="${1##*/}"\
  24010. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24011. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24012. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24013. test 0 -eq $? || _lt_function_replace_fail=:
  24014. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24015. func_stripname ()\
  24016. {\
  24017. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24018. \ # positional parameters, so assign one to ordinary parameter first.\
  24019. \ func_stripname_result=${3}\
  24020. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24021. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24022. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24023. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24024. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24025. test 0 -eq $? || _lt_function_replace_fail=:
  24026. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24027. func_split_long_opt ()\
  24028. {\
  24029. \ func_split_long_opt_name=${1%%=*}\
  24030. \ func_split_long_opt_arg=${1#*=}\
  24031. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24032. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24033. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24034. test 0 -eq $? || _lt_function_replace_fail=:
  24035. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24036. func_split_short_opt ()\
  24037. {\
  24038. \ func_split_short_opt_arg=${1#??}\
  24039. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24040. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24043. test 0 -eq $? || _lt_function_replace_fail=:
  24044. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24045. func_lo2o ()\
  24046. {\
  24047. \ case ${1} in\
  24048. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24049. \ *) func_lo2o_result=${1} ;;\
  24050. \ esac\
  24051. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24052. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24053. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24054. test 0 -eq $? || _lt_function_replace_fail=:
  24055. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24056. func_xform ()\
  24057. {\
  24058. func_xform_result=${1%.*}.lo\
  24059. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24060. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24061. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24062. test 0 -eq $? || _lt_function_replace_fail=:
  24063. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24064. func_arith ()\
  24065. {\
  24066. func_arith_result=$(( $* ))\
  24067. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24068. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24069. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24070. test 0 -eq $? || _lt_function_replace_fail=:
  24071. sed -e '/^func_len ()$/,/^} # func_len /c\
  24072. func_len ()\
  24073. {\
  24074. func_len_result=${#1}\
  24075. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24076. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24077. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24078. test 0 -eq $? || _lt_function_replace_fail=:
  24079. fi
  24080. if test x"$lt_shell_append" = xyes; then
  24081. sed -e '/^func_append ()$/,/^} # func_append /c\
  24082. func_append ()\
  24083. {\
  24084. eval "${1}+=\\${2}"\
  24085. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24086. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24087. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24088. test 0 -eq $? || _lt_function_replace_fail=:
  24089. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24090. func_append_quoted ()\
  24091. {\
  24092. \ func_quote_for_eval "${2}"\
  24093. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24094. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24095. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24096. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24097. test 0 -eq $? || _lt_function_replace_fail=:
  24098. # Save a `func_append' function call where possible by direct use of '+='
  24099. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24100. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24101. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24102. test 0 -eq $? || _lt_function_replace_fail=:
  24103. else
  24104. # Save a `func_append' function call even when '+=' is not available
  24105. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24106. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24107. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24108. test 0 -eq $? || _lt_function_replace_fail=:
  24109. fi
  24110. if test x"$_lt_function_replace_fail" = x":"; then
  24111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24112. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24113. fi
  24114. mv -f "$cfgfile" "$ofile" ||
  24115. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24116. chmod +x "$ofile"
  24117. cat <<_LT_EOF >> "$ofile"
  24118. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24119. # The linker used to build libraries.
  24120. LD=$lt_LD_RC
  24121. # How to create reloadable object files.
  24122. reload_flag=$lt_reload_flag_RC
  24123. reload_cmds=$lt_reload_cmds_RC
  24124. # Commands used to build an old-style archive.
  24125. old_archive_cmds=$lt_old_archive_cmds_RC
  24126. # A language specific compiler.
  24127. CC=$lt_compiler_RC
  24128. # Is the compiler the GNU compiler?
  24129. with_gcc=$GCC_RC
  24130. # Compiler flag to turn off builtin functions.
  24131. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24132. # Additional compiler flags for building library objects.
  24133. pic_flag=$lt_lt_prog_compiler_pic_RC
  24134. # How to pass a linker flag through the compiler.
  24135. wl=$lt_lt_prog_compiler_wl_RC
  24136. # Compiler flag to prevent dynamic linking.
  24137. link_static_flag=$lt_lt_prog_compiler_static_RC
  24138. # Does compiler simultaneously support -c and -o options?
  24139. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24140. # Whether or not to add -lc for building shared libraries.
  24141. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24142. # Whether or not to disallow shared libs when runtime libs are static.
  24143. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24144. # Compiler flag to allow reflexive dlopens.
  24145. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24146. # Compiler flag to generate shared objects directly from archives.
  24147. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24148. # Whether the compiler copes with passing no objects directly.
  24149. compiler_needs_object=$lt_compiler_needs_object_RC
  24150. # Create an old-style archive from a shared archive.
  24151. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24152. # Create a temporary old-style archive to link instead of a shared archive.
  24153. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24154. # Commands used to build a shared archive.
  24155. archive_cmds=$lt_archive_cmds_RC
  24156. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24157. # Commands used to build a loadable module if different from building
  24158. # a shared archive.
  24159. module_cmds=$lt_module_cmds_RC
  24160. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24161. # Whether we are building with GNU ld or not.
  24162. with_gnu_ld=$lt_with_gnu_ld_RC
  24163. # Flag that allows shared libraries with undefined symbols to be built.
  24164. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24165. # Flag that enforces no undefined symbols.
  24166. no_undefined_flag=$lt_no_undefined_flag_RC
  24167. # Flag to hardcode \$libdir into a binary during linking.
  24168. # This must work even if \$libdir does not exist
  24169. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24170. # Whether we need a single "-rpath" flag with a separated argument.
  24171. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24172. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24173. # DIR into the resulting binary.
  24174. hardcode_direct=$hardcode_direct_RC
  24175. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24176. # DIR into the resulting binary and the resulting library dependency is
  24177. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24178. # library is relocated.
  24179. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24180. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24181. # into the resulting binary.
  24182. hardcode_minus_L=$hardcode_minus_L_RC
  24183. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24184. # into the resulting binary.
  24185. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24186. # Set to "yes" if building a shared library automatically hardcodes DIR
  24187. # into the library and all subsequent libraries and executables linked
  24188. # against it.
  24189. hardcode_automatic=$hardcode_automatic_RC
  24190. # Set to yes if linker adds runtime paths of dependent libraries
  24191. # to runtime path list.
  24192. inherit_rpath=$inherit_rpath_RC
  24193. # Whether libtool must link a program against all its dependency libraries.
  24194. link_all_deplibs=$link_all_deplibs_RC
  24195. # Set to "yes" if exported symbols are required.
  24196. always_export_symbols=$always_export_symbols_RC
  24197. # The commands to list exported symbols.
  24198. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24199. # Symbols that should not be listed in the preloaded symbols.
  24200. exclude_expsyms=$lt_exclude_expsyms_RC
  24201. # Symbols that must always be exported.
  24202. include_expsyms=$lt_include_expsyms_RC
  24203. # Commands necessary for linking programs (against libraries) with templates.
  24204. prelink_cmds=$lt_prelink_cmds_RC
  24205. # Commands necessary for finishing linking programs.
  24206. postlink_cmds=$lt_postlink_cmds_RC
  24207. # Specify filename containing input files.
  24208. file_list_spec=$lt_file_list_spec_RC
  24209. # How to hardcode a shared library path into an executable.
  24210. hardcode_action=$hardcode_action_RC
  24211. # The directories searched by this compiler when creating a shared library.
  24212. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24213. # Dependencies to place before and after the objects being linked to
  24214. # create a shared library.
  24215. predep_objects=$lt_predep_objects_RC
  24216. postdep_objects=$lt_postdep_objects_RC
  24217. predeps=$lt_predeps_RC
  24218. postdeps=$lt_postdeps_RC
  24219. # The library search path used internally by the compiler when linking
  24220. # a shared library.
  24221. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24222. # ### END LIBTOOL TAG CONFIG: RC
  24223. _LT_EOF
  24224. cat <<_LT_EOF >> "$ofile"
  24225. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24226. # The linker used to build libraries.
  24227. LD=$lt_LD_CXX
  24228. # How to create reloadable object files.
  24229. reload_flag=$lt_reload_flag_CXX
  24230. reload_cmds=$lt_reload_cmds_CXX
  24231. # Commands used to build an old-style archive.
  24232. old_archive_cmds=$lt_old_archive_cmds_CXX
  24233. # A language specific compiler.
  24234. CC=$lt_compiler_CXX
  24235. # Is the compiler the GNU compiler?
  24236. with_gcc=$GCC_CXX
  24237. # Compiler flag to turn off builtin functions.
  24238. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24239. # Additional compiler flags for building library objects.
  24240. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24241. # How to pass a linker flag through the compiler.
  24242. wl=$lt_lt_prog_compiler_wl_CXX
  24243. # Compiler flag to prevent dynamic linking.
  24244. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24245. # Does compiler simultaneously support -c and -o options?
  24246. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24247. # Whether or not to add -lc for building shared libraries.
  24248. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24249. # Whether or not to disallow shared libs when runtime libs are static.
  24250. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24251. # Compiler flag to allow reflexive dlopens.
  24252. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24253. # Compiler flag to generate shared objects directly from archives.
  24254. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24255. # Whether the compiler copes with passing no objects directly.
  24256. compiler_needs_object=$lt_compiler_needs_object_CXX
  24257. # Create an old-style archive from a shared archive.
  24258. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24259. # Create a temporary old-style archive to link instead of a shared archive.
  24260. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24261. # Commands used to build a shared archive.
  24262. archive_cmds=$lt_archive_cmds_CXX
  24263. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24264. # Commands used to build a loadable module if different from building
  24265. # a shared archive.
  24266. module_cmds=$lt_module_cmds_CXX
  24267. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24268. # Whether we are building with GNU ld or not.
  24269. with_gnu_ld=$lt_with_gnu_ld_CXX
  24270. # Flag that allows shared libraries with undefined symbols to be built.
  24271. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24272. # Flag that enforces no undefined symbols.
  24273. no_undefined_flag=$lt_no_undefined_flag_CXX
  24274. # Flag to hardcode \$libdir into a binary during linking.
  24275. # This must work even if \$libdir does not exist
  24276. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24277. # Whether we need a single "-rpath" flag with a separated argument.
  24278. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24279. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24280. # DIR into the resulting binary.
  24281. hardcode_direct=$hardcode_direct_CXX
  24282. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24283. # DIR into the resulting binary and the resulting library dependency is
  24284. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24285. # library is relocated.
  24286. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24287. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24288. # into the resulting binary.
  24289. hardcode_minus_L=$hardcode_minus_L_CXX
  24290. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24291. # into the resulting binary.
  24292. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24293. # Set to "yes" if building a shared library automatically hardcodes DIR
  24294. # into the library and all subsequent libraries and executables linked
  24295. # against it.
  24296. hardcode_automatic=$hardcode_automatic_CXX
  24297. # Set to yes if linker adds runtime paths of dependent libraries
  24298. # to runtime path list.
  24299. inherit_rpath=$inherit_rpath_CXX
  24300. # Whether libtool must link a program against all its dependency libraries.
  24301. link_all_deplibs=$link_all_deplibs_CXX
  24302. # Set to "yes" if exported symbols are required.
  24303. always_export_symbols=$always_export_symbols_CXX
  24304. # The commands to list exported symbols.
  24305. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24306. # Symbols that should not be listed in the preloaded symbols.
  24307. exclude_expsyms=$lt_exclude_expsyms_CXX
  24308. # Symbols that must always be exported.
  24309. include_expsyms=$lt_include_expsyms_CXX
  24310. # Commands necessary for linking programs (against libraries) with templates.
  24311. prelink_cmds=$lt_prelink_cmds_CXX
  24312. # Commands necessary for finishing linking programs.
  24313. postlink_cmds=$lt_postlink_cmds_CXX
  24314. # Specify filename containing input files.
  24315. file_list_spec=$lt_file_list_spec_CXX
  24316. # How to hardcode a shared library path into an executable.
  24317. hardcode_action=$hardcode_action_CXX
  24318. # The directories searched by this compiler when creating a shared library.
  24319. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24320. # Dependencies to place before and after the objects being linked to
  24321. # create a shared library.
  24322. predep_objects=$lt_predep_objects_CXX
  24323. postdep_objects=$lt_postdep_objects_CXX
  24324. predeps=$lt_predeps_CXX
  24325. postdeps=$lt_postdeps_CXX
  24326. # The library search path used internally by the compiler when linking
  24327. # a shared library.
  24328. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24329. # ### END LIBTOOL TAG CONFIG: CXX
  24330. _LT_EOF
  24331. ;;
  24332. "sdl2_config":C) chmod a+x sdl2-config ;;
  24333. "summary":C) echo -en "$SUMMARY" ;;
  24334. esac
  24335. done # for ac_tag
  24336. as_fn_exit 0
  24337. _ACEOF
  24338. ac_clean_files=$ac_clean_files_save
  24339. test $ac_write_fail = 0 ||
  24340. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24341. # configure is writing to config.log, and then calls config.status.
  24342. # config.status does its own redirection, appending to config.log.
  24343. # Unfortunately, on DOS this fails, as config.log is still kept open
  24344. # by configure, so config.status won't be able to write to it; its
  24345. # output is simply discarded. So we exec the FD to /dev/null,
  24346. # effectively closing config.log, so it can be properly (re)opened and
  24347. # appended to by config.status. When coming back to configure, we
  24348. # need to make the FD available again.
  24349. if test "$no_create" != yes; then
  24350. ac_cs_success=:
  24351. ac_config_status_args=
  24352. test "$silent" = yes &&
  24353. ac_config_status_args="$ac_config_status_args --quiet"
  24354. exec 5>/dev/null
  24355. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24356. exec 5>>config.log
  24357. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24358. # would make configure fail if this is the last instruction.
  24359. $ac_cs_success || as_fn_exit 1
  24360. fi
  24361. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24363. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24364. fi