configure 802 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_rpi
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_render_metal
  798. enable_video_directfb
  799. enable_directfb_shared
  800. enable_video_kmsdrm
  801. enable_kmsdrm_shared
  802. enable_video_dummy
  803. enable_video_opengl
  804. enable_video_opengles
  805. enable_video_opengles1
  806. enable_video_opengles2
  807. enable_video_vulkan
  808. enable_libudev
  809. enable_dbus
  810. enable_ime
  811. enable_ibus
  812. enable_fcitx
  813. enable_input_tslib
  814. enable_pthreads
  815. enable_pthread_sem
  816. enable_directx
  817. enable_sdl_dlopen
  818. enable_clock_gettime
  819. enable_rpath
  820. enable_render_d3d
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CC
  826. CFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CPP
  831. CXX
  832. CXXFLAGS
  833. CCC
  834. CXXCPP
  835. XMKMF'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. ac_unrecognized_opts=
  840. ac_unrecognized_sep=
  841. # The variables have the same names as the options, with
  842. # dashes changed to underlines.
  843. cache_file=/dev/null
  844. exec_prefix=NONE
  845. no_create=
  846. no_recursion=
  847. prefix=NONE
  848. program_prefix=NONE
  849. program_suffix=NONE
  850. program_transform_name=s,x,x,
  851. silent=
  852. site=
  853. srcdir=
  854. verbose=
  855. x_includes=NONE
  856. x_libraries=NONE
  857. # Installation directory options.
  858. # These are left unexpanded so users can "make install exec_prefix=/foo"
  859. # and all the variables that are supposed to be based on exec_prefix
  860. # by default will actually change.
  861. # Use braces instead of parens because sh, perl, etc. also accept them.
  862. # (The list follows the same order as the GNU Coding Standards.)
  863. bindir='${exec_prefix}/bin'
  864. sbindir='${exec_prefix}/sbin'
  865. libexecdir='${exec_prefix}/libexec'
  866. datarootdir='${prefix}/share'
  867. datadir='${datarootdir}'
  868. sysconfdir='${prefix}/etc'
  869. sharedstatedir='${prefix}/com'
  870. localstatedir='${prefix}/var'
  871. includedir='${prefix}/include'
  872. oldincludedir='/usr/include'
  873. docdir='${datarootdir}/doc/${PACKAGE}'
  874. infodir='${datarootdir}/info'
  875. htmldir='${docdir}'
  876. dvidir='${docdir}'
  877. pdfdir='${docdir}'
  878. psdir='${docdir}'
  879. libdir='${exec_prefix}/lib'
  880. localedir='${datarootdir}/locale'
  881. mandir='${datarootdir}/man'
  882. ac_prev=
  883. ac_dashdash=
  884. for ac_option
  885. do
  886. # If the previous option needs an argument, assign it.
  887. if test -n "$ac_prev"; then
  888. eval $ac_prev=\$ac_option
  889. ac_prev=
  890. continue
  891. fi
  892. case $ac_option in
  893. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  894. *=) ac_optarg= ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error $? "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error $? "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error $? "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information"
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error $? "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. elif test "x$build_alias" != "x$host_alias"; then
  1230. cross_compiling=yes
  1231. fi
  1232. fi
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235. test "$silent" = yes && exec 6>/dev/null
  1236. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1237. ac_ls_di=`ls -di .` &&
  1238. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1239. as_fn_error $? "working directory cannot be determined"
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. as_fn_error $? "pwd does not report name of working directory"
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. $as_echo X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1283. pwd)`
  1284. # When building in place, set srcdir=.
  1285. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1286. srcdir=.
  1287. fi
  1288. # Remove unnecessary trailing slashes from srcdir.
  1289. # Double slashes in file names in object file debugging info
  1290. # mess up M-x gdb in Emacs.
  1291. case $srcdir in
  1292. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1293. esac
  1294. for ac_var in $ac_precious_vars; do
  1295. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_env_${ac_var}_value=\$${ac_var}
  1297. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1299. done
  1300. #
  1301. # Report the --help message.
  1302. #
  1303. if test "$ac_init_help" = "long"; then
  1304. # Omit some internal or obsolete options to make the list less imposing.
  1305. # This message is too long to be a string in the A/UX 3.1 sh.
  1306. cat <<_ACEOF
  1307. \`configure' configures this package to adapt to many kinds of systems.
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1310. VAR=VALUE. See below for descriptions of some of the useful variables.
  1311. Defaults for the options are specified in brackets.
  1312. Configuration:
  1313. -h, --help display this help and exit
  1314. --help=short display options specific to this package
  1315. --help=recursive display the short help of all the included packages
  1316. -V, --version display version information and exit
  1317. -q, --quiet, --silent do not print \`checking ...' messages
  1318. --cache-file=FILE cache test results in FILE [disabled]
  1319. -C, --config-cache alias for \`--cache-file=config.cache'
  1320. -n, --no-create do not create output files
  1321. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1322. Installation directories:
  1323. --prefix=PREFIX install architecture-independent files in PREFIX
  1324. [$ac_default_prefix]
  1325. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1326. [PREFIX]
  1327. By default, \`make install' will install all the files in
  1328. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1329. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1330. for instance \`--prefix=\$HOME'.
  1331. For better control, use the options below.
  1332. Fine tuning of the installation directories:
  1333. --bindir=DIR user executables [EPREFIX/bin]
  1334. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1335. --libexecdir=DIR program executables [EPREFIX/libexec]
  1336. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1337. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1338. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1339. --libdir=DIR object code libraries [EPREFIX/lib]
  1340. --includedir=DIR C header files [PREFIX/include]
  1341. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1342. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1343. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1344. --infodir=DIR info documentation [DATAROOTDIR/info]
  1345. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1346. --mandir=DIR man documentation [DATAROOTDIR/man]
  1347. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1348. --htmldir=DIR html documentation [DOCDIR]
  1349. --dvidir=DIR dvi documentation [DOCDIR]
  1350. --pdfdir=DIR pdf documentation [DOCDIR]
  1351. --psdir=DIR ps documentation [DOCDIR]
  1352. _ACEOF
  1353. cat <<\_ACEOF
  1354. X features:
  1355. --x-includes=DIR X include files are in DIR
  1356. --x-libraries=DIR X library files are in DIR
  1357. System types:
  1358. --build=BUILD configure for building on BUILD [guessed]
  1359. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1360. _ACEOF
  1361. fi
  1362. if test -n "$ac_init_help"; then
  1363. cat <<\_ACEOF
  1364. Optional Features:
  1365. --disable-option-checking ignore unrecognized --enable/--with options
  1366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1368. --enable-shared[=PKGS] build shared libraries [default=yes]
  1369. --enable-static[=PKGS] build static libraries [default=yes]
  1370. --enable-fast-install[=PKGS]
  1371. optimize for fast installation [default=yes]
  1372. --disable-libtool-lock avoid locking (might break parallel builds)
  1373. --enable-assertions Enable internal sanity checks
  1374. (auto/disabled/release/enabled/paranoid)
  1375. [[default=auto]]
  1376. --enable-dependency-tracking
  1377. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1378. --enable-libc Use the system C library [[default=yes]]
  1379. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1380. --enable-atomic Enable the atomic operations subsystem
  1381. [[default=yes]]
  1382. --enable-audio Enable the audio subsystem [[default=yes]]
  1383. --enable-video Enable the video subsystem [[default=yes]]
  1384. --enable-render Enable the render subsystem [[default=yes]]
  1385. --enable-events Enable the events subsystem [[default=yes]]
  1386. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1387. --enable-haptic Enable the haptic (force feedback) subsystem
  1388. [[default=yes]]
  1389. --enable-power Enable the power subsystem [[default=yes]]
  1390. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1391. --enable-threads Enable the threading subsystem [[default=yes]]
  1392. --enable-timers Enable the timer subsystem [[default=yes]]
  1393. --enable-file Enable the file subsystem [[default=yes]]
  1394. --enable-loadso Enable the shared object loading subsystem
  1395. [[default=yes]]
  1396. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1397. --enable-assembly Enable assembly routines [[default=yes]]
  1398. --enable-ssemath Allow GCC to use SSE floating point math
  1399. [[default=maybe]]
  1400. --enable-mmx use MMX assembly routines [[default=yes]]
  1401. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1402. --enable-sse use SSE assembly routines [[default=yes]]
  1403. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1404. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1405. --enable-altivec use Altivec assembly routines [[default=yes]]
  1406. --enable-oss support the OSS audio API [[default=maybe]]
  1407. --enable-alsa support the ALSA audio API [[default=yes]]
  1408. --disable-alsatest Do not try to compile and run a test Alsa program
  1409. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1410. --enable-jack use JACK audio [[default=yes]]
  1411. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1412. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1413. --disable-esdtest Do not try to compile and run a test ESD program
  1414. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1415. --enable-pulseaudio use PulseAudio [[default=yes]]
  1416. --enable-pulseaudio-shared
  1417. dynamically load PulseAudio support [[default=yes]]
  1418. --enable-arts support the Analog Real Time Synthesizer
  1419. [[default=yes]]
  1420. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1421. --enable-nas support the NAS audio API [[default=yes]]
  1422. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1423. --enable-sndio support the sndio audio API [[default=yes]]
  1424. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1425. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1426. --enable-fusionsound-shared
  1427. dynamically load fusionsound audio support
  1428. [[default=yes]]
  1429. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1430. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1431. --enable-libsamplerate use libsamplerate for audio rate conversion
  1432. [[default=yes]]
  1433. --enable-libsamplerate-shared
  1434. dynamically load libsamplerate [[default=yes]]
  1435. --enable-video-wayland use Wayland video driver [[default=yes]]
  1436. --enable-video-wayland-qt-touch
  1437. QtWayland server support for Wayland video driver
  1438. [[default=yes]]
  1439. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1440. --enable-video-mir use Mir video driver [[default=yes]]
  1441. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1442. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1443. --enable-video-x11 use X11 video driver [[default=yes]]
  1444. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1445. --enable-video-x11-xcursor
  1446. enable X11 Xcursor support [[default=yes]]
  1447. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1448. --enable-video-x11-xinerama
  1449. enable X11 Xinerama support [[default=yes]]
  1450. --enable-video-x11-xinput
  1451. enable X11 XInput extension for manymouse, tablets,
  1452. etc [[default=yes]]
  1453. --enable-video-x11-xrandr
  1454. enable X11 Xrandr extension for fullscreen
  1455. [[default=yes]]
  1456. --enable-video-x11-scrnsaver
  1457. enable X11 screensaver extension [[default=yes]]
  1458. --enable-video-x11-xshape
  1459. enable X11 XShape support [[default=yes]]
  1460. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1461. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1462. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1463. --enable-render-metal enable the Metal render driver [[default=yes]]
  1464. --enable-video-directfb use DirectFB video driver [[default=no]]
  1465. --enable-directfb-shared
  1466. dynamically load directfb support [[default=yes]]
  1467. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1468. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1469. --enable-video-dummy use dummy video driver [[default=yes]]
  1470. --enable-video-opengl include OpenGL support [[default=yes]]
  1471. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1472. --enable-video-opengles1
  1473. include OpenGL ES 1.1 support [[default=yes]]
  1474. --enable-video-opengles2
  1475. include OpenGL ES 2.0 support [[default=yes]]
  1476. --enable-video-vulkan include Vulkan support [[default=yes]]
  1477. --enable-libudev enable libudev support [[default=yes]]
  1478. --enable-dbus enable D-Bus support [[default=yes]]
  1479. --enable-ime enable IME support [[default=yes]]
  1480. --enable-ibus enable IBus support [[default=yes]]
  1481. --enable-fcitx enable fcitx support [[default=yes]]
  1482. --enable-input-tslib use the Touchscreen library for input
  1483. [[default=yes]]
  1484. --enable-pthreads use POSIX threads for multi-threading
  1485. [[default=yes]]
  1486. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1487. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1488. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1489. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1490. UNIX [[default=yes]]
  1491. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1492. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1493. Optional Packages:
  1494. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1495. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1496. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1497. both]
  1498. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1499. --with-sysroot=DIR Search for dependent libraries within DIR
  1500. (or the compiler's sysroot if not specified).
  1501. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1502. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1503. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1504. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1505. --with-x use the X Window System
  1506. Some influential environment variables:
  1507. CC C compiler command
  1508. CFLAGS C compiler flags
  1509. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1510. nonstandard directory <lib dir>
  1511. LIBS libraries to pass to the linker, e.g. -l<library>
  1512. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1513. you have headers in a nonstandard directory <include dir>
  1514. CPP C preprocessor
  1515. CXX C++ compiler command
  1516. CXXFLAGS C++ compiler flags
  1517. CXXCPP C++ preprocessor
  1518. XMKMF Path to xmkmf, Makefile generator for X Window System
  1519. Use these variables to override the choices made by `configure' or to help
  1520. it to find libraries and programs with nonstandard names/locations.
  1521. Report bugs to the package provider.
  1522. _ACEOF
  1523. ac_status=$?
  1524. fi
  1525. if test "$ac_init_help" = "recursive"; then
  1526. # If there are subdirs, report their specific --help.
  1527. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1528. test -d "$ac_dir" ||
  1529. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1530. continue
  1531. ac_builddir=.
  1532. case "$ac_dir" in
  1533. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1534. *)
  1535. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1536. # A ".." for each directory in $ac_dir_suffix.
  1537. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1538. case $ac_top_builddir_sub in
  1539. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1540. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1541. esac ;;
  1542. esac
  1543. ac_abs_top_builddir=$ac_pwd
  1544. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1545. # for backward compatibility:
  1546. ac_top_builddir=$ac_top_build_prefix
  1547. case $srcdir in
  1548. .) # We are building in place.
  1549. ac_srcdir=.
  1550. ac_top_srcdir=$ac_top_builddir_sub
  1551. ac_abs_top_srcdir=$ac_pwd ;;
  1552. [\\/]* | ?:[\\/]* ) # Absolute name.
  1553. ac_srcdir=$srcdir$ac_dir_suffix;
  1554. ac_top_srcdir=$srcdir
  1555. ac_abs_top_srcdir=$srcdir ;;
  1556. *) # Relative name.
  1557. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1558. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1559. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1560. esac
  1561. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1562. cd "$ac_dir" || { ac_status=$?; continue; }
  1563. # Check for guested configure.
  1564. if test -f "$ac_srcdir/configure.gnu"; then
  1565. echo &&
  1566. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1567. elif test -f "$ac_srcdir/configure"; then
  1568. echo &&
  1569. $SHELL "$ac_srcdir/configure" --help=recursive
  1570. else
  1571. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1572. fi || ac_status=$?
  1573. cd "$ac_pwd" || { ac_status=$?; break; }
  1574. done
  1575. fi
  1576. test -n "$ac_init_help" && exit $ac_status
  1577. if $ac_init_version; then
  1578. cat <<\_ACEOF
  1579. configure
  1580. generated by GNU Autoconf 2.69
  1581. Copyright (C) 2012 Free Software Foundation, Inc.
  1582. This configure script is free software; the Free Software Foundation
  1583. gives unlimited permission to copy, distribute and modify it.
  1584. _ACEOF
  1585. exit
  1586. fi
  1587. ## ------------------------ ##
  1588. ## Autoconf initialization. ##
  1589. ## ------------------------ ##
  1590. # ac_fn_c_try_compile LINENO
  1591. # --------------------------
  1592. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1593. ac_fn_c_try_compile ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. rm -f conftest.$ac_objext
  1597. if { { ac_try="$ac_compile"
  1598. case "(($ac_try" in
  1599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1600. *) ac_try_echo=$ac_try;;
  1601. esac
  1602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1603. $as_echo "$ac_try_echo"; } >&5
  1604. (eval "$ac_compile") 2>conftest.err
  1605. ac_status=$?
  1606. if test -s conftest.err; then
  1607. grep -v '^ *+' conftest.err >conftest.er1
  1608. cat conftest.er1 >&5
  1609. mv -f conftest.er1 conftest.err
  1610. fi
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } && {
  1613. test -z "$ac_c_werror_flag" ||
  1614. test ! -s conftest.err
  1615. } && test -s conftest.$ac_objext; then :
  1616. ac_retval=0
  1617. else
  1618. $as_echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. ac_retval=1
  1621. fi
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. as_fn_set_status $ac_retval
  1624. } # ac_fn_c_try_compile
  1625. # ac_fn_c_try_link LINENO
  1626. # -----------------------
  1627. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1628. ac_fn_c_try_link ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. rm -f conftest.$ac_objext conftest$ac_exeext
  1632. if { { ac_try="$ac_link"
  1633. case "(($ac_try" in
  1634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1635. *) ac_try_echo=$ac_try;;
  1636. esac
  1637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1638. $as_echo "$ac_try_echo"; } >&5
  1639. (eval "$ac_link") 2>conftest.err
  1640. ac_status=$?
  1641. if test -s conftest.err; then
  1642. grep -v '^ *+' conftest.err >conftest.er1
  1643. cat conftest.er1 >&5
  1644. mv -f conftest.er1 conftest.err
  1645. fi
  1646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1647. test $ac_status = 0; } && {
  1648. test -z "$ac_c_werror_flag" ||
  1649. test ! -s conftest.err
  1650. } && test -s conftest$ac_exeext && {
  1651. test "$cross_compiling" = yes ||
  1652. test -x conftest$ac_exeext
  1653. }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1
  1659. fi
  1660. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1661. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1662. # interfere with the next link command; also delete a directory that is
  1663. # left behind by Apple's compiler. We do this before executing the actions.
  1664. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1665. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1666. as_fn_set_status $ac_retval
  1667. } # ac_fn_c_try_link
  1668. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1669. # -------------------------------------------------------
  1670. # Tests whether HEADER exists and can be compiled using the include files in
  1671. # INCLUDES, setting the cache variable VAR accordingly.
  1672. ac_fn_c_check_header_compile ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1676. $as_echo_n "checking for $2... " >&6; }
  1677. if eval \${$3+:} false; then :
  1678. $as_echo_n "(cached) " >&6
  1679. else
  1680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1681. /* end confdefs.h. */
  1682. $4
  1683. #include <$2>
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1691. fi
  1692. eval ac_res=\$$3
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. $as_echo "$ac_res" >&6; }
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. } # ac_fn_c_check_header_compile
  1697. # ac_fn_c_try_cpp LINENO
  1698. # ----------------------
  1699. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_c_try_cpp ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1711. ac_status=$?
  1712. if test -s conftest.err; then
  1713. grep -v '^ *+' conftest.err >conftest.er1
  1714. cat conftest.er1 >&5
  1715. mv -f conftest.er1 conftest.err
  1716. fi
  1717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718. test $ac_status = 0; } > conftest.i && {
  1719. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1720. test ! -s conftest.err
  1721. }; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: failed program was:" >&5
  1725. sed 's/^/| /' conftest.$ac_ext >&5
  1726. ac_retval=1
  1727. fi
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. as_fn_set_status $ac_retval
  1730. } # ac_fn_c_try_cpp
  1731. # ac_fn_c_try_run LINENO
  1732. # ----------------------
  1733. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1734. # that executables *can* be run.
  1735. ac_fn_c_try_run ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. if { { ac_try="$ac_link"
  1739. case "(($ac_try" in
  1740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1741. *) ac_try_echo=$ac_try;;
  1742. esac
  1743. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1744. $as_echo "$ac_try_echo"; } >&5
  1745. (eval "$ac_link") 2>&5
  1746. ac_status=$?
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1749. { { case "(($ac_try" in
  1750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1751. *) ac_try_echo=$ac_try;;
  1752. esac
  1753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1754. $as_echo "$ac_try_echo"; } >&5
  1755. (eval "$ac_try") 2>&5
  1756. ac_status=$?
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; }; }; then :
  1759. ac_retval=0
  1760. else
  1761. $as_echo "$as_me: program exited with status $ac_status" >&5
  1762. $as_echo "$as_me: failed program was:" >&5
  1763. sed 's/^/| /' conftest.$ac_ext >&5
  1764. ac_retval=$ac_status
  1765. fi
  1766. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. as_fn_set_status $ac_retval
  1769. } # ac_fn_c_try_run
  1770. # ac_fn_c_check_func LINENO FUNC VAR
  1771. # ----------------------------------
  1772. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1773. ac_fn_c_check_func ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1777. $as_echo_n "checking for $2... " >&6; }
  1778. if eval \${$3+:} false; then :
  1779. $as_echo_n "(cached) " >&6
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1785. #define $2 innocuous_$2
  1786. /* System header to define __stub macros and hopefully few prototypes,
  1787. which can conflict with char $2 (); below.
  1788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1789. <limits.h> exists even on freestanding compilers. */
  1790. #ifdef __STDC__
  1791. # include <limits.h>
  1792. #else
  1793. # include <assert.h>
  1794. #endif
  1795. #undef $2
  1796. /* Override any GCC internal prototype to avoid an error.
  1797. Use char because int might match the return type of a GCC
  1798. builtin and then its argument prototype would still apply. */
  1799. #ifdef __cplusplus
  1800. extern "C"
  1801. #endif
  1802. char $2 ();
  1803. /* The GNU C library defines this for functions which it implements
  1804. to always fail with ENOSYS. Some functions are actually named
  1805. something starting with __ and the normal name is an alias. */
  1806. #if defined __stub_$2 || defined __stub___$2
  1807. choke me
  1808. #endif
  1809. int
  1810. main ()
  1811. {
  1812. return $2 ();
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_link "$LINENO"; then :
  1818. eval "$3=yes"
  1819. else
  1820. eval "$3=no"
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext \
  1823. conftest$ac_exeext conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. $as_echo "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_func
  1830. # ac_fn_cxx_try_compile LINENO
  1831. # ----------------------------
  1832. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_cxx_try_compile ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. rm -f conftest.$ac_objext
  1837. if { { ac_try="$ac_compile"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_compile") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && {
  1853. test -z "$ac_cxx_werror_flag" ||
  1854. test ! -s conftest.err
  1855. } && test -s conftest.$ac_objext; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_cxx_try_compile
  1865. # ac_fn_cxx_try_cpp LINENO
  1866. # ------------------------
  1867. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1868. ac_fn_cxx_try_cpp ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1872. case "(($ac_try" in
  1873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1874. *) ac_try_echo=$ac_try;;
  1875. esac
  1876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1877. $as_echo "$ac_try_echo"; } >&5
  1878. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1879. ac_status=$?
  1880. if test -s conftest.err; then
  1881. grep -v '^ *+' conftest.err >conftest.er1
  1882. cat conftest.er1 >&5
  1883. mv -f conftest.er1 conftest.err
  1884. fi
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; } > conftest.i && {
  1887. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1888. test ! -s conftest.err
  1889. }; then :
  1890. ac_retval=0
  1891. else
  1892. $as_echo "$as_me: failed program was:" >&5
  1893. sed 's/^/| /' conftest.$ac_ext >&5
  1894. ac_retval=1
  1895. fi
  1896. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1897. as_fn_set_status $ac_retval
  1898. } # ac_fn_cxx_try_cpp
  1899. # ac_fn_cxx_try_link LINENO
  1900. # -------------------------
  1901. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1902. ac_fn_cxx_try_link ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. rm -f conftest.$ac_objext conftest$ac_exeext
  1906. if { { ac_try="$ac_link"
  1907. case "(($ac_try" in
  1908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1909. *) ac_try_echo=$ac_try;;
  1910. esac
  1911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1912. $as_echo "$ac_try_echo"; } >&5
  1913. (eval "$ac_link") 2>conftest.err
  1914. ac_status=$?
  1915. if test -s conftest.err; then
  1916. grep -v '^ *+' conftest.err >conftest.er1
  1917. cat conftest.er1 >&5
  1918. mv -f conftest.er1 conftest.err
  1919. fi
  1920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1921. test $ac_status = 0; } && {
  1922. test -z "$ac_cxx_werror_flag" ||
  1923. test ! -s conftest.err
  1924. } && test -s conftest$ac_exeext && {
  1925. test "$cross_compiling" = yes ||
  1926. test -x conftest$ac_exeext
  1927. }; then :
  1928. ac_retval=0
  1929. else
  1930. $as_echo "$as_me: failed program was:" >&5
  1931. sed 's/^/| /' conftest.$ac_ext >&5
  1932. ac_retval=1
  1933. fi
  1934. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1935. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1936. # interfere with the next link command; also delete a directory that is
  1937. # left behind by Apple's compiler. We do this before executing the actions.
  1938. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. as_fn_set_status $ac_retval
  1941. } # ac_fn_cxx_try_link
  1942. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1943. # -------------------------------------------------------
  1944. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1945. # the include files in INCLUDES and setting the cache variable VAR
  1946. # accordingly.
  1947. ac_fn_c_check_header_mongrel ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. if eval \${$3+:} false; then :
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1952. $as_echo_n "checking for $2... " >&6; }
  1953. if eval \${$3+:} false; then :
  1954. $as_echo_n "(cached) " >&6
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. else
  1960. # Is the header compilable?
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1962. $as_echo_n "checking $2 usability... " >&6; }
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $4
  1966. #include <$2>
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. ac_header_compiler=yes
  1970. else
  1971. ac_header_compiler=no
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1975. $as_echo "$ac_header_compiler" >&6; }
  1976. # Is the header present?
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1978. $as_echo_n "checking $2 presence... " >&6; }
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. #include <$2>
  1982. _ACEOF
  1983. if ac_fn_c_try_cpp "$LINENO"; then :
  1984. ac_header_preproc=yes
  1985. else
  1986. ac_header_preproc=no
  1987. fi
  1988. rm -f conftest.err conftest.i conftest.$ac_ext
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1990. $as_echo "$ac_header_preproc" >&6; }
  1991. # So? What about this header?
  1992. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1993. yes:no: )
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1995. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1997. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1998. ;;
  1999. no:yes:* )
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2001. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2003. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2005. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2007. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2009. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2010. ;;
  2011. esac
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2013. $as_echo_n "checking for $2... " >&6; }
  2014. if eval \${$3+:} false; then :
  2015. $as_echo_n "(cached) " >&6
  2016. else
  2017. eval "$3=\$ac_header_compiler"
  2018. fi
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. fi
  2023. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2024. } # ac_fn_c_check_header_mongrel
  2025. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2026. # -------------------------------------------
  2027. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2028. # variable VAR accordingly.
  2029. ac_fn_c_check_type ()
  2030. {
  2031. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2033. $as_echo_n "checking for $2... " >&6; }
  2034. if eval \${$3+:} false; then :
  2035. $as_echo_n "(cached) " >&6
  2036. else
  2037. eval "$3=no"
  2038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2039. /* end confdefs.h. */
  2040. $4
  2041. int
  2042. main ()
  2043. {
  2044. if (sizeof ($2))
  2045. return 0;
  2046. ;
  2047. return 0;
  2048. }
  2049. _ACEOF
  2050. if ac_fn_c_try_compile "$LINENO"; then :
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h. */
  2053. $4
  2054. int
  2055. main ()
  2056. {
  2057. if (sizeof (($2)))
  2058. return 0;
  2059. ;
  2060. return 0;
  2061. }
  2062. _ACEOF
  2063. if ac_fn_c_try_compile "$LINENO"; then :
  2064. else
  2065. eval "$3=yes"
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2070. fi
  2071. eval ac_res=\$$3
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2073. $as_echo "$ac_res" >&6; }
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. } # ac_fn_c_check_type
  2076. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2077. # ----------------------------------------------------
  2078. # Tries to find if the field MEMBER exists in type AGGR, after including
  2079. # INCLUDES, setting cache variable VAR accordingly.
  2080. ac_fn_c_check_member ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2084. $as_echo_n "checking for $2.$3... " >&6; }
  2085. if eval \${$4+:} false; then :
  2086. $as_echo_n "(cached) " >&6
  2087. else
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $5
  2091. int
  2092. main ()
  2093. {
  2094. static $2 ac_aggr;
  2095. if (ac_aggr.$3)
  2096. return 0;
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. eval "$4=yes"
  2103. else
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $5
  2107. int
  2108. main ()
  2109. {
  2110. static $2 ac_aggr;
  2111. if (sizeof ac_aggr.$3)
  2112. return 0;
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"; then :
  2118. eval "$4=yes"
  2119. else
  2120. eval "$4=no"
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2125. fi
  2126. eval ac_res=\$$4
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2128. $as_echo "$ac_res" >&6; }
  2129. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2130. } # ac_fn_c_check_member
  2131. cat >config.log <<_ACEOF
  2132. This file contains any messages produced by compilers while
  2133. running configure, to aid debugging if configure makes a mistake.
  2134. It was created by $as_me, which was
  2135. generated by GNU Autoconf 2.69. Invocation command line was
  2136. $ $0 $@
  2137. _ACEOF
  2138. exec 5>>config.log
  2139. {
  2140. cat <<_ASUNAME
  2141. ## --------- ##
  2142. ## Platform. ##
  2143. ## --------- ##
  2144. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2145. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2146. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2147. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2148. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2149. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2150. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2151. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2152. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2153. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2154. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2155. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2156. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2157. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2158. _ASUNAME
  2159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2160. for as_dir in $PATH
  2161. do
  2162. IFS=$as_save_IFS
  2163. test -z "$as_dir" && as_dir=.
  2164. $as_echo "PATH: $as_dir"
  2165. done
  2166. IFS=$as_save_IFS
  2167. } >&5
  2168. cat >&5 <<_ACEOF
  2169. ## ----------- ##
  2170. ## Core tests. ##
  2171. ## ----------- ##
  2172. _ACEOF
  2173. # Keep a trace of the command line.
  2174. # Strip out --no-create and --no-recursion so they do not pile up.
  2175. # Strip out --silent because we don't want to record it for future runs.
  2176. # Also quote any args containing shell meta-characters.
  2177. # Make two passes to allow for proper duplicate-argument suppression.
  2178. ac_configure_args=
  2179. ac_configure_args0=
  2180. ac_configure_args1=
  2181. ac_must_keep_next=false
  2182. for ac_pass in 1 2
  2183. do
  2184. for ac_arg
  2185. do
  2186. case $ac_arg in
  2187. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2188. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2189. | -silent | --silent | --silen | --sile | --sil)
  2190. continue ;;
  2191. *\'*)
  2192. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2193. esac
  2194. case $ac_pass in
  2195. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2196. 2)
  2197. as_fn_append ac_configure_args1 " '$ac_arg'"
  2198. if test $ac_must_keep_next = true; then
  2199. ac_must_keep_next=false # Got value, back to normal.
  2200. else
  2201. case $ac_arg in
  2202. *=* | --config-cache | -C | -disable-* | --disable-* \
  2203. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2204. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2205. | -with-* | --with-* | -without-* | --without-* | --x)
  2206. case "$ac_configure_args0 " in
  2207. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2208. esac
  2209. ;;
  2210. -* ) ac_must_keep_next=true ;;
  2211. esac
  2212. fi
  2213. as_fn_append ac_configure_args " '$ac_arg'"
  2214. ;;
  2215. esac
  2216. done
  2217. done
  2218. { ac_configure_args0=; unset ac_configure_args0;}
  2219. { ac_configure_args1=; unset ac_configure_args1;}
  2220. # When interrupted or exit'd, cleanup temporary files, and complete
  2221. # config.log. We remove comments because anyway the quotes in there
  2222. # would cause problems or look ugly.
  2223. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2224. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2225. trap 'exit_status=$?
  2226. # Save into config.log some information that might help in debugging.
  2227. {
  2228. echo
  2229. $as_echo "## ---------------- ##
  2230. ## Cache variables. ##
  2231. ## ---------------- ##"
  2232. echo
  2233. # The following way of writing the cache mishandles newlines in values,
  2234. (
  2235. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2236. eval ac_val=\$$ac_var
  2237. case $ac_val in #(
  2238. *${as_nl}*)
  2239. case $ac_var in #(
  2240. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2241. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2242. esac
  2243. case $ac_var in #(
  2244. _ | IFS | as_nl) ;; #(
  2245. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2246. *) { eval $ac_var=; unset $ac_var;} ;;
  2247. esac ;;
  2248. esac
  2249. done
  2250. (set) 2>&1 |
  2251. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2252. *${as_nl}ac_space=\ *)
  2253. sed -n \
  2254. "s/'\''/'\''\\\\'\'''\''/g;
  2255. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2256. ;; #(
  2257. *)
  2258. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2259. ;;
  2260. esac |
  2261. sort
  2262. )
  2263. echo
  2264. $as_echo "## ----------------- ##
  2265. ## Output variables. ##
  2266. ## ----------------- ##"
  2267. echo
  2268. for ac_var in $ac_subst_vars
  2269. do
  2270. eval ac_val=\$$ac_var
  2271. case $ac_val in
  2272. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2273. esac
  2274. $as_echo "$ac_var='\''$ac_val'\''"
  2275. done | sort
  2276. echo
  2277. if test -n "$ac_subst_files"; then
  2278. $as_echo "## ------------------- ##
  2279. ## File substitutions. ##
  2280. ## ------------------- ##"
  2281. echo
  2282. for ac_var in $ac_subst_files
  2283. do
  2284. eval ac_val=\$$ac_var
  2285. case $ac_val in
  2286. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2287. esac
  2288. $as_echo "$ac_var='\''$ac_val'\''"
  2289. done | sort
  2290. echo
  2291. fi
  2292. if test -s confdefs.h; then
  2293. $as_echo "## ----------- ##
  2294. ## confdefs.h. ##
  2295. ## ----------- ##"
  2296. echo
  2297. cat confdefs.h
  2298. echo
  2299. fi
  2300. test "$ac_signal" != 0 &&
  2301. $as_echo "$as_me: caught signal $ac_signal"
  2302. $as_echo "$as_me: exit $exit_status"
  2303. } >&5
  2304. rm -f core *.core core.conftest.* &&
  2305. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2306. exit $exit_status
  2307. ' 0
  2308. for ac_signal in 1 2 13 15; do
  2309. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2310. done
  2311. ac_signal=0
  2312. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2313. rm -f -r conftest* confdefs.h
  2314. $as_echo "/* confdefs.h */" > confdefs.h
  2315. # Predefined preprocessor variables.
  2316. cat >>confdefs.h <<_ACEOF
  2317. #define PACKAGE_NAME "$PACKAGE_NAME"
  2318. _ACEOF
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_STRING "$PACKAGE_STRING"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_URL "$PACKAGE_URL"
  2333. _ACEOF
  2334. # Let the site file select an alternate cache file if it wants to.
  2335. # Prefer an explicitly selected file to automatically selected ones.
  2336. ac_site_file1=NONE
  2337. ac_site_file2=NONE
  2338. if test -n "$CONFIG_SITE"; then
  2339. # We do not want a PATH search for config.site.
  2340. case $CONFIG_SITE in #((
  2341. -*) ac_site_file1=./$CONFIG_SITE;;
  2342. */*) ac_site_file1=$CONFIG_SITE;;
  2343. *) ac_site_file1=./$CONFIG_SITE;;
  2344. esac
  2345. elif test "x$prefix" != xNONE; then
  2346. ac_site_file1=$prefix/share/config.site
  2347. ac_site_file2=$prefix/etc/config.site
  2348. else
  2349. ac_site_file1=$ac_default_prefix/share/config.site
  2350. ac_site_file2=$ac_default_prefix/etc/config.site
  2351. fi
  2352. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2353. do
  2354. test "x$ac_site_file" = xNONE && continue
  2355. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2357. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2358. sed 's/^/| /' "$ac_site_file" >&5
  2359. . "$ac_site_file" \
  2360. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2362. as_fn_error $? "failed to load site script $ac_site_file
  2363. See \`config.log' for more details" "$LINENO" 5; }
  2364. fi
  2365. done
  2366. if test -r "$cache_file"; then
  2367. # Some versions of bash will fail to source /dev/null (special files
  2368. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2369. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2371. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2372. case $cache_file in
  2373. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2374. *) . "./$cache_file";;
  2375. esac
  2376. fi
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2379. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2380. >$cache_file
  2381. fi
  2382. # Check that the precious variables saved in the cache have kept the same
  2383. # value.
  2384. ac_cache_corrupted=false
  2385. for ac_var in $ac_precious_vars; do
  2386. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2387. eval ac_new_set=\$ac_env_${ac_var}_set
  2388. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2389. eval ac_new_val=\$ac_env_${ac_var}_value
  2390. case $ac_old_set,$ac_new_set in
  2391. set,)
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2394. ac_cache_corrupted=: ;;
  2395. ,set)
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2397. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2398. ac_cache_corrupted=: ;;
  2399. ,);;
  2400. *)
  2401. if test "x$ac_old_val" != "x$ac_new_val"; then
  2402. # differences in whitespace do not lead to failure.
  2403. ac_old_val_w=`echo x $ac_old_val`
  2404. ac_new_val_w=`echo x $ac_new_val`
  2405. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2407. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2408. ac_cache_corrupted=:
  2409. else
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2411. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2412. eval $ac_var=\$ac_old_val
  2413. fi
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2415. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2417. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2418. fi;;
  2419. esac
  2420. # Pass precious variables to config.status.
  2421. if test "$ac_new_set" = set; then
  2422. case $ac_new_val in
  2423. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2424. *) ac_arg=$ac_var=$ac_new_val ;;
  2425. esac
  2426. case " $ac_configure_args " in
  2427. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2428. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2429. esac
  2430. fi
  2431. done
  2432. if $ac_cache_corrupted; then
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2434. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2436. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2437. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2438. fi
  2439. ## -------------------- ##
  2440. ## Main body of script. ##
  2441. ## -------------------- ##
  2442. ac_ext=c
  2443. ac_cpp='$CPP $CPPFLAGS'
  2444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2447. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2448. ac_aux_dir=
  2449. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2450. if test -f "$ac_dir/install-sh"; then
  2451. ac_aux_dir=$ac_dir
  2452. ac_install_sh="$ac_aux_dir/install-sh -c"
  2453. break
  2454. elif test -f "$ac_dir/install.sh"; then
  2455. ac_aux_dir=$ac_dir
  2456. ac_install_sh="$ac_aux_dir/install.sh -c"
  2457. break
  2458. elif test -f "$ac_dir/shtool"; then
  2459. ac_aux_dir=$ac_dir
  2460. ac_install_sh="$ac_aux_dir/shtool install -c"
  2461. break
  2462. fi
  2463. done
  2464. if test -z "$ac_aux_dir"; then
  2465. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2466. fi
  2467. # These three variables are undocumented and unsupported,
  2468. # and are intended to be withdrawn in a future Autoconf release.
  2469. # They can cause serious problems if a builder's source tree is in a directory
  2470. # whose full name contains unusual characters.
  2471. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2472. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2473. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2474. orig_CFLAGS="$CFLAGS"
  2475. #
  2476. # Making releases:
  2477. # Edit include/SDL_version.h and change the version, then:
  2478. # SDL_MICRO_VERSION += 1;
  2479. # SDL_INTERFACE_AGE += 1;
  2480. # SDL_BINARY_AGE += 1;
  2481. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2482. # if backwards compatibility has been broken,
  2483. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2484. #
  2485. SDL_MAJOR_VERSION=2
  2486. SDL_MINOR_VERSION=0
  2487. SDL_MICRO_VERSION=8
  2488. SDL_INTERFACE_AGE=0
  2489. SDL_BINARY_AGE=8
  2490. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2491. # libtool versioning
  2492. case `pwd` in
  2493. *\ * | *\ *)
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2495. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2496. esac
  2497. macro_version='2.4.2'
  2498. macro_revision='1.3337'
  2499. ltmain="$ac_aux_dir/ltmain.sh"
  2500. # Make sure we can run config.sub.
  2501. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2502. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2504. $as_echo_n "checking build system type... " >&6; }
  2505. if ${ac_cv_build+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. ac_build_alias=$build_alias
  2509. test "x$ac_build_alias" = x &&
  2510. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2511. test "x$ac_build_alias" = x &&
  2512. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2513. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2515. fi
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2517. $as_echo "$ac_cv_build" >&6; }
  2518. case $ac_cv_build in
  2519. *-*-*) ;;
  2520. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2521. esac
  2522. build=$ac_cv_build
  2523. ac_save_IFS=$IFS; IFS='-'
  2524. set x $ac_cv_build
  2525. shift
  2526. build_cpu=$1
  2527. build_vendor=$2
  2528. shift; shift
  2529. # Remember, the first character of IFS is used to create $*,
  2530. # except with old shells:
  2531. build_os=$*
  2532. IFS=$ac_save_IFS
  2533. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2535. $as_echo_n "checking host system type... " >&6; }
  2536. if ${ac_cv_host+:} false; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test "x$host_alias" = x; then
  2540. ac_cv_host=$ac_cv_build
  2541. else
  2542. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2543. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2544. fi
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2547. $as_echo "$ac_cv_host" >&6; }
  2548. case $ac_cv_host in
  2549. *-*-*) ;;
  2550. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2551. esac
  2552. host=$ac_cv_host
  2553. ac_save_IFS=$IFS; IFS='-'
  2554. set x $ac_cv_host
  2555. shift
  2556. host_cpu=$1
  2557. host_vendor=$2
  2558. shift; shift
  2559. # Remember, the first character of IFS is used to create $*,
  2560. # except with old shells:
  2561. host_os=$*
  2562. IFS=$ac_save_IFS
  2563. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2564. # Backslashify metacharacters that are still active within
  2565. # double-quoted strings.
  2566. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2567. # Same as above, but do not quote variable references.
  2568. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2569. # Sed substitution to delay expansion of an escaped shell variable in a
  2570. # double_quote_subst'ed string.
  2571. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2572. # Sed substitution to delay expansion of an escaped single quote.
  2573. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2574. # Sed substitution to avoid accidental globbing in evaled expressions
  2575. no_glob_subst='s/\*/\\\*/g'
  2576. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2577. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2578. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2580. $as_echo_n "checking how to print strings... " >&6; }
  2581. # Test print first, because it will be a builtin if present.
  2582. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2583. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2584. ECHO='print -r --'
  2585. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2586. ECHO='printf %s\n'
  2587. else
  2588. # Use this function as a fallback that always works.
  2589. func_fallback_echo ()
  2590. {
  2591. eval 'cat <<_LTECHO_EOF
  2592. $1
  2593. _LTECHO_EOF'
  2594. }
  2595. ECHO='func_fallback_echo'
  2596. fi
  2597. # func_echo_all arg...
  2598. # Invoke $ECHO with all args, space-separated.
  2599. func_echo_all ()
  2600. {
  2601. $ECHO ""
  2602. }
  2603. case "$ECHO" in
  2604. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2605. $as_echo "printf" >&6; } ;;
  2606. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2607. $as_echo "print -r" >&6; } ;;
  2608. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2609. $as_echo "cat" >&6; } ;;
  2610. esac
  2611. ac_ext=c
  2612. ac_cpp='$CPP $CPPFLAGS'
  2613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2616. if test -n "$ac_tool_prefix"; then
  2617. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2618. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2620. $as_echo_n "checking for $ac_word... " >&6; }
  2621. if ${ac_cv_prog_CC+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. if test -n "$CC"; then
  2625. ac_cv_prog_CC="$CC" # Let the user override the test.
  2626. else
  2627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2628. for as_dir in $PATH
  2629. do
  2630. IFS=$as_save_IFS
  2631. test -z "$as_dir" && as_dir=.
  2632. for ac_exec_ext in '' $ac_executable_extensions; do
  2633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2634. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2636. break 2
  2637. fi
  2638. done
  2639. done
  2640. IFS=$as_save_IFS
  2641. fi
  2642. fi
  2643. CC=$ac_cv_prog_CC
  2644. if test -n "$CC"; then
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2646. $as_echo "$CC" >&6; }
  2647. else
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2649. $as_echo "no" >&6; }
  2650. fi
  2651. fi
  2652. if test -z "$ac_cv_prog_CC"; then
  2653. ac_ct_CC=$CC
  2654. # Extract the first word of "gcc", so it can be a program name with args.
  2655. set dummy gcc; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$ac_ct_CC"; then
  2662. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2671. ac_cv_prog_ac_ct_CC="gcc"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2681. if test -n "$ac_ct_CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2683. $as_echo "$ac_ct_CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. if test "x$ac_ct_CC" = x; then
  2689. CC=""
  2690. else
  2691. case $cross_compiling:$ac_tool_warned in
  2692. yes:)
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2695. ac_tool_warned=yes ;;
  2696. esac
  2697. CC=$ac_ct_CC
  2698. fi
  2699. else
  2700. CC="$ac_cv_prog_CC"
  2701. fi
  2702. if test -z "$CC"; then
  2703. if test -n "$ac_tool_prefix"; then
  2704. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2705. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2707. $as_echo_n "checking for $ac_word... " >&6; }
  2708. if ${ac_cv_prog_CC+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. if test -n "$CC"; then
  2712. ac_cv_prog_CC="$CC" # Let the user override the test.
  2713. else
  2714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715. for as_dir in $PATH
  2716. do
  2717. IFS=$as_save_IFS
  2718. test -z "$as_dir" && as_dir=.
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2721. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. done
  2727. IFS=$as_save_IFS
  2728. fi
  2729. fi
  2730. CC=$ac_cv_prog_CC
  2731. if test -n "$CC"; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2733. $as_echo "$CC" >&6; }
  2734. else
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. fi
  2738. fi
  2739. fi
  2740. if test -z "$CC"; then
  2741. # Extract the first word of "cc", so it can be a program name with args.
  2742. set dummy cc; ac_word=$2
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2744. $as_echo_n "checking for $ac_word... " >&6; }
  2745. if ${ac_cv_prog_CC+:} false; then :
  2746. $as_echo_n "(cached) " >&6
  2747. else
  2748. if test -n "$CC"; then
  2749. ac_cv_prog_CC="$CC" # Let the user override the test.
  2750. else
  2751. ac_prog_rejected=no
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. test -z "$as_dir" && as_dir=.
  2757. for ac_exec_ext in '' $ac_executable_extensions; do
  2758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2759. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2760. ac_prog_rejected=yes
  2761. continue
  2762. fi
  2763. ac_cv_prog_CC="cc"
  2764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. IFS=$as_save_IFS
  2770. if test $ac_prog_rejected = yes; then
  2771. # We found a bogon in the path, so make sure we never use it.
  2772. set dummy $ac_cv_prog_CC
  2773. shift
  2774. if test $# != 0; then
  2775. # We chose a different compiler from the bogus one.
  2776. # However, it has the same basename, so the bogon will be chosen
  2777. # first if we set CC to just the basename; use the full file name.
  2778. shift
  2779. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2780. fi
  2781. fi
  2782. fi
  2783. fi
  2784. CC=$ac_cv_prog_CC
  2785. if test -n "$CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2787. $as_echo "$CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. fi
  2793. if test -z "$CC"; then
  2794. if test -n "$ac_tool_prefix"; then
  2795. for ac_prog in cl.exe
  2796. do
  2797. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2798. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. $as_echo_n "checking for $ac_word... " >&6; }
  2801. if ${ac_cv_prog_CC+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. if test -n "$CC"; then
  2805. ac_cv_prog_CC="$CC" # Let the user override the test.
  2806. else
  2807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808. for as_dir in $PATH
  2809. do
  2810. IFS=$as_save_IFS
  2811. test -z "$as_dir" && as_dir=.
  2812. for ac_exec_ext in '' $ac_executable_extensions; do
  2813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2814. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821. fi
  2822. fi
  2823. CC=$ac_cv_prog_CC
  2824. if test -n "$CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2826. $as_echo "$CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. test -n "$CC" && break
  2832. done
  2833. fi
  2834. if test -z "$CC"; then
  2835. ac_ct_CC=$CC
  2836. for ac_prog in cl.exe
  2837. do
  2838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2839. set dummy $ac_prog; ac_word=$2
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2841. $as_echo_n "checking for $ac_word... " >&6; }
  2842. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test -n "$ac_ct_CC"; then
  2846. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. test -z "$as_dir" && as_dir=.
  2853. for ac_exec_ext in '' $ac_executable_extensions; do
  2854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2855. ac_cv_prog_ac_ct_CC="$ac_prog"
  2856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2857. break 2
  2858. fi
  2859. done
  2860. done
  2861. IFS=$as_save_IFS
  2862. fi
  2863. fi
  2864. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2865. if test -n "$ac_ct_CC"; then
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2867. $as_echo "$ac_ct_CC" >&6; }
  2868. else
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2870. $as_echo "no" >&6; }
  2871. fi
  2872. test -n "$ac_ct_CC" && break
  2873. done
  2874. if test "x$ac_ct_CC" = x; then
  2875. CC=""
  2876. else
  2877. case $cross_compiling:$ac_tool_warned in
  2878. yes:)
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2881. ac_tool_warned=yes ;;
  2882. esac
  2883. CC=$ac_ct_CC
  2884. fi
  2885. fi
  2886. fi
  2887. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. as_fn_error $? "no acceptable C compiler found in \$PATH
  2890. See \`config.log' for more details" "$LINENO" 5; }
  2891. # Provide some information about the compiler.
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2893. set X $ac_compile
  2894. ac_compiler=$2
  2895. for ac_option in --version -v -V -qversion; do
  2896. { { ac_try="$ac_compiler $ac_option >&5"
  2897. case "(($ac_try" in
  2898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899. *) ac_try_echo=$ac_try;;
  2900. esac
  2901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. $as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2904. ac_status=$?
  2905. if test -s conftest.err; then
  2906. sed '10a\
  2907. ... rest of stderr output deleted ...
  2908. 10q' conftest.err >conftest.er1
  2909. cat conftest.er1 >&5
  2910. fi
  2911. rm -f conftest.er1 conftest.err
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }
  2914. done
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. int
  2918. main ()
  2919. {
  2920. ;
  2921. return 0;
  2922. }
  2923. _ACEOF
  2924. ac_clean_files_save=$ac_clean_files
  2925. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2926. # Try to create an executable without -o first, disregard a.out.
  2927. # It will help us diagnose broken compilers, and finding out an intuition
  2928. # of exeext.
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2930. $as_echo_n "checking whether the C compiler works... " >&6; }
  2931. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2932. # The possible output files:
  2933. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2934. ac_rmfiles=
  2935. for ac_file in $ac_files
  2936. do
  2937. case $ac_file in
  2938. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2939. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2940. esac
  2941. done
  2942. rm -f $ac_rmfiles
  2943. if { { ac_try="$ac_link_default"
  2944. case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2949. $as_echo "$ac_try_echo"; } >&5
  2950. (eval "$ac_link_default") 2>&5
  2951. ac_status=$?
  2952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2953. test $ac_status = 0; }; then :
  2954. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2955. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2956. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2957. # so that the user can short-circuit this test for compilers unknown to
  2958. # Autoconf.
  2959. for ac_file in $ac_files ''
  2960. do
  2961. test -f "$ac_file" || continue
  2962. case $ac_file in
  2963. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2964. ;;
  2965. [ab].out )
  2966. # We found the default executable, but exeext='' is most
  2967. # certainly right.
  2968. break;;
  2969. *.* )
  2970. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2971. then :; else
  2972. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2973. fi
  2974. # We set ac_cv_exeext here because the later test for it is not
  2975. # safe: cross compilers may not add the suffix if given an `-o'
  2976. # argument, so we may need to know it at that point already.
  2977. # Even if this section looks crufty: it has the advantage of
  2978. # actually working.
  2979. break;;
  2980. * )
  2981. break;;
  2982. esac
  2983. done
  2984. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2985. else
  2986. ac_file=''
  2987. fi
  2988. if test -z "$ac_file"; then :
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2990. $as_echo "no" >&6; }
  2991. $as_echo "$as_me: failed program was:" >&5
  2992. sed 's/^/| /' conftest.$ac_ext >&5
  2993. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2995. as_fn_error 77 "C compiler cannot create executables
  2996. See \`config.log' for more details" "$LINENO" 5; }
  2997. else
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2999. $as_echo "yes" >&6; }
  3000. fi
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3002. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3004. $as_echo "$ac_file" >&6; }
  3005. ac_exeext=$ac_cv_exeext
  3006. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3007. ac_clean_files=$ac_clean_files_save
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3009. $as_echo_n "checking for suffix of executables... " >&6; }
  3010. if { { ac_try="$ac_link"
  3011. case "(($ac_try" in
  3012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3013. *) ac_try_echo=$ac_try;;
  3014. esac
  3015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3016. $as_echo "$ac_try_echo"; } >&5
  3017. (eval "$ac_link") 2>&5
  3018. ac_status=$?
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3020. test $ac_status = 0; }; then :
  3021. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3022. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3023. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3024. # `rm'.
  3025. for ac_file in conftest.exe conftest conftest.*; do
  3026. test -f "$ac_file" || continue
  3027. case $ac_file in
  3028. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3029. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3030. break;;
  3031. * ) break;;
  3032. esac
  3033. done
  3034. else
  3035. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3038. See \`config.log' for more details" "$LINENO" 5; }
  3039. fi
  3040. rm -f conftest conftest$ac_cv_exeext
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3042. $as_echo "$ac_cv_exeext" >&6; }
  3043. rm -f conftest.$ac_ext
  3044. EXEEXT=$ac_cv_exeext
  3045. ac_exeext=$EXEEXT
  3046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3047. /* end confdefs.h. */
  3048. #include <stdio.h>
  3049. int
  3050. main ()
  3051. {
  3052. FILE *f = fopen ("conftest.out", "w");
  3053. return ferror (f) || fclose (f) != 0;
  3054. ;
  3055. return 0;
  3056. }
  3057. _ACEOF
  3058. ac_clean_files="$ac_clean_files conftest.out"
  3059. # Check that the compiler produces executables we can run. If not, either
  3060. # the compiler is broken, or we cross compile.
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3062. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3063. if test "$cross_compiling" != yes; then
  3064. { { ac_try="$ac_link"
  3065. case "(($ac_try" in
  3066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067. *) ac_try_echo=$ac_try;;
  3068. esac
  3069. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3070. $as_echo "$ac_try_echo"; } >&5
  3071. (eval "$ac_link") 2>&5
  3072. ac_status=$?
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3074. test $ac_status = 0; }
  3075. if { ac_try='./conftest$ac_cv_exeext'
  3076. { { case "(($ac_try" in
  3077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. *) ac_try_echo=$ac_try;;
  3079. esac
  3080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. $as_echo "$ac_try_echo"; } >&5
  3082. (eval "$ac_try") 2>&5
  3083. ac_status=$?
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. test $ac_status = 0; }; }; then
  3086. cross_compiling=no
  3087. else
  3088. if test "$cross_compiling" = maybe; then
  3089. cross_compiling=yes
  3090. else
  3091. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3092. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3093. as_fn_error $? "cannot run C compiled programs.
  3094. If you meant to cross compile, use \`--host'.
  3095. See \`config.log' for more details" "$LINENO" 5; }
  3096. fi
  3097. fi
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3100. $as_echo "$cross_compiling" >&6; }
  3101. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3102. ac_clean_files=$ac_clean_files_save
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3104. $as_echo_n "checking for suffix of object files... " >&6; }
  3105. if ${ac_cv_objext+:} false; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. rm -f conftest.o conftest.obj
  3118. if { { ac_try="$ac_compile"
  3119. case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_compile") 2>&5
  3126. ac_status=$?
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3128. test $ac_status = 0; }; then :
  3129. for ac_file in conftest.o conftest.obj conftest.*; do
  3130. test -f "$ac_file" || continue;
  3131. case $ac_file in
  3132. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3133. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3134. break;;
  3135. esac
  3136. done
  3137. else
  3138. $as_echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3148. $as_echo "$ac_cv_objext" >&6; }
  3149. OBJEXT=$ac_cv_objext
  3150. ac_objext=$OBJEXT
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3152. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3153. if ${ac_cv_c_compiler_gnu+:} false; then :
  3154. $as_echo_n "(cached) " >&6
  3155. else
  3156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. #ifndef __GNUC__
  3162. choke me
  3163. #endif
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. if ac_fn_c_try_compile "$LINENO"; then :
  3169. ac_compiler_gnu=yes
  3170. else
  3171. ac_compiler_gnu=no
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3177. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3178. if test $ac_compiler_gnu = yes; then
  3179. GCC=yes
  3180. else
  3181. GCC=
  3182. fi
  3183. ac_test_CFLAGS=${CFLAGS+set}
  3184. ac_save_CFLAGS=$CFLAGS
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3186. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3187. if ${ac_cv_prog_cc_g+:} false; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. ac_save_c_werror_flag=$ac_c_werror_flag
  3191. ac_c_werror_flag=yes
  3192. ac_cv_prog_cc_g=no
  3193. CFLAGS="-g"
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_c_try_compile "$LINENO"; then :
  3204. ac_cv_prog_cc_g=yes
  3205. else
  3206. CFLAGS=""
  3207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3208. /* end confdefs.h. */
  3209. int
  3210. main ()
  3211. {
  3212. ;
  3213. return 0;
  3214. }
  3215. _ACEOF
  3216. if ac_fn_c_try_compile "$LINENO"; then :
  3217. else
  3218. ac_c_werror_flag=$ac_save_c_werror_flag
  3219. CFLAGS="-g"
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. if ac_fn_c_try_compile "$LINENO"; then :
  3230. ac_cv_prog_cc_g=yes
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. ac_c_werror_flag=$ac_save_c_werror_flag
  3238. fi
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3240. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3241. if test "$ac_test_CFLAGS" = set; then
  3242. CFLAGS=$ac_save_CFLAGS
  3243. elif test $ac_cv_prog_cc_g = yes; then
  3244. if test "$GCC" = yes; then
  3245. CFLAGS="-g -O2"
  3246. else
  3247. CFLAGS="-g"
  3248. fi
  3249. else
  3250. if test "$GCC" = yes; then
  3251. CFLAGS="-O2"
  3252. else
  3253. CFLAGS=
  3254. fi
  3255. fi
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3257. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3258. if ${ac_cv_prog_cc_c89+:} false; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. ac_cv_prog_cc_c89=no
  3262. ac_save_CC=$CC
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. #include <stdarg.h>
  3266. #include <stdio.h>
  3267. struct stat;
  3268. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3269. struct buf { int x; };
  3270. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3271. static char *e (p, i)
  3272. char **p;
  3273. int i;
  3274. {
  3275. return p[i];
  3276. }
  3277. static char *f (char * (*g) (char **, int), char **p, ...)
  3278. {
  3279. char *s;
  3280. va_list v;
  3281. va_start (v,p);
  3282. s = g (p, va_arg (v,int));
  3283. va_end (v);
  3284. return s;
  3285. }
  3286. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3287. function prototypes and stuff, but not '\xHH' hex character constants.
  3288. These don't provoke an error unfortunately, instead are silently treated
  3289. as 'x'. The following induces an error, until -std is added to get
  3290. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3291. array size at least. It's necessary to write '\x00'==0 to get something
  3292. that's true only with -std. */
  3293. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3294. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3295. inside strings and character constants. */
  3296. #define FOO(x) 'x'
  3297. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3298. int test (int i, double x);
  3299. struct s1 {int (*f) (int a);};
  3300. struct s2 {int (*f) (double a);};
  3301. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3302. int argc;
  3303. char **argv;
  3304. int
  3305. main ()
  3306. {
  3307. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3313. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3314. do
  3315. CC="$ac_save_CC $ac_arg"
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_cv_prog_cc_c89=$ac_arg
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext
  3320. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3321. done
  3322. rm -f conftest.$ac_ext
  3323. CC=$ac_save_CC
  3324. fi
  3325. # AC_CACHE_VAL
  3326. case "x$ac_cv_prog_cc_c89" in
  3327. x)
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3329. $as_echo "none needed" >&6; } ;;
  3330. xno)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3332. $as_echo "unsupported" >&6; } ;;
  3333. *)
  3334. CC="$CC $ac_cv_prog_cc_c89"
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3336. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3337. esac
  3338. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3339. fi
  3340. ac_ext=c
  3341. ac_cpp='$CPP $CPPFLAGS'
  3342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3346. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3347. if ${ac_cv_path_SED+:} false; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3351. for ac_i in 1 2 3 4 5 6 7; do
  3352. ac_script="$ac_script$as_nl$ac_script"
  3353. done
  3354. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3355. { ac_script=; unset ac_script;}
  3356. if test -z "$SED"; then
  3357. ac_path_SED_found=false
  3358. # Loop through the user's path and test for each of PROGNAME-LIST
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_prog in sed gsed; do
  3365. for ac_exec_ext in '' $ac_executable_extensions; do
  3366. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3367. as_fn_executable_p "$ac_path_SED" || continue
  3368. # Check for GNU ac_path_SED and select it if it is found.
  3369. # Check for GNU $ac_path_SED
  3370. case `"$ac_path_SED" --version 2>&1` in
  3371. *GNU*)
  3372. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3373. *)
  3374. ac_count=0
  3375. $as_echo_n 0123456789 >"conftest.in"
  3376. while :
  3377. do
  3378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3379. mv "conftest.tmp" "conftest.in"
  3380. cp "conftest.in" "conftest.nl"
  3381. $as_echo '' >> "conftest.nl"
  3382. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3385. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3386. # Best one so far, save it but keep looking for a better one
  3387. ac_cv_path_SED="$ac_path_SED"
  3388. ac_path_SED_max=$ac_count
  3389. fi
  3390. # 10*(2^10) chars as input seems more than enough
  3391. test $ac_count -gt 10 && break
  3392. done
  3393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3394. esac
  3395. $ac_path_SED_found && break 3
  3396. done
  3397. done
  3398. done
  3399. IFS=$as_save_IFS
  3400. if test -z "$ac_cv_path_SED"; then
  3401. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3402. fi
  3403. else
  3404. ac_cv_path_SED=$SED
  3405. fi
  3406. fi
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3408. $as_echo "$ac_cv_path_SED" >&6; }
  3409. SED="$ac_cv_path_SED"
  3410. rm -f conftest.sed
  3411. test -z "$SED" && SED=sed
  3412. Xsed="$SED -e 1s/^X//"
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3414. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3415. if ${ac_cv_path_GREP+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. if test -z "$GREP"; then
  3419. ac_path_GREP_found=false
  3420. # Loop through the user's path and test for each of PROGNAME-LIST
  3421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3422. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3423. do
  3424. IFS=$as_save_IFS
  3425. test -z "$as_dir" && as_dir=.
  3426. for ac_prog in grep ggrep; do
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3429. as_fn_executable_p "$ac_path_GREP" || continue
  3430. # Check for GNU ac_path_GREP and select it if it is found.
  3431. # Check for GNU $ac_path_GREP
  3432. case `"$ac_path_GREP" --version 2>&1` in
  3433. *GNU*)
  3434. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3435. *)
  3436. ac_count=0
  3437. $as_echo_n 0123456789 >"conftest.in"
  3438. while :
  3439. do
  3440. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3441. mv "conftest.tmp" "conftest.in"
  3442. cp "conftest.in" "conftest.nl"
  3443. $as_echo 'GREP' >> "conftest.nl"
  3444. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3445. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3446. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3447. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3448. # Best one so far, save it but keep looking for a better one
  3449. ac_cv_path_GREP="$ac_path_GREP"
  3450. ac_path_GREP_max=$ac_count
  3451. fi
  3452. # 10*(2^10) chars as input seems more than enough
  3453. test $ac_count -gt 10 && break
  3454. done
  3455. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3456. esac
  3457. $ac_path_GREP_found && break 3
  3458. done
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test -z "$ac_cv_path_GREP"; then
  3463. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3464. fi
  3465. else
  3466. ac_cv_path_GREP=$GREP
  3467. fi
  3468. fi
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3470. $as_echo "$ac_cv_path_GREP" >&6; }
  3471. GREP="$ac_cv_path_GREP"
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3473. $as_echo_n "checking for egrep... " >&6; }
  3474. if ${ac_cv_path_EGREP+:} false; then :
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3478. then ac_cv_path_EGREP="$GREP -E"
  3479. else
  3480. if test -z "$EGREP"; then
  3481. ac_path_EGREP_found=false
  3482. # Loop through the user's path and test for each of PROGNAME-LIST
  3483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3484. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3485. do
  3486. IFS=$as_save_IFS
  3487. test -z "$as_dir" && as_dir=.
  3488. for ac_prog in egrep; do
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3491. as_fn_executable_p "$ac_path_EGREP" || continue
  3492. # Check for GNU ac_path_EGREP and select it if it is found.
  3493. # Check for GNU $ac_path_EGREP
  3494. case `"$ac_path_EGREP" --version 2>&1` in
  3495. *GNU*)
  3496. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3497. *)
  3498. ac_count=0
  3499. $as_echo_n 0123456789 >"conftest.in"
  3500. while :
  3501. do
  3502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3503. mv "conftest.tmp" "conftest.in"
  3504. cp "conftest.in" "conftest.nl"
  3505. $as_echo 'EGREP' >> "conftest.nl"
  3506. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3509. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3510. # Best one so far, save it but keep looking for a better one
  3511. ac_cv_path_EGREP="$ac_path_EGREP"
  3512. ac_path_EGREP_max=$ac_count
  3513. fi
  3514. # 10*(2^10) chars as input seems more than enough
  3515. test $ac_count -gt 10 && break
  3516. done
  3517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3518. esac
  3519. $ac_path_EGREP_found && break 3
  3520. done
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. if test -z "$ac_cv_path_EGREP"; then
  3525. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3526. fi
  3527. else
  3528. ac_cv_path_EGREP=$EGREP
  3529. fi
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3533. $as_echo "$ac_cv_path_EGREP" >&6; }
  3534. EGREP="$ac_cv_path_EGREP"
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3536. $as_echo_n "checking for fgrep... " >&6; }
  3537. if ${ac_cv_path_FGREP+:} false; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3541. then ac_cv_path_FGREP="$GREP -F"
  3542. else
  3543. if test -z "$FGREP"; then
  3544. ac_path_FGREP_found=false
  3545. # Loop through the user's path and test for each of PROGNAME-LIST
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3548. do
  3549. IFS=$as_save_IFS
  3550. test -z "$as_dir" && as_dir=.
  3551. for ac_prog in fgrep; do
  3552. for ac_exec_ext in '' $ac_executable_extensions; do
  3553. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3554. as_fn_executable_p "$ac_path_FGREP" || continue
  3555. # Check for GNU ac_path_FGREP and select it if it is found.
  3556. # Check for GNU $ac_path_FGREP
  3557. case `"$ac_path_FGREP" --version 2>&1` in
  3558. *GNU*)
  3559. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3560. *)
  3561. ac_count=0
  3562. $as_echo_n 0123456789 >"conftest.in"
  3563. while :
  3564. do
  3565. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3566. mv "conftest.tmp" "conftest.in"
  3567. cp "conftest.in" "conftest.nl"
  3568. $as_echo 'FGREP' >> "conftest.nl"
  3569. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3570. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3571. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3572. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3573. # Best one so far, save it but keep looking for a better one
  3574. ac_cv_path_FGREP="$ac_path_FGREP"
  3575. ac_path_FGREP_max=$ac_count
  3576. fi
  3577. # 10*(2^10) chars as input seems more than enough
  3578. test $ac_count -gt 10 && break
  3579. done
  3580. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3581. esac
  3582. $ac_path_FGREP_found && break 3
  3583. done
  3584. done
  3585. done
  3586. IFS=$as_save_IFS
  3587. if test -z "$ac_cv_path_FGREP"; then
  3588. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3589. fi
  3590. else
  3591. ac_cv_path_FGREP=$FGREP
  3592. fi
  3593. fi
  3594. fi
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3596. $as_echo "$ac_cv_path_FGREP" >&6; }
  3597. FGREP="$ac_cv_path_FGREP"
  3598. test -z "$GREP" && GREP=grep
  3599. # Check whether --with-gnu-ld was given.
  3600. if test "${with_gnu_ld+set}" = set; then :
  3601. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3602. else
  3603. with_gnu_ld=no
  3604. fi
  3605. ac_prog=ld
  3606. if test "$GCC" = yes; then
  3607. # Check if gcc -print-prog-name=ld gives a path.
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3609. $as_echo_n "checking for ld used by $CC... " >&6; }
  3610. case $host in
  3611. *-*-mingw*)
  3612. # gcc leaves a trailing carriage return which upsets mingw
  3613. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3614. *)
  3615. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3616. esac
  3617. case $ac_prog in
  3618. # Accept absolute paths.
  3619. [\\/]* | ?:[\\/]*)
  3620. re_direlt='/[^/][^/]*/\.\./'
  3621. # Canonicalize the pathname of ld
  3622. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3623. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3624. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3625. done
  3626. test -z "$LD" && LD="$ac_prog"
  3627. ;;
  3628. "")
  3629. # If it fails, then pretend we aren't using GCC.
  3630. ac_prog=ld
  3631. ;;
  3632. *)
  3633. # If it is relative, then search for the first ld in PATH.
  3634. with_gnu_ld=unknown
  3635. ;;
  3636. esac
  3637. elif test "$with_gnu_ld" = yes; then
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3639. $as_echo_n "checking for GNU ld... " >&6; }
  3640. else
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3642. $as_echo_n "checking for non-GNU ld... " >&6; }
  3643. fi
  3644. if ${lt_cv_path_LD+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test -z "$LD"; then
  3648. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3649. for ac_dir in $PATH; do
  3650. IFS="$lt_save_ifs"
  3651. test -z "$ac_dir" && ac_dir=.
  3652. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3653. lt_cv_path_LD="$ac_dir/$ac_prog"
  3654. # Check to see if the program is GNU ld. I'd rather use --version,
  3655. # but apparently some variants of GNU ld only accept -v.
  3656. # Break only if it was the GNU/non-GNU ld that we prefer.
  3657. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3658. *GNU* | *'with BFD'*)
  3659. test "$with_gnu_ld" != no && break
  3660. ;;
  3661. *)
  3662. test "$with_gnu_ld" != yes && break
  3663. ;;
  3664. esac
  3665. fi
  3666. done
  3667. IFS="$lt_save_ifs"
  3668. else
  3669. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3670. fi
  3671. fi
  3672. LD="$lt_cv_path_LD"
  3673. if test -n "$LD"; then
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3675. $as_echo "$LD" >&6; }
  3676. else
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3678. $as_echo "no" >&6; }
  3679. fi
  3680. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3682. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3683. if ${lt_cv_prog_gnu_ld+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3687. case `$LD -v 2>&1 </dev/null` in
  3688. *GNU* | *'with BFD'*)
  3689. lt_cv_prog_gnu_ld=yes
  3690. ;;
  3691. *)
  3692. lt_cv_prog_gnu_ld=no
  3693. ;;
  3694. esac
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3697. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3698. with_gnu_ld=$lt_cv_prog_gnu_ld
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3700. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3701. if ${lt_cv_path_NM+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. if test -n "$NM"; then
  3705. # Let the user override the test.
  3706. lt_cv_path_NM="$NM"
  3707. else
  3708. lt_nm_to_check="${ac_tool_prefix}nm"
  3709. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3710. lt_nm_to_check="$lt_nm_to_check nm"
  3711. fi
  3712. for lt_tmp_nm in $lt_nm_to_check; do
  3713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3714. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3715. IFS="$lt_save_ifs"
  3716. test -z "$ac_dir" && ac_dir=.
  3717. tmp_nm="$ac_dir/$lt_tmp_nm"
  3718. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3719. # Check to see if the nm accepts a BSD-compat flag.
  3720. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3721. # nm: unknown option "B" ignored
  3722. # Tru64's nm complains that /dev/null is an invalid object file
  3723. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3724. */dev/null* | *'Invalid file or object type'*)
  3725. lt_cv_path_NM="$tmp_nm -B"
  3726. break
  3727. ;;
  3728. *)
  3729. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3730. */dev/null*)
  3731. lt_cv_path_NM="$tmp_nm -p"
  3732. break
  3733. ;;
  3734. *)
  3735. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3736. continue # so that we can try to find one that supports BSD flags
  3737. ;;
  3738. esac
  3739. ;;
  3740. esac
  3741. fi
  3742. done
  3743. IFS="$lt_save_ifs"
  3744. done
  3745. : ${lt_cv_path_NM=no}
  3746. fi
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3749. $as_echo "$lt_cv_path_NM" >&6; }
  3750. if test "$lt_cv_path_NM" != "no"; then
  3751. NM="$lt_cv_path_NM"
  3752. else
  3753. # Didn't find any BSD compatible name lister, look for dumpbin.
  3754. if test -n "$DUMPBIN"; then :
  3755. # Let the user override the test.
  3756. else
  3757. if test -n "$ac_tool_prefix"; then
  3758. for ac_prog in dumpbin "link -dump"
  3759. do
  3760. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3761. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$DUMPBIN"; then
  3768. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3769. else
  3770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3771. for as_dir in $PATH
  3772. do
  3773. IFS=$as_save_IFS
  3774. test -z "$as_dir" && as_dir=.
  3775. for ac_exec_ext in '' $ac_executable_extensions; do
  3776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3777. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3779. break 2
  3780. fi
  3781. done
  3782. done
  3783. IFS=$as_save_IFS
  3784. fi
  3785. fi
  3786. DUMPBIN=$ac_cv_prog_DUMPBIN
  3787. if test -n "$DUMPBIN"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3789. $as_echo "$DUMPBIN" >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. $as_echo "no" >&6; }
  3793. fi
  3794. test -n "$DUMPBIN" && break
  3795. done
  3796. fi
  3797. if test -z "$DUMPBIN"; then
  3798. ac_ct_DUMPBIN=$DUMPBIN
  3799. for ac_prog in dumpbin "link -dump"
  3800. do
  3801. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3802. set dummy $ac_prog; ac_word=$2
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3804. $as_echo_n "checking for $ac_word... " >&6; }
  3805. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$ac_ct_DUMPBIN"; then
  3809. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. test -z "$as_dir" && as_dir=.
  3816. for ac_exec_ext in '' $ac_executable_extensions; do
  3817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3818. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820. break 2
  3821. fi
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3828. if test -n "$ac_ct_DUMPBIN"; then
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3830. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3831. else
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. test -n "$ac_ct_DUMPBIN" && break
  3836. done
  3837. if test "x$ac_ct_DUMPBIN" = x; then
  3838. DUMPBIN=":"
  3839. else
  3840. case $cross_compiling:$ac_tool_warned in
  3841. yes:)
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3844. ac_tool_warned=yes ;;
  3845. esac
  3846. DUMPBIN=$ac_ct_DUMPBIN
  3847. fi
  3848. fi
  3849. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3850. *COFF*)
  3851. DUMPBIN="$DUMPBIN -symbols"
  3852. ;;
  3853. *)
  3854. DUMPBIN=:
  3855. ;;
  3856. esac
  3857. fi
  3858. if test "$DUMPBIN" != ":"; then
  3859. NM="$DUMPBIN"
  3860. fi
  3861. fi
  3862. test -z "$NM" && NM=nm
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3864. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3865. if ${lt_cv_nm_interface+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. lt_cv_nm_interface="BSD nm"
  3869. echo "int some_variable = 0;" > conftest.$ac_ext
  3870. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3871. (eval "$ac_compile" 2>conftest.err)
  3872. cat conftest.err >&5
  3873. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3874. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3875. cat conftest.err >&5
  3876. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3877. cat conftest.out >&5
  3878. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3879. lt_cv_nm_interface="MS dumpbin"
  3880. fi
  3881. rm -f conftest*
  3882. fi
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3884. $as_echo "$lt_cv_nm_interface" >&6; }
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3886. $as_echo_n "checking whether ln -s works... " >&6; }
  3887. LN_S=$as_ln_s
  3888. if test "$LN_S" = "ln -s"; then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3890. $as_echo "yes" >&6; }
  3891. else
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3893. $as_echo "no, using $LN_S" >&6; }
  3894. fi
  3895. # find the maximum length of command line arguments
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3897. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3898. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3899. $as_echo_n "(cached) " >&6
  3900. else
  3901. i=0
  3902. teststring="ABCD"
  3903. case $build_os in
  3904. msdosdjgpp*)
  3905. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3906. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3907. # during glob expansion). Even if it were fixed, the result of this
  3908. # check would be larger than it should be.
  3909. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3910. ;;
  3911. gnu*)
  3912. # Under GNU Hurd, this test is not required because there is
  3913. # no limit to the length of command line arguments.
  3914. # Libtool will interpret -1 as no limit whatsoever
  3915. lt_cv_sys_max_cmd_len=-1;
  3916. ;;
  3917. cygwin* | mingw* | cegcc*)
  3918. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3919. # about 5 minutes as the teststring grows exponentially.
  3920. # Worse, since 9x/ME are not pre-emptively multitasking,
  3921. # you end up with a "frozen" computer, even though with patience
  3922. # the test eventually succeeds (with a max line length of 256k).
  3923. # Instead, let's just punt: use the minimum linelength reported by
  3924. # all of the supported platforms: 8192 (on NT/2K/XP).
  3925. lt_cv_sys_max_cmd_len=8192;
  3926. ;;
  3927. mint*)
  3928. # On MiNT this can take a long time and run out of memory.
  3929. lt_cv_sys_max_cmd_len=8192;
  3930. ;;
  3931. amigaos*)
  3932. # On AmigaOS with pdksh, this test takes hours, literally.
  3933. # So we just punt and use a minimum line length of 8192.
  3934. lt_cv_sys_max_cmd_len=8192;
  3935. ;;
  3936. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3937. # This has been around since 386BSD, at least. Likely further.
  3938. if test -x /sbin/sysctl; then
  3939. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3940. elif test -x /usr/sbin/sysctl; then
  3941. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3942. else
  3943. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3944. fi
  3945. # And add a safety zone
  3946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3948. ;;
  3949. interix*)
  3950. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3951. lt_cv_sys_max_cmd_len=196608
  3952. ;;
  3953. os2*)
  3954. # The test takes a long time on OS/2.
  3955. lt_cv_sys_max_cmd_len=8192
  3956. ;;
  3957. osf*)
  3958. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3959. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3960. # nice to cause kernel panics so lets avoid the loop below.
  3961. # First set a reasonable default.
  3962. lt_cv_sys_max_cmd_len=16384
  3963. #
  3964. if test -x /sbin/sysconfig; then
  3965. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3966. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3967. esac
  3968. fi
  3969. ;;
  3970. sco3.2v5*)
  3971. lt_cv_sys_max_cmd_len=102400
  3972. ;;
  3973. sysv5* | sco5v6* | sysv4.2uw2*)
  3974. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3975. if test -n "$kargmax"; then
  3976. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3977. else
  3978. lt_cv_sys_max_cmd_len=32768
  3979. fi
  3980. ;;
  3981. *)
  3982. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3983. if test -n "$lt_cv_sys_max_cmd_len"; then
  3984. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3985. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3986. else
  3987. # Make teststring a little bigger before we do anything with it.
  3988. # a 1K string should be a reasonable start.
  3989. for i in 1 2 3 4 5 6 7 8 ; do
  3990. teststring=$teststring$teststring
  3991. done
  3992. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3993. # If test is not a shell built-in, we'll probably end up computing a
  3994. # maximum length that is only half of the actual maximum length, but
  3995. # we can't tell.
  3996. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3997. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3998. test $i != 17 # 1/2 MB should be enough
  3999. do
  4000. i=`expr $i + 1`
  4001. teststring=$teststring$teststring
  4002. done
  4003. # Only check the string length outside the loop.
  4004. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4005. teststring=
  4006. # Add a significant safety factor because C++ compilers can tack on
  4007. # massive amounts of additional arguments before passing them to the
  4008. # linker. It appears as though 1/2 is a usable value.
  4009. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4010. fi
  4011. ;;
  4012. esac
  4013. fi
  4014. if test -n $lt_cv_sys_max_cmd_len ; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4016. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4019. $as_echo "none" >&6; }
  4020. fi
  4021. max_cmd_len=$lt_cv_sys_max_cmd_len
  4022. : ${CP="cp -f"}
  4023. : ${MV="mv -f"}
  4024. : ${RM="rm -f"}
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4026. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4027. # Try some XSI features
  4028. xsi_shell=no
  4029. ( _lt_dummy="a/b/c"
  4030. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4031. = c,a/b,b/c, \
  4032. && eval 'test $(( 1 + 1 )) -eq 2 \
  4033. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4034. && xsi_shell=yes
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4036. $as_echo "$xsi_shell" >&6; }
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4038. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4039. lt_shell_append=no
  4040. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4041. >/dev/null 2>&1 \
  4042. && lt_shell_append=yes
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4044. $as_echo "$lt_shell_append" >&6; }
  4045. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4046. lt_unset=unset
  4047. else
  4048. lt_unset=false
  4049. fi
  4050. # test EBCDIC or ASCII
  4051. case `echo X|tr X '\101'` in
  4052. A) # ASCII based system
  4053. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4054. lt_SP2NL='tr \040 \012'
  4055. lt_NL2SP='tr \015\012 \040\040'
  4056. ;;
  4057. *) # EBCDIC based system
  4058. lt_SP2NL='tr \100 \n'
  4059. lt_NL2SP='tr \r\n \100\100'
  4060. ;;
  4061. esac
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4063. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4064. if ${lt_cv_to_host_file_cmd+:} false; then :
  4065. $as_echo_n "(cached) " >&6
  4066. else
  4067. case $host in
  4068. *-*-mingw* )
  4069. case $build in
  4070. *-*-mingw* ) # actually msys
  4071. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4072. ;;
  4073. *-*-cygwin* )
  4074. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4075. ;;
  4076. * ) # otherwise, assume *nix
  4077. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4078. ;;
  4079. esac
  4080. ;;
  4081. *-*-cygwin* )
  4082. case $build in
  4083. *-*-mingw* ) # actually msys
  4084. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4085. ;;
  4086. *-*-cygwin* )
  4087. lt_cv_to_host_file_cmd=func_convert_file_noop
  4088. ;;
  4089. * ) # otherwise, assume *nix
  4090. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4091. ;;
  4092. esac
  4093. ;;
  4094. * ) # unhandled hosts (and "normal" native builds)
  4095. lt_cv_to_host_file_cmd=func_convert_file_noop
  4096. ;;
  4097. esac
  4098. fi
  4099. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4101. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4103. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4104. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. #assume ordinary cross tools, or native build.
  4108. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4109. case $host in
  4110. *-*-mingw* )
  4111. case $build in
  4112. *-*-mingw* ) # actually msys
  4113. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4114. ;;
  4115. esac
  4116. ;;
  4117. esac
  4118. fi
  4119. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4121. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4123. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4124. if ${lt_cv_ld_reload_flag+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. lt_cv_ld_reload_flag='-r'
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4130. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4131. reload_flag=$lt_cv_ld_reload_flag
  4132. case $reload_flag in
  4133. "" | " "*) ;;
  4134. *) reload_flag=" $reload_flag" ;;
  4135. esac
  4136. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4137. case $host_os in
  4138. cygwin* | mingw* | pw32* | cegcc*)
  4139. if test "$GCC" != yes; then
  4140. reload_cmds=false
  4141. fi
  4142. ;;
  4143. darwin*)
  4144. if test "$GCC" = yes; then
  4145. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4146. else
  4147. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4148. fi
  4149. ;;
  4150. esac
  4151. if test -n "$ac_tool_prefix"; then
  4152. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4153. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4155. $as_echo_n "checking for $ac_word... " >&6; }
  4156. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test -n "$OBJDUMP"; then
  4160. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4161. else
  4162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4163. for as_dir in $PATH
  4164. do
  4165. IFS=$as_save_IFS
  4166. test -z "$as_dir" && as_dir=.
  4167. for ac_exec_ext in '' $ac_executable_extensions; do
  4168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4169. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4171. break 2
  4172. fi
  4173. done
  4174. done
  4175. IFS=$as_save_IFS
  4176. fi
  4177. fi
  4178. OBJDUMP=$ac_cv_prog_OBJDUMP
  4179. if test -n "$OBJDUMP"; then
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4181. $as_echo "$OBJDUMP" >&6; }
  4182. else
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4184. $as_echo "no" >&6; }
  4185. fi
  4186. fi
  4187. if test -z "$ac_cv_prog_OBJDUMP"; then
  4188. ac_ct_OBJDUMP=$OBJDUMP
  4189. # Extract the first word of "objdump", so it can be a program name with args.
  4190. set dummy objdump; ac_word=$2
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4192. $as_echo_n "checking for $ac_word... " >&6; }
  4193. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. if test -n "$ac_ct_OBJDUMP"; then
  4197. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4198. else
  4199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4200. for as_dir in $PATH
  4201. do
  4202. IFS=$as_save_IFS
  4203. test -z "$as_dir" && as_dir=.
  4204. for ac_exec_ext in '' $ac_executable_extensions; do
  4205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4206. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4208. break 2
  4209. fi
  4210. done
  4211. done
  4212. IFS=$as_save_IFS
  4213. fi
  4214. fi
  4215. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4216. if test -n "$ac_ct_OBJDUMP"; then
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4218. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4219. else
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4221. $as_echo "no" >&6; }
  4222. fi
  4223. if test "x$ac_ct_OBJDUMP" = x; then
  4224. OBJDUMP="false"
  4225. else
  4226. case $cross_compiling:$ac_tool_warned in
  4227. yes:)
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4230. ac_tool_warned=yes ;;
  4231. esac
  4232. OBJDUMP=$ac_ct_OBJDUMP
  4233. fi
  4234. else
  4235. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4236. fi
  4237. test -z "$OBJDUMP" && OBJDUMP=objdump
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4239. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4240. if ${lt_cv_deplibs_check_method+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4244. lt_cv_file_magic_test_file=
  4245. lt_cv_deplibs_check_method='unknown'
  4246. # Need to set the preceding variable on all platforms that support
  4247. # interlibrary dependencies.
  4248. # 'none' -- dependencies not supported.
  4249. # `unknown' -- same as none, but documents that we really don't know.
  4250. # 'pass_all' -- all dependencies passed with no checks.
  4251. # 'test_compile' -- check by making test program.
  4252. # 'file_magic [[regex]]' -- check by looking for files in library path
  4253. # which responds to the $file_magic_cmd with a given extended regex.
  4254. # If you have `file' or equivalent on your system and you're not sure
  4255. # whether `pass_all' will *always* work, you probably want this one.
  4256. case $host_os in
  4257. aix[4-9]*)
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. beos*)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. bsdi[45]*)
  4264. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4265. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4266. lt_cv_file_magic_test_file=/shlib/libc.so
  4267. ;;
  4268. cygwin*)
  4269. # func_win32_libid is a shell function defined in ltmain.sh
  4270. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4271. lt_cv_file_magic_cmd='func_win32_libid'
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. mingw* | pw32*)
  4275. # Base MSYS/MinGW do not provide the 'file' command needed by
  4276. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4277. # unless we find 'file', for example because we are cross-compiling.
  4278. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4279. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4280. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4281. lt_cv_file_magic_cmd='func_win32_libid'
  4282. else
  4283. # Keep this pattern in sync with the one in func_win32_libid.
  4284. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4285. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4286. fi
  4287. lt_cv_deplibs_check_method=pass_all
  4288. ;;
  4289. cegcc*)
  4290. # use the weaker test based on 'objdump'. See mingw*.
  4291. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4292. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4293. ;;
  4294. darwin* | rhapsody*)
  4295. lt_cv_deplibs_check_method=pass_all
  4296. ;;
  4297. freebsd* | dragonfly*)
  4298. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4299. case $host_cpu in
  4300. i*86 )
  4301. # Not sure whether the presence of OpenBSD here was a mistake.
  4302. # Let's accept both of them until this is cleared up.
  4303. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4304. lt_cv_file_magic_cmd=/usr/bin/file
  4305. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4306. ;;
  4307. esac
  4308. else
  4309. lt_cv_deplibs_check_method=pass_all
  4310. fi
  4311. ;;
  4312. gnu*)
  4313. lt_cv_deplibs_check_method=pass_all
  4314. ;;
  4315. haiku*)
  4316. lt_cv_deplibs_check_method=pass_all
  4317. ;;
  4318. hpux10.20* | hpux11*)
  4319. lt_cv_file_magic_cmd=/usr/bin/file
  4320. case $host_cpu in
  4321. ia64*)
  4322. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4323. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4324. ;;
  4325. hppa*64*)
  4326. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4327. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4328. ;;
  4329. *)
  4330. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4331. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4332. ;;
  4333. esac
  4334. ;;
  4335. interix[3-9]*)
  4336. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4337. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4338. ;;
  4339. irix5* | irix6* | nonstopux*)
  4340. case $LD in
  4341. *-32|*"-32 ") libmagic=32-bit;;
  4342. *-n32|*"-n32 ") libmagic=N32;;
  4343. *-64|*"-64 ") libmagic=64-bit;;
  4344. *) libmagic=never-match;;
  4345. esac
  4346. lt_cv_deplibs_check_method=pass_all
  4347. ;;
  4348. # This must be glibc/ELF.
  4349. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. netbsd*)
  4353. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4355. else
  4356. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4357. fi
  4358. ;;
  4359. newos6*)
  4360. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4361. lt_cv_file_magic_cmd=/usr/bin/file
  4362. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4363. ;;
  4364. *nto* | *qnx*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. openbsd*)
  4368. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4370. else
  4371. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4372. fi
  4373. ;;
  4374. osf3* | osf4* | osf5*)
  4375. lt_cv_deplibs_check_method=pass_all
  4376. ;;
  4377. rdos*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. solaris*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. sysv4 | sysv4.3*)
  4387. case $host_vendor in
  4388. motorola)
  4389. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4390. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4391. ;;
  4392. ncr)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. sequent)
  4396. lt_cv_file_magic_cmd='/bin/file'
  4397. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4398. ;;
  4399. sni)
  4400. lt_cv_file_magic_cmd='/bin/file'
  4401. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4402. lt_cv_file_magic_test_file=/lib/libc.so
  4403. ;;
  4404. siemens)
  4405. lt_cv_deplibs_check_method=pass_all
  4406. ;;
  4407. pc)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. esac
  4411. ;;
  4412. tpf*)
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. esac
  4416. fi
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4418. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4419. file_magic_glob=
  4420. want_nocaseglob=no
  4421. if test "$build" = "$host"; then
  4422. case $host_os in
  4423. mingw* | pw32*)
  4424. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4425. want_nocaseglob=yes
  4426. else
  4427. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4428. fi
  4429. ;;
  4430. esac
  4431. fi
  4432. file_magic_cmd=$lt_cv_file_magic_cmd
  4433. deplibs_check_method=$lt_cv_deplibs_check_method
  4434. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4435. if test -n "$ac_tool_prefix"; then
  4436. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4437. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4439. $as_echo_n "checking for $ac_word... " >&6; }
  4440. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. if test -n "$DLLTOOL"; then
  4444. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4445. else
  4446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH
  4448. do
  4449. IFS=$as_save_IFS
  4450. test -z "$as_dir" && as_dir=.
  4451. for ac_exec_ext in '' $ac_executable_extensions; do
  4452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4453. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4455. break 2
  4456. fi
  4457. done
  4458. done
  4459. IFS=$as_save_IFS
  4460. fi
  4461. fi
  4462. DLLTOOL=$ac_cv_prog_DLLTOOL
  4463. if test -n "$DLLTOOL"; then
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4465. $as_echo "$DLLTOOL" >&6; }
  4466. else
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4468. $as_echo "no" >&6; }
  4469. fi
  4470. fi
  4471. if test -z "$ac_cv_prog_DLLTOOL"; then
  4472. ac_ct_DLLTOOL=$DLLTOOL
  4473. # Extract the first word of "dlltool", so it can be a program name with args.
  4474. set dummy dlltool; ac_word=$2
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4476. $as_echo_n "checking for $ac_word... " >&6; }
  4477. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. if test -n "$ac_ct_DLLTOOL"; then
  4481. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4482. else
  4483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4484. for as_dir in $PATH
  4485. do
  4486. IFS=$as_save_IFS
  4487. test -z "$as_dir" && as_dir=.
  4488. for ac_exec_ext in '' $ac_executable_extensions; do
  4489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4490. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4492. break 2
  4493. fi
  4494. done
  4495. done
  4496. IFS=$as_save_IFS
  4497. fi
  4498. fi
  4499. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4500. if test -n "$ac_ct_DLLTOOL"; then
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4502. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4503. else
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4505. $as_echo "no" >&6; }
  4506. fi
  4507. if test "x$ac_ct_DLLTOOL" = x; then
  4508. DLLTOOL="false"
  4509. else
  4510. case $cross_compiling:$ac_tool_warned in
  4511. yes:)
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4514. ac_tool_warned=yes ;;
  4515. esac
  4516. DLLTOOL=$ac_ct_DLLTOOL
  4517. fi
  4518. else
  4519. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4520. fi
  4521. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4523. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4524. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4528. case $host_os in
  4529. cygwin* | mingw* | pw32* | cegcc*)
  4530. # two different shell functions defined in ltmain.sh
  4531. # decide which to use based on capabilities of $DLLTOOL
  4532. case `$DLLTOOL --help 2>&1` in
  4533. *--identify-strict*)
  4534. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4535. ;;
  4536. *)
  4537. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4538. ;;
  4539. esac
  4540. ;;
  4541. *)
  4542. # fallback: assume linklib IS sharedlib
  4543. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4544. ;;
  4545. esac
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4548. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4549. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4550. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4551. if test -n "$ac_tool_prefix"; then
  4552. for ac_prog in ar
  4553. do
  4554. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4555. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4557. $as_echo_n "checking for $ac_word... " >&6; }
  4558. if ${ac_cv_prog_AR+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$AR"; then
  4562. ac_cv_prog_AR="$AR" # Let the user override the test.
  4563. else
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4571. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573. break 2
  4574. fi
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. fi
  4579. fi
  4580. AR=$ac_cv_prog_AR
  4581. if test -n "$AR"; then
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4583. $as_echo "$AR" >&6; }
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. fi
  4588. test -n "$AR" && break
  4589. done
  4590. fi
  4591. if test -z "$AR"; then
  4592. ac_ct_AR=$AR
  4593. for ac_prog in ar
  4594. do
  4595. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4596. set dummy $ac_prog; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$ac_ct_AR"; then
  4603. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4612. ac_cv_prog_ac_ct_AR="$ac_prog"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4622. if test -n "$ac_ct_AR"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4624. $as_echo "$ac_ct_AR" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. test -n "$ac_ct_AR" && break
  4630. done
  4631. if test "x$ac_ct_AR" = x; then
  4632. AR="false"
  4633. else
  4634. case $cross_compiling:$ac_tool_warned in
  4635. yes:)
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4638. ac_tool_warned=yes ;;
  4639. esac
  4640. AR=$ac_ct_AR
  4641. fi
  4642. fi
  4643. : ${AR=ar}
  4644. : ${AR_FLAGS=cru}
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4646. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4647. if ${lt_cv_ar_at_file+:} false; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. lt_cv_ar_at_file=no
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. int
  4654. main ()
  4655. {
  4656. ;
  4657. return 0;
  4658. }
  4659. _ACEOF
  4660. if ac_fn_c_try_compile "$LINENO"; then :
  4661. echo conftest.$ac_objext > conftest.lst
  4662. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4663. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4664. (eval $lt_ar_try) 2>&5
  4665. ac_status=$?
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4667. test $ac_status = 0; }
  4668. if test "$ac_status" -eq 0; then
  4669. # Ensure the archiver fails upon bogus file names.
  4670. rm -f conftest.$ac_objext libconftest.a
  4671. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4672. (eval $lt_ar_try) 2>&5
  4673. ac_status=$?
  4674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4675. test $ac_status = 0; }
  4676. if test "$ac_status" -ne 0; then
  4677. lt_cv_ar_at_file=@
  4678. fi
  4679. fi
  4680. rm -f conftest.* libconftest.a
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4685. $as_echo "$lt_cv_ar_at_file" >&6; }
  4686. if test "x$lt_cv_ar_at_file" = xno; then
  4687. archiver_list_spec=
  4688. else
  4689. archiver_list_spec=$lt_cv_ar_at_file
  4690. fi
  4691. if test -n "$ac_tool_prefix"; then
  4692. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4693. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4695. $as_echo_n "checking for $ac_word... " >&6; }
  4696. if ${ac_cv_prog_STRIP+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. if test -n "$STRIP"; then
  4700. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4709. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. STRIP=$ac_cv_prog_STRIP
  4719. if test -n "$STRIP"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4721. $as_echo "$STRIP" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. $as_echo "no" >&6; }
  4725. fi
  4726. fi
  4727. if test -z "$ac_cv_prog_STRIP"; then
  4728. ac_ct_STRIP=$STRIP
  4729. # Extract the first word of "strip", so it can be a program name with args.
  4730. set dummy strip; ac_word=$2
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$ac_ct_STRIP"; then
  4737. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4746. ac_cv_prog_ac_ct_STRIP="strip"
  4747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4756. if test -n "$ac_ct_STRIP"; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4758. $as_echo "$ac_ct_STRIP" >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. if test "x$ac_ct_STRIP" = x; then
  4764. STRIP=":"
  4765. else
  4766. case $cross_compiling:$ac_tool_warned in
  4767. yes:)
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4769. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4770. ac_tool_warned=yes ;;
  4771. esac
  4772. STRIP=$ac_ct_STRIP
  4773. fi
  4774. else
  4775. STRIP="$ac_cv_prog_STRIP"
  4776. fi
  4777. test -z "$STRIP" && STRIP=:
  4778. if test -n "$ac_tool_prefix"; then
  4779. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4780. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if ${ac_cv_prog_RANLIB+:} false; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. if test -n "$RANLIB"; then
  4787. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792. IFS=$as_save_IFS
  4793. test -z "$as_dir" && as_dir=.
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4796. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798. break 2
  4799. fi
  4800. done
  4801. done
  4802. IFS=$as_save_IFS
  4803. fi
  4804. fi
  4805. RANLIB=$ac_cv_prog_RANLIB
  4806. if test -n "$RANLIB"; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4808. $as_echo "$RANLIB" >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4811. $as_echo "no" >&6; }
  4812. fi
  4813. fi
  4814. if test -z "$ac_cv_prog_RANLIB"; then
  4815. ac_ct_RANLIB=$RANLIB
  4816. # Extract the first word of "ranlib", so it can be a program name with args.
  4817. set dummy ranlib; ac_word=$2
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4819. $as_echo_n "checking for $ac_word... " >&6; }
  4820. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. if test -n "$ac_ct_RANLIB"; then
  4824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4825. else
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829. IFS=$as_save_IFS
  4830. test -z "$as_dir" && as_dir=.
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4833. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835. break 2
  4836. fi
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. fi
  4841. fi
  4842. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4843. if test -n "$ac_ct_RANLIB"; then
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4845. $as_echo "$ac_ct_RANLIB" >&6; }
  4846. else
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4848. $as_echo "no" >&6; }
  4849. fi
  4850. if test "x$ac_ct_RANLIB" = x; then
  4851. RANLIB=":"
  4852. else
  4853. case $cross_compiling:$ac_tool_warned in
  4854. yes:)
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4857. ac_tool_warned=yes ;;
  4858. esac
  4859. RANLIB=$ac_ct_RANLIB
  4860. fi
  4861. else
  4862. RANLIB="$ac_cv_prog_RANLIB"
  4863. fi
  4864. test -z "$RANLIB" && RANLIB=:
  4865. # Determine commands to create old-style static archives.
  4866. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4867. old_postinstall_cmds='chmod 644 $oldlib'
  4868. old_postuninstall_cmds=
  4869. if test -n "$RANLIB"; then
  4870. case $host_os in
  4871. openbsd*)
  4872. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4873. ;;
  4874. *)
  4875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4876. ;;
  4877. esac
  4878. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4879. fi
  4880. case $host_os in
  4881. darwin*)
  4882. lock_old_archive_extraction=yes ;;
  4883. *)
  4884. lock_old_archive_extraction=no ;;
  4885. esac
  4886. for ac_prog in gawk mawk nawk awk
  4887. do
  4888. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4889. set dummy $ac_prog; ac_word=$2
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4891. $as_echo_n "checking for $ac_word... " >&6; }
  4892. if ${ac_cv_prog_AWK+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. if test -n "$AWK"; then
  4896. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4897. else
  4898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4899. for as_dir in $PATH
  4900. do
  4901. IFS=$as_save_IFS
  4902. test -z "$as_dir" && as_dir=.
  4903. for ac_exec_ext in '' $ac_executable_extensions; do
  4904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4905. ac_cv_prog_AWK="$ac_prog"
  4906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4907. break 2
  4908. fi
  4909. done
  4910. done
  4911. IFS=$as_save_IFS
  4912. fi
  4913. fi
  4914. AWK=$ac_cv_prog_AWK
  4915. if test -n "$AWK"; then
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4917. $as_echo "$AWK" >&6; }
  4918. else
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4920. $as_echo "no" >&6; }
  4921. fi
  4922. test -n "$AWK" && break
  4923. done
  4924. # If no C compiler was specified, use CC.
  4925. LTCC=${LTCC-"$CC"}
  4926. # If no C compiler flags were specified, use CFLAGS.
  4927. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4928. # Allow CC to be a program name with arguments.
  4929. compiler=$CC
  4930. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4932. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4933. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. # These are sane defaults that work on at least a few old systems.
  4937. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4938. # Character class describing NM global symbol codes.
  4939. symcode='[BCDEGRST]'
  4940. # Regexp to match symbols that can be accessed directly from C.
  4941. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4942. # Define system-specific variables.
  4943. case $host_os in
  4944. aix*)
  4945. symcode='[BCDT]'
  4946. ;;
  4947. cygwin* | mingw* | pw32* | cegcc*)
  4948. symcode='[ABCDGISTW]'
  4949. ;;
  4950. hpux*)
  4951. if test "$host_cpu" = ia64; then
  4952. symcode='[ABCDEGRST]'
  4953. fi
  4954. ;;
  4955. irix* | nonstopux*)
  4956. symcode='[BCDEGRST]'
  4957. ;;
  4958. osf*)
  4959. symcode='[BCDEGQRST]'
  4960. ;;
  4961. solaris*)
  4962. symcode='[BDRT]'
  4963. ;;
  4964. sco3.2v5*)
  4965. symcode='[DT]'
  4966. ;;
  4967. sysv4.2uw2*)
  4968. symcode='[DT]'
  4969. ;;
  4970. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4971. symcode='[ABDT]'
  4972. ;;
  4973. sysv4)
  4974. symcode='[DFNSTU]'
  4975. ;;
  4976. esac
  4977. # If we're using GNU nm, then use its standard symbol codes.
  4978. case `$NM -V 2>&1` in
  4979. *GNU* | *'with BFD'*)
  4980. symcode='[ABCDGIRSTW]' ;;
  4981. esac
  4982. # Transform an extracted symbol line into a proper C declaration.
  4983. # Some systems (esp. on ia64) link data and code symbols differently,
  4984. # so use this general approach.
  4985. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4986. # Transform an extracted symbol line into symbol name and symbol address
  4987. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4988. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4989. # Handle CRLF in mingw tool chain
  4990. opt_cr=
  4991. case $build_os in
  4992. mingw*)
  4993. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4994. ;;
  4995. esac
  4996. # Try without a prefix underscore, then with it.
  4997. for ac_symprfx in "" "_"; do
  4998. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4999. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5000. # Write the raw and C identifiers.
  5001. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5002. # Fake it for dumpbin and say T for any non-static function
  5003. # and D for any global variable.
  5004. # Also find C++ and __fastcall symbols from MSVC++,
  5005. # which start with @ or ?.
  5006. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5007. " {last_section=section; section=\$ 3};"\
  5008. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5009. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5010. " \$ 0!~/External *\|/{next};"\
  5011. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5012. " {if(hide[section]) next};"\
  5013. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5014. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5015. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5016. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5017. " ' prfx=^$ac_symprfx"
  5018. else
  5019. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5020. fi
  5021. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5022. # Check to see that the pipe works correctly.
  5023. pipe_works=no
  5024. rm -f conftest*
  5025. cat > conftest.$ac_ext <<_LT_EOF
  5026. #ifdef __cplusplus
  5027. extern "C" {
  5028. #endif
  5029. char nm_test_var;
  5030. void nm_test_func(void);
  5031. void nm_test_func(void){}
  5032. #ifdef __cplusplus
  5033. }
  5034. #endif
  5035. int main(){nm_test_var='a';nm_test_func();return(0);}
  5036. _LT_EOF
  5037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5038. (eval $ac_compile) 2>&5
  5039. ac_status=$?
  5040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5041. test $ac_status = 0; }; then
  5042. # Now try to grab the symbols.
  5043. nlist=conftest.nm
  5044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5045. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5046. ac_status=$?
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5048. test $ac_status = 0; } && test -s "$nlist"; then
  5049. # Try sorting and uniquifying the output.
  5050. if sort "$nlist" | uniq > "$nlist"T; then
  5051. mv -f "$nlist"T "$nlist"
  5052. else
  5053. rm -f "$nlist"T
  5054. fi
  5055. # Make sure that we snagged all the symbols we need.
  5056. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5057. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5058. cat <<_LT_EOF > conftest.$ac_ext
  5059. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5060. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5061. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5062. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5063. # define LT_DLSYM_CONST
  5064. #elif defined(__osf__)
  5065. /* This system does not cope well with relocations in const data. */
  5066. # define LT_DLSYM_CONST
  5067. #else
  5068. # define LT_DLSYM_CONST const
  5069. #endif
  5070. #ifdef __cplusplus
  5071. extern "C" {
  5072. #endif
  5073. _LT_EOF
  5074. # Now generate the symbol file.
  5075. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5076. cat <<_LT_EOF >> conftest.$ac_ext
  5077. /* The mapping between symbol names and symbols. */
  5078. LT_DLSYM_CONST struct {
  5079. const char *name;
  5080. void *address;
  5081. }
  5082. lt__PROGRAM__LTX_preloaded_symbols[] =
  5083. {
  5084. { "@PROGRAM@", (void *) 0 },
  5085. _LT_EOF
  5086. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5087. cat <<\_LT_EOF >> conftest.$ac_ext
  5088. {0, (void *) 0}
  5089. };
  5090. /* This works around a problem in FreeBSD linker */
  5091. #ifdef FREEBSD_WORKAROUND
  5092. static const void *lt_preloaded_setup() {
  5093. return lt__PROGRAM__LTX_preloaded_symbols;
  5094. }
  5095. #endif
  5096. #ifdef __cplusplus
  5097. }
  5098. #endif
  5099. _LT_EOF
  5100. # Now try linking the two files.
  5101. mv conftest.$ac_objext conftstm.$ac_objext
  5102. lt_globsym_save_LIBS=$LIBS
  5103. lt_globsym_save_CFLAGS=$CFLAGS
  5104. LIBS="conftstm.$ac_objext"
  5105. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5107. (eval $ac_link) 2>&5
  5108. ac_status=$?
  5109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5110. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5111. pipe_works=yes
  5112. fi
  5113. LIBS=$lt_globsym_save_LIBS
  5114. CFLAGS=$lt_globsym_save_CFLAGS
  5115. else
  5116. echo "cannot find nm_test_func in $nlist" >&5
  5117. fi
  5118. else
  5119. echo "cannot find nm_test_var in $nlist" >&5
  5120. fi
  5121. else
  5122. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5123. fi
  5124. else
  5125. echo "$progname: failed program was:" >&5
  5126. cat conftest.$ac_ext >&5
  5127. fi
  5128. rm -rf conftest* conftst*
  5129. # Do not use the global_symbol_pipe unless it works.
  5130. if test "$pipe_works" = yes; then
  5131. break
  5132. else
  5133. lt_cv_sys_global_symbol_pipe=
  5134. fi
  5135. done
  5136. fi
  5137. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5138. lt_cv_sys_global_symbol_to_cdecl=
  5139. fi
  5140. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5142. $as_echo "failed" >&6; }
  5143. else
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5145. $as_echo "ok" >&6; }
  5146. fi
  5147. # Response file support.
  5148. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5149. nm_file_list_spec='@'
  5150. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5151. nm_file_list_spec='@'
  5152. fi
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5154. $as_echo_n "checking for sysroot... " >&6; }
  5155. # Check whether --with-sysroot was given.
  5156. if test "${with_sysroot+set}" = set; then :
  5157. withval=$with_sysroot;
  5158. else
  5159. with_sysroot=no
  5160. fi
  5161. lt_sysroot=
  5162. case ${with_sysroot} in #(
  5163. yes)
  5164. if test "$GCC" = yes; then
  5165. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5166. fi
  5167. ;; #(
  5168. /*)
  5169. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5170. ;; #(
  5171. no|'')
  5172. ;; #(
  5173. *)
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5175. $as_echo "${with_sysroot}" >&6; }
  5176. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5177. ;;
  5178. esac
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5180. $as_echo "${lt_sysroot:-no}" >&6; }
  5181. # Check whether --enable-libtool-lock was given.
  5182. if test "${enable_libtool_lock+set}" = set; then :
  5183. enableval=$enable_libtool_lock;
  5184. fi
  5185. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5186. # Some flags need to be propagated to the compiler or linker for good
  5187. # libtool support.
  5188. case $host in
  5189. ia64-*-hpux*)
  5190. # Find out which ABI we are using.
  5191. echo 'int i;' > conftest.$ac_ext
  5192. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5193. (eval $ac_compile) 2>&5
  5194. ac_status=$?
  5195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5196. test $ac_status = 0; }; then
  5197. case `/usr/bin/file conftest.$ac_objext` in
  5198. *ELF-32*)
  5199. HPUX_IA64_MODE="32"
  5200. ;;
  5201. *ELF-64*)
  5202. HPUX_IA64_MODE="64"
  5203. ;;
  5204. esac
  5205. fi
  5206. rm -rf conftest*
  5207. ;;
  5208. *-*-irix6*)
  5209. # Find out which ABI we are using.
  5210. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5212. (eval $ac_compile) 2>&5
  5213. ac_status=$?
  5214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5215. test $ac_status = 0; }; then
  5216. if test "$lt_cv_prog_gnu_ld" = yes; then
  5217. case `/usr/bin/file conftest.$ac_objext` in
  5218. *32-bit*)
  5219. LD="${LD-ld} -melf32bsmip"
  5220. ;;
  5221. *N32*)
  5222. LD="${LD-ld} -melf32bmipn32"
  5223. ;;
  5224. *64-bit*)
  5225. LD="${LD-ld} -melf64bmip"
  5226. ;;
  5227. esac
  5228. else
  5229. case `/usr/bin/file conftest.$ac_objext` in
  5230. *32-bit*)
  5231. LD="${LD-ld} -32"
  5232. ;;
  5233. *N32*)
  5234. LD="${LD-ld} -n32"
  5235. ;;
  5236. *64-bit*)
  5237. LD="${LD-ld} -64"
  5238. ;;
  5239. esac
  5240. fi
  5241. fi
  5242. rm -rf conftest*
  5243. ;;
  5244. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5245. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5246. # Find out which ABI we are using.
  5247. echo 'int i;' > conftest.$ac_ext
  5248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5249. (eval $ac_compile) 2>&5
  5250. ac_status=$?
  5251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5252. test $ac_status = 0; }; then
  5253. case `/usr/bin/file conftest.o` in
  5254. *32-bit*)
  5255. case $host in
  5256. x86_64-*kfreebsd*-gnu)
  5257. LD="${LD-ld} -m elf_i386_fbsd"
  5258. ;;
  5259. x86_64-*linux*)
  5260. LD="${LD-ld} -m elf_i386"
  5261. ;;
  5262. ppc64-*linux*|powerpc64-*linux*)
  5263. LD="${LD-ld} -m elf32ppclinux"
  5264. ;;
  5265. s390x-*linux*)
  5266. LD="${LD-ld} -m elf_s390"
  5267. ;;
  5268. sparc64-*linux*)
  5269. LD="${LD-ld} -m elf32_sparc"
  5270. ;;
  5271. esac
  5272. ;;
  5273. *64-bit*)
  5274. case $host in
  5275. x86_64-*kfreebsd*-gnu)
  5276. LD="${LD-ld} -m elf_x86_64_fbsd"
  5277. ;;
  5278. x86_64-*linux*)
  5279. LD="${LD-ld} -m elf_x86_64"
  5280. ;;
  5281. powerpc64le-*linux*)
  5282. LD="${LD-ld} -m elf64lppc"
  5283. ;;
  5284. powerpc64-*linux*)
  5285. LD="${LD-ld} -m elf64ppc"
  5286. ;;
  5287. s390*-*linux*|s390*-*tpf*)
  5288. LD="${LD-ld} -m elf64_s390"
  5289. ;;
  5290. sparc*-*linux*)
  5291. LD="${LD-ld} -m elf64_sparc"
  5292. ;;
  5293. esac
  5294. ;;
  5295. esac
  5296. fi
  5297. rm -rf conftest*
  5298. ;;
  5299. *-*-sco3.2v5*)
  5300. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5301. SAVE_CFLAGS="$CFLAGS"
  5302. CFLAGS="$CFLAGS -belf"
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5304. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5305. if ${lt_cv_cc_needs_belf+:} false; then :
  5306. $as_echo_n "(cached) " >&6
  5307. else
  5308. ac_ext=c
  5309. ac_cpp='$CPP $CPPFLAGS'
  5310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5314. /* end confdefs.h. */
  5315. int
  5316. main ()
  5317. {
  5318. ;
  5319. return 0;
  5320. }
  5321. _ACEOF
  5322. if ac_fn_c_try_link "$LINENO"; then :
  5323. lt_cv_cc_needs_belf=yes
  5324. else
  5325. lt_cv_cc_needs_belf=no
  5326. fi
  5327. rm -f core conftest.err conftest.$ac_objext \
  5328. conftest$ac_exeext conftest.$ac_ext
  5329. ac_ext=c
  5330. ac_cpp='$CPP $CPPFLAGS'
  5331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5334. fi
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5336. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5337. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5338. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5339. CFLAGS="$SAVE_CFLAGS"
  5340. fi
  5341. ;;
  5342. *-*solaris*)
  5343. # Find out which ABI we are using.
  5344. echo 'int i;' > conftest.$ac_ext
  5345. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5346. (eval $ac_compile) 2>&5
  5347. ac_status=$?
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5349. test $ac_status = 0; }; then
  5350. case `/usr/bin/file conftest.o` in
  5351. *64-bit*)
  5352. case $lt_cv_prog_gnu_ld in
  5353. yes*)
  5354. case $host in
  5355. i?86-*-solaris*)
  5356. LD="${LD-ld} -m elf_x86_64"
  5357. ;;
  5358. sparc*-*-solaris*)
  5359. LD="${LD-ld} -m elf64_sparc"
  5360. ;;
  5361. esac
  5362. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5363. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5364. LD="${LD-ld}_sol2"
  5365. fi
  5366. ;;
  5367. *)
  5368. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5369. LD="${LD-ld} -64"
  5370. fi
  5371. ;;
  5372. esac
  5373. ;;
  5374. esac
  5375. fi
  5376. rm -rf conftest*
  5377. ;;
  5378. esac
  5379. need_locks="$enable_libtool_lock"
  5380. if test -n "$ac_tool_prefix"; then
  5381. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5382. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$MANIFEST_TOOL"; then
  5389. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5398. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5408. if test -n "$MANIFEST_TOOL"; then
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5410. $as_echo "$MANIFEST_TOOL" >&6; }
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. fi
  5416. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5417. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5418. # Extract the first word of "mt", so it can be a program name with args.
  5419. set dummy mt; ac_word=$2
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5421. $as_echo_n "checking for $ac_word... " >&6; }
  5422. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5426. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. for ac_exec_ext in '' $ac_executable_extensions; do
  5434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5435. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5437. break 2
  5438. fi
  5439. done
  5440. done
  5441. IFS=$as_save_IFS
  5442. fi
  5443. fi
  5444. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5445. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5447. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5448. else
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5450. $as_echo "no" >&6; }
  5451. fi
  5452. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5453. MANIFEST_TOOL=":"
  5454. else
  5455. case $cross_compiling:$ac_tool_warned in
  5456. yes:)
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5459. ac_tool_warned=yes ;;
  5460. esac
  5461. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5462. fi
  5463. else
  5464. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5465. fi
  5466. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5468. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5469. if ${lt_cv_path_mainfest_tool+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. lt_cv_path_mainfest_tool=no
  5473. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5474. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5475. cat conftest.err >&5
  5476. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5477. lt_cv_path_mainfest_tool=yes
  5478. fi
  5479. rm -f conftest*
  5480. fi
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5482. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5483. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5484. MANIFEST_TOOL=:
  5485. fi
  5486. case $host_os in
  5487. rhapsody* | darwin*)
  5488. if test -n "$ac_tool_prefix"; then
  5489. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5490. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$DSYMUTIL"; then
  5497. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5506. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5516. if test -n "$DSYMUTIL"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5518. $as_echo "$DSYMUTIL" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. fi
  5524. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5525. ac_ct_DSYMUTIL=$DSYMUTIL
  5526. # Extract the first word of "dsymutil", so it can be a program name with args.
  5527. set dummy dsymutil; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$ac_ct_DSYMUTIL"; then
  5534. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5553. if test -n "$ac_ct_DSYMUTIL"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5555. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. if test "x$ac_ct_DSYMUTIL" = x; then
  5561. DSYMUTIL=":"
  5562. else
  5563. case $cross_compiling:$ac_tool_warned in
  5564. yes:)
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5567. ac_tool_warned=yes ;;
  5568. esac
  5569. DSYMUTIL=$ac_ct_DSYMUTIL
  5570. fi
  5571. else
  5572. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5573. fi
  5574. if test -n "$ac_tool_prefix"; then
  5575. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5576. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5578. $as_echo_n "checking for $ac_word... " >&6; }
  5579. if ${ac_cv_prog_NMEDIT+:} false; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. if test -n "$NMEDIT"; then
  5583. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5584. else
  5585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5586. for as_dir in $PATH
  5587. do
  5588. IFS=$as_save_IFS
  5589. test -z "$as_dir" && as_dir=.
  5590. for ac_exec_ext in '' $ac_executable_extensions; do
  5591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5592. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5594. break 2
  5595. fi
  5596. done
  5597. done
  5598. IFS=$as_save_IFS
  5599. fi
  5600. fi
  5601. NMEDIT=$ac_cv_prog_NMEDIT
  5602. if test -n "$NMEDIT"; then
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5604. $as_echo "$NMEDIT" >&6; }
  5605. else
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5607. $as_echo "no" >&6; }
  5608. fi
  5609. fi
  5610. if test -z "$ac_cv_prog_NMEDIT"; then
  5611. ac_ct_NMEDIT=$NMEDIT
  5612. # Extract the first word of "nmedit", so it can be a program name with args.
  5613. set dummy nmedit; ac_word=$2
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5615. $as_echo_n "checking for $ac_word... " >&6; }
  5616. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if test -n "$ac_ct_NMEDIT"; then
  5620. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5621. else
  5622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5623. for as_dir in $PATH
  5624. do
  5625. IFS=$as_save_IFS
  5626. test -z "$as_dir" && as_dir=.
  5627. for ac_exec_ext in '' $ac_executable_extensions; do
  5628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5629. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5631. break 2
  5632. fi
  5633. done
  5634. done
  5635. IFS=$as_save_IFS
  5636. fi
  5637. fi
  5638. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5639. if test -n "$ac_ct_NMEDIT"; then
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5641. $as_echo "$ac_ct_NMEDIT" >&6; }
  5642. else
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5644. $as_echo "no" >&6; }
  5645. fi
  5646. if test "x$ac_ct_NMEDIT" = x; then
  5647. NMEDIT=":"
  5648. else
  5649. case $cross_compiling:$ac_tool_warned in
  5650. yes:)
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5653. ac_tool_warned=yes ;;
  5654. esac
  5655. NMEDIT=$ac_ct_NMEDIT
  5656. fi
  5657. else
  5658. NMEDIT="$ac_cv_prog_NMEDIT"
  5659. fi
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if ${ac_cv_prog_LIPO+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$LIPO"; then
  5669. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. LIPO=$ac_cv_prog_LIPO
  5688. if test -n "$LIPO"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5690. $as_echo "$LIPO" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. fi
  5696. if test -z "$ac_cv_prog_LIPO"; then
  5697. ac_ct_LIPO=$LIPO
  5698. # Extract the first word of "lipo", so it can be a program name with args.
  5699. set dummy lipo; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$ac_ct_LIPO"; then
  5706. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_ac_ct_LIPO="lipo"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5725. if test -n "$ac_ct_LIPO"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5727. $as_echo "$ac_ct_LIPO" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. if test "x$ac_ct_LIPO" = x; then
  5733. LIPO=":"
  5734. else
  5735. case $cross_compiling:$ac_tool_warned in
  5736. yes:)
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5739. ac_tool_warned=yes ;;
  5740. esac
  5741. LIPO=$ac_ct_LIPO
  5742. fi
  5743. else
  5744. LIPO="$ac_cv_prog_LIPO"
  5745. fi
  5746. if test -n "$ac_tool_prefix"; then
  5747. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5748. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5750. $as_echo_n "checking for $ac_word... " >&6; }
  5751. if ${ac_cv_prog_OTOOL+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. if test -n "$OTOOL"; then
  5755. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5756. else
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5764. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. IFS=$as_save_IFS
  5771. fi
  5772. fi
  5773. OTOOL=$ac_cv_prog_OTOOL
  5774. if test -n "$OTOOL"; then
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5776. $as_echo "$OTOOL" >&6; }
  5777. else
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5779. $as_echo "no" >&6; }
  5780. fi
  5781. fi
  5782. if test -z "$ac_cv_prog_OTOOL"; then
  5783. ac_ct_OTOOL=$OTOOL
  5784. # Extract the first word of "otool", so it can be a program name with args.
  5785. set dummy otool; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$ac_ct_OTOOL"; then
  5792. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_prog_ac_ct_OTOOL="otool"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5811. if test -n "$ac_ct_OTOOL"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5813. $as_echo "$ac_ct_OTOOL" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. if test "x$ac_ct_OTOOL" = x; then
  5819. OTOOL=":"
  5820. else
  5821. case $cross_compiling:$ac_tool_warned in
  5822. yes:)
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5824. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5825. ac_tool_warned=yes ;;
  5826. esac
  5827. OTOOL=$ac_ct_OTOOL
  5828. fi
  5829. else
  5830. OTOOL="$ac_cv_prog_OTOOL"
  5831. fi
  5832. if test -n "$ac_tool_prefix"; then
  5833. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5834. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5836. $as_echo_n "checking for $ac_word... " >&6; }
  5837. if ${ac_cv_prog_OTOOL64+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. if test -n "$OTOOL64"; then
  5841. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5842. else
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5850. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. OTOOL64=$ac_cv_prog_OTOOL64
  5860. if test -n "$OTOOL64"; then
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5862. $as_echo "$OTOOL64" >&6; }
  5863. else
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5865. $as_echo "no" >&6; }
  5866. fi
  5867. fi
  5868. if test -z "$ac_cv_prog_OTOOL64"; then
  5869. ac_ct_OTOOL64=$OTOOL64
  5870. # Extract the first word of "otool64", so it can be a program name with args.
  5871. set dummy otool64; ac_word=$2
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5873. $as_echo_n "checking for $ac_word... " >&6; }
  5874. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5875. $as_echo_n "(cached) " >&6
  5876. else
  5877. if test -n "$ac_ct_OTOOL64"; then
  5878. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5879. else
  5880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5881. for as_dir in $PATH
  5882. do
  5883. IFS=$as_save_IFS
  5884. test -z "$as_dir" && as_dir=.
  5885. for ac_exec_ext in '' $ac_executable_extensions; do
  5886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5887. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5889. break 2
  5890. fi
  5891. done
  5892. done
  5893. IFS=$as_save_IFS
  5894. fi
  5895. fi
  5896. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5897. if test -n "$ac_ct_OTOOL64"; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5899. $as_echo "$ac_ct_OTOOL64" >&6; }
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5902. $as_echo "no" >&6; }
  5903. fi
  5904. if test "x$ac_ct_OTOOL64" = x; then
  5905. OTOOL64=":"
  5906. else
  5907. case $cross_compiling:$ac_tool_warned in
  5908. yes:)
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5910. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5911. ac_tool_warned=yes ;;
  5912. esac
  5913. OTOOL64=$ac_ct_OTOOL64
  5914. fi
  5915. else
  5916. OTOOL64="$ac_cv_prog_OTOOL64"
  5917. fi
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5919. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5920. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. lt_cv_apple_cc_single_mod=no
  5924. if test -z "${LT_MULTI_MODULE}"; then
  5925. # By default we will add the -single_module flag. You can override
  5926. # by either setting the environment variable LT_MULTI_MODULE
  5927. # non-empty at configure time, or by adding -multi_module to the
  5928. # link flags.
  5929. rm -rf libconftest.dylib*
  5930. echo "int foo(void){return 1;}" > conftest.c
  5931. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5932. -dynamiclib -Wl,-single_module conftest.c" >&5
  5933. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5934. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5935. _lt_result=$?
  5936. # If there is a non-empty error log, and "single_module"
  5937. # appears in it, assume the flag caused a linker warning
  5938. if test -s conftest.err && $GREP single_module conftest.err; then
  5939. cat conftest.err >&5
  5940. # Otherwise, if the output was created with a 0 exit code from
  5941. # the compiler, it worked.
  5942. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5943. lt_cv_apple_cc_single_mod=yes
  5944. else
  5945. cat conftest.err >&5
  5946. fi
  5947. rm -rf libconftest.dylib*
  5948. rm -f conftest.*
  5949. fi
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5952. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5954. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5955. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. lt_cv_ld_exported_symbols_list=no
  5959. save_LDFLAGS=$LDFLAGS
  5960. echo "_main" > conftest.sym
  5961. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5963. /* end confdefs.h. */
  5964. int
  5965. main ()
  5966. {
  5967. ;
  5968. return 0;
  5969. }
  5970. _ACEOF
  5971. if ac_fn_c_try_link "$LINENO"; then :
  5972. lt_cv_ld_exported_symbols_list=yes
  5973. else
  5974. lt_cv_ld_exported_symbols_list=no
  5975. fi
  5976. rm -f core conftest.err conftest.$ac_objext \
  5977. conftest$ac_exeext conftest.$ac_ext
  5978. LDFLAGS="$save_LDFLAGS"
  5979. fi
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5981. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5983. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5984. if ${lt_cv_ld_force_load+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. lt_cv_ld_force_load=no
  5988. cat > conftest.c << _LT_EOF
  5989. int forced_loaded() { return 2;}
  5990. _LT_EOF
  5991. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5992. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5993. echo "$AR cru libconftest.a conftest.o" >&5
  5994. $AR cru libconftest.a conftest.o 2>&5
  5995. echo "$RANLIB libconftest.a" >&5
  5996. $RANLIB libconftest.a 2>&5
  5997. cat > conftest.c << _LT_EOF
  5998. int main() { return 0;}
  5999. _LT_EOF
  6000. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6001. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6002. _lt_result=$?
  6003. if test -s conftest.err && $GREP force_load conftest.err; then
  6004. cat conftest.err >&5
  6005. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6006. lt_cv_ld_force_load=yes
  6007. else
  6008. cat conftest.err >&5
  6009. fi
  6010. rm -f conftest.err libconftest.a conftest conftest.c
  6011. rm -rf conftest.dSYM
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6014. $as_echo "$lt_cv_ld_force_load" >&6; }
  6015. case $host_os in
  6016. rhapsody* | darwin1.[012])
  6017. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6018. darwin1.*)
  6019. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6020. darwin*) # darwin 5.x on
  6021. # if running on 10.5 or later, the deployment target defaults
  6022. # to the OS version, if on x86, and 10.4, the deployment
  6023. # target defaults to 10.4. Don't you love it?
  6024. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6025. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6026. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6027. 10.[012]*)
  6028. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6029. 10.*)
  6030. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6031. esac
  6032. ;;
  6033. esac
  6034. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6035. _lt_dar_single_mod='$single_module'
  6036. fi
  6037. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6038. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6039. else
  6040. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6041. fi
  6042. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6043. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6044. else
  6045. _lt_dsymutil=
  6046. fi
  6047. ;;
  6048. esac
  6049. ac_ext=c
  6050. ac_cpp='$CPP $CPPFLAGS'
  6051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6055. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6056. # On Suns, sometimes $CPP names a directory.
  6057. if test -n "$CPP" && test -d "$CPP"; then
  6058. CPP=
  6059. fi
  6060. if test -z "$CPP"; then
  6061. if ${ac_cv_prog_CPP+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. # Double quotes because CPP needs to be expanded
  6065. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6066. do
  6067. ac_preproc_ok=false
  6068. for ac_c_preproc_warn_flag in '' yes
  6069. do
  6070. # Use a header file that comes with gcc, so configuring glibc
  6071. # with a fresh cross-compiler works.
  6072. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6073. # <limits.h> exists even on freestanding compilers.
  6074. # On the NeXT, cc -E runs the code through the compiler's parser,
  6075. # not just through cpp. "Syntax error" is here to catch this case.
  6076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. #ifdef __STDC__
  6079. # include <limits.h>
  6080. #else
  6081. # include <assert.h>
  6082. #endif
  6083. Syntax error
  6084. _ACEOF
  6085. if ac_fn_c_try_cpp "$LINENO"; then :
  6086. else
  6087. # Broken: fails on valid input.
  6088. continue
  6089. fi
  6090. rm -f conftest.err conftest.i conftest.$ac_ext
  6091. # OK, works on sane cases. Now check whether nonexistent headers
  6092. # can be detected and how.
  6093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6094. /* end confdefs.h. */
  6095. #include <ac_nonexistent.h>
  6096. _ACEOF
  6097. if ac_fn_c_try_cpp "$LINENO"; then :
  6098. # Broken: success on invalid input.
  6099. continue
  6100. else
  6101. # Passes both tests.
  6102. ac_preproc_ok=:
  6103. break
  6104. fi
  6105. rm -f conftest.err conftest.i conftest.$ac_ext
  6106. done
  6107. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6108. rm -f conftest.i conftest.err conftest.$ac_ext
  6109. if $ac_preproc_ok; then :
  6110. break
  6111. fi
  6112. done
  6113. ac_cv_prog_CPP=$CPP
  6114. fi
  6115. CPP=$ac_cv_prog_CPP
  6116. else
  6117. ac_cv_prog_CPP=$CPP
  6118. fi
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6120. $as_echo "$CPP" >&6; }
  6121. ac_preproc_ok=false
  6122. for ac_c_preproc_warn_flag in '' yes
  6123. do
  6124. # Use a header file that comes with gcc, so configuring glibc
  6125. # with a fresh cross-compiler works.
  6126. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6127. # <limits.h> exists even on freestanding compilers.
  6128. # On the NeXT, cc -E runs the code through the compiler's parser,
  6129. # not just through cpp. "Syntax error" is here to catch this case.
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. #ifdef __STDC__
  6133. # include <limits.h>
  6134. #else
  6135. # include <assert.h>
  6136. #endif
  6137. Syntax error
  6138. _ACEOF
  6139. if ac_fn_c_try_cpp "$LINENO"; then :
  6140. else
  6141. # Broken: fails on valid input.
  6142. continue
  6143. fi
  6144. rm -f conftest.err conftest.i conftest.$ac_ext
  6145. # OK, works on sane cases. Now check whether nonexistent headers
  6146. # can be detected and how.
  6147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6148. /* end confdefs.h. */
  6149. #include <ac_nonexistent.h>
  6150. _ACEOF
  6151. if ac_fn_c_try_cpp "$LINENO"; then :
  6152. # Broken: success on invalid input.
  6153. continue
  6154. else
  6155. # Passes both tests.
  6156. ac_preproc_ok=:
  6157. break
  6158. fi
  6159. rm -f conftest.err conftest.i conftest.$ac_ext
  6160. done
  6161. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6162. rm -f conftest.i conftest.err conftest.$ac_ext
  6163. if $ac_preproc_ok; then :
  6164. else
  6165. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6167. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6168. See \`config.log' for more details" "$LINENO" 5; }
  6169. fi
  6170. ac_ext=c
  6171. ac_cpp='$CPP $CPPFLAGS'
  6172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6176. $as_echo_n "checking for ANSI C header files... " >&6; }
  6177. if ${ac_cv_header_stdc+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <stdlib.h>
  6183. #include <stdarg.h>
  6184. #include <string.h>
  6185. #include <float.h>
  6186. int
  6187. main ()
  6188. {
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_c_try_compile "$LINENO"; then :
  6194. ac_cv_header_stdc=yes
  6195. else
  6196. ac_cv_header_stdc=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6199. if test $ac_cv_header_stdc = yes; then
  6200. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #include <string.h>
  6204. _ACEOF
  6205. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6206. $EGREP "memchr" >/dev/null 2>&1; then :
  6207. else
  6208. ac_cv_header_stdc=no
  6209. fi
  6210. rm -f conftest*
  6211. fi
  6212. if test $ac_cv_header_stdc = yes; then
  6213. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. #include <stdlib.h>
  6217. _ACEOF
  6218. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6219. $EGREP "free" >/dev/null 2>&1; then :
  6220. else
  6221. ac_cv_header_stdc=no
  6222. fi
  6223. rm -f conftest*
  6224. fi
  6225. if test $ac_cv_header_stdc = yes; then
  6226. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6227. if test "$cross_compiling" = yes; then :
  6228. :
  6229. else
  6230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6231. /* end confdefs.h. */
  6232. #include <ctype.h>
  6233. #include <stdlib.h>
  6234. #if ((' ' & 0x0FF) == 0x020)
  6235. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6236. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6237. #else
  6238. # define ISLOWER(c) \
  6239. (('a' <= (c) && (c) <= 'i') \
  6240. || ('j' <= (c) && (c) <= 'r') \
  6241. || ('s' <= (c) && (c) <= 'z'))
  6242. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6243. #endif
  6244. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6245. int
  6246. main ()
  6247. {
  6248. int i;
  6249. for (i = 0; i < 256; i++)
  6250. if (XOR (islower (i), ISLOWER (i))
  6251. || toupper (i) != TOUPPER (i))
  6252. return 2;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_run "$LINENO"; then :
  6257. else
  6258. ac_cv_header_stdc=no
  6259. fi
  6260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6262. fi
  6263. fi
  6264. fi
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6266. $as_echo "$ac_cv_header_stdc" >&6; }
  6267. if test $ac_cv_header_stdc = yes; then
  6268. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6269. fi
  6270. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6271. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6272. inttypes.h stdint.h unistd.h
  6273. do :
  6274. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6275. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6276. "
  6277. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6278. cat >>confdefs.h <<_ACEOF
  6279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6280. _ACEOF
  6281. fi
  6282. done
  6283. for ac_header in dlfcn.h
  6284. do :
  6285. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6286. "
  6287. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6288. cat >>confdefs.h <<_ACEOF
  6289. #define HAVE_DLFCN_H 1
  6290. _ACEOF
  6291. fi
  6292. done
  6293. # Set options
  6294. enable_win32_dll=yes
  6295. case $host in
  6296. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6297. if test -n "$ac_tool_prefix"; then
  6298. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6299. set dummy ${ac_tool_prefix}as; ac_word=$2
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6301. $as_echo_n "checking for $ac_word... " >&6; }
  6302. if ${ac_cv_prog_AS+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. if test -n "$AS"; then
  6306. ac_cv_prog_AS="$AS" # Let the user override the test.
  6307. else
  6308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6309. for as_dir in $PATH
  6310. do
  6311. IFS=$as_save_IFS
  6312. test -z "$as_dir" && as_dir=.
  6313. for ac_exec_ext in '' $ac_executable_extensions; do
  6314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6315. ac_cv_prog_AS="${ac_tool_prefix}as"
  6316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6317. break 2
  6318. fi
  6319. done
  6320. done
  6321. IFS=$as_save_IFS
  6322. fi
  6323. fi
  6324. AS=$ac_cv_prog_AS
  6325. if test -n "$AS"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6327. $as_echo "$AS" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6330. $as_echo "no" >&6; }
  6331. fi
  6332. fi
  6333. if test -z "$ac_cv_prog_AS"; then
  6334. ac_ct_AS=$AS
  6335. # Extract the first word of "as", so it can be a program name with args.
  6336. set dummy as; ac_word=$2
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6338. $as_echo_n "checking for $ac_word... " >&6; }
  6339. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. if test -n "$ac_ct_AS"; then
  6343. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6352. ac_cv_prog_ac_ct_AS="as"
  6353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6362. if test -n "$ac_ct_AS"; then
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6364. $as_echo "$ac_ct_AS" >&6; }
  6365. else
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. if test "x$ac_ct_AS" = x; then
  6370. AS="false"
  6371. else
  6372. case $cross_compiling:$ac_tool_warned in
  6373. yes:)
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6376. ac_tool_warned=yes ;;
  6377. esac
  6378. AS=$ac_ct_AS
  6379. fi
  6380. else
  6381. AS="$ac_cv_prog_AS"
  6382. fi
  6383. if test -n "$ac_tool_prefix"; then
  6384. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6385. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6387. $as_echo_n "checking for $ac_word... " >&6; }
  6388. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6389. $as_echo_n "(cached) " >&6
  6390. else
  6391. if test -n "$DLLTOOL"; then
  6392. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6393. else
  6394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6395. for as_dir in $PATH
  6396. do
  6397. IFS=$as_save_IFS
  6398. test -z "$as_dir" && as_dir=.
  6399. for ac_exec_ext in '' $ac_executable_extensions; do
  6400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6401. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6403. break 2
  6404. fi
  6405. done
  6406. done
  6407. IFS=$as_save_IFS
  6408. fi
  6409. fi
  6410. DLLTOOL=$ac_cv_prog_DLLTOOL
  6411. if test -n "$DLLTOOL"; then
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6413. $as_echo "$DLLTOOL" >&6; }
  6414. else
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6416. $as_echo "no" >&6; }
  6417. fi
  6418. fi
  6419. if test -z "$ac_cv_prog_DLLTOOL"; then
  6420. ac_ct_DLLTOOL=$DLLTOOL
  6421. # Extract the first word of "dlltool", so it can be a program name with args.
  6422. set dummy dlltool; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$ac_ct_DLLTOOL"; then
  6429. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6448. if test -n "$ac_ct_DLLTOOL"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6450. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. if test "x$ac_ct_DLLTOOL" = x; then
  6456. DLLTOOL="false"
  6457. else
  6458. case $cross_compiling:$ac_tool_warned in
  6459. yes:)
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6462. ac_tool_warned=yes ;;
  6463. esac
  6464. DLLTOOL=$ac_ct_DLLTOOL
  6465. fi
  6466. else
  6467. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6468. fi
  6469. if test -n "$ac_tool_prefix"; then
  6470. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6471. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6473. $as_echo_n "checking for $ac_word... " >&6; }
  6474. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. if test -n "$OBJDUMP"; then
  6478. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6479. else
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH
  6482. do
  6483. IFS=$as_save_IFS
  6484. test -z "$as_dir" && as_dir=.
  6485. for ac_exec_ext in '' $ac_executable_extensions; do
  6486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6487. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489. break 2
  6490. fi
  6491. done
  6492. done
  6493. IFS=$as_save_IFS
  6494. fi
  6495. fi
  6496. OBJDUMP=$ac_cv_prog_OBJDUMP
  6497. if test -n "$OBJDUMP"; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6499. $as_echo "$OBJDUMP" >&6; }
  6500. else
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6502. $as_echo "no" >&6; }
  6503. fi
  6504. fi
  6505. if test -z "$ac_cv_prog_OBJDUMP"; then
  6506. ac_ct_OBJDUMP=$OBJDUMP
  6507. # Extract the first word of "objdump", so it can be a program name with args.
  6508. set dummy objdump; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$ac_ct_OBJDUMP"; then
  6515. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6534. if test -n "$ac_ct_OBJDUMP"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6536. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. if test "x$ac_ct_OBJDUMP" = x; then
  6542. OBJDUMP="false"
  6543. else
  6544. case $cross_compiling:$ac_tool_warned in
  6545. yes:)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6548. ac_tool_warned=yes ;;
  6549. esac
  6550. OBJDUMP=$ac_ct_OBJDUMP
  6551. fi
  6552. else
  6553. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6554. fi
  6555. ;;
  6556. esac
  6557. test -z "$AS" && AS=as
  6558. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6559. test -z "$OBJDUMP" && OBJDUMP=objdump
  6560. enable_dlopen=no
  6561. # Check whether --enable-shared was given.
  6562. if test "${enable_shared+set}" = set; then :
  6563. enableval=$enable_shared; p=${PACKAGE-default}
  6564. case $enableval in
  6565. yes) enable_shared=yes ;;
  6566. no) enable_shared=no ;;
  6567. *)
  6568. enable_shared=no
  6569. # Look at the argument we got. We use all the common list separators.
  6570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6571. for pkg in $enableval; do
  6572. IFS="$lt_save_ifs"
  6573. if test "X$pkg" = "X$p"; then
  6574. enable_shared=yes
  6575. fi
  6576. done
  6577. IFS="$lt_save_ifs"
  6578. ;;
  6579. esac
  6580. else
  6581. enable_shared=yes
  6582. fi
  6583. # Check whether --enable-static was given.
  6584. if test "${enable_static+set}" = set; then :
  6585. enableval=$enable_static; p=${PACKAGE-default}
  6586. case $enableval in
  6587. yes) enable_static=yes ;;
  6588. no) enable_static=no ;;
  6589. *)
  6590. enable_static=no
  6591. # Look at the argument we got. We use all the common list separators.
  6592. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6593. for pkg in $enableval; do
  6594. IFS="$lt_save_ifs"
  6595. if test "X$pkg" = "X$p"; then
  6596. enable_static=yes
  6597. fi
  6598. done
  6599. IFS="$lt_save_ifs"
  6600. ;;
  6601. esac
  6602. else
  6603. enable_static=yes
  6604. fi
  6605. # Check whether --with-pic was given.
  6606. if test "${with_pic+set}" = set; then :
  6607. withval=$with_pic; lt_p=${PACKAGE-default}
  6608. case $withval in
  6609. yes|no) pic_mode=$withval ;;
  6610. *)
  6611. pic_mode=default
  6612. # Look at the argument we got. We use all the common list separators.
  6613. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6614. for lt_pkg in $withval; do
  6615. IFS="$lt_save_ifs"
  6616. if test "X$lt_pkg" = "X$lt_p"; then
  6617. pic_mode=yes
  6618. fi
  6619. done
  6620. IFS="$lt_save_ifs"
  6621. ;;
  6622. esac
  6623. else
  6624. pic_mode=default
  6625. fi
  6626. test -z "$pic_mode" && pic_mode=default
  6627. # Check whether --enable-fast-install was given.
  6628. if test "${enable_fast_install+set}" = set; then :
  6629. enableval=$enable_fast_install; p=${PACKAGE-default}
  6630. case $enableval in
  6631. yes) enable_fast_install=yes ;;
  6632. no) enable_fast_install=no ;;
  6633. *)
  6634. enable_fast_install=no
  6635. # Look at the argument we got. We use all the common list separators.
  6636. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6637. for pkg in $enableval; do
  6638. IFS="$lt_save_ifs"
  6639. if test "X$pkg" = "X$p"; then
  6640. enable_fast_install=yes
  6641. fi
  6642. done
  6643. IFS="$lt_save_ifs"
  6644. ;;
  6645. esac
  6646. else
  6647. enable_fast_install=yes
  6648. fi
  6649. # This can be used to rebuild libtool when needed
  6650. LIBTOOL_DEPS="$ltmain"
  6651. # Always use our own libtool.
  6652. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6653. test -z "$LN_S" && LN_S="ln -s"
  6654. if test -n "${ZSH_VERSION+set}" ; then
  6655. setopt NO_GLOB_SUBST
  6656. fi
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6658. $as_echo_n "checking for objdir... " >&6; }
  6659. if ${lt_cv_objdir+:} false; then :
  6660. $as_echo_n "(cached) " >&6
  6661. else
  6662. rm -f .libs 2>/dev/null
  6663. mkdir .libs 2>/dev/null
  6664. if test -d .libs; then
  6665. lt_cv_objdir=.libs
  6666. else
  6667. # MS-DOS does not allow filenames that begin with a dot.
  6668. lt_cv_objdir=_libs
  6669. fi
  6670. rmdir .libs 2>/dev/null
  6671. fi
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6673. $as_echo "$lt_cv_objdir" >&6; }
  6674. objdir=$lt_cv_objdir
  6675. cat >>confdefs.h <<_ACEOF
  6676. #define LT_OBJDIR "$lt_cv_objdir/"
  6677. _ACEOF
  6678. case $host_os in
  6679. aix3*)
  6680. # AIX sometimes has problems with the GCC collect2 program. For some
  6681. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6682. # vanish in a puff of smoke.
  6683. if test "X${COLLECT_NAMES+set}" != Xset; then
  6684. COLLECT_NAMES=
  6685. export COLLECT_NAMES
  6686. fi
  6687. ;;
  6688. esac
  6689. # Global variables:
  6690. ofile=libtool
  6691. can_build_shared=yes
  6692. # All known linkers require a `.a' archive for static linking (except MSVC,
  6693. # which needs '.lib').
  6694. libext=a
  6695. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6696. old_CC="$CC"
  6697. old_CFLAGS="$CFLAGS"
  6698. # Set sane defaults for various variables
  6699. test -z "$CC" && CC=cc
  6700. test -z "$LTCC" && LTCC=$CC
  6701. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6702. test -z "$LD" && LD=ld
  6703. test -z "$ac_objext" && ac_objext=o
  6704. for cc_temp in $compiler""; do
  6705. case $cc_temp in
  6706. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6707. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6708. \-*) ;;
  6709. *) break;;
  6710. esac
  6711. done
  6712. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6713. # Only perform the check for file, if the check method requires it
  6714. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6715. case $deplibs_check_method in
  6716. file_magic*)
  6717. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6719. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6720. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. case $MAGIC_CMD in
  6724. [\\/*] | ?:[\\/]*)
  6725. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6726. ;;
  6727. *)
  6728. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6729. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6730. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6731. for ac_dir in $ac_dummy; do
  6732. IFS="$lt_save_ifs"
  6733. test -z "$ac_dir" && ac_dir=.
  6734. if test -f $ac_dir/${ac_tool_prefix}file; then
  6735. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6736. if test -n "$file_magic_test_file"; then
  6737. case $deplibs_check_method in
  6738. "file_magic "*)
  6739. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6740. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6741. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6742. $EGREP "$file_magic_regex" > /dev/null; then
  6743. :
  6744. else
  6745. cat <<_LT_EOF 1>&2
  6746. *** Warning: the command libtool uses to detect shared libraries,
  6747. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6748. *** The result is that libtool may fail to recognize shared libraries
  6749. *** as such. This will affect the creation of libtool libraries that
  6750. *** depend on shared libraries, but programs linked with such libtool
  6751. *** libraries will work regardless of this problem. Nevertheless, you
  6752. *** may want to report the problem to your system manager and/or to
  6753. *** bug-libtool@gnu.org
  6754. _LT_EOF
  6755. fi ;;
  6756. esac
  6757. fi
  6758. break
  6759. fi
  6760. done
  6761. IFS="$lt_save_ifs"
  6762. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6763. ;;
  6764. esac
  6765. fi
  6766. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6767. if test -n "$MAGIC_CMD"; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6769. $as_echo "$MAGIC_CMD" >&6; }
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. $as_echo "no" >&6; }
  6773. fi
  6774. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6775. if test -n "$ac_tool_prefix"; then
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6777. $as_echo_n "checking for file... " >&6; }
  6778. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. case $MAGIC_CMD in
  6782. [\\/*] | ?:[\\/]*)
  6783. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6784. ;;
  6785. *)
  6786. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6787. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6788. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6789. for ac_dir in $ac_dummy; do
  6790. IFS="$lt_save_ifs"
  6791. test -z "$ac_dir" && ac_dir=.
  6792. if test -f $ac_dir/file; then
  6793. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6794. if test -n "$file_magic_test_file"; then
  6795. case $deplibs_check_method in
  6796. "file_magic "*)
  6797. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6798. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6799. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6800. $EGREP "$file_magic_regex" > /dev/null; then
  6801. :
  6802. else
  6803. cat <<_LT_EOF 1>&2
  6804. *** Warning: the command libtool uses to detect shared libraries,
  6805. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6806. *** The result is that libtool may fail to recognize shared libraries
  6807. *** as such. This will affect the creation of libtool libraries that
  6808. *** depend on shared libraries, but programs linked with such libtool
  6809. *** libraries will work regardless of this problem. Nevertheless, you
  6810. *** may want to report the problem to your system manager and/or to
  6811. *** bug-libtool@gnu.org
  6812. _LT_EOF
  6813. fi ;;
  6814. esac
  6815. fi
  6816. break
  6817. fi
  6818. done
  6819. IFS="$lt_save_ifs"
  6820. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6821. ;;
  6822. esac
  6823. fi
  6824. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6825. if test -n "$MAGIC_CMD"; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6827. $as_echo "$MAGIC_CMD" >&6; }
  6828. else
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6830. $as_echo "no" >&6; }
  6831. fi
  6832. else
  6833. MAGIC_CMD=:
  6834. fi
  6835. fi
  6836. fi
  6837. ;;
  6838. esac
  6839. # Use C for the default configuration in the libtool script
  6840. lt_save_CC="$CC"
  6841. ac_ext=c
  6842. ac_cpp='$CPP $CPPFLAGS'
  6843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6846. # Source file extension for C test sources.
  6847. ac_ext=c
  6848. # Object file extension for compiled C test sources.
  6849. objext=o
  6850. objext=$objext
  6851. # Code to be used in simple compile tests
  6852. lt_simple_compile_test_code="int some_variable = 0;"
  6853. # Code to be used in simple link tests
  6854. lt_simple_link_test_code='int main(){return(0);}'
  6855. # If no C compiler was specified, use CC.
  6856. LTCC=${LTCC-"$CC"}
  6857. # If no C compiler flags were specified, use CFLAGS.
  6858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6859. # Allow CC to be a program name with arguments.
  6860. compiler=$CC
  6861. # Save the default compiler, since it gets overwritten when the other
  6862. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6863. compiler_DEFAULT=$CC
  6864. # save warnings/boilerplate of simple test code
  6865. ac_outfile=conftest.$ac_objext
  6866. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6867. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6868. _lt_compiler_boilerplate=`cat conftest.err`
  6869. $RM conftest*
  6870. ac_outfile=conftest.$ac_objext
  6871. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6872. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6873. _lt_linker_boilerplate=`cat conftest.err`
  6874. $RM -r conftest*
  6875. ## CAVEAT EMPTOR:
  6876. ## There is no encapsulation within the following macros, do not change
  6877. ## the running order or otherwise move them around unless you know exactly
  6878. ## what you are doing...
  6879. if test -n "$compiler"; then
  6880. lt_prog_compiler_no_builtin_flag=
  6881. if test "$GCC" = yes; then
  6882. case $cc_basename in
  6883. nvcc*)
  6884. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6885. *)
  6886. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6887. esac
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6889. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6890. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6891. $as_echo_n "(cached) " >&6
  6892. else
  6893. lt_cv_prog_compiler_rtti_exceptions=no
  6894. ac_outfile=conftest.$ac_objext
  6895. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6896. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6897. # Insert the option either (1) after the last *FLAGS variable, or
  6898. # (2) before a word containing "conftest.", or (3) at the end.
  6899. # Note that $ac_compile itself does not contain backslashes and begins
  6900. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6901. # The option is referenced via a variable to avoid confusing sed.
  6902. lt_compile=`echo "$ac_compile" | $SED \
  6903. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6904. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6905. -e 's:$: $lt_compiler_flag:'`
  6906. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6907. (eval "$lt_compile" 2>conftest.err)
  6908. ac_status=$?
  6909. cat conftest.err >&5
  6910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. if (exit $ac_status) && test -s "$ac_outfile"; then
  6912. # The compiler can only warn and ignore the option if not recognized
  6913. # So say no if there are warnings other than the usual output.
  6914. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6915. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6916. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6917. lt_cv_prog_compiler_rtti_exceptions=yes
  6918. fi
  6919. fi
  6920. $RM conftest*
  6921. fi
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6923. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6924. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6925. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6926. else
  6927. :
  6928. fi
  6929. fi
  6930. lt_prog_compiler_wl=
  6931. lt_prog_compiler_pic=
  6932. lt_prog_compiler_static=
  6933. if test "$GCC" = yes; then
  6934. lt_prog_compiler_wl='-Wl,'
  6935. lt_prog_compiler_static='-static'
  6936. case $host_os in
  6937. aix*)
  6938. # All AIX code is PIC.
  6939. if test "$host_cpu" = ia64; then
  6940. # AIX 5 now supports IA64 processor
  6941. lt_prog_compiler_static='-Bstatic'
  6942. fi
  6943. ;;
  6944. amigaos*)
  6945. case $host_cpu in
  6946. powerpc)
  6947. # see comment about AmigaOS4 .so support
  6948. lt_prog_compiler_pic='-fPIC'
  6949. ;;
  6950. m68k)
  6951. # FIXME: we need at least 68020 code to build shared libraries, but
  6952. # adding the `-m68020' flag to GCC prevents building anything better,
  6953. # like `-m68040'.
  6954. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6955. ;;
  6956. esac
  6957. ;;
  6958. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6959. # PIC is the default for these OSes.
  6960. ;;
  6961. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6962. # This hack is so that the source file can tell whether it is being
  6963. # built for inclusion in a dll (and should export symbols for example).
  6964. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6965. # (--disable-auto-import) libraries
  6966. lt_prog_compiler_pic='-DDLL_EXPORT'
  6967. ;;
  6968. darwin* | rhapsody*)
  6969. # PIC is the default on this platform
  6970. # Common symbols not allowed in MH_DYLIB files
  6971. lt_prog_compiler_pic='-fno-common'
  6972. ;;
  6973. haiku*)
  6974. # PIC is the default for Haiku.
  6975. # The "-static" flag exists, but is broken.
  6976. lt_prog_compiler_static=
  6977. ;;
  6978. hpux*)
  6979. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6980. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6981. # sets the default TLS model and affects inlining.
  6982. case $host_cpu in
  6983. hppa*64*)
  6984. # +Z the default
  6985. ;;
  6986. *)
  6987. lt_prog_compiler_pic='-fPIC'
  6988. ;;
  6989. esac
  6990. ;;
  6991. interix[3-9]*)
  6992. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6993. # Instead, we relocate shared libraries at runtime.
  6994. ;;
  6995. msdosdjgpp*)
  6996. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6997. # on systems that don't support them.
  6998. lt_prog_compiler_can_build_shared=no
  6999. enable_shared=no
  7000. ;;
  7001. *nto* | *qnx*)
  7002. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7003. # it will coredump.
  7004. lt_prog_compiler_pic='-fPIC -shared'
  7005. ;;
  7006. sysv4*MP*)
  7007. if test -d /usr/nec; then
  7008. lt_prog_compiler_pic=-Kconform_pic
  7009. fi
  7010. ;;
  7011. *)
  7012. lt_prog_compiler_pic='-fPIC'
  7013. ;;
  7014. esac
  7015. case $cc_basename in
  7016. nvcc*) # Cuda Compiler Driver 2.2
  7017. lt_prog_compiler_wl='-Xlinker '
  7018. if test -n "$lt_prog_compiler_pic"; then
  7019. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7020. fi
  7021. ;;
  7022. esac
  7023. else
  7024. # PORTME Check for flag to pass linker flags through the system compiler.
  7025. case $host_os in
  7026. aix*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. if test "$host_cpu" = ia64; then
  7029. # AIX 5 now supports IA64 processor
  7030. lt_prog_compiler_static='-Bstatic'
  7031. else
  7032. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7033. fi
  7034. ;;
  7035. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7036. # This hack is so that the source file can tell whether it is being
  7037. # built for inclusion in a dll (and should export symbols for example).
  7038. lt_prog_compiler_pic='-DDLL_EXPORT'
  7039. ;;
  7040. hpux9* | hpux10* | hpux11*)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7043. # not for PA HP-UX.
  7044. case $host_cpu in
  7045. hppa*64*|ia64*)
  7046. # +Z the default
  7047. ;;
  7048. *)
  7049. lt_prog_compiler_pic='+Z'
  7050. ;;
  7051. esac
  7052. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7053. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7054. ;;
  7055. irix5* | irix6* | nonstopux*)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. # PIC (with -KPIC) is the default.
  7058. lt_prog_compiler_static='-non_shared'
  7059. ;;
  7060. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7061. case $cc_basename in
  7062. # old Intel for x86_64 which still supported -KPIC.
  7063. ecc*)
  7064. lt_prog_compiler_wl='-Wl,'
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-static'
  7067. ;;
  7068. # icc used to be incompatible with GCC.
  7069. # ICC 10 doesn't accept -KPIC any more.
  7070. icc* | ifort*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='-fPIC'
  7073. lt_prog_compiler_static='-static'
  7074. ;;
  7075. # Lahey Fortran 8.1.
  7076. lf95*)
  7077. lt_prog_compiler_wl='-Wl,'
  7078. lt_prog_compiler_pic='--shared'
  7079. lt_prog_compiler_static='--static'
  7080. ;;
  7081. nagfor*)
  7082. # NAG Fortran compiler
  7083. lt_prog_compiler_wl='-Wl,-Wl,,'
  7084. lt_prog_compiler_pic='-PIC'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7088. # Portland Group compilers (*not* the Pentium gcc compiler,
  7089. # which looks to be a dead project)
  7090. lt_prog_compiler_wl='-Wl,'
  7091. lt_prog_compiler_pic='-fpic'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. ccc*)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. # All Alpha code is PIC.
  7097. lt_prog_compiler_static='-non_shared'
  7098. ;;
  7099. xl* | bgxl* | bgf* | mpixl*)
  7100. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7101. lt_prog_compiler_wl='-Wl,'
  7102. lt_prog_compiler_pic='-qpic'
  7103. lt_prog_compiler_static='-qstaticlink'
  7104. ;;
  7105. *)
  7106. case `$CC -V 2>&1 | sed 5q` in
  7107. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7108. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7109. lt_prog_compiler_pic='-KPIC'
  7110. lt_prog_compiler_static='-Bstatic'
  7111. lt_prog_compiler_wl=''
  7112. ;;
  7113. *Sun\ F* | *Sun*Fortran*)
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. lt_prog_compiler_wl='-Qoption ld '
  7117. ;;
  7118. *Sun\ C*)
  7119. # Sun C 5.9
  7120. lt_prog_compiler_pic='-KPIC'
  7121. lt_prog_compiler_static='-Bstatic'
  7122. lt_prog_compiler_wl='-Wl,'
  7123. ;;
  7124. *Intel*\ [CF]*Compiler*)
  7125. lt_prog_compiler_wl='-Wl,'
  7126. lt_prog_compiler_pic='-fPIC'
  7127. lt_prog_compiler_static='-static'
  7128. ;;
  7129. *Portland\ Group*)
  7130. lt_prog_compiler_wl='-Wl,'
  7131. lt_prog_compiler_pic='-fpic'
  7132. lt_prog_compiler_static='-Bstatic'
  7133. ;;
  7134. esac
  7135. ;;
  7136. esac
  7137. ;;
  7138. newsos6)
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-Bstatic'
  7141. ;;
  7142. *nto* | *qnx*)
  7143. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7144. # it will coredump.
  7145. lt_prog_compiler_pic='-fPIC -shared'
  7146. ;;
  7147. osf3* | osf4* | osf5*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. # All OSF/1 code is PIC.
  7150. lt_prog_compiler_static='-non_shared'
  7151. ;;
  7152. rdos*)
  7153. lt_prog_compiler_static='-non_shared'
  7154. ;;
  7155. solaris*)
  7156. lt_prog_compiler_pic='-KPIC'
  7157. lt_prog_compiler_static='-Bstatic'
  7158. case $cc_basename in
  7159. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7160. lt_prog_compiler_wl='-Qoption ld ';;
  7161. *)
  7162. lt_prog_compiler_wl='-Wl,';;
  7163. esac
  7164. ;;
  7165. sunos4*)
  7166. lt_prog_compiler_wl='-Qoption ld '
  7167. lt_prog_compiler_pic='-PIC'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. ;;
  7170. sysv4 | sysv4.2uw2* | sysv4.3*)
  7171. lt_prog_compiler_wl='-Wl,'
  7172. lt_prog_compiler_pic='-KPIC'
  7173. lt_prog_compiler_static='-Bstatic'
  7174. ;;
  7175. sysv4*MP*)
  7176. if test -d /usr/nec ;then
  7177. lt_prog_compiler_pic='-Kconform_pic'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. fi
  7180. ;;
  7181. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. lt_prog_compiler_pic='-KPIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. unicos*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_can_build_shared=no
  7189. ;;
  7190. uts4*)
  7191. lt_prog_compiler_pic='-pic'
  7192. lt_prog_compiler_static='-Bstatic'
  7193. ;;
  7194. *)
  7195. lt_prog_compiler_can_build_shared=no
  7196. ;;
  7197. esac
  7198. fi
  7199. case $host_os in
  7200. # For platforms which do not support PIC, -DPIC is meaningless:
  7201. *djgpp*)
  7202. lt_prog_compiler_pic=
  7203. ;;
  7204. *)
  7205. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7206. ;;
  7207. esac
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7209. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7210. if ${lt_cv_prog_compiler_pic+:} false; then :
  7211. $as_echo_n "(cached) " >&6
  7212. else
  7213. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7216. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7217. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7218. #
  7219. # Check to make sure the PIC flag actually works.
  7220. #
  7221. if test -n "$lt_prog_compiler_pic"; then
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7223. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7224. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7225. $as_echo_n "(cached) " >&6
  7226. else
  7227. lt_cv_prog_compiler_pic_works=no
  7228. ac_outfile=conftest.$ac_objext
  7229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7230. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7231. # Insert the option either (1) after the last *FLAGS variable, or
  7232. # (2) before a word containing "conftest.", or (3) at the end.
  7233. # Note that $ac_compile itself does not contain backslashes and begins
  7234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7235. # The option is referenced via a variable to avoid confusing sed.
  7236. lt_compile=`echo "$ac_compile" | $SED \
  7237. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7238. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7239. -e 's:$: $lt_compiler_flag:'`
  7240. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7241. (eval "$lt_compile" 2>conftest.err)
  7242. ac_status=$?
  7243. cat conftest.err >&5
  7244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245. if (exit $ac_status) && test -s "$ac_outfile"; then
  7246. # The compiler can only warn and ignore the option if not recognized
  7247. # So say no if there are warnings other than the usual output.
  7248. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7249. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7250. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7251. lt_cv_prog_compiler_pic_works=yes
  7252. fi
  7253. fi
  7254. $RM conftest*
  7255. fi
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7257. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7258. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7259. case $lt_prog_compiler_pic in
  7260. "" | " "*) ;;
  7261. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7262. esac
  7263. else
  7264. lt_prog_compiler_pic=
  7265. lt_prog_compiler_can_build_shared=no
  7266. fi
  7267. fi
  7268. #
  7269. # Check to make sure the static flag actually works.
  7270. #
  7271. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7273. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7274. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. lt_cv_prog_compiler_static_works=no
  7278. save_LDFLAGS="$LDFLAGS"
  7279. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7280. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7281. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7282. # The linker can only warn and ignore the option if not recognized
  7283. # So say no if there are warnings
  7284. if test -s conftest.err; then
  7285. # Append any errors to the config.log.
  7286. cat conftest.err 1>&5
  7287. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7288. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7289. if diff conftest.exp conftest.er2 >/dev/null; then
  7290. lt_cv_prog_compiler_static_works=yes
  7291. fi
  7292. else
  7293. lt_cv_prog_compiler_static_works=yes
  7294. fi
  7295. fi
  7296. $RM -r conftest*
  7297. LDFLAGS="$save_LDFLAGS"
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7300. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7301. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7302. :
  7303. else
  7304. lt_prog_compiler_static=
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7307. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7308. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. lt_cv_prog_compiler_c_o=no
  7312. $RM -r conftest 2>/dev/null
  7313. mkdir conftest
  7314. cd conftest
  7315. mkdir out
  7316. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7317. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7318. # Insert the option either (1) after the last *FLAGS variable, or
  7319. # (2) before a word containing "conftest.", or (3) at the end.
  7320. # Note that $ac_compile itself does not contain backslashes and begins
  7321. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7322. lt_compile=`echo "$ac_compile" | $SED \
  7323. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7324. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7325. -e 's:$: $lt_compiler_flag:'`
  7326. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7327. (eval "$lt_compile" 2>out/conftest.err)
  7328. ac_status=$?
  7329. cat out/conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7332. then
  7333. # The compiler can only warn and ignore the option if not recognized
  7334. # So say no if there are warnings
  7335. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7336. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7337. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7338. lt_cv_prog_compiler_c_o=yes
  7339. fi
  7340. fi
  7341. chmod u+w . 2>&5
  7342. $RM conftest*
  7343. # SGI C++ compiler will create directory out/ii_files/ for
  7344. # template instantiation
  7345. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7346. $RM out/* && rmdir out
  7347. cd ..
  7348. $RM -r conftest
  7349. $RM conftest*
  7350. fi
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7352. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7354. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7355. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. lt_cv_prog_compiler_c_o=no
  7359. $RM -r conftest 2>/dev/null
  7360. mkdir conftest
  7361. cd conftest
  7362. mkdir out
  7363. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7364. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7365. # Insert the option either (1) after the last *FLAGS variable, or
  7366. # (2) before a word containing "conftest.", or (3) at the end.
  7367. # Note that $ac_compile itself does not contain backslashes and begins
  7368. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7369. lt_compile=`echo "$ac_compile" | $SED \
  7370. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7371. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7372. -e 's:$: $lt_compiler_flag:'`
  7373. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7374. (eval "$lt_compile" 2>out/conftest.err)
  7375. ac_status=$?
  7376. cat out/conftest.err >&5
  7377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7378. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7379. then
  7380. # The compiler can only warn and ignore the option if not recognized
  7381. # So say no if there are warnings
  7382. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7383. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7384. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7385. lt_cv_prog_compiler_c_o=yes
  7386. fi
  7387. fi
  7388. chmod u+w . 2>&5
  7389. $RM conftest*
  7390. # SGI C++ compiler will create directory out/ii_files/ for
  7391. # template instantiation
  7392. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7393. $RM out/* && rmdir out
  7394. cd ..
  7395. $RM -r conftest
  7396. $RM conftest*
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7399. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7400. hard_links="nottested"
  7401. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7402. # do not overwrite the value of need_locks provided by the user
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7404. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7405. hard_links=yes
  7406. $RM conftest*
  7407. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7408. touch conftest.a
  7409. ln conftest.a conftest.b 2>&5 || hard_links=no
  7410. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7412. $as_echo "$hard_links" >&6; }
  7413. if test "$hard_links" = no; then
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7415. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7416. need_locks=warn
  7417. fi
  7418. else
  7419. need_locks=no
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7422. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7423. runpath_var=
  7424. allow_undefined_flag=
  7425. always_export_symbols=no
  7426. archive_cmds=
  7427. archive_expsym_cmds=
  7428. compiler_needs_object=no
  7429. enable_shared_with_static_runtimes=no
  7430. export_dynamic_flag_spec=
  7431. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7432. hardcode_automatic=no
  7433. hardcode_direct=no
  7434. hardcode_direct_absolute=no
  7435. hardcode_libdir_flag_spec=
  7436. hardcode_libdir_separator=
  7437. hardcode_minus_L=no
  7438. hardcode_shlibpath_var=unsupported
  7439. inherit_rpath=no
  7440. link_all_deplibs=unknown
  7441. module_cmds=
  7442. module_expsym_cmds=
  7443. old_archive_from_new_cmds=
  7444. old_archive_from_expsyms_cmds=
  7445. thread_safe_flag_spec=
  7446. whole_archive_flag_spec=
  7447. # include_expsyms should be a list of space-separated symbols to be *always*
  7448. # included in the symbol list
  7449. include_expsyms=
  7450. # exclude_expsyms can be an extended regexp of symbols to exclude
  7451. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7452. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7453. # as well as any symbol that contains `d'.
  7454. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7455. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7456. # platforms (ab)use it in PIC code, but their linkers get confused if
  7457. # the symbol is explicitly referenced. Since portable code cannot
  7458. # rely on this symbol name, it's probably fine to never include it in
  7459. # preloaded symbol tables.
  7460. # Exclude shared library initialization/finalization symbols.
  7461. extract_expsyms_cmds=
  7462. case $host_os in
  7463. cygwin* | mingw* | pw32* | cegcc*)
  7464. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7465. # When not using gcc, we currently assume that we are using
  7466. # Microsoft Visual C++.
  7467. if test "$GCC" != yes; then
  7468. with_gnu_ld=no
  7469. fi
  7470. ;;
  7471. interix*)
  7472. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7473. with_gnu_ld=yes
  7474. ;;
  7475. openbsd*)
  7476. with_gnu_ld=no
  7477. ;;
  7478. esac
  7479. ld_shlibs=yes
  7480. # On some targets, GNU ld is compatible enough with the native linker
  7481. # that we're better off using the native interface for both.
  7482. lt_use_gnu_ld_interface=no
  7483. if test "$with_gnu_ld" = yes; then
  7484. case $host_os in
  7485. aix*)
  7486. # The AIX port of GNU ld has always aspired to compatibility
  7487. # with the native linker. However, as the warning in the GNU ld
  7488. # block says, versions before 2.19.5* couldn't really create working
  7489. # shared libraries, regardless of the interface used.
  7490. case `$LD -v 2>&1` in
  7491. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7492. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7493. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7494. *)
  7495. lt_use_gnu_ld_interface=yes
  7496. ;;
  7497. esac
  7498. ;;
  7499. *)
  7500. lt_use_gnu_ld_interface=yes
  7501. ;;
  7502. esac
  7503. fi
  7504. if test "$lt_use_gnu_ld_interface" = yes; then
  7505. # If archive_cmds runs LD, not CC, wlarc should be empty
  7506. wlarc='${wl}'
  7507. # Set some defaults for GNU ld with shared library support. These
  7508. # are reset later if shared libraries are not supported. Putting them
  7509. # here allows them to be overridden if necessary.
  7510. runpath_var=LD_RUN_PATH
  7511. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7512. export_dynamic_flag_spec='${wl}--export-dynamic'
  7513. # ancient GNU ld didn't support --whole-archive et. al.
  7514. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7515. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7516. else
  7517. whole_archive_flag_spec=
  7518. fi
  7519. supports_anon_versioning=no
  7520. case `$LD -v 2>&1` in
  7521. *GNU\ gold*) supports_anon_versioning=yes ;;
  7522. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7523. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7524. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7525. *\ 2.11.*) ;; # other 2.11 versions
  7526. *) supports_anon_versioning=yes ;;
  7527. esac
  7528. # See if GNU ld supports shared libraries.
  7529. case $host_os in
  7530. aix[3-9]*)
  7531. # On AIX/PPC, the GNU linker is very broken
  7532. if test "$host_cpu" != ia64; then
  7533. ld_shlibs=no
  7534. cat <<_LT_EOF 1>&2
  7535. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7536. *** to be unable to reliably create shared libraries on AIX.
  7537. *** Therefore, libtool is disabling shared libraries support. If you
  7538. *** really care for shared libraries, you may want to install binutils
  7539. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7540. *** You will then need to restart the configuration process.
  7541. _LT_EOF
  7542. fi
  7543. ;;
  7544. amigaos*)
  7545. case $host_cpu in
  7546. powerpc)
  7547. # see comment about AmigaOS4 .so support
  7548. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. archive_expsym_cmds=''
  7550. ;;
  7551. m68k)
  7552. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7553. hardcode_libdir_flag_spec='-L$libdir'
  7554. hardcode_minus_L=yes
  7555. ;;
  7556. esac
  7557. ;;
  7558. beos*)
  7559. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7560. allow_undefined_flag=unsupported
  7561. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7562. # support --undefined. This deserves some investigation. FIXME
  7563. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7564. else
  7565. ld_shlibs=no
  7566. fi
  7567. ;;
  7568. cygwin* | mingw* | pw32* | cegcc*)
  7569. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7570. # as there is no search path for DLLs.
  7571. hardcode_libdir_flag_spec='-L$libdir'
  7572. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7573. allow_undefined_flag=unsupported
  7574. always_export_symbols=no
  7575. enable_shared_with_static_runtimes=yes
  7576. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7577. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7578. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7580. # If the export-symbols file already is a .def file (1st line
  7581. # is EXPORTS), use it as is; otherwise, prepend...
  7582. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7583. cp $export_symbols $output_objdir/$soname.def;
  7584. else
  7585. echo EXPORTS > $output_objdir/$soname.def;
  7586. cat $export_symbols >> $output_objdir/$soname.def;
  7587. fi~
  7588. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7589. else
  7590. ld_shlibs=no
  7591. fi
  7592. ;;
  7593. haiku*)
  7594. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7595. link_all_deplibs=yes
  7596. ;;
  7597. interix[3-9]*)
  7598. hardcode_direct=no
  7599. hardcode_shlibpath_var=no
  7600. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7601. export_dynamic_flag_spec='${wl}-E'
  7602. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7603. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7604. # default) and relocated if they conflict, which is a slow very memory
  7605. # consuming and fragmenting process. To avoid this, we pick a random,
  7606. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7607. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7608. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7609. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7610. ;;
  7611. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7612. tmp_diet=no
  7613. if test "$host_os" = linux-dietlibc; then
  7614. case $cc_basename in
  7615. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7616. esac
  7617. fi
  7618. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7619. && test "$tmp_diet" = no
  7620. then
  7621. tmp_addflag=' $pic_flag'
  7622. tmp_sharedflag='-shared'
  7623. case $cc_basename,$host_cpu in
  7624. pgcc*) # Portland Group C compiler
  7625. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7626. tmp_addflag=' $pic_flag'
  7627. ;;
  7628. pgf77* | pgf90* | pgf95* | pgfortran*)
  7629. # Portland Group f77 and f90 compilers
  7630. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7631. tmp_addflag=' $pic_flag -Mnomain' ;;
  7632. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7633. tmp_addflag=' -i_dynamic' ;;
  7634. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7635. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7636. ifc* | ifort*) # Intel Fortran compiler
  7637. tmp_addflag=' -nofor_main' ;;
  7638. lf95*) # Lahey Fortran 8.1
  7639. whole_archive_flag_spec=
  7640. tmp_sharedflag='--shared' ;;
  7641. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7642. tmp_sharedflag='-qmkshrobj'
  7643. tmp_addflag= ;;
  7644. nvcc*) # Cuda Compiler Driver 2.2
  7645. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7646. compiler_needs_object=yes
  7647. ;;
  7648. esac
  7649. case `$CC -V 2>&1 | sed 5q` in
  7650. *Sun\ C*) # Sun C 5.9
  7651. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7652. compiler_needs_object=yes
  7653. tmp_sharedflag='-G' ;;
  7654. *Sun\ F*) # Sun Fortran 8.3
  7655. tmp_sharedflag='-G' ;;
  7656. esac
  7657. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. if test "x$supports_anon_versioning" = xyes; then
  7659. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7660. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7661. echo "local: *; };" >> $output_objdir/$libname.ver~
  7662. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7663. fi
  7664. case $cc_basename in
  7665. xlf* | bgf* | bgxlf* | mpixlf*)
  7666. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7667. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7669. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7670. if test "x$supports_anon_versioning" = xyes; then
  7671. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7672. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7673. echo "local: *; };" >> $output_objdir/$libname.ver~
  7674. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7675. fi
  7676. ;;
  7677. esac
  7678. else
  7679. ld_shlibs=no
  7680. fi
  7681. ;;
  7682. netbsd*)
  7683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7684. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7685. wlarc=
  7686. else
  7687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. fi
  7690. ;;
  7691. solaris*)
  7692. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7693. ld_shlibs=no
  7694. cat <<_LT_EOF 1>&2
  7695. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7696. *** create shared libraries on Solaris systems. Therefore, libtool
  7697. *** is disabling shared libraries support. We urge you to upgrade GNU
  7698. *** binutils to release 2.9.1 or newer. Another option is to modify
  7699. *** your PATH or compiler configuration so that the native linker is
  7700. *** used, and then restart.
  7701. _LT_EOF
  7702. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7703. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7710. case `$LD -v 2>&1` in
  7711. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7712. ld_shlibs=no
  7713. cat <<_LT_EOF 1>&2
  7714. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7715. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7716. *** is disabling shared libraries support. We urge you to upgrade GNU
  7717. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7718. *** your PATH or compiler configuration so that the native linker is
  7719. *** used, and then restart.
  7720. _LT_EOF
  7721. ;;
  7722. *)
  7723. # For security reasons, it is highly recommended that you always
  7724. # use absolute paths for naming shared libraries, and exclude the
  7725. # DT_RUNPATH tag from executables and libraries. But doing so
  7726. # requires that you compile everything twice, which is a pain.
  7727. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7728. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7729. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7730. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7731. else
  7732. ld_shlibs=no
  7733. fi
  7734. ;;
  7735. esac
  7736. ;;
  7737. sunos4*)
  7738. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7739. wlarc=
  7740. hardcode_direct=yes
  7741. hardcode_shlibpath_var=no
  7742. ;;
  7743. *)
  7744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7745. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7746. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7747. else
  7748. ld_shlibs=no
  7749. fi
  7750. ;;
  7751. esac
  7752. if test "$ld_shlibs" = no; then
  7753. runpath_var=
  7754. hardcode_libdir_flag_spec=
  7755. export_dynamic_flag_spec=
  7756. whole_archive_flag_spec=
  7757. fi
  7758. else
  7759. # PORTME fill in a description of your system's linker (not GNU ld)
  7760. case $host_os in
  7761. aix3*)
  7762. allow_undefined_flag=unsupported
  7763. always_export_symbols=yes
  7764. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7765. # Note: this linker hardcodes the directories in LIBPATH if there
  7766. # are no directories specified by -L.
  7767. hardcode_minus_L=yes
  7768. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7769. # Neither direct hardcoding nor static linking is supported with a
  7770. # broken collect2.
  7771. hardcode_direct=unsupported
  7772. fi
  7773. ;;
  7774. aix[4-9]*)
  7775. if test "$host_cpu" = ia64; then
  7776. # On IA64, the linker does run time linking by default, so we don't
  7777. # have to do anything special.
  7778. aix_use_runtimelinking=no
  7779. exp_sym_flag='-Bexport'
  7780. no_entry_flag=""
  7781. else
  7782. # If we're using GNU nm, then we don't want the "-C" option.
  7783. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7784. # Also, AIX nm treats weak defined symbols like other global
  7785. # defined symbols, whereas GNU nm marks them as "W".
  7786. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7787. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7788. else
  7789. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7790. fi
  7791. aix_use_runtimelinking=no
  7792. # Test if we are trying to use run time linking or normal
  7793. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7794. # need to do runtime linking.
  7795. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7796. for ld_flag in $LDFLAGS; do
  7797. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7798. aix_use_runtimelinking=yes
  7799. break
  7800. fi
  7801. done
  7802. ;;
  7803. esac
  7804. exp_sym_flag='-bexport'
  7805. no_entry_flag='-bnoentry'
  7806. fi
  7807. # When large executables or shared objects are built, AIX ld can
  7808. # have problems creating the table of contents. If linking a library
  7809. # or program results in "error TOC overflow" add -mminimal-toc to
  7810. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7811. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7812. archive_cmds=''
  7813. hardcode_direct=yes
  7814. hardcode_direct_absolute=yes
  7815. hardcode_libdir_separator=':'
  7816. link_all_deplibs=yes
  7817. file_list_spec='${wl}-f,'
  7818. if test "$GCC" = yes; then
  7819. case $host_os in aix4.[012]|aix4.[012].*)
  7820. # We only want to do this on AIX 4.2 and lower, the check
  7821. # below for broken collect2 doesn't work under 4.3+
  7822. collect2name=`${CC} -print-prog-name=collect2`
  7823. if test -f "$collect2name" &&
  7824. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7825. then
  7826. # We have reworked collect2
  7827. :
  7828. else
  7829. # We have old collect2
  7830. hardcode_direct=unsupported
  7831. # It fails to find uninstalled libraries when the uninstalled
  7832. # path is not listed in the libpath. Setting hardcode_minus_L
  7833. # to unsupported forces relinking
  7834. hardcode_minus_L=yes
  7835. hardcode_libdir_flag_spec='-L$libdir'
  7836. hardcode_libdir_separator=
  7837. fi
  7838. ;;
  7839. esac
  7840. shared_flag='-shared'
  7841. if test "$aix_use_runtimelinking" = yes; then
  7842. shared_flag="$shared_flag "'${wl}-G'
  7843. fi
  7844. else
  7845. # not using gcc
  7846. if test "$host_cpu" = ia64; then
  7847. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7848. # chokes on -Wl,-G. The following line is correct:
  7849. shared_flag='-G'
  7850. else
  7851. if test "$aix_use_runtimelinking" = yes; then
  7852. shared_flag='${wl}-G'
  7853. else
  7854. shared_flag='${wl}-bM:SRE'
  7855. fi
  7856. fi
  7857. fi
  7858. export_dynamic_flag_spec='${wl}-bexpall'
  7859. # It seems that -bexpall does not export symbols beginning with
  7860. # underscore (_), so it is better to generate a list of symbols to export.
  7861. always_export_symbols=yes
  7862. if test "$aix_use_runtimelinking" = yes; then
  7863. # Warning - without using the other runtime loading flags (-brtl),
  7864. # -berok will link without error, but may produce a broken library.
  7865. allow_undefined_flag='-berok'
  7866. # Determine the default libpath from the value encoded in an
  7867. # empty executable.
  7868. if test "${lt_cv_aix_libpath+set}" = set; then
  7869. aix_libpath=$lt_cv_aix_libpath
  7870. else
  7871. if ${lt_cv_aix_libpath_+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7875. /* end confdefs.h. */
  7876. int
  7877. main ()
  7878. {
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. if ac_fn_c_try_link "$LINENO"; then :
  7884. lt_aix_libpath_sed='
  7885. /Import File Strings/,/^$/ {
  7886. /^0/ {
  7887. s/^0 *\([^ ]*\) *$/\1/
  7888. p
  7889. }
  7890. }'
  7891. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7892. # Check for a 64-bit object if we didn't find anything.
  7893. if test -z "$lt_cv_aix_libpath_"; then
  7894. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. fi
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext \
  7898. conftest$ac_exeext conftest.$ac_ext
  7899. if test -z "$lt_cv_aix_libpath_"; then
  7900. lt_cv_aix_libpath_="/usr/lib:/lib"
  7901. fi
  7902. fi
  7903. aix_libpath=$lt_cv_aix_libpath_
  7904. fi
  7905. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7906. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7907. else
  7908. if test "$host_cpu" = ia64; then
  7909. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7910. allow_undefined_flag="-z nodefs"
  7911. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7912. else
  7913. # Determine the default libpath from the value encoded in an
  7914. # empty executable.
  7915. if test "${lt_cv_aix_libpath+set}" = set; then
  7916. aix_libpath=$lt_cv_aix_libpath
  7917. else
  7918. if ${lt_cv_aix_libpath_+:} false; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7922. /* end confdefs.h. */
  7923. int
  7924. main ()
  7925. {
  7926. ;
  7927. return 0;
  7928. }
  7929. _ACEOF
  7930. if ac_fn_c_try_link "$LINENO"; then :
  7931. lt_aix_libpath_sed='
  7932. /Import File Strings/,/^$/ {
  7933. /^0/ {
  7934. s/^0 *\([^ ]*\) *$/\1/
  7935. p
  7936. }
  7937. }'
  7938. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7939. # Check for a 64-bit object if we didn't find anything.
  7940. if test -z "$lt_cv_aix_libpath_"; then
  7941. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7942. fi
  7943. fi
  7944. rm -f core conftest.err conftest.$ac_objext \
  7945. conftest$ac_exeext conftest.$ac_ext
  7946. if test -z "$lt_cv_aix_libpath_"; then
  7947. lt_cv_aix_libpath_="/usr/lib:/lib"
  7948. fi
  7949. fi
  7950. aix_libpath=$lt_cv_aix_libpath_
  7951. fi
  7952. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7953. # Warning - without using the other run time loading flags,
  7954. # -berok will link without error, but may produce a broken library.
  7955. no_undefined_flag=' ${wl}-bernotok'
  7956. allow_undefined_flag=' ${wl}-berok'
  7957. if test "$with_gnu_ld" = yes; then
  7958. # We only use this code for GNU lds that support --whole-archive.
  7959. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7960. else
  7961. # Exported symbols can be pulled into shared objects from archives
  7962. whole_archive_flag_spec='$convenience'
  7963. fi
  7964. archive_cmds_need_lc=yes
  7965. # This is similar to how AIX traditionally builds its shared libraries.
  7966. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7967. fi
  7968. fi
  7969. ;;
  7970. amigaos*)
  7971. case $host_cpu in
  7972. powerpc)
  7973. # see comment about AmigaOS4 .so support
  7974. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7975. archive_expsym_cmds=''
  7976. ;;
  7977. m68k)
  7978. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7979. hardcode_libdir_flag_spec='-L$libdir'
  7980. hardcode_minus_L=yes
  7981. ;;
  7982. esac
  7983. ;;
  7984. bsdi[45]*)
  7985. export_dynamic_flag_spec=-rdynamic
  7986. ;;
  7987. cygwin* | mingw* | pw32* | cegcc*)
  7988. # When not using gcc, we currently assume that we are using
  7989. # Microsoft Visual C++.
  7990. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7991. # no search path for DLLs.
  7992. case $cc_basename in
  7993. cl*)
  7994. # Native MSVC
  7995. hardcode_libdir_flag_spec=' '
  7996. allow_undefined_flag=unsupported
  7997. always_export_symbols=yes
  7998. file_list_spec='@'
  7999. # Tell ltmain to make .lib files, not .a files.
  8000. libext=lib
  8001. # Tell ltmain to make .dll files, not .so files.
  8002. shrext_cmds=".dll"
  8003. # FIXME: Setting linknames here is a bad hack.
  8004. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8005. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8006. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8007. else
  8008. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8009. fi~
  8010. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8011. linknames='
  8012. # The linker will not automatically build a static lib if we build a DLL.
  8013. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8014. enable_shared_with_static_runtimes=yes
  8015. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8016. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8017. # Don't use ranlib
  8018. old_postinstall_cmds='chmod 644 $oldlib'
  8019. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8020. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8021. case $lt_outputfile in
  8022. *.exe|*.EXE) ;;
  8023. *)
  8024. lt_outputfile="$lt_outputfile.exe"
  8025. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8026. ;;
  8027. esac~
  8028. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8029. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8030. $RM "$lt_outputfile.manifest";
  8031. fi'
  8032. ;;
  8033. *)
  8034. # Assume MSVC wrapper
  8035. hardcode_libdir_flag_spec=' '
  8036. allow_undefined_flag=unsupported
  8037. # Tell ltmain to make .lib files, not .a files.
  8038. libext=lib
  8039. # Tell ltmain to make .dll files, not .so files.
  8040. shrext_cmds=".dll"
  8041. # FIXME: Setting linknames here is a bad hack.
  8042. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8043. # The linker will automatically build a .lib file if we build a DLL.
  8044. old_archive_from_new_cmds='true'
  8045. # FIXME: Should let the user specify the lib program.
  8046. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8047. enable_shared_with_static_runtimes=yes
  8048. ;;
  8049. esac
  8050. ;;
  8051. darwin* | rhapsody*)
  8052. archive_cmds_need_lc=no
  8053. hardcode_direct=no
  8054. hardcode_automatic=yes
  8055. hardcode_shlibpath_var=unsupported
  8056. if test "$lt_cv_ld_force_load" = "yes"; then
  8057. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8058. else
  8059. whole_archive_flag_spec=''
  8060. fi
  8061. link_all_deplibs=yes
  8062. allow_undefined_flag="$_lt_dar_allow_undefined"
  8063. case $cc_basename in
  8064. ifort*) _lt_dar_can_shared=yes ;;
  8065. *) _lt_dar_can_shared=$GCC ;;
  8066. esac
  8067. if test "$_lt_dar_can_shared" = "yes"; then
  8068. output_verbose_link_cmd=func_echo_all
  8069. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8070. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8071. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8072. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8073. else
  8074. ld_shlibs=no
  8075. fi
  8076. ;;
  8077. dgux*)
  8078. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8079. hardcode_libdir_flag_spec='-L$libdir'
  8080. hardcode_shlibpath_var=no
  8081. ;;
  8082. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8083. # support. Future versions do this automatically, but an explicit c++rt0.o
  8084. # does not break anything, and helps significantly (at the cost of a little
  8085. # extra space).
  8086. freebsd2.2*)
  8087. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8088. hardcode_libdir_flag_spec='-R$libdir'
  8089. hardcode_direct=yes
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8093. freebsd2.*)
  8094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8095. hardcode_direct=yes
  8096. hardcode_minus_L=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8100. freebsd* | dragonfly*)
  8101. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8102. hardcode_libdir_flag_spec='-R$libdir'
  8103. hardcode_direct=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. hpux9*)
  8107. if test "$GCC" = yes; then
  8108. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8109. else
  8110. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8111. fi
  8112. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8113. hardcode_libdir_separator=:
  8114. hardcode_direct=yes
  8115. # hardcode_minus_L: Not really in the search PATH,
  8116. # but as the default location of the library.
  8117. hardcode_minus_L=yes
  8118. export_dynamic_flag_spec='${wl}-E'
  8119. ;;
  8120. hpux10*)
  8121. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8122. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8123. else
  8124. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8125. fi
  8126. if test "$with_gnu_ld" = no; then
  8127. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8128. hardcode_libdir_separator=:
  8129. hardcode_direct=yes
  8130. hardcode_direct_absolute=yes
  8131. export_dynamic_flag_spec='${wl}-E'
  8132. # hardcode_minus_L: Not really in the search PATH,
  8133. # but as the default location of the library.
  8134. hardcode_minus_L=yes
  8135. fi
  8136. ;;
  8137. hpux11*)
  8138. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8139. case $host_cpu in
  8140. hppa*64*)
  8141. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8142. ;;
  8143. ia64*)
  8144. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. *)
  8147. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8148. ;;
  8149. esac
  8150. else
  8151. case $host_cpu in
  8152. hppa*64*)
  8153. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8154. ;;
  8155. ia64*)
  8156. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8157. ;;
  8158. *)
  8159. # Older versions of the 11.00 compiler do not understand -b yet
  8160. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8162. $as_echo_n "checking if $CC understands -b... " >&6; }
  8163. if ${lt_cv_prog_compiler__b+:} false; then :
  8164. $as_echo_n "(cached) " >&6
  8165. else
  8166. lt_cv_prog_compiler__b=no
  8167. save_LDFLAGS="$LDFLAGS"
  8168. LDFLAGS="$LDFLAGS -b"
  8169. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8170. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8171. # The linker can only warn and ignore the option if not recognized
  8172. # So say no if there are warnings
  8173. if test -s conftest.err; then
  8174. # Append any errors to the config.log.
  8175. cat conftest.err 1>&5
  8176. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8178. if diff conftest.exp conftest.er2 >/dev/null; then
  8179. lt_cv_prog_compiler__b=yes
  8180. fi
  8181. else
  8182. lt_cv_prog_compiler__b=yes
  8183. fi
  8184. fi
  8185. $RM -r conftest*
  8186. LDFLAGS="$save_LDFLAGS"
  8187. fi
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8189. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8190. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8191. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8192. else
  8193. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8194. fi
  8195. ;;
  8196. esac
  8197. fi
  8198. if test "$with_gnu_ld" = no; then
  8199. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8200. hardcode_libdir_separator=:
  8201. case $host_cpu in
  8202. hppa*64*|ia64*)
  8203. hardcode_direct=no
  8204. hardcode_shlibpath_var=no
  8205. ;;
  8206. *)
  8207. hardcode_direct=yes
  8208. hardcode_direct_absolute=yes
  8209. export_dynamic_flag_spec='${wl}-E'
  8210. # hardcode_minus_L: Not really in the search PATH,
  8211. # but as the default location of the library.
  8212. hardcode_minus_L=yes
  8213. ;;
  8214. esac
  8215. fi
  8216. ;;
  8217. irix5* | irix6* | nonstopux*)
  8218. if test "$GCC" = yes; then
  8219. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8220. # Try to use the -exported_symbol ld option, if it does not
  8221. # work, assume that -exports_file does not work either and
  8222. # implicitly export all symbols.
  8223. # This should be the same for all languages, so no per-tag cache variable.
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8225. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8226. if ${lt_cv_irix_exported_symbol+:} false; then :
  8227. $as_echo_n "(cached) " >&6
  8228. else
  8229. save_LDFLAGS="$LDFLAGS"
  8230. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8232. /* end confdefs.h. */
  8233. int foo (void) { return 0; }
  8234. _ACEOF
  8235. if ac_fn_c_try_link "$LINENO"; then :
  8236. lt_cv_irix_exported_symbol=yes
  8237. else
  8238. lt_cv_irix_exported_symbol=no
  8239. fi
  8240. rm -f core conftest.err conftest.$ac_objext \
  8241. conftest$ac_exeext conftest.$ac_ext
  8242. LDFLAGS="$save_LDFLAGS"
  8243. fi
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8245. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8246. if test "$lt_cv_irix_exported_symbol" = yes; then
  8247. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8248. fi
  8249. else
  8250. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8251. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8252. fi
  8253. archive_cmds_need_lc='no'
  8254. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8255. hardcode_libdir_separator=:
  8256. inherit_rpath=yes
  8257. link_all_deplibs=yes
  8258. ;;
  8259. netbsd*)
  8260. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8261. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8262. else
  8263. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8264. fi
  8265. hardcode_libdir_flag_spec='-R$libdir'
  8266. hardcode_direct=yes
  8267. hardcode_shlibpath_var=no
  8268. ;;
  8269. newsos6)
  8270. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8271. hardcode_direct=yes
  8272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8273. hardcode_libdir_separator=:
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. *nto* | *qnx*)
  8277. ;;
  8278. openbsd*)
  8279. if test -f /usr/libexec/ld.so; then
  8280. hardcode_direct=yes
  8281. hardcode_shlibpath_var=no
  8282. hardcode_direct_absolute=yes
  8283. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8284. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8285. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8286. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8287. export_dynamic_flag_spec='${wl}-E'
  8288. else
  8289. case $host_os in
  8290. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8291. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8292. hardcode_libdir_flag_spec='-R$libdir'
  8293. ;;
  8294. *)
  8295. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8296. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8297. ;;
  8298. esac
  8299. fi
  8300. else
  8301. ld_shlibs=no
  8302. fi
  8303. ;;
  8304. os2*)
  8305. hardcode_libdir_flag_spec='-L$libdir'
  8306. hardcode_minus_L=yes
  8307. allow_undefined_flag=unsupported
  8308. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8309. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8310. ;;
  8311. osf3*)
  8312. if test "$GCC" = yes; then
  8313. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8314. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8315. else
  8316. allow_undefined_flag=' -expect_unresolved \*'
  8317. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8318. fi
  8319. archive_cmds_need_lc='no'
  8320. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8321. hardcode_libdir_separator=:
  8322. ;;
  8323. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8324. if test "$GCC" = yes; then
  8325. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8326. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. else
  8329. allow_undefined_flag=' -expect_unresolved \*'
  8330. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8331. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8332. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8333. # Both c and cxx compiler support -rpath directly
  8334. hardcode_libdir_flag_spec='-rpath $libdir'
  8335. fi
  8336. archive_cmds_need_lc='no'
  8337. hardcode_libdir_separator=:
  8338. ;;
  8339. solaris*)
  8340. no_undefined_flag=' -z defs'
  8341. if test "$GCC" = yes; then
  8342. wlarc='${wl}'
  8343. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8344. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8345. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8346. else
  8347. case `$CC -V 2>&1` in
  8348. *"Compilers 5.0"*)
  8349. wlarc=''
  8350. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8353. ;;
  8354. *)
  8355. wlarc='${wl}'
  8356. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8357. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8358. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8359. ;;
  8360. esac
  8361. fi
  8362. hardcode_libdir_flag_spec='-R$libdir'
  8363. hardcode_shlibpath_var=no
  8364. case $host_os in
  8365. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8366. *)
  8367. # The compiler driver will combine and reorder linker options,
  8368. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8369. # but is careful enough not to reorder.
  8370. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8371. if test "$GCC" = yes; then
  8372. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8373. else
  8374. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8375. fi
  8376. ;;
  8377. esac
  8378. link_all_deplibs=yes
  8379. ;;
  8380. sunos4*)
  8381. if test "x$host_vendor" = xsequent; then
  8382. # Use $CC to link under sequent, because it throws in some extra .o
  8383. # files that make .init and .fini sections work.
  8384. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8385. else
  8386. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8387. fi
  8388. hardcode_libdir_flag_spec='-L$libdir'
  8389. hardcode_direct=yes
  8390. hardcode_minus_L=yes
  8391. hardcode_shlibpath_var=no
  8392. ;;
  8393. sysv4)
  8394. case $host_vendor in
  8395. sni)
  8396. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8397. hardcode_direct=yes # is this really true???
  8398. ;;
  8399. siemens)
  8400. ## LD is ld it makes a PLAMLIB
  8401. ## CC just makes a GrossModule.
  8402. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8403. reload_cmds='$CC -r -o $output$reload_objs'
  8404. hardcode_direct=no
  8405. ;;
  8406. motorola)
  8407. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8409. ;;
  8410. esac
  8411. runpath_var='LD_RUN_PATH'
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. sysv4.3*)
  8415. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8416. hardcode_shlibpath_var=no
  8417. export_dynamic_flag_spec='-Bexport'
  8418. ;;
  8419. sysv4*MP*)
  8420. if test -d /usr/nec; then
  8421. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8422. hardcode_shlibpath_var=no
  8423. runpath_var=LD_RUN_PATH
  8424. hardcode_runpath_var=yes
  8425. ld_shlibs=yes
  8426. fi
  8427. ;;
  8428. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8429. no_undefined_flag='${wl}-z,text'
  8430. archive_cmds_need_lc=no
  8431. hardcode_shlibpath_var=no
  8432. runpath_var='LD_RUN_PATH'
  8433. if test "$GCC" = yes; then
  8434. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. else
  8437. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. fi
  8440. ;;
  8441. sysv5* | sco3.2v5* | sco5v6*)
  8442. # Note: We can NOT use -z defs as we might desire, because we do not
  8443. # link with -lc, and that would cause any symbols used from libc to
  8444. # always be unresolved, which means just about no library would
  8445. # ever link correctly. If we're not using GNU ld we use -z text
  8446. # though, which does catch some bad symbols but isn't as heavy-handed
  8447. # as -z defs.
  8448. no_undefined_flag='${wl}-z,text'
  8449. allow_undefined_flag='${wl}-z,nodefs'
  8450. archive_cmds_need_lc=no
  8451. hardcode_shlibpath_var=no
  8452. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8453. hardcode_libdir_separator=':'
  8454. link_all_deplibs=yes
  8455. export_dynamic_flag_spec='${wl}-Bexport'
  8456. runpath_var='LD_RUN_PATH'
  8457. if test "$GCC" = yes; then
  8458. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. else
  8461. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8462. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. fi
  8464. ;;
  8465. uts4*)
  8466. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8467. hardcode_libdir_flag_spec='-L$libdir'
  8468. hardcode_shlibpath_var=no
  8469. ;;
  8470. *)
  8471. ld_shlibs=no
  8472. ;;
  8473. esac
  8474. if test x$host_vendor = xsni; then
  8475. case $host in
  8476. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8477. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8478. ;;
  8479. esac
  8480. fi
  8481. fi
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8483. $as_echo "$ld_shlibs" >&6; }
  8484. test "$ld_shlibs" = no && can_build_shared=no
  8485. with_gnu_ld=$with_gnu_ld
  8486. #
  8487. # Do we need to explicitly link libc?
  8488. #
  8489. case "x$archive_cmds_need_lc" in
  8490. x|xyes)
  8491. # Assume -lc should be added
  8492. archive_cmds_need_lc=yes
  8493. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8494. case $archive_cmds in
  8495. *'~'*)
  8496. # FIXME: we may have to deal with multi-command sequences.
  8497. ;;
  8498. '$CC '*)
  8499. # Test whether the compiler implicitly links with -lc since on some
  8500. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8501. # to ld, don't add -lc before -lgcc.
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8503. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8504. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8505. $as_echo_n "(cached) " >&6
  8506. else
  8507. $RM conftest*
  8508. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8509. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8510. (eval $ac_compile) 2>&5
  8511. ac_status=$?
  8512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8513. test $ac_status = 0; } 2>conftest.err; then
  8514. soname=conftest
  8515. lib=conftest
  8516. libobjs=conftest.$ac_objext
  8517. deplibs=
  8518. wl=$lt_prog_compiler_wl
  8519. pic_flag=$lt_prog_compiler_pic
  8520. compiler_flags=-v
  8521. linker_flags=-v
  8522. verstring=
  8523. output_objdir=.
  8524. libname=conftest
  8525. lt_save_allow_undefined_flag=$allow_undefined_flag
  8526. allow_undefined_flag=
  8527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8528. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8529. ac_status=$?
  8530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8531. test $ac_status = 0; }
  8532. then
  8533. lt_cv_archive_cmds_need_lc=no
  8534. else
  8535. lt_cv_archive_cmds_need_lc=yes
  8536. fi
  8537. allow_undefined_flag=$lt_save_allow_undefined_flag
  8538. else
  8539. cat conftest.err 1>&5
  8540. fi
  8541. $RM conftest*
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8544. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8545. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8546. ;;
  8547. esac
  8548. fi
  8549. ;;
  8550. esac
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8552. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8553. if test "$GCC" = yes; then
  8554. case $host_os in
  8555. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8556. *) lt_awk_arg="/^libraries:/" ;;
  8557. esac
  8558. case $host_os in
  8559. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8560. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8561. esac
  8562. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8563. case $lt_search_path_spec in
  8564. *\;*)
  8565. # if the path contains ";" then we assume it to be the separator
  8566. # otherwise default to the standard path separator (i.e. ":") - it is
  8567. # assumed that no part of a normal pathname contains ";" but that should
  8568. # okay in the real world where ";" in dirpaths is itself problematic.
  8569. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8570. ;;
  8571. *)
  8572. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8573. ;;
  8574. esac
  8575. # Ok, now we have the path, separated by spaces, we can step through it
  8576. # and add multilib dir if necessary...
  8577. lt_tmp_lt_search_path_spec=
  8578. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8579. # ...but if some path already ends with the multilib dir we assume
  8580. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8581. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8582. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8583. lt_multi_os_dir=
  8584. ;;
  8585. esac
  8586. for lt_sys_path in $lt_search_path_spec; do
  8587. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8588. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8589. elif test -n "$lt_multi_os_dir"; then
  8590. test -d "$lt_sys_path" && \
  8591. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8592. fi
  8593. done
  8594. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8595. BEGIN {RS=" "; FS="/|\n";} {
  8596. lt_foo="";
  8597. lt_count=0;
  8598. for (lt_i = NF; lt_i > 0; lt_i--) {
  8599. if ($lt_i != "" && $lt_i != ".") {
  8600. if ($lt_i == "..") {
  8601. lt_count++;
  8602. } else {
  8603. if (lt_count == 0) {
  8604. lt_foo="/" $lt_i lt_foo;
  8605. } else {
  8606. lt_count--;
  8607. }
  8608. }
  8609. }
  8610. }
  8611. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8612. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8613. }'`
  8614. # AWK program above erroneously prepends '/' to C:/dos/paths
  8615. # for these hosts.
  8616. case $host_os in
  8617. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8618. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8619. esac
  8620. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8621. else
  8622. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8623. fi
  8624. library_names_spec=
  8625. libname_spec='lib$name'
  8626. soname_spec=
  8627. shrext_cmds=".so"
  8628. postinstall_cmds=
  8629. postuninstall_cmds=
  8630. finish_cmds=
  8631. finish_eval=
  8632. shlibpath_var=
  8633. shlibpath_overrides_runpath=unknown
  8634. version_type=none
  8635. dynamic_linker="$host_os ld.so"
  8636. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8637. need_lib_prefix=unknown
  8638. hardcode_into_libs=no
  8639. # when you set need_version to no, make sure it does not cause -set_version
  8640. # flags to be left without arguments
  8641. need_version=unknown
  8642. case $host_os in
  8643. aix3*)
  8644. version_type=linux # correct to gnu/linux during the next big refactor
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8646. shlibpath_var=LIBPATH
  8647. # AIX 3 has no versioning support, so we append a major version to the name.
  8648. soname_spec='${libname}${release}${shared_ext}$major'
  8649. ;;
  8650. aix[4-9]*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. need_lib_prefix=no
  8653. need_version=no
  8654. hardcode_into_libs=yes
  8655. if test "$host_cpu" = ia64; then
  8656. # AIX 5 supports IA64
  8657. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. else
  8660. # With GCC up to 2.95.x, collect2 would create an import file
  8661. # for dependence libraries. The import file would start with
  8662. # the line `#! .'. This would cause the generated library to
  8663. # depend on `.', always an invalid library. This was fixed in
  8664. # development snapshots of GCC prior to 3.0.
  8665. case $host_os in
  8666. aix4 | aix4.[01] | aix4.[01].*)
  8667. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8668. echo ' yes '
  8669. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8670. :
  8671. else
  8672. can_build_shared=no
  8673. fi
  8674. ;;
  8675. esac
  8676. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8677. # soname into executable. Probably we can add versioning support to
  8678. # collect2, so additional links can be useful in future.
  8679. if test "$aix_use_runtimelinking" = yes; then
  8680. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8681. # instead of lib<name>.a to let people know that these are not
  8682. # typical AIX shared libraries.
  8683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8684. else
  8685. # We preserve .a as extension for shared libraries through AIX4.2
  8686. # and later when we are not doing run time linking.
  8687. library_names_spec='${libname}${release}.a $libname.a'
  8688. soname_spec='${libname}${release}${shared_ext}$major'
  8689. fi
  8690. shlibpath_var=LIBPATH
  8691. fi
  8692. ;;
  8693. amigaos*)
  8694. case $host_cpu in
  8695. powerpc)
  8696. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8697. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8699. ;;
  8700. m68k)
  8701. library_names_spec='$libname.ixlibrary $libname.a'
  8702. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8703. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8704. ;;
  8705. esac
  8706. ;;
  8707. beos*)
  8708. library_names_spec='${libname}${shared_ext}'
  8709. dynamic_linker="$host_os ld.so"
  8710. shlibpath_var=LIBRARY_PATH
  8711. ;;
  8712. bsdi[45]*)
  8713. version_type=linux # correct to gnu/linux during the next big refactor
  8714. need_version=no
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8716. soname_spec='${libname}${release}${shared_ext}$major'
  8717. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8718. shlibpath_var=LD_LIBRARY_PATH
  8719. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8720. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8721. # the default ld.so.conf also contains /usr/contrib/lib and
  8722. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8723. # libtool to hard-code these into programs
  8724. ;;
  8725. cygwin* | mingw* | pw32* | cegcc*)
  8726. version_type=windows
  8727. shrext_cmds=".dll"
  8728. need_version=no
  8729. need_lib_prefix=no
  8730. case $GCC,$cc_basename in
  8731. yes,*)
  8732. # gcc
  8733. library_names_spec='$libname.dll.a'
  8734. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8735. postinstall_cmds='base_file=`basename \${file}`~
  8736. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8737. dldir=$destdir/`dirname \$dlpath`~
  8738. test -d \$dldir || mkdir -p \$dldir~
  8739. $install_prog $dir/$dlname \$dldir/$dlname~
  8740. chmod a+x \$dldir/$dlname~
  8741. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8742. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8743. fi'
  8744. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8745. dlpath=$dir/\$dldll~
  8746. $RM \$dlpath'
  8747. shlibpath_overrides_runpath=yes
  8748. case $host_os in
  8749. cygwin*)
  8750. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8751. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8752. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8753. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8754. ;;
  8755. mingw* | cegcc*)
  8756. # MinGW DLLs use traditional 'lib' prefix
  8757. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8758. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8759. ;;
  8760. pw32*)
  8761. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8762. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8763. ;;
  8764. esac
  8765. dynamic_linker='Win32 ld.exe'
  8766. ;;
  8767. *,cl*)
  8768. # Native MSVC
  8769. libname_spec='$name'
  8770. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8771. library_names_spec='${libname}.dll.lib'
  8772. case $build_os in
  8773. mingw*)
  8774. sys_lib_search_path_spec=
  8775. lt_save_ifs=$IFS
  8776. IFS=';'
  8777. for lt_path in $LIB
  8778. do
  8779. IFS=$lt_save_ifs
  8780. # Let DOS variable expansion print the short 8.3 style file name.
  8781. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8782. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8783. done
  8784. IFS=$lt_save_ifs
  8785. # Convert to MSYS style.
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8787. ;;
  8788. cygwin*)
  8789. # Convert to unix form, then to dos form, then back to unix form
  8790. # but this time dos style (no spaces!) so that the unix form looks
  8791. # like /cygdrive/c/PROGRA~1:/cygdr...
  8792. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8793. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8794. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8795. ;;
  8796. *)
  8797. sys_lib_search_path_spec="$LIB"
  8798. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8799. # It is most probably a Windows format PATH.
  8800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8801. else
  8802. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8803. fi
  8804. # FIXME: find the short name or the path components, as spaces are
  8805. # common. (e.g. "Program Files" -> "PROGRA~1")
  8806. ;;
  8807. esac
  8808. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8809. postinstall_cmds='base_file=`basename \${file}`~
  8810. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8811. dldir=$destdir/`dirname \$dlpath`~
  8812. test -d \$dldir || mkdir -p \$dldir~
  8813. $install_prog $dir/$dlname \$dldir/$dlname'
  8814. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8815. dlpath=$dir/\$dldll~
  8816. $RM \$dlpath'
  8817. shlibpath_overrides_runpath=yes
  8818. dynamic_linker='Win32 link.exe'
  8819. ;;
  8820. *)
  8821. # Assume MSVC wrapper
  8822. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8823. dynamic_linker='Win32 ld.exe'
  8824. ;;
  8825. esac
  8826. # FIXME: first we should search . and the directory the executable is in
  8827. shlibpath_var=PATH
  8828. ;;
  8829. darwin* | rhapsody*)
  8830. dynamic_linker="$host_os dyld"
  8831. version_type=darwin
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8835. soname_spec='${libname}${release}${major}$shared_ext'
  8836. shlibpath_overrides_runpath=yes
  8837. shlibpath_var=DYLD_LIBRARY_PATH
  8838. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8839. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8840. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8841. ;;
  8842. dgux*)
  8843. version_type=linux # correct to gnu/linux during the next big refactor
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. ;;
  8850. freebsd* | dragonfly*)
  8851. # DragonFly does not have aout. When/if they implement a new
  8852. # versioning mechanism, adjust this.
  8853. if test -x /usr/bin/objformat; then
  8854. objformat=`/usr/bin/objformat`
  8855. else
  8856. case $host_os in
  8857. freebsd[23].*) objformat=aout ;;
  8858. *) objformat=elf ;;
  8859. esac
  8860. fi
  8861. version_type=freebsd-$objformat
  8862. case $version_type in
  8863. freebsd-elf*)
  8864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8865. need_version=no
  8866. need_lib_prefix=no
  8867. ;;
  8868. freebsd-*)
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8870. need_version=yes
  8871. ;;
  8872. esac
  8873. shlibpath_var=LD_LIBRARY_PATH
  8874. case $host_os in
  8875. freebsd2.*)
  8876. shlibpath_overrides_runpath=yes
  8877. ;;
  8878. freebsd3.[01]* | freebsdelf3.[01]*)
  8879. shlibpath_overrides_runpath=yes
  8880. hardcode_into_libs=yes
  8881. ;;
  8882. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8883. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. *) # from 4.6 on, and DragonFly
  8888. shlibpath_overrides_runpath=yes
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. esac
  8892. ;;
  8893. gnu*)
  8894. version_type=linux # correct to gnu/linux during the next big refactor
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8898. soname_spec='${libname}${release}${shared_ext}$major'
  8899. shlibpath_var=LD_LIBRARY_PATH
  8900. shlibpath_overrides_runpath=no
  8901. hardcode_into_libs=yes
  8902. ;;
  8903. haiku*)
  8904. version_type=linux # correct to gnu/linux during the next big refactor
  8905. need_lib_prefix=no
  8906. need_version=no
  8907. dynamic_linker="$host_os runtime_loader"
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8909. soname_spec='${libname}${release}${shared_ext}$major'
  8910. shlibpath_var=LIBRARY_PATH
  8911. shlibpath_overrides_runpath=yes
  8912. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8913. hardcode_into_libs=yes
  8914. ;;
  8915. hpux9* | hpux10* | hpux11*)
  8916. # Give a soname corresponding to the major version so that dld.sl refuses to
  8917. # link against other versions.
  8918. version_type=sunos
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. case $host_cpu in
  8922. ia64*)
  8923. shrext_cmds='.so'
  8924. hardcode_into_libs=yes
  8925. dynamic_linker="$host_os dld.so"
  8926. shlibpath_var=LD_LIBRARY_PATH
  8927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. if test "X$HPUX_IA64_MODE" = X32; then
  8931. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8932. else
  8933. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8934. fi
  8935. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8936. ;;
  8937. hppa*64*)
  8938. shrext_cmds='.sl'
  8939. hardcode_into_libs=yes
  8940. dynamic_linker="$host_os dld.sl"
  8941. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8942. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8946. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8947. ;;
  8948. *)
  8949. shrext_cmds='.sl'
  8950. dynamic_linker="$host_os dld.sl"
  8951. shlibpath_var=SHLIB_PATH
  8952. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8954. soname_spec='${libname}${release}${shared_ext}$major'
  8955. ;;
  8956. esac
  8957. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8958. postinstall_cmds='chmod 555 $lib'
  8959. # or fails outright, so override atomically:
  8960. install_override_mode=555
  8961. ;;
  8962. interix[3-9]*)
  8963. version_type=linux # correct to gnu/linux during the next big refactor
  8964. need_lib_prefix=no
  8965. need_version=no
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8967. soname_spec='${libname}${release}${shared_ext}$major'
  8968. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. shlibpath_overrides_runpath=no
  8971. hardcode_into_libs=yes
  8972. ;;
  8973. irix5* | irix6* | nonstopux*)
  8974. case $host_os in
  8975. nonstopux*) version_type=nonstopux ;;
  8976. *)
  8977. if test "$lt_cv_prog_gnu_ld" = yes; then
  8978. version_type=linux # correct to gnu/linux during the next big refactor
  8979. else
  8980. version_type=irix
  8981. fi ;;
  8982. esac
  8983. need_lib_prefix=no
  8984. need_version=no
  8985. soname_spec='${libname}${release}${shared_ext}$major'
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8987. case $host_os in
  8988. irix5* | nonstopux*)
  8989. libsuff= shlibsuff=
  8990. ;;
  8991. *)
  8992. case $LD in # libtool.m4 will add one of these switches to LD
  8993. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8994. libsuff= shlibsuff= libmagic=32-bit;;
  8995. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8996. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8997. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8998. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8999. *) libsuff= shlibsuff= libmagic=never-match;;
  9000. esac
  9001. ;;
  9002. esac
  9003. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9004. shlibpath_overrides_runpath=no
  9005. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9006. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. # No shared lib support for Linux oldld, aout, or coff.
  9010. linux*oldld* | linux*aout* | linux*coff*)
  9011. dynamic_linker=no
  9012. ;;
  9013. # This must be glibc/ELF.
  9014. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9015. version_type=linux # correct to gnu/linux during the next big refactor
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9021. shlibpath_var=LD_LIBRARY_PATH
  9022. shlibpath_overrides_runpath=no
  9023. # Some binutils ld are patched to set DT_RUNPATH
  9024. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9025. $as_echo_n "(cached) " >&6
  9026. else
  9027. lt_cv_shlibpath_overrides_runpath=no
  9028. save_LDFLAGS=$LDFLAGS
  9029. save_libdir=$libdir
  9030. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9031. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9033. /* end confdefs.h. */
  9034. int
  9035. main ()
  9036. {
  9037. ;
  9038. return 0;
  9039. }
  9040. _ACEOF
  9041. if ac_fn_c_try_link "$LINENO"; then :
  9042. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9043. lt_cv_shlibpath_overrides_runpath=yes
  9044. fi
  9045. fi
  9046. rm -f core conftest.err conftest.$ac_objext \
  9047. conftest$ac_exeext conftest.$ac_ext
  9048. LDFLAGS=$save_LDFLAGS
  9049. libdir=$save_libdir
  9050. fi
  9051. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9052. # This implies no fast_install, which is unacceptable.
  9053. # Some rework will be needed to allow for fast_install
  9054. # before this can be enabled.
  9055. hardcode_into_libs=yes
  9056. # Append ld.so.conf contents to the search path
  9057. if test -f /etc/ld.so.conf; then
  9058. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9059. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9060. fi
  9061. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9062. # powerpc, because MkLinux only supported shared libraries with the
  9063. # GNU dynamic linker. Since this was broken with cross compilers,
  9064. # most powerpc-linux boxes support dynamic linking these days and
  9065. # people can always --disable-shared, the test was removed, and we
  9066. # assume the GNU/Linux dynamic linker is in use.
  9067. dynamic_linker='GNU/Linux ld.so'
  9068. ;;
  9069. netbsd*)
  9070. version_type=sunos
  9071. need_lib_prefix=no
  9072. need_version=no
  9073. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9075. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9076. dynamic_linker='NetBSD (a.out) ld.so'
  9077. else
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. dynamic_linker='NetBSD ld.elf_so'
  9081. fi
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=yes
  9084. hardcode_into_libs=yes
  9085. ;;
  9086. newsos6)
  9087. version_type=linux # correct to gnu/linux during the next big refactor
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=yes
  9091. ;;
  9092. *nto* | *qnx*)
  9093. version_type=qnx
  9094. need_lib_prefix=no
  9095. need_version=no
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9097. soname_spec='${libname}${release}${shared_ext}$major'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. shlibpath_overrides_runpath=no
  9100. hardcode_into_libs=yes
  9101. dynamic_linker='ldqnx.so'
  9102. ;;
  9103. openbsd*)
  9104. version_type=sunos
  9105. sys_lib_dlsearch_path_spec="/usr/lib"
  9106. need_lib_prefix=no
  9107. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9108. case $host_os in
  9109. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9110. *) need_version=no ;;
  9111. esac
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9116. case $host_os in
  9117. openbsd2.[89] | openbsd2.[89].*)
  9118. shlibpath_overrides_runpath=no
  9119. ;;
  9120. *)
  9121. shlibpath_overrides_runpath=yes
  9122. ;;
  9123. esac
  9124. else
  9125. shlibpath_overrides_runpath=yes
  9126. fi
  9127. ;;
  9128. os2*)
  9129. libname_spec='$name'
  9130. shrext_cmds=".dll"
  9131. need_lib_prefix=no
  9132. library_names_spec='$libname${shared_ext} $libname.a'
  9133. dynamic_linker='OS/2 ld.exe'
  9134. shlibpath_var=LIBPATH
  9135. ;;
  9136. osf3* | osf4* | osf5*)
  9137. version_type=osf
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9144. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9145. ;;
  9146. rdos*)
  9147. dynamic_linker=no
  9148. ;;
  9149. solaris*)
  9150. version_type=linux # correct to gnu/linux during the next big refactor
  9151. need_lib_prefix=no
  9152. need_version=no
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. hardcode_into_libs=yes
  9158. # ldd complains unless libraries are executable
  9159. postinstall_cmds='chmod +x $lib'
  9160. ;;
  9161. sunos4*)
  9162. version_type=sunos
  9163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9164. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9165. shlibpath_var=LD_LIBRARY_PATH
  9166. shlibpath_overrides_runpath=yes
  9167. if test "$with_gnu_ld" = yes; then
  9168. need_lib_prefix=no
  9169. fi
  9170. need_version=yes
  9171. ;;
  9172. sysv4 | sysv4.3*)
  9173. version_type=linux # correct to gnu/linux during the next big refactor
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9175. soname_spec='${libname}${release}${shared_ext}$major'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. case $host_vendor in
  9178. sni)
  9179. shlibpath_overrides_runpath=no
  9180. need_lib_prefix=no
  9181. runpath_var=LD_RUN_PATH
  9182. ;;
  9183. siemens)
  9184. need_lib_prefix=no
  9185. ;;
  9186. motorola)
  9187. need_lib_prefix=no
  9188. need_version=no
  9189. shlibpath_overrides_runpath=no
  9190. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9191. ;;
  9192. esac
  9193. ;;
  9194. sysv4*MP*)
  9195. if test -d /usr/nec ;then
  9196. version_type=linux # correct to gnu/linux during the next big refactor
  9197. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9198. soname_spec='$libname${shared_ext}.$major'
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. fi
  9201. ;;
  9202. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9203. version_type=freebsd-elf
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=yes
  9210. hardcode_into_libs=yes
  9211. if test "$with_gnu_ld" = yes; then
  9212. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9213. else
  9214. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9215. case $host_os in
  9216. sco3.2v5*)
  9217. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9218. ;;
  9219. esac
  9220. fi
  9221. sys_lib_dlsearch_path_spec='/usr/lib'
  9222. ;;
  9223. tpf*)
  9224. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9225. version_type=linux # correct to gnu/linux during the next big refactor
  9226. need_lib_prefix=no
  9227. need_version=no
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=no
  9231. hardcode_into_libs=yes
  9232. ;;
  9233. uts4*)
  9234. version_type=linux # correct to gnu/linux during the next big refactor
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. soname_spec='${libname}${release}${shared_ext}$major'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. ;;
  9239. *)
  9240. dynamic_linker=no
  9241. ;;
  9242. esac
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9244. $as_echo "$dynamic_linker" >&6; }
  9245. test "$dynamic_linker" = no && can_build_shared=no
  9246. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9247. if test "$GCC" = yes; then
  9248. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9249. fi
  9250. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9251. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9252. fi
  9253. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9254. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9255. fi
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9257. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9258. hardcode_action=
  9259. if test -n "$hardcode_libdir_flag_spec" ||
  9260. test -n "$runpath_var" ||
  9261. test "X$hardcode_automatic" = "Xyes" ; then
  9262. # We can hardcode non-existent directories.
  9263. if test "$hardcode_direct" != no &&
  9264. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9265. # have to relink, otherwise we might link with an installed library
  9266. # when we should be linking with a yet-to-be-installed one
  9267. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9268. test "$hardcode_minus_L" != no; then
  9269. # Linking always hardcodes the temporary library directory.
  9270. hardcode_action=relink
  9271. else
  9272. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9273. hardcode_action=immediate
  9274. fi
  9275. else
  9276. # We cannot hardcode anything, or else we can only hardcode existing
  9277. # directories.
  9278. hardcode_action=unsupported
  9279. fi
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9281. $as_echo "$hardcode_action" >&6; }
  9282. if test "$hardcode_action" = relink ||
  9283. test "$inherit_rpath" = yes; then
  9284. # Fast installation is not supported
  9285. enable_fast_install=no
  9286. elif test "$shlibpath_overrides_runpath" = yes ||
  9287. test "$enable_shared" = no; then
  9288. # Fast installation is not necessary
  9289. enable_fast_install=needless
  9290. fi
  9291. if test "x$enable_dlopen" != xyes; then
  9292. enable_dlopen=unknown
  9293. enable_dlopen_self=unknown
  9294. enable_dlopen_self_static=unknown
  9295. else
  9296. lt_cv_dlopen=no
  9297. lt_cv_dlopen_libs=
  9298. case $host_os in
  9299. beos*)
  9300. lt_cv_dlopen="load_add_on"
  9301. lt_cv_dlopen_libs=
  9302. lt_cv_dlopen_self=yes
  9303. ;;
  9304. mingw* | pw32* | cegcc*)
  9305. lt_cv_dlopen="LoadLibrary"
  9306. lt_cv_dlopen_libs=
  9307. ;;
  9308. cygwin*)
  9309. lt_cv_dlopen="dlopen"
  9310. lt_cv_dlopen_libs=
  9311. ;;
  9312. darwin*)
  9313. # if libdl is installed we need to link against it
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9315. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9316. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9317. $as_echo_n "(cached) " >&6
  9318. else
  9319. ac_check_lib_save_LIBS=$LIBS
  9320. LIBS="-ldl $LIBS"
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. /* Override any GCC internal prototype to avoid an error.
  9324. Use char because int might match the return type of a GCC
  9325. builtin and then its argument prototype would still apply. */
  9326. #ifdef __cplusplus
  9327. extern "C"
  9328. #endif
  9329. char dlopen ();
  9330. int
  9331. main ()
  9332. {
  9333. return dlopen ();
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. if ac_fn_c_try_link "$LINENO"; then :
  9339. ac_cv_lib_dl_dlopen=yes
  9340. else
  9341. ac_cv_lib_dl_dlopen=no
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LIBS=$ac_check_lib_save_LIBS
  9346. fi
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9348. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9349. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9351. else
  9352. lt_cv_dlopen="dyld"
  9353. lt_cv_dlopen_libs=
  9354. lt_cv_dlopen_self=yes
  9355. fi
  9356. ;;
  9357. *)
  9358. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9359. if test "x$ac_cv_func_shl_load" = xyes; then :
  9360. lt_cv_dlopen="shl_load"
  9361. else
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9363. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9364. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9365. $as_echo_n "(cached) " >&6
  9366. else
  9367. ac_check_lib_save_LIBS=$LIBS
  9368. LIBS="-ldld $LIBS"
  9369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9370. /* end confdefs.h. */
  9371. /* Override any GCC internal prototype to avoid an error.
  9372. Use char because int might match the return type of a GCC
  9373. builtin and then its argument prototype would still apply. */
  9374. #ifdef __cplusplus
  9375. extern "C"
  9376. #endif
  9377. char shl_load ();
  9378. int
  9379. main ()
  9380. {
  9381. return shl_load ();
  9382. ;
  9383. return 0;
  9384. }
  9385. _ACEOF
  9386. if ac_fn_c_try_link "$LINENO"; then :
  9387. ac_cv_lib_dld_shl_load=yes
  9388. else
  9389. ac_cv_lib_dld_shl_load=no
  9390. fi
  9391. rm -f core conftest.err conftest.$ac_objext \
  9392. conftest$ac_exeext conftest.$ac_ext
  9393. LIBS=$ac_check_lib_save_LIBS
  9394. fi
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9396. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9397. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9398. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9399. else
  9400. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9401. if test "x$ac_cv_func_dlopen" = xyes; then :
  9402. lt_cv_dlopen="dlopen"
  9403. else
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9405. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9406. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9407. $as_echo_n "(cached) " >&6
  9408. else
  9409. ac_check_lib_save_LIBS=$LIBS
  9410. LIBS="-ldl $LIBS"
  9411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9412. /* end confdefs.h. */
  9413. /* Override any GCC internal prototype to avoid an error.
  9414. Use char because int might match the return type of a GCC
  9415. builtin and then its argument prototype would still apply. */
  9416. #ifdef __cplusplus
  9417. extern "C"
  9418. #endif
  9419. char dlopen ();
  9420. int
  9421. main ()
  9422. {
  9423. return dlopen ();
  9424. ;
  9425. return 0;
  9426. }
  9427. _ACEOF
  9428. if ac_fn_c_try_link "$LINENO"; then :
  9429. ac_cv_lib_dl_dlopen=yes
  9430. else
  9431. ac_cv_lib_dl_dlopen=no
  9432. fi
  9433. rm -f core conftest.err conftest.$ac_objext \
  9434. conftest$ac_exeext conftest.$ac_ext
  9435. LIBS=$ac_check_lib_save_LIBS
  9436. fi
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9438. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9439. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9440. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9441. else
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9443. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9444. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. ac_check_lib_save_LIBS=$LIBS
  9448. LIBS="-lsvld $LIBS"
  9449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9450. /* end confdefs.h. */
  9451. /* Override any GCC internal prototype to avoid an error.
  9452. Use char because int might match the return type of a GCC
  9453. builtin and then its argument prototype would still apply. */
  9454. #ifdef __cplusplus
  9455. extern "C"
  9456. #endif
  9457. char dlopen ();
  9458. int
  9459. main ()
  9460. {
  9461. return dlopen ();
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"; then :
  9467. ac_cv_lib_svld_dlopen=yes
  9468. else
  9469. ac_cv_lib_svld_dlopen=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext \
  9472. conftest$ac_exeext conftest.$ac_ext
  9473. LIBS=$ac_check_lib_save_LIBS
  9474. fi
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9476. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9477. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9478. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9479. else
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9481. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9482. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. ac_check_lib_save_LIBS=$LIBS
  9486. LIBS="-ldld $LIBS"
  9487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9488. /* end confdefs.h. */
  9489. /* Override any GCC internal prototype to avoid an error.
  9490. Use char because int might match the return type of a GCC
  9491. builtin and then its argument prototype would still apply. */
  9492. #ifdef __cplusplus
  9493. extern "C"
  9494. #endif
  9495. char dld_link ();
  9496. int
  9497. main ()
  9498. {
  9499. return dld_link ();
  9500. ;
  9501. return 0;
  9502. }
  9503. _ACEOF
  9504. if ac_fn_c_try_link "$LINENO"; then :
  9505. ac_cv_lib_dld_dld_link=yes
  9506. else
  9507. ac_cv_lib_dld_dld_link=no
  9508. fi
  9509. rm -f core conftest.err conftest.$ac_objext \
  9510. conftest$ac_exeext conftest.$ac_ext
  9511. LIBS=$ac_check_lib_save_LIBS
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9514. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9515. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9516. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9517. fi
  9518. fi
  9519. fi
  9520. fi
  9521. fi
  9522. fi
  9523. ;;
  9524. esac
  9525. if test "x$lt_cv_dlopen" != xno; then
  9526. enable_dlopen=yes
  9527. else
  9528. enable_dlopen=no
  9529. fi
  9530. case $lt_cv_dlopen in
  9531. dlopen)
  9532. save_CPPFLAGS="$CPPFLAGS"
  9533. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9534. save_LDFLAGS="$LDFLAGS"
  9535. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9536. save_LIBS="$LIBS"
  9537. LIBS="$lt_cv_dlopen_libs $LIBS"
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9539. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9540. if ${lt_cv_dlopen_self+:} false; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. if test "$cross_compiling" = yes; then :
  9544. lt_cv_dlopen_self=cross
  9545. else
  9546. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9547. lt_status=$lt_dlunknown
  9548. cat > conftest.$ac_ext <<_LT_EOF
  9549. #line $LINENO "configure"
  9550. #include "confdefs.h"
  9551. #if HAVE_DLFCN_H
  9552. #include <dlfcn.h>
  9553. #endif
  9554. #include <stdio.h>
  9555. #ifdef RTLD_GLOBAL
  9556. # define LT_DLGLOBAL RTLD_GLOBAL
  9557. #else
  9558. # ifdef DL_GLOBAL
  9559. # define LT_DLGLOBAL DL_GLOBAL
  9560. # else
  9561. # define LT_DLGLOBAL 0
  9562. # endif
  9563. #endif
  9564. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9565. find out it does not work in some platform. */
  9566. #ifndef LT_DLLAZY_OR_NOW
  9567. # ifdef RTLD_LAZY
  9568. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9569. # else
  9570. # ifdef DL_LAZY
  9571. # define LT_DLLAZY_OR_NOW DL_LAZY
  9572. # else
  9573. # ifdef RTLD_NOW
  9574. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9575. # else
  9576. # ifdef DL_NOW
  9577. # define LT_DLLAZY_OR_NOW DL_NOW
  9578. # else
  9579. # define LT_DLLAZY_OR_NOW 0
  9580. # endif
  9581. # endif
  9582. # endif
  9583. # endif
  9584. #endif
  9585. /* When -fvisbility=hidden is used, assume the code has been annotated
  9586. correspondingly for the symbols needed. */
  9587. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9588. int fnord () __attribute__((visibility("default")));
  9589. #endif
  9590. int fnord () { return 42; }
  9591. int main ()
  9592. {
  9593. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9594. int status = $lt_dlunknown;
  9595. if (self)
  9596. {
  9597. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9598. else
  9599. {
  9600. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9601. else puts (dlerror ());
  9602. }
  9603. /* dlclose (self); */
  9604. }
  9605. else
  9606. puts (dlerror ());
  9607. return status;
  9608. }
  9609. _LT_EOF
  9610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9611. (eval $ac_link) 2>&5
  9612. ac_status=$?
  9613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9614. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9615. (./conftest; exit; ) >&5 2>/dev/null
  9616. lt_status=$?
  9617. case x$lt_status in
  9618. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9619. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9620. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9621. esac
  9622. else :
  9623. # compilation failed
  9624. lt_cv_dlopen_self=no
  9625. fi
  9626. fi
  9627. rm -fr conftest*
  9628. fi
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9630. $as_echo "$lt_cv_dlopen_self" >&6; }
  9631. if test "x$lt_cv_dlopen_self" = xyes; then
  9632. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9634. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9635. if ${lt_cv_dlopen_self_static+:} false; then :
  9636. $as_echo_n "(cached) " >&6
  9637. else
  9638. if test "$cross_compiling" = yes; then :
  9639. lt_cv_dlopen_self_static=cross
  9640. else
  9641. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9642. lt_status=$lt_dlunknown
  9643. cat > conftest.$ac_ext <<_LT_EOF
  9644. #line $LINENO "configure"
  9645. #include "confdefs.h"
  9646. #if HAVE_DLFCN_H
  9647. #include <dlfcn.h>
  9648. #endif
  9649. #include <stdio.h>
  9650. #ifdef RTLD_GLOBAL
  9651. # define LT_DLGLOBAL RTLD_GLOBAL
  9652. #else
  9653. # ifdef DL_GLOBAL
  9654. # define LT_DLGLOBAL DL_GLOBAL
  9655. # else
  9656. # define LT_DLGLOBAL 0
  9657. # endif
  9658. #endif
  9659. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9660. find out it does not work in some platform. */
  9661. #ifndef LT_DLLAZY_OR_NOW
  9662. # ifdef RTLD_LAZY
  9663. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9664. # else
  9665. # ifdef DL_LAZY
  9666. # define LT_DLLAZY_OR_NOW DL_LAZY
  9667. # else
  9668. # ifdef RTLD_NOW
  9669. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9670. # else
  9671. # ifdef DL_NOW
  9672. # define LT_DLLAZY_OR_NOW DL_NOW
  9673. # else
  9674. # define LT_DLLAZY_OR_NOW 0
  9675. # endif
  9676. # endif
  9677. # endif
  9678. # endif
  9679. #endif
  9680. /* When -fvisbility=hidden is used, assume the code has been annotated
  9681. correspondingly for the symbols needed. */
  9682. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9683. int fnord () __attribute__((visibility("default")));
  9684. #endif
  9685. int fnord () { return 42; }
  9686. int main ()
  9687. {
  9688. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9689. int status = $lt_dlunknown;
  9690. if (self)
  9691. {
  9692. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9693. else
  9694. {
  9695. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9696. else puts (dlerror ());
  9697. }
  9698. /* dlclose (self); */
  9699. }
  9700. else
  9701. puts (dlerror ());
  9702. return status;
  9703. }
  9704. _LT_EOF
  9705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9706. (eval $ac_link) 2>&5
  9707. ac_status=$?
  9708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9709. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9710. (./conftest; exit; ) >&5 2>/dev/null
  9711. lt_status=$?
  9712. case x$lt_status in
  9713. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9714. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9715. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9716. esac
  9717. else :
  9718. # compilation failed
  9719. lt_cv_dlopen_self_static=no
  9720. fi
  9721. fi
  9722. rm -fr conftest*
  9723. fi
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9725. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9726. fi
  9727. CPPFLAGS="$save_CPPFLAGS"
  9728. LDFLAGS="$save_LDFLAGS"
  9729. LIBS="$save_LIBS"
  9730. ;;
  9731. esac
  9732. case $lt_cv_dlopen_self in
  9733. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9734. *) enable_dlopen_self=unknown ;;
  9735. esac
  9736. case $lt_cv_dlopen_self_static in
  9737. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9738. *) enable_dlopen_self_static=unknown ;;
  9739. esac
  9740. fi
  9741. striplib=
  9742. old_striplib=
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9744. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9745. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9746. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9747. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9749. $as_echo "yes" >&6; }
  9750. else
  9751. # FIXME - insert some real tests, host_os isn't really good enough
  9752. case $host_os in
  9753. darwin*)
  9754. if test -n "$STRIP" ; then
  9755. striplib="$STRIP -x"
  9756. old_striplib="$STRIP -S"
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9758. $as_echo "yes" >&6; }
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9761. $as_echo "no" >&6; }
  9762. fi
  9763. ;;
  9764. *)
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9766. $as_echo "no" >&6; }
  9767. ;;
  9768. esac
  9769. fi
  9770. # Report which library types will actually be built
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9772. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9774. $as_echo "$can_build_shared" >&6; }
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9776. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9777. test "$can_build_shared" = "no" && enable_shared=no
  9778. # On AIX, shared libraries and static libraries use the same namespace, and
  9779. # are all built from PIC.
  9780. case $host_os in
  9781. aix3*)
  9782. test "$enable_shared" = yes && enable_static=no
  9783. if test -n "$RANLIB"; then
  9784. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9785. postinstall_cmds='$RANLIB $lib'
  9786. fi
  9787. ;;
  9788. aix[4-9]*)
  9789. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9790. test "$enable_shared" = yes && enable_static=no
  9791. fi
  9792. ;;
  9793. esac
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9795. $as_echo "$enable_shared" >&6; }
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9797. $as_echo_n "checking whether to build static libraries... " >&6; }
  9798. # Make sure either enable_shared or enable_static is yes.
  9799. test "$enable_shared" = yes || enable_static=yes
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9801. $as_echo "$enable_static" >&6; }
  9802. fi
  9803. ac_ext=c
  9804. ac_cpp='$CPP $CPPFLAGS'
  9805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9808. CC="$lt_save_CC"
  9809. ac_config_commands="$ac_config_commands libtool"
  9810. # Only expand once:
  9811. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9812. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9813. LT_REVISION=$SDL_INTERFACE_AGE
  9814. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9815. ac_ext=c
  9816. ac_cpp='$CPP $CPPFLAGS'
  9817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9820. if test -n "$ac_tool_prefix"; then
  9821. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9822. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9824. $as_echo_n "checking for $ac_word... " >&6; }
  9825. if ${ac_cv_prog_CC+:} false; then :
  9826. $as_echo_n "(cached) " >&6
  9827. else
  9828. if test -n "$CC"; then
  9829. ac_cv_prog_CC="$CC" # Let the user override the test.
  9830. else
  9831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9832. for as_dir in $PATH
  9833. do
  9834. IFS=$as_save_IFS
  9835. test -z "$as_dir" && as_dir=.
  9836. for ac_exec_ext in '' $ac_executable_extensions; do
  9837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9838. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9840. break 2
  9841. fi
  9842. done
  9843. done
  9844. IFS=$as_save_IFS
  9845. fi
  9846. fi
  9847. CC=$ac_cv_prog_CC
  9848. if test -n "$CC"; then
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9850. $as_echo "$CC" >&6; }
  9851. else
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9853. $as_echo "no" >&6; }
  9854. fi
  9855. fi
  9856. if test -z "$ac_cv_prog_CC"; then
  9857. ac_ct_CC=$CC
  9858. # Extract the first word of "gcc", so it can be a program name with args.
  9859. set dummy gcc; ac_word=$2
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9861. $as_echo_n "checking for $ac_word... " >&6; }
  9862. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. if test -n "$ac_ct_CC"; then
  9866. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9867. else
  9868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9869. for as_dir in $PATH
  9870. do
  9871. IFS=$as_save_IFS
  9872. test -z "$as_dir" && as_dir=.
  9873. for ac_exec_ext in '' $ac_executable_extensions; do
  9874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9875. ac_cv_prog_ac_ct_CC="gcc"
  9876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9877. break 2
  9878. fi
  9879. done
  9880. done
  9881. IFS=$as_save_IFS
  9882. fi
  9883. fi
  9884. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9885. if test -n "$ac_ct_CC"; then
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9887. $as_echo "$ac_ct_CC" >&6; }
  9888. else
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9890. $as_echo "no" >&6; }
  9891. fi
  9892. if test "x$ac_ct_CC" = x; then
  9893. CC=""
  9894. else
  9895. case $cross_compiling:$ac_tool_warned in
  9896. yes:)
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9898. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9899. ac_tool_warned=yes ;;
  9900. esac
  9901. CC=$ac_ct_CC
  9902. fi
  9903. else
  9904. CC="$ac_cv_prog_CC"
  9905. fi
  9906. if test -z "$CC"; then
  9907. if test -n "$ac_tool_prefix"; then
  9908. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9909. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9911. $as_echo_n "checking for $ac_word... " >&6; }
  9912. if ${ac_cv_prog_CC+:} false; then :
  9913. $as_echo_n "(cached) " >&6
  9914. else
  9915. if test -n "$CC"; then
  9916. ac_cv_prog_CC="$CC" # Let the user override the test.
  9917. else
  9918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9919. for as_dir in $PATH
  9920. do
  9921. IFS=$as_save_IFS
  9922. test -z "$as_dir" && as_dir=.
  9923. for ac_exec_ext in '' $ac_executable_extensions; do
  9924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9925. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9927. break 2
  9928. fi
  9929. done
  9930. done
  9931. IFS=$as_save_IFS
  9932. fi
  9933. fi
  9934. CC=$ac_cv_prog_CC
  9935. if test -n "$CC"; then
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9937. $as_echo "$CC" >&6; }
  9938. else
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9940. $as_echo "no" >&6; }
  9941. fi
  9942. fi
  9943. fi
  9944. if test -z "$CC"; then
  9945. # Extract the first word of "cc", so it can be a program name with args.
  9946. set dummy cc; ac_word=$2
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9948. $as_echo_n "checking for $ac_word... " >&6; }
  9949. if ${ac_cv_prog_CC+:} false; then :
  9950. $as_echo_n "(cached) " >&6
  9951. else
  9952. if test -n "$CC"; then
  9953. ac_cv_prog_CC="$CC" # Let the user override the test.
  9954. else
  9955. ac_prog_rejected=no
  9956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9957. for as_dir in $PATH
  9958. do
  9959. IFS=$as_save_IFS
  9960. test -z "$as_dir" && as_dir=.
  9961. for ac_exec_ext in '' $ac_executable_extensions; do
  9962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9963. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9964. ac_prog_rejected=yes
  9965. continue
  9966. fi
  9967. ac_cv_prog_CC="cc"
  9968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9969. break 2
  9970. fi
  9971. done
  9972. done
  9973. IFS=$as_save_IFS
  9974. if test $ac_prog_rejected = yes; then
  9975. # We found a bogon in the path, so make sure we never use it.
  9976. set dummy $ac_cv_prog_CC
  9977. shift
  9978. if test $# != 0; then
  9979. # We chose a different compiler from the bogus one.
  9980. # However, it has the same basename, so the bogon will be chosen
  9981. # first if we set CC to just the basename; use the full file name.
  9982. shift
  9983. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9984. fi
  9985. fi
  9986. fi
  9987. fi
  9988. CC=$ac_cv_prog_CC
  9989. if test -n "$CC"; then
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9991. $as_echo "$CC" >&6; }
  9992. else
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9994. $as_echo "no" >&6; }
  9995. fi
  9996. fi
  9997. if test -z "$CC"; then
  9998. if test -n "$ac_tool_prefix"; then
  9999. for ac_prog in cl.exe
  10000. do
  10001. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10002. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10004. $as_echo_n "checking for $ac_word... " >&6; }
  10005. if ${ac_cv_prog_CC+:} false; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. if test -n "$CC"; then
  10009. ac_cv_prog_CC="$CC" # Let the user override the test.
  10010. else
  10011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10012. for as_dir in $PATH
  10013. do
  10014. IFS=$as_save_IFS
  10015. test -z "$as_dir" && as_dir=.
  10016. for ac_exec_ext in '' $ac_executable_extensions; do
  10017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10018. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10020. break 2
  10021. fi
  10022. done
  10023. done
  10024. IFS=$as_save_IFS
  10025. fi
  10026. fi
  10027. CC=$ac_cv_prog_CC
  10028. if test -n "$CC"; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10030. $as_echo "$CC" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. test -n "$CC" && break
  10036. done
  10037. fi
  10038. if test -z "$CC"; then
  10039. ac_ct_CC=$CC
  10040. for ac_prog in cl.exe
  10041. do
  10042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10043. set dummy $ac_prog; ac_word=$2
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10045. $as_echo_n "checking for $ac_word... " >&6; }
  10046. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10047. $as_echo_n "(cached) " >&6
  10048. else
  10049. if test -n "$ac_ct_CC"; then
  10050. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10051. else
  10052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10053. for as_dir in $PATH
  10054. do
  10055. IFS=$as_save_IFS
  10056. test -z "$as_dir" && as_dir=.
  10057. for ac_exec_ext in '' $ac_executable_extensions; do
  10058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10059. ac_cv_prog_ac_ct_CC="$ac_prog"
  10060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10061. break 2
  10062. fi
  10063. done
  10064. done
  10065. IFS=$as_save_IFS
  10066. fi
  10067. fi
  10068. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10069. if test -n "$ac_ct_CC"; then
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10071. $as_echo "$ac_ct_CC" >&6; }
  10072. else
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10074. $as_echo "no" >&6; }
  10075. fi
  10076. test -n "$ac_ct_CC" && break
  10077. done
  10078. if test "x$ac_ct_CC" = x; then
  10079. CC=""
  10080. else
  10081. case $cross_compiling:$ac_tool_warned in
  10082. yes:)
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10084. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10085. ac_tool_warned=yes ;;
  10086. esac
  10087. CC=$ac_ct_CC
  10088. fi
  10089. fi
  10090. fi
  10091. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10092. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10093. as_fn_error $? "no acceptable C compiler found in \$PATH
  10094. See \`config.log' for more details" "$LINENO" 5; }
  10095. # Provide some information about the compiler.
  10096. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10097. set X $ac_compile
  10098. ac_compiler=$2
  10099. for ac_option in --version -v -V -qversion; do
  10100. { { ac_try="$ac_compiler $ac_option >&5"
  10101. case "(($ac_try" in
  10102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10103. *) ac_try_echo=$ac_try;;
  10104. esac
  10105. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10106. $as_echo "$ac_try_echo"; } >&5
  10107. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10108. ac_status=$?
  10109. if test -s conftest.err; then
  10110. sed '10a\
  10111. ... rest of stderr output deleted ...
  10112. 10q' conftest.err >conftest.er1
  10113. cat conftest.er1 >&5
  10114. fi
  10115. rm -f conftest.er1 conftest.err
  10116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10117. test $ac_status = 0; }
  10118. done
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10120. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10121. if ${ac_cv_c_compiler_gnu+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10125. /* end confdefs.h. */
  10126. int
  10127. main ()
  10128. {
  10129. #ifndef __GNUC__
  10130. choke me
  10131. #endif
  10132. ;
  10133. return 0;
  10134. }
  10135. _ACEOF
  10136. if ac_fn_c_try_compile "$LINENO"; then :
  10137. ac_compiler_gnu=yes
  10138. else
  10139. ac_compiler_gnu=no
  10140. fi
  10141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10142. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10143. fi
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10145. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10146. if test $ac_compiler_gnu = yes; then
  10147. GCC=yes
  10148. else
  10149. GCC=
  10150. fi
  10151. ac_test_CFLAGS=${CFLAGS+set}
  10152. ac_save_CFLAGS=$CFLAGS
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10154. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10155. if ${ac_cv_prog_cc_g+:} false; then :
  10156. $as_echo_n "(cached) " >&6
  10157. else
  10158. ac_save_c_werror_flag=$ac_c_werror_flag
  10159. ac_c_werror_flag=yes
  10160. ac_cv_prog_cc_g=no
  10161. CFLAGS="-g"
  10162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10163. /* end confdefs.h. */
  10164. int
  10165. main ()
  10166. {
  10167. ;
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. if ac_fn_c_try_compile "$LINENO"; then :
  10172. ac_cv_prog_cc_g=yes
  10173. else
  10174. CFLAGS=""
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. int
  10178. main ()
  10179. {
  10180. ;
  10181. return 0;
  10182. }
  10183. _ACEOF
  10184. if ac_fn_c_try_compile "$LINENO"; then :
  10185. else
  10186. ac_c_werror_flag=$ac_save_c_werror_flag
  10187. CFLAGS="-g"
  10188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10189. /* end confdefs.h. */
  10190. int
  10191. main ()
  10192. {
  10193. ;
  10194. return 0;
  10195. }
  10196. _ACEOF
  10197. if ac_fn_c_try_compile "$LINENO"; then :
  10198. ac_cv_prog_cc_g=yes
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10203. fi
  10204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10205. ac_c_werror_flag=$ac_save_c_werror_flag
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10208. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10209. if test "$ac_test_CFLAGS" = set; then
  10210. CFLAGS=$ac_save_CFLAGS
  10211. elif test $ac_cv_prog_cc_g = yes; then
  10212. if test "$GCC" = yes; then
  10213. CFLAGS="-g -O2"
  10214. else
  10215. CFLAGS="-g"
  10216. fi
  10217. else
  10218. if test "$GCC" = yes; then
  10219. CFLAGS="-O2"
  10220. else
  10221. CFLAGS=
  10222. fi
  10223. fi
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10225. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10226. if ${ac_cv_prog_cc_c89+:} false; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. ac_cv_prog_cc_c89=no
  10230. ac_save_CC=$CC
  10231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10232. /* end confdefs.h. */
  10233. #include <stdarg.h>
  10234. #include <stdio.h>
  10235. struct stat;
  10236. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10237. struct buf { int x; };
  10238. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10239. static char *e (p, i)
  10240. char **p;
  10241. int i;
  10242. {
  10243. return p[i];
  10244. }
  10245. static char *f (char * (*g) (char **, int), char **p, ...)
  10246. {
  10247. char *s;
  10248. va_list v;
  10249. va_start (v,p);
  10250. s = g (p, va_arg (v,int));
  10251. va_end (v);
  10252. return s;
  10253. }
  10254. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10255. function prototypes and stuff, but not '\xHH' hex character constants.
  10256. These don't provoke an error unfortunately, instead are silently treated
  10257. as 'x'. The following induces an error, until -std is added to get
  10258. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10259. array size at least. It's necessary to write '\x00'==0 to get something
  10260. that's true only with -std. */
  10261. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10262. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10263. inside strings and character constants. */
  10264. #define FOO(x) 'x'
  10265. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10266. int test (int i, double x);
  10267. struct s1 {int (*f) (int a);};
  10268. struct s2 {int (*f) (double a);};
  10269. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10270. int argc;
  10271. char **argv;
  10272. int
  10273. main ()
  10274. {
  10275. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10276. ;
  10277. return 0;
  10278. }
  10279. _ACEOF
  10280. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10281. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10282. do
  10283. CC="$ac_save_CC $ac_arg"
  10284. if ac_fn_c_try_compile "$LINENO"; then :
  10285. ac_cv_prog_cc_c89=$ac_arg
  10286. fi
  10287. rm -f core conftest.err conftest.$ac_objext
  10288. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10289. done
  10290. rm -f conftest.$ac_ext
  10291. CC=$ac_save_CC
  10292. fi
  10293. # AC_CACHE_VAL
  10294. case "x$ac_cv_prog_cc_c89" in
  10295. x)
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10297. $as_echo "none needed" >&6; } ;;
  10298. xno)
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10300. $as_echo "unsupported" >&6; } ;;
  10301. *)
  10302. CC="$CC $ac_cv_prog_cc_c89"
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10304. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10305. esac
  10306. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10307. fi
  10308. ac_ext=c
  10309. ac_cpp='$CPP $CPPFLAGS'
  10310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10313. ac_ext=cpp
  10314. ac_cpp='$CXXCPP $CPPFLAGS'
  10315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10318. if test -z "$CXX"; then
  10319. if test -n "$CCC"; then
  10320. CXX=$CCC
  10321. else
  10322. if test -n "$ac_tool_prefix"; then
  10323. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10324. do
  10325. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10326. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if ${ac_cv_prog_CXX+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$CXX"; then
  10333. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10342. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. CXX=$ac_cv_prog_CXX
  10352. if test -n "$CXX"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10354. $as_echo "$CXX" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. test -n "$CXX" && break
  10360. done
  10361. fi
  10362. if test -z "$CXX"; then
  10363. ac_ct_CXX=$CXX
  10364. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10365. do
  10366. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10367. set dummy $ac_prog; ac_word=$2
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10369. $as_echo_n "checking for $ac_word... " >&6; }
  10370. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10371. $as_echo_n "(cached) " >&6
  10372. else
  10373. if test -n "$ac_ct_CXX"; then
  10374. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10375. else
  10376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10377. for as_dir in $PATH
  10378. do
  10379. IFS=$as_save_IFS
  10380. test -z "$as_dir" && as_dir=.
  10381. for ac_exec_ext in '' $ac_executable_extensions; do
  10382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10383. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10385. break 2
  10386. fi
  10387. done
  10388. done
  10389. IFS=$as_save_IFS
  10390. fi
  10391. fi
  10392. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10393. if test -n "$ac_ct_CXX"; then
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10395. $as_echo "$ac_ct_CXX" >&6; }
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. fi
  10400. test -n "$ac_ct_CXX" && break
  10401. done
  10402. if test "x$ac_ct_CXX" = x; then
  10403. CXX="g++"
  10404. else
  10405. case $cross_compiling:$ac_tool_warned in
  10406. yes:)
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10409. ac_tool_warned=yes ;;
  10410. esac
  10411. CXX=$ac_ct_CXX
  10412. fi
  10413. fi
  10414. fi
  10415. fi
  10416. # Provide some information about the compiler.
  10417. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10418. set X $ac_compile
  10419. ac_compiler=$2
  10420. for ac_option in --version -v -V -qversion; do
  10421. { { ac_try="$ac_compiler $ac_option >&5"
  10422. case "(($ac_try" in
  10423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10424. *) ac_try_echo=$ac_try;;
  10425. esac
  10426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10427. $as_echo "$ac_try_echo"; } >&5
  10428. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10429. ac_status=$?
  10430. if test -s conftest.err; then
  10431. sed '10a\
  10432. ... rest of stderr output deleted ...
  10433. 10q' conftest.err >conftest.er1
  10434. cat conftest.er1 >&5
  10435. fi
  10436. rm -f conftest.er1 conftest.err
  10437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10438. test $ac_status = 0; }
  10439. done
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10441. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10442. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10443. $as_echo_n "(cached) " >&6
  10444. else
  10445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10446. /* end confdefs.h. */
  10447. int
  10448. main ()
  10449. {
  10450. #ifndef __GNUC__
  10451. choke me
  10452. #endif
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. if ac_fn_cxx_try_compile "$LINENO"; then :
  10458. ac_compiler_gnu=yes
  10459. else
  10460. ac_compiler_gnu=no
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10466. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10467. if test $ac_compiler_gnu = yes; then
  10468. GXX=yes
  10469. else
  10470. GXX=
  10471. fi
  10472. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10473. ac_save_CXXFLAGS=$CXXFLAGS
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10475. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10476. if ${ac_cv_prog_cxx_g+:} false; then :
  10477. $as_echo_n "(cached) " >&6
  10478. else
  10479. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10480. ac_cxx_werror_flag=yes
  10481. ac_cv_prog_cxx_g=no
  10482. CXXFLAGS="-g"
  10483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10484. /* end confdefs.h. */
  10485. int
  10486. main ()
  10487. {
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. if ac_fn_cxx_try_compile "$LINENO"; then :
  10493. ac_cv_prog_cxx_g=yes
  10494. else
  10495. CXXFLAGS=""
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h. */
  10498. int
  10499. main ()
  10500. {
  10501. ;
  10502. return 0;
  10503. }
  10504. _ACEOF
  10505. if ac_fn_cxx_try_compile "$LINENO"; then :
  10506. else
  10507. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10508. CXXFLAGS="-g"
  10509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10510. /* end confdefs.h. */
  10511. int
  10512. main ()
  10513. {
  10514. ;
  10515. return 0;
  10516. }
  10517. _ACEOF
  10518. if ac_fn_cxx_try_compile "$LINENO"; then :
  10519. ac_cv_prog_cxx_g=yes
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10524. fi
  10525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10526. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10527. fi
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10529. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10530. if test "$ac_test_CXXFLAGS" = set; then
  10531. CXXFLAGS=$ac_save_CXXFLAGS
  10532. elif test $ac_cv_prog_cxx_g = yes; then
  10533. if test "$GXX" = yes; then
  10534. CXXFLAGS="-g -O2"
  10535. else
  10536. CXXFLAGS="-g"
  10537. fi
  10538. else
  10539. if test "$GXX" = yes; then
  10540. CXXFLAGS="-O2"
  10541. else
  10542. CXXFLAGS=
  10543. fi
  10544. fi
  10545. ac_ext=c
  10546. ac_cpp='$CPP $CPPFLAGS'
  10547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10550. func_stripname_cnf ()
  10551. {
  10552. case ${2} in
  10553. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10554. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10555. esac
  10556. } # func_stripname_cnf
  10557. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10558. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10559. (test "X$CXX" != "Xg++"))) ; then
  10560. ac_ext=cpp
  10561. ac_cpp='$CXXCPP $CPPFLAGS'
  10562. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10563. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10564. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10566. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10567. if test -z "$CXXCPP"; then
  10568. if ${ac_cv_prog_CXXCPP+:} false; then :
  10569. $as_echo_n "(cached) " >&6
  10570. else
  10571. # Double quotes because CXXCPP needs to be expanded
  10572. for CXXCPP in "$CXX -E" "/lib/cpp"
  10573. do
  10574. ac_preproc_ok=false
  10575. for ac_cxx_preproc_warn_flag in '' yes
  10576. do
  10577. # Use a header file that comes with gcc, so configuring glibc
  10578. # with a fresh cross-compiler works.
  10579. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10580. # <limits.h> exists even on freestanding compilers.
  10581. # On the NeXT, cc -E runs the code through the compiler's parser,
  10582. # not just through cpp. "Syntax error" is here to catch this case.
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #ifdef __STDC__
  10586. # include <limits.h>
  10587. #else
  10588. # include <assert.h>
  10589. #endif
  10590. Syntax error
  10591. _ACEOF
  10592. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10593. else
  10594. # Broken: fails on valid input.
  10595. continue
  10596. fi
  10597. rm -f conftest.err conftest.i conftest.$ac_ext
  10598. # OK, works on sane cases. Now check whether nonexistent headers
  10599. # can be detected and how.
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #include <ac_nonexistent.h>
  10603. _ACEOF
  10604. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10605. # Broken: success on invalid input.
  10606. continue
  10607. else
  10608. # Passes both tests.
  10609. ac_preproc_ok=:
  10610. break
  10611. fi
  10612. rm -f conftest.err conftest.i conftest.$ac_ext
  10613. done
  10614. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10615. rm -f conftest.i conftest.err conftest.$ac_ext
  10616. if $ac_preproc_ok; then :
  10617. break
  10618. fi
  10619. done
  10620. ac_cv_prog_CXXCPP=$CXXCPP
  10621. fi
  10622. CXXCPP=$ac_cv_prog_CXXCPP
  10623. else
  10624. ac_cv_prog_CXXCPP=$CXXCPP
  10625. fi
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10627. $as_echo "$CXXCPP" >&6; }
  10628. ac_preproc_ok=false
  10629. for ac_cxx_preproc_warn_flag in '' yes
  10630. do
  10631. # Use a header file that comes with gcc, so configuring glibc
  10632. # with a fresh cross-compiler works.
  10633. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10634. # <limits.h> exists even on freestanding compilers.
  10635. # On the NeXT, cc -E runs the code through the compiler's parser,
  10636. # not just through cpp. "Syntax error" is here to catch this case.
  10637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10638. /* end confdefs.h. */
  10639. #ifdef __STDC__
  10640. # include <limits.h>
  10641. #else
  10642. # include <assert.h>
  10643. #endif
  10644. Syntax error
  10645. _ACEOF
  10646. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10647. else
  10648. # Broken: fails on valid input.
  10649. continue
  10650. fi
  10651. rm -f conftest.err conftest.i conftest.$ac_ext
  10652. # OK, works on sane cases. Now check whether nonexistent headers
  10653. # can be detected and how.
  10654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10655. /* end confdefs.h. */
  10656. #include <ac_nonexistent.h>
  10657. _ACEOF
  10658. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10659. # Broken: success on invalid input.
  10660. continue
  10661. else
  10662. # Passes both tests.
  10663. ac_preproc_ok=:
  10664. break
  10665. fi
  10666. rm -f conftest.err conftest.i conftest.$ac_ext
  10667. done
  10668. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10669. rm -f conftest.i conftest.err conftest.$ac_ext
  10670. if $ac_preproc_ok; then :
  10671. else
  10672. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10673. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10674. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10675. See \`config.log' for more details" "$LINENO" 5; }
  10676. fi
  10677. ac_ext=c
  10678. ac_cpp='$CPP $CPPFLAGS'
  10679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10682. else
  10683. _lt_caught_CXX_error=yes
  10684. fi
  10685. ac_ext=cpp
  10686. ac_cpp='$CXXCPP $CPPFLAGS'
  10687. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10688. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10689. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10690. archive_cmds_need_lc_CXX=no
  10691. allow_undefined_flag_CXX=
  10692. always_export_symbols_CXX=no
  10693. archive_expsym_cmds_CXX=
  10694. compiler_needs_object_CXX=no
  10695. export_dynamic_flag_spec_CXX=
  10696. hardcode_direct_CXX=no
  10697. hardcode_direct_absolute_CXX=no
  10698. hardcode_libdir_flag_spec_CXX=
  10699. hardcode_libdir_separator_CXX=
  10700. hardcode_minus_L_CXX=no
  10701. hardcode_shlibpath_var_CXX=unsupported
  10702. hardcode_automatic_CXX=no
  10703. inherit_rpath_CXX=no
  10704. module_cmds_CXX=
  10705. module_expsym_cmds_CXX=
  10706. link_all_deplibs_CXX=unknown
  10707. old_archive_cmds_CXX=$old_archive_cmds
  10708. reload_flag_CXX=$reload_flag
  10709. reload_cmds_CXX=$reload_cmds
  10710. no_undefined_flag_CXX=
  10711. whole_archive_flag_spec_CXX=
  10712. enable_shared_with_static_runtimes_CXX=no
  10713. # Source file extension for C++ test sources.
  10714. ac_ext=cpp
  10715. # Object file extension for compiled C++ test sources.
  10716. objext=o
  10717. objext_CXX=$objext
  10718. # No sense in running all these tests if we already determined that
  10719. # the CXX compiler isn't working. Some variables (like enable_shared)
  10720. # are currently assumed to apply to all compilers on this platform,
  10721. # and will be corrupted by setting them based on a non-working compiler.
  10722. if test "$_lt_caught_CXX_error" != yes; then
  10723. # Code to be used in simple compile tests
  10724. lt_simple_compile_test_code="int some_variable = 0;"
  10725. # Code to be used in simple link tests
  10726. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10727. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10728. # If no C compiler was specified, use CC.
  10729. LTCC=${LTCC-"$CC"}
  10730. # If no C compiler flags were specified, use CFLAGS.
  10731. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10732. # Allow CC to be a program name with arguments.
  10733. compiler=$CC
  10734. # save warnings/boilerplate of simple test code
  10735. ac_outfile=conftest.$ac_objext
  10736. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10737. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10738. _lt_compiler_boilerplate=`cat conftest.err`
  10739. $RM conftest*
  10740. ac_outfile=conftest.$ac_objext
  10741. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10743. _lt_linker_boilerplate=`cat conftest.err`
  10744. $RM -r conftest*
  10745. # Allow CC to be a program name with arguments.
  10746. lt_save_CC=$CC
  10747. lt_save_CFLAGS=$CFLAGS
  10748. lt_save_LD=$LD
  10749. lt_save_GCC=$GCC
  10750. GCC=$GXX
  10751. lt_save_with_gnu_ld=$with_gnu_ld
  10752. lt_save_path_LD=$lt_cv_path_LD
  10753. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10754. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10755. else
  10756. $as_unset lt_cv_prog_gnu_ld
  10757. fi
  10758. if test -n "${lt_cv_path_LDCXX+set}"; then
  10759. lt_cv_path_LD=$lt_cv_path_LDCXX
  10760. else
  10761. $as_unset lt_cv_path_LD
  10762. fi
  10763. test -z "${LDCXX+set}" || LD=$LDCXX
  10764. CC=${CXX-"c++"}
  10765. CFLAGS=$CXXFLAGS
  10766. compiler=$CC
  10767. compiler_CXX=$CC
  10768. for cc_temp in $compiler""; do
  10769. case $cc_temp in
  10770. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10771. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10772. \-*) ;;
  10773. *) break;;
  10774. esac
  10775. done
  10776. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10777. if test -n "$compiler"; then
  10778. # We don't want -fno-exception when compiling C++ code, so set the
  10779. # no_builtin_flag separately
  10780. if test "$GXX" = yes; then
  10781. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10782. else
  10783. lt_prog_compiler_no_builtin_flag_CXX=
  10784. fi
  10785. if test "$GXX" = yes; then
  10786. # Set up default GNU C++ configuration
  10787. # Check whether --with-gnu-ld was given.
  10788. if test "${with_gnu_ld+set}" = set; then :
  10789. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10790. else
  10791. with_gnu_ld=no
  10792. fi
  10793. ac_prog=ld
  10794. if test "$GCC" = yes; then
  10795. # Check if gcc -print-prog-name=ld gives a path.
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10797. $as_echo_n "checking for ld used by $CC... " >&6; }
  10798. case $host in
  10799. *-*-mingw*)
  10800. # gcc leaves a trailing carriage return which upsets mingw
  10801. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10802. *)
  10803. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10804. esac
  10805. case $ac_prog in
  10806. # Accept absolute paths.
  10807. [\\/]* | ?:[\\/]*)
  10808. re_direlt='/[^/][^/]*/\.\./'
  10809. # Canonicalize the pathname of ld
  10810. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10811. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10812. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10813. done
  10814. test -z "$LD" && LD="$ac_prog"
  10815. ;;
  10816. "")
  10817. # If it fails, then pretend we aren't using GCC.
  10818. ac_prog=ld
  10819. ;;
  10820. *)
  10821. # If it is relative, then search for the first ld in PATH.
  10822. with_gnu_ld=unknown
  10823. ;;
  10824. esac
  10825. elif test "$with_gnu_ld" = yes; then
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10827. $as_echo_n "checking for GNU ld... " >&6; }
  10828. else
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10830. $as_echo_n "checking for non-GNU ld... " >&6; }
  10831. fi
  10832. if ${lt_cv_path_LD+:} false; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. if test -z "$LD"; then
  10836. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10837. for ac_dir in $PATH; do
  10838. IFS="$lt_save_ifs"
  10839. test -z "$ac_dir" && ac_dir=.
  10840. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10841. lt_cv_path_LD="$ac_dir/$ac_prog"
  10842. # Check to see if the program is GNU ld. I'd rather use --version,
  10843. # but apparently some variants of GNU ld only accept -v.
  10844. # Break only if it was the GNU/non-GNU ld that we prefer.
  10845. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10846. *GNU* | *'with BFD'*)
  10847. test "$with_gnu_ld" != no && break
  10848. ;;
  10849. *)
  10850. test "$with_gnu_ld" != yes && break
  10851. ;;
  10852. esac
  10853. fi
  10854. done
  10855. IFS="$lt_save_ifs"
  10856. else
  10857. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10858. fi
  10859. fi
  10860. LD="$lt_cv_path_LD"
  10861. if test -n "$LD"; then
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10863. $as_echo "$LD" >&6; }
  10864. else
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10866. $as_echo "no" >&6; }
  10867. fi
  10868. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10870. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10871. if ${lt_cv_prog_gnu_ld+:} false; then :
  10872. $as_echo_n "(cached) " >&6
  10873. else
  10874. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10875. case `$LD -v 2>&1 </dev/null` in
  10876. *GNU* | *'with BFD'*)
  10877. lt_cv_prog_gnu_ld=yes
  10878. ;;
  10879. *)
  10880. lt_cv_prog_gnu_ld=no
  10881. ;;
  10882. esac
  10883. fi
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10885. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10886. with_gnu_ld=$lt_cv_prog_gnu_ld
  10887. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10888. # archiving commands below assume that GNU ld is being used.
  10889. if test "$with_gnu_ld" = yes; then
  10890. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10891. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10892. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10893. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10894. # If archive_cmds runs LD, not CC, wlarc should be empty
  10895. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10896. # investigate it a little bit more. (MM)
  10897. wlarc='${wl}'
  10898. # ancient GNU ld didn't support --whole-archive et. al.
  10899. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10900. $GREP 'no-whole-archive' > /dev/null; then
  10901. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10902. else
  10903. whole_archive_flag_spec_CXX=
  10904. fi
  10905. else
  10906. with_gnu_ld=no
  10907. wlarc=
  10908. # A generic and very simple default shared library creation
  10909. # command for GNU C++ for the case where it uses the native
  10910. # linker, instead of GNU ld. If possible, this setting should
  10911. # overridden to take advantage of the native linker features on
  10912. # the platform it is being used on.
  10913. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10914. fi
  10915. # Commands to make compiler produce verbose output that lists
  10916. # what "hidden" libraries, object files and flags are used when
  10917. # linking a shared library.
  10918. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10919. else
  10920. GXX=no
  10921. with_gnu_ld=no
  10922. wlarc=
  10923. fi
  10924. # PORTME: fill in a description of your system's C++ link characteristics
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10926. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10927. ld_shlibs_CXX=yes
  10928. case $host_os in
  10929. aix3*)
  10930. # FIXME: insert proper C++ library support
  10931. ld_shlibs_CXX=no
  10932. ;;
  10933. aix[4-9]*)
  10934. if test "$host_cpu" = ia64; then
  10935. # On IA64, the linker does run time linking by default, so we don't
  10936. # have to do anything special.
  10937. aix_use_runtimelinking=no
  10938. exp_sym_flag='-Bexport'
  10939. no_entry_flag=""
  10940. else
  10941. aix_use_runtimelinking=no
  10942. # Test if we are trying to use run time linking or normal
  10943. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10944. # need to do runtime linking.
  10945. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10946. for ld_flag in $LDFLAGS; do
  10947. case $ld_flag in
  10948. *-brtl*)
  10949. aix_use_runtimelinking=yes
  10950. break
  10951. ;;
  10952. esac
  10953. done
  10954. ;;
  10955. esac
  10956. exp_sym_flag='-bexport'
  10957. no_entry_flag='-bnoentry'
  10958. fi
  10959. # When large executables or shared objects are built, AIX ld can
  10960. # have problems creating the table of contents. If linking a library
  10961. # or program results in "error TOC overflow" add -mminimal-toc to
  10962. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10963. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10964. archive_cmds_CXX=''
  10965. hardcode_direct_CXX=yes
  10966. hardcode_direct_absolute_CXX=yes
  10967. hardcode_libdir_separator_CXX=':'
  10968. link_all_deplibs_CXX=yes
  10969. file_list_spec_CXX='${wl}-f,'
  10970. if test "$GXX" = yes; then
  10971. case $host_os in aix4.[012]|aix4.[012].*)
  10972. # We only want to do this on AIX 4.2 and lower, the check
  10973. # below for broken collect2 doesn't work under 4.3+
  10974. collect2name=`${CC} -print-prog-name=collect2`
  10975. if test -f "$collect2name" &&
  10976. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10977. then
  10978. # We have reworked collect2
  10979. :
  10980. else
  10981. # We have old collect2
  10982. hardcode_direct_CXX=unsupported
  10983. # It fails to find uninstalled libraries when the uninstalled
  10984. # path is not listed in the libpath. Setting hardcode_minus_L
  10985. # to unsupported forces relinking
  10986. hardcode_minus_L_CXX=yes
  10987. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10988. hardcode_libdir_separator_CXX=
  10989. fi
  10990. esac
  10991. shared_flag='-shared'
  10992. if test "$aix_use_runtimelinking" = yes; then
  10993. shared_flag="$shared_flag "'${wl}-G'
  10994. fi
  10995. else
  10996. # not using gcc
  10997. if test "$host_cpu" = ia64; then
  10998. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10999. # chokes on -Wl,-G. The following line is correct:
  11000. shared_flag='-G'
  11001. else
  11002. if test "$aix_use_runtimelinking" = yes; then
  11003. shared_flag='${wl}-G'
  11004. else
  11005. shared_flag='${wl}-bM:SRE'
  11006. fi
  11007. fi
  11008. fi
  11009. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11010. # It seems that -bexpall does not export symbols beginning with
  11011. # underscore (_), so it is better to generate a list of symbols to
  11012. # export.
  11013. always_export_symbols_CXX=yes
  11014. if test "$aix_use_runtimelinking" = yes; then
  11015. # Warning - without using the other runtime loading flags (-brtl),
  11016. # -berok will link without error, but may produce a broken library.
  11017. allow_undefined_flag_CXX='-berok'
  11018. # Determine the default libpath from the value encoded in an empty
  11019. # executable.
  11020. if test "${lt_cv_aix_libpath+set}" = set; then
  11021. aix_libpath=$lt_cv_aix_libpath
  11022. else
  11023. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11024. $as_echo_n "(cached) " >&6
  11025. else
  11026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11027. /* end confdefs.h. */
  11028. int
  11029. main ()
  11030. {
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. if ac_fn_cxx_try_link "$LINENO"; then :
  11036. lt_aix_libpath_sed='
  11037. /Import File Strings/,/^$/ {
  11038. /^0/ {
  11039. s/^0 *\([^ ]*\) *$/\1/
  11040. p
  11041. }
  11042. }'
  11043. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11044. # Check for a 64-bit object if we didn't find anything.
  11045. if test -z "$lt_cv_aix_libpath__CXX"; then
  11046. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11047. fi
  11048. fi
  11049. rm -f core conftest.err conftest.$ac_objext \
  11050. conftest$ac_exeext conftest.$ac_ext
  11051. if test -z "$lt_cv_aix_libpath__CXX"; then
  11052. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11053. fi
  11054. fi
  11055. aix_libpath=$lt_cv_aix_libpath__CXX
  11056. fi
  11057. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11058. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11059. else
  11060. if test "$host_cpu" = ia64; then
  11061. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11062. allow_undefined_flag_CXX="-z nodefs"
  11063. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11064. else
  11065. # Determine the default libpath from the value encoded in an
  11066. # empty executable.
  11067. if test "${lt_cv_aix_libpath+set}" = set; then
  11068. aix_libpath=$lt_cv_aix_libpath
  11069. else
  11070. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11074. /* end confdefs.h. */
  11075. int
  11076. main ()
  11077. {
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. if ac_fn_cxx_try_link "$LINENO"; then :
  11083. lt_aix_libpath_sed='
  11084. /Import File Strings/,/^$/ {
  11085. /^0/ {
  11086. s/^0 *\([^ ]*\) *$/\1/
  11087. p
  11088. }
  11089. }'
  11090. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11091. # Check for a 64-bit object if we didn't find anything.
  11092. if test -z "$lt_cv_aix_libpath__CXX"; then
  11093. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11094. fi
  11095. fi
  11096. rm -f core conftest.err conftest.$ac_objext \
  11097. conftest$ac_exeext conftest.$ac_ext
  11098. if test -z "$lt_cv_aix_libpath__CXX"; then
  11099. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11100. fi
  11101. fi
  11102. aix_libpath=$lt_cv_aix_libpath__CXX
  11103. fi
  11104. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11105. # Warning - without using the other run time loading flags,
  11106. # -berok will link without error, but may produce a broken library.
  11107. no_undefined_flag_CXX=' ${wl}-bernotok'
  11108. allow_undefined_flag_CXX=' ${wl}-berok'
  11109. if test "$with_gnu_ld" = yes; then
  11110. # We only use this code for GNU lds that support --whole-archive.
  11111. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11112. else
  11113. # Exported symbols can be pulled into shared objects from archives
  11114. whole_archive_flag_spec_CXX='$convenience'
  11115. fi
  11116. archive_cmds_need_lc_CXX=yes
  11117. # This is similar to how AIX traditionally builds its shared
  11118. # libraries.
  11119. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11120. fi
  11121. fi
  11122. ;;
  11123. beos*)
  11124. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11125. allow_undefined_flag_CXX=unsupported
  11126. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11127. # support --undefined. This deserves some investigation. FIXME
  11128. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11129. else
  11130. ld_shlibs_CXX=no
  11131. fi
  11132. ;;
  11133. chorus*)
  11134. case $cc_basename in
  11135. *)
  11136. # FIXME: insert proper C++ library support
  11137. ld_shlibs_CXX=no
  11138. ;;
  11139. esac
  11140. ;;
  11141. cygwin* | mingw* | pw32* | cegcc*)
  11142. case $GXX,$cc_basename in
  11143. ,cl* | no,cl*)
  11144. # Native MSVC
  11145. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11146. # no search path for DLLs.
  11147. hardcode_libdir_flag_spec_CXX=' '
  11148. allow_undefined_flag_CXX=unsupported
  11149. always_export_symbols_CXX=yes
  11150. file_list_spec_CXX='@'
  11151. # Tell ltmain to make .lib files, not .a files.
  11152. libext=lib
  11153. # Tell ltmain to make .dll files, not .so files.
  11154. shrext_cmds=".dll"
  11155. # FIXME: Setting linknames here is a bad hack.
  11156. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11157. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11158. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11159. else
  11160. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11161. fi~
  11162. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11163. linknames='
  11164. # The linker will not automatically build a static lib if we build a DLL.
  11165. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11166. enable_shared_with_static_runtimes_CXX=yes
  11167. # Don't use ranlib
  11168. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11169. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11170. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11171. case $lt_outputfile in
  11172. *.exe|*.EXE) ;;
  11173. *)
  11174. lt_outputfile="$lt_outputfile.exe"
  11175. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11176. ;;
  11177. esac~
  11178. func_to_tool_file "$lt_outputfile"~
  11179. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11180. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11181. $RM "$lt_outputfile.manifest";
  11182. fi'
  11183. ;;
  11184. *)
  11185. # g++
  11186. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11187. # as there is no search path for DLLs.
  11188. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11189. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11190. allow_undefined_flag_CXX=unsupported
  11191. always_export_symbols_CXX=no
  11192. enable_shared_with_static_runtimes_CXX=yes
  11193. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11194. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11195. # If the export-symbols file already is a .def file (1st line
  11196. # is EXPORTS), use it as is; otherwise, prepend...
  11197. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11198. cp $export_symbols $output_objdir/$soname.def;
  11199. else
  11200. echo EXPORTS > $output_objdir/$soname.def;
  11201. cat $export_symbols >> $output_objdir/$soname.def;
  11202. fi~
  11203. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11204. else
  11205. ld_shlibs_CXX=no
  11206. fi
  11207. ;;
  11208. esac
  11209. ;;
  11210. darwin* | rhapsody*)
  11211. archive_cmds_need_lc_CXX=no
  11212. hardcode_direct_CXX=no
  11213. hardcode_automatic_CXX=yes
  11214. hardcode_shlibpath_var_CXX=unsupported
  11215. if test "$lt_cv_ld_force_load" = "yes"; then
  11216. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11217. else
  11218. whole_archive_flag_spec_CXX=''
  11219. fi
  11220. link_all_deplibs_CXX=yes
  11221. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11222. case $cc_basename in
  11223. ifort*) _lt_dar_can_shared=yes ;;
  11224. *) _lt_dar_can_shared=$GCC ;;
  11225. esac
  11226. if test "$_lt_dar_can_shared" = "yes"; then
  11227. output_verbose_link_cmd=func_echo_all
  11228. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11229. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11230. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11231. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11232. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11233. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11234. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11235. fi
  11236. else
  11237. ld_shlibs_CXX=no
  11238. fi
  11239. ;;
  11240. dgux*)
  11241. case $cc_basename in
  11242. ec++*)
  11243. # FIXME: insert proper C++ library support
  11244. ld_shlibs_CXX=no
  11245. ;;
  11246. ghcx*)
  11247. # Green Hills C++ Compiler
  11248. # FIXME: insert proper C++ library support
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. *)
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. esac
  11256. ;;
  11257. freebsd2.*)
  11258. # C++ shared libraries reported to be fairly broken before
  11259. # switch to ELF
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. freebsd-elf*)
  11263. archive_cmds_need_lc_CXX=no
  11264. ;;
  11265. freebsd* | dragonfly*)
  11266. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11267. # conventions
  11268. ld_shlibs_CXX=yes
  11269. ;;
  11270. gnu*)
  11271. ;;
  11272. haiku*)
  11273. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11274. link_all_deplibs_CXX=yes
  11275. ;;
  11276. hpux9*)
  11277. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11278. hardcode_libdir_separator_CXX=:
  11279. export_dynamic_flag_spec_CXX='${wl}-E'
  11280. hardcode_direct_CXX=yes
  11281. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11282. # but as the default
  11283. # location of the library.
  11284. case $cc_basename in
  11285. CC*)
  11286. # FIXME: insert proper C++ library support
  11287. ld_shlibs_CXX=no
  11288. ;;
  11289. aCC*)
  11290. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11291. # Commands to make compiler produce verbose output that lists
  11292. # what "hidden" libraries, object files and flags are used when
  11293. # linking a shared library.
  11294. #
  11295. # There doesn't appear to be a way to prevent this compiler from
  11296. # explicitly linking system object files so we need to strip them
  11297. # from the output so that they don't get included in the library
  11298. # dependencies.
  11299. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11300. ;;
  11301. *)
  11302. if test "$GXX" = yes; then
  11303. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11304. else
  11305. # FIXME: insert proper C++ library support
  11306. ld_shlibs_CXX=no
  11307. fi
  11308. ;;
  11309. esac
  11310. ;;
  11311. hpux10*|hpux11*)
  11312. if test $with_gnu_ld = no; then
  11313. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11314. hardcode_libdir_separator_CXX=:
  11315. case $host_cpu in
  11316. hppa*64*|ia64*)
  11317. ;;
  11318. *)
  11319. export_dynamic_flag_spec_CXX='${wl}-E'
  11320. ;;
  11321. esac
  11322. fi
  11323. case $host_cpu in
  11324. hppa*64*|ia64*)
  11325. hardcode_direct_CXX=no
  11326. hardcode_shlibpath_var_CXX=no
  11327. ;;
  11328. *)
  11329. hardcode_direct_CXX=yes
  11330. hardcode_direct_absolute_CXX=yes
  11331. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11332. # but as the default
  11333. # location of the library.
  11334. ;;
  11335. esac
  11336. case $cc_basename in
  11337. CC*)
  11338. # FIXME: insert proper C++ library support
  11339. ld_shlibs_CXX=no
  11340. ;;
  11341. aCC*)
  11342. case $host_cpu in
  11343. hppa*64*)
  11344. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11345. ;;
  11346. ia64*)
  11347. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11348. ;;
  11349. *)
  11350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11351. ;;
  11352. esac
  11353. # Commands to make compiler produce verbose output that lists
  11354. # what "hidden" libraries, object files and flags are used when
  11355. # linking a shared library.
  11356. #
  11357. # There doesn't appear to be a way to prevent this compiler from
  11358. # explicitly linking system object files so we need to strip them
  11359. # from the output so that they don't get included in the library
  11360. # dependencies.
  11361. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11362. ;;
  11363. *)
  11364. if test "$GXX" = yes; then
  11365. if test $with_gnu_ld = no; then
  11366. case $host_cpu in
  11367. hppa*64*)
  11368. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11369. ;;
  11370. ia64*)
  11371. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11372. ;;
  11373. *)
  11374. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11375. ;;
  11376. esac
  11377. fi
  11378. else
  11379. # FIXME: insert proper C++ library support
  11380. ld_shlibs_CXX=no
  11381. fi
  11382. ;;
  11383. esac
  11384. ;;
  11385. interix[3-9]*)
  11386. hardcode_direct_CXX=no
  11387. hardcode_shlibpath_var_CXX=no
  11388. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11389. export_dynamic_flag_spec_CXX='${wl}-E'
  11390. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11391. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11392. # default) and relocated if they conflict, which is a slow very memory
  11393. # consuming and fragmenting process. To avoid this, we pick a random,
  11394. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11395. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11396. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11397. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11398. ;;
  11399. irix5* | irix6*)
  11400. case $cc_basename in
  11401. CC*)
  11402. # SGI C++
  11403. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11404. # Archives containing C++ object files must be created using
  11405. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11406. # necessary to make sure instantiated templates are included
  11407. # in the archive.
  11408. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11409. ;;
  11410. *)
  11411. if test "$GXX" = yes; then
  11412. if test "$with_gnu_ld" = no; then
  11413. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11414. else
  11415. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11416. fi
  11417. fi
  11418. link_all_deplibs_CXX=yes
  11419. ;;
  11420. esac
  11421. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11422. hardcode_libdir_separator_CXX=:
  11423. inherit_rpath_CXX=yes
  11424. ;;
  11425. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11426. case $cc_basename in
  11427. KCC*)
  11428. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11429. # KCC will only create a shared library if the output file
  11430. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11431. # to its proper name (with version) after linking.
  11432. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11433. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11434. # Commands to make compiler produce verbose output that lists
  11435. # what "hidden" libraries, object files and flags are used when
  11436. # linking a shared library.
  11437. #
  11438. # There doesn't appear to be a way to prevent this compiler from
  11439. # explicitly linking system object files so we need to strip them
  11440. # from the output so that they don't get included in the library
  11441. # dependencies.
  11442. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11443. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11444. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11445. # Archives containing C++ object files must be created using
  11446. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11447. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11448. ;;
  11449. icpc* | ecpc* )
  11450. # Intel C++
  11451. with_gnu_ld=yes
  11452. # version 8.0 and above of icpc choke on multiply defined symbols
  11453. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11454. # earlier do not add the objects themselves.
  11455. case `$CC -V 2>&1` in
  11456. *"Version 7."*)
  11457. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11458. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11459. ;;
  11460. *) # Version 8.0 or newer
  11461. tmp_idyn=
  11462. case $host_cpu in
  11463. ia64*) tmp_idyn=' -i_dynamic';;
  11464. esac
  11465. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11466. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11467. ;;
  11468. esac
  11469. archive_cmds_need_lc_CXX=no
  11470. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11471. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11472. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11473. ;;
  11474. pgCC* | pgcpp*)
  11475. # Portland Group C++ compiler
  11476. case `$CC -V` in
  11477. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11478. prelink_cmds_CXX='tpldir=Template.dir~
  11479. rm -rf $tpldir~
  11480. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11481. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11482. old_archive_cmds_CXX='tpldir=Template.dir~
  11483. rm -rf $tpldir~
  11484. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11485. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11486. $RANLIB $oldlib'
  11487. archive_cmds_CXX='tpldir=Template.dir~
  11488. rm -rf $tpldir~
  11489. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11490. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11491. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11492. rm -rf $tpldir~
  11493. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11494. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11495. ;;
  11496. *) # Version 6 and above use weak symbols
  11497. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11498. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11499. ;;
  11500. esac
  11501. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11502. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11503. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11504. ;;
  11505. cxx*)
  11506. # Compaq C++
  11507. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11508. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11509. runpath_var=LD_RUN_PATH
  11510. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11511. hardcode_libdir_separator_CXX=:
  11512. # Commands to make compiler produce verbose output that lists
  11513. # what "hidden" libraries, object files and flags are used when
  11514. # linking a shared library.
  11515. #
  11516. # There doesn't appear to be a way to prevent this compiler from
  11517. # explicitly linking system object files so we need to strip them
  11518. # from the output so that they don't get included in the library
  11519. # dependencies.
  11520. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11521. ;;
  11522. xl* | mpixl* | bgxl*)
  11523. # IBM XL 8.0 on PPC, with GNU ld
  11524. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11525. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11526. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11527. if test "x$supports_anon_versioning" = xyes; then
  11528. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11529. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11530. echo "local: *; };" >> $output_objdir/$libname.ver~
  11531. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11532. fi
  11533. ;;
  11534. *)
  11535. case `$CC -V 2>&1 | sed 5q` in
  11536. *Sun\ C*)
  11537. # Sun C++ 5.9
  11538. no_undefined_flag_CXX=' -zdefs'
  11539. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11540. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11541. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11542. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11543. compiler_needs_object_CXX=yes
  11544. # Not sure whether something based on
  11545. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11546. # would be better.
  11547. output_verbose_link_cmd='func_echo_all'
  11548. # Archives containing C++ object files must be created using
  11549. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11550. # necessary to make sure instantiated templates are included
  11551. # in the archive.
  11552. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11553. ;;
  11554. esac
  11555. ;;
  11556. esac
  11557. ;;
  11558. lynxos*)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. m88k*)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. mvs*)
  11567. case $cc_basename in
  11568. cxx*)
  11569. # FIXME: insert proper C++ library support
  11570. ld_shlibs_CXX=no
  11571. ;;
  11572. *)
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. ;;
  11576. esac
  11577. ;;
  11578. netbsd*)
  11579. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11580. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11581. wlarc=
  11582. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11583. hardcode_direct_CXX=yes
  11584. hardcode_shlibpath_var_CXX=no
  11585. fi
  11586. # Workaround some broken pre-1.5 toolchains
  11587. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11588. ;;
  11589. *nto* | *qnx*)
  11590. ld_shlibs_CXX=yes
  11591. ;;
  11592. openbsd2*)
  11593. # C++ shared libraries are fairly broken
  11594. ld_shlibs_CXX=no
  11595. ;;
  11596. openbsd*)
  11597. if test -f /usr/libexec/ld.so; then
  11598. hardcode_direct_CXX=yes
  11599. hardcode_shlibpath_var_CXX=no
  11600. hardcode_direct_absolute_CXX=yes
  11601. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11602. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11603. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11604. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11605. export_dynamic_flag_spec_CXX='${wl}-E'
  11606. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11607. fi
  11608. output_verbose_link_cmd=func_echo_all
  11609. else
  11610. ld_shlibs_CXX=no
  11611. fi
  11612. ;;
  11613. osf3* | osf4* | osf5*)
  11614. case $cc_basename in
  11615. KCC*)
  11616. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11617. # KCC will only create a shared library if the output file
  11618. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11619. # to its proper name (with version) after linking.
  11620. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11621. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11622. hardcode_libdir_separator_CXX=:
  11623. # Archives containing C++ object files must be created using
  11624. # the KAI C++ compiler.
  11625. case $host in
  11626. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11627. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11628. esac
  11629. ;;
  11630. RCC*)
  11631. # Rational C++ 2.4.1
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. ;;
  11635. cxx*)
  11636. case $host in
  11637. osf3*)
  11638. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11639. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11641. ;;
  11642. *)
  11643. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11644. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11645. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11646. echo "-hidden">> $lib.exp~
  11647. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11648. $RM $lib.exp'
  11649. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11650. ;;
  11651. esac
  11652. hardcode_libdir_separator_CXX=:
  11653. # Commands to make compiler produce verbose output that lists
  11654. # what "hidden" libraries, object files and flags are used when
  11655. # linking a shared library.
  11656. #
  11657. # There doesn't appear to be a way to prevent this compiler from
  11658. # explicitly linking system object files so we need to strip them
  11659. # from the output so that they don't get included in the library
  11660. # dependencies.
  11661. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11662. ;;
  11663. *)
  11664. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11665. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11666. case $host in
  11667. osf3*)
  11668. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11669. ;;
  11670. *)
  11671. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11672. ;;
  11673. esac
  11674. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11675. hardcode_libdir_separator_CXX=:
  11676. # Commands to make compiler produce verbose output that lists
  11677. # what "hidden" libraries, object files and flags are used when
  11678. # linking a shared library.
  11679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11680. else
  11681. # FIXME: insert proper C++ library support
  11682. ld_shlibs_CXX=no
  11683. fi
  11684. ;;
  11685. esac
  11686. ;;
  11687. psos*)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. sunos4*)
  11692. case $cc_basename in
  11693. CC*)
  11694. # Sun C++ 4.x
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. lcc*)
  11699. # Lucid
  11700. # FIXME: insert proper C++ library support
  11701. ld_shlibs_CXX=no
  11702. ;;
  11703. *)
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. ;;
  11707. esac
  11708. ;;
  11709. solaris*)
  11710. case $cc_basename in
  11711. CC* | sunCC*)
  11712. # Sun C++ 4.2, 5.x and Centerline C++
  11713. archive_cmds_need_lc_CXX=yes
  11714. no_undefined_flag_CXX=' -zdefs'
  11715. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11716. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11717. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11718. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11719. hardcode_shlibpath_var_CXX=no
  11720. case $host_os in
  11721. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11722. *)
  11723. # The compiler driver will combine and reorder linker options,
  11724. # but understands `-z linker_flag'.
  11725. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11726. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11727. ;;
  11728. esac
  11729. link_all_deplibs_CXX=yes
  11730. output_verbose_link_cmd='func_echo_all'
  11731. # Archives containing C++ object files must be created using
  11732. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11733. # necessary to make sure instantiated templates are included
  11734. # in the archive.
  11735. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11736. ;;
  11737. gcx*)
  11738. # Green Hills C++ Compiler
  11739. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11740. # The C++ compiler must be used to create the archive.
  11741. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11742. ;;
  11743. *)
  11744. # GNU C++ compiler with Solaris linker
  11745. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11746. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11747. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11748. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11749. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11750. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11751. # Commands to make compiler produce verbose output that lists
  11752. # what "hidden" libraries, object files and flags are used when
  11753. # linking a shared library.
  11754. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11755. else
  11756. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11757. # platform.
  11758. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11759. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11760. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11761. # Commands to make compiler produce verbose output that lists
  11762. # what "hidden" libraries, object files and flags are used when
  11763. # linking a shared library.
  11764. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11765. fi
  11766. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11767. case $host_os in
  11768. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11769. *)
  11770. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11771. ;;
  11772. esac
  11773. fi
  11774. ;;
  11775. esac
  11776. ;;
  11777. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11778. no_undefined_flag_CXX='${wl}-z,text'
  11779. archive_cmds_need_lc_CXX=no
  11780. hardcode_shlibpath_var_CXX=no
  11781. runpath_var='LD_RUN_PATH'
  11782. case $cc_basename in
  11783. CC*)
  11784. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11785. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11786. ;;
  11787. *)
  11788. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11790. ;;
  11791. esac
  11792. ;;
  11793. sysv5* | sco3.2v5* | sco5v6*)
  11794. # Note: We can NOT use -z defs as we might desire, because we do not
  11795. # link with -lc, and that would cause any symbols used from libc to
  11796. # always be unresolved, which means just about no library would
  11797. # ever link correctly. If we're not using GNU ld we use -z text
  11798. # though, which does catch some bad symbols but isn't as heavy-handed
  11799. # as -z defs.
  11800. no_undefined_flag_CXX='${wl}-z,text'
  11801. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11802. archive_cmds_need_lc_CXX=no
  11803. hardcode_shlibpath_var_CXX=no
  11804. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11805. hardcode_libdir_separator_CXX=':'
  11806. link_all_deplibs_CXX=yes
  11807. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11808. runpath_var='LD_RUN_PATH'
  11809. case $cc_basename in
  11810. CC*)
  11811. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11812. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11813. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11814. '"$old_archive_cmds_CXX"
  11815. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11816. '"$reload_cmds_CXX"
  11817. ;;
  11818. *)
  11819. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11821. ;;
  11822. esac
  11823. ;;
  11824. tandem*)
  11825. case $cc_basename in
  11826. NCC*)
  11827. # NonStop-UX NCC 3.20
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. *)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. esac
  11836. ;;
  11837. vxworks*)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. *)
  11842. # FIXME: insert proper C++ library support
  11843. ld_shlibs_CXX=no
  11844. ;;
  11845. esac
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11847. $as_echo "$ld_shlibs_CXX" >&6; }
  11848. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11849. GCC_CXX="$GXX"
  11850. LD_CXX="$LD"
  11851. ## CAVEAT EMPTOR:
  11852. ## There is no encapsulation within the following macros, do not change
  11853. ## the running order or otherwise move them around unless you know exactly
  11854. ## what you are doing...
  11855. # Dependencies to place before and after the object being linked:
  11856. predep_objects_CXX=
  11857. postdep_objects_CXX=
  11858. predeps_CXX=
  11859. postdeps_CXX=
  11860. compiler_lib_search_path_CXX=
  11861. cat > conftest.$ac_ext <<_LT_EOF
  11862. class Foo
  11863. {
  11864. public:
  11865. Foo (void) { a = 0; }
  11866. private:
  11867. int a;
  11868. };
  11869. _LT_EOF
  11870. _lt_libdeps_save_CFLAGS=$CFLAGS
  11871. case "$CC $CFLAGS " in #(
  11872. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11873. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11874. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11875. esac
  11876. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11877. (eval $ac_compile) 2>&5
  11878. ac_status=$?
  11879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11880. test $ac_status = 0; }; then
  11881. # Parse the compiler output and extract the necessary
  11882. # objects, libraries and library flags.
  11883. # Sentinel used to keep track of whether or not we are before
  11884. # the conftest object file.
  11885. pre_test_object_deps_done=no
  11886. for p in `eval "$output_verbose_link_cmd"`; do
  11887. case ${prev}${p} in
  11888. -L* | -R* | -l*)
  11889. # Some compilers place space between "-{L,R}" and the path.
  11890. # Remove the space.
  11891. if test $p = "-L" ||
  11892. test $p = "-R"; then
  11893. prev=$p
  11894. continue
  11895. fi
  11896. # Expand the sysroot to ease extracting the directories later.
  11897. if test -z "$prev"; then
  11898. case $p in
  11899. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11900. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11901. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11902. esac
  11903. fi
  11904. case $p in
  11905. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11906. esac
  11907. if test "$pre_test_object_deps_done" = no; then
  11908. case ${prev} in
  11909. -L | -R)
  11910. # Internal compiler library paths should come after those
  11911. # provided the user. The postdeps already come after the
  11912. # user supplied libs so there is no need to process them.
  11913. if test -z "$compiler_lib_search_path_CXX"; then
  11914. compiler_lib_search_path_CXX="${prev}${p}"
  11915. else
  11916. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11917. fi
  11918. ;;
  11919. # The "-l" case would never come before the object being
  11920. # linked, so don't bother handling this case.
  11921. esac
  11922. else
  11923. if test -z "$postdeps_CXX"; then
  11924. postdeps_CXX="${prev}${p}"
  11925. else
  11926. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11927. fi
  11928. fi
  11929. prev=
  11930. ;;
  11931. *.lto.$objext) ;; # Ignore GCC LTO objects
  11932. *.$objext)
  11933. # This assumes that the test object file only shows up
  11934. # once in the compiler output.
  11935. if test "$p" = "conftest.$objext"; then
  11936. pre_test_object_deps_done=yes
  11937. continue
  11938. fi
  11939. if test "$pre_test_object_deps_done" = no; then
  11940. if test -z "$predep_objects_CXX"; then
  11941. predep_objects_CXX="$p"
  11942. else
  11943. predep_objects_CXX="$predep_objects_CXX $p"
  11944. fi
  11945. else
  11946. if test -z "$postdep_objects_CXX"; then
  11947. postdep_objects_CXX="$p"
  11948. else
  11949. postdep_objects_CXX="$postdep_objects_CXX $p"
  11950. fi
  11951. fi
  11952. ;;
  11953. *) ;; # Ignore the rest.
  11954. esac
  11955. done
  11956. # Clean up.
  11957. rm -f a.out a.exe
  11958. else
  11959. echo "libtool.m4: error: problem compiling CXX test program"
  11960. fi
  11961. $RM -f confest.$objext
  11962. CFLAGS=$_lt_libdeps_save_CFLAGS
  11963. # PORTME: override above test on systems where it is broken
  11964. case $host_os in
  11965. interix[3-9]*)
  11966. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11967. # hack all around it, let's just trust "g++" to DTRT.
  11968. predep_objects_CXX=
  11969. postdep_objects_CXX=
  11970. postdeps_CXX=
  11971. ;;
  11972. linux*)
  11973. case `$CC -V 2>&1 | sed 5q` in
  11974. *Sun\ C*)
  11975. # Sun C++ 5.9
  11976. # The more standards-conforming stlport4 library is
  11977. # incompatible with the Cstd library. Avoid specifying
  11978. # it if it's in CXXFLAGS. Ignore libCrun as
  11979. # -library=stlport4 depends on it.
  11980. case " $CXX $CXXFLAGS " in
  11981. *" -library=stlport4 "*)
  11982. solaris_use_stlport4=yes
  11983. ;;
  11984. esac
  11985. if test "$solaris_use_stlport4" != yes; then
  11986. postdeps_CXX='-library=Cstd -library=Crun'
  11987. fi
  11988. ;;
  11989. esac
  11990. ;;
  11991. solaris*)
  11992. case $cc_basename in
  11993. CC* | sunCC*)
  11994. # The more standards-conforming stlport4 library is
  11995. # incompatible with the Cstd library. Avoid specifying
  11996. # it if it's in CXXFLAGS. Ignore libCrun as
  11997. # -library=stlport4 depends on it.
  11998. case " $CXX $CXXFLAGS " in
  11999. *" -library=stlport4 "*)
  12000. solaris_use_stlport4=yes
  12001. ;;
  12002. esac
  12003. # Adding this requires a known-good setup of shared libraries for
  12004. # Sun compiler versions before 5.6, else PIC objects from an old
  12005. # archive will be linked into the output, leading to subtle bugs.
  12006. if test "$solaris_use_stlport4" != yes; then
  12007. postdeps_CXX='-library=Cstd -library=Crun'
  12008. fi
  12009. ;;
  12010. esac
  12011. ;;
  12012. esac
  12013. case " $postdeps_CXX " in
  12014. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12015. esac
  12016. compiler_lib_search_dirs_CXX=
  12017. if test -n "${compiler_lib_search_path_CXX}"; then
  12018. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12019. fi
  12020. lt_prog_compiler_wl_CXX=
  12021. lt_prog_compiler_pic_CXX=
  12022. lt_prog_compiler_static_CXX=
  12023. # C++ specific cases for pic, static, wl, etc.
  12024. if test "$GXX" = yes; then
  12025. lt_prog_compiler_wl_CXX='-Wl,'
  12026. lt_prog_compiler_static_CXX='-static'
  12027. case $host_os in
  12028. aix*)
  12029. # All AIX code is PIC.
  12030. if test "$host_cpu" = ia64; then
  12031. # AIX 5 now supports IA64 processor
  12032. lt_prog_compiler_static_CXX='-Bstatic'
  12033. fi
  12034. ;;
  12035. amigaos*)
  12036. case $host_cpu in
  12037. powerpc)
  12038. # see comment about AmigaOS4 .so support
  12039. lt_prog_compiler_pic_CXX='-fPIC'
  12040. ;;
  12041. m68k)
  12042. # FIXME: we need at least 68020 code to build shared libraries, but
  12043. # adding the `-m68020' flag to GCC prevents building anything better,
  12044. # like `-m68040'.
  12045. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12046. ;;
  12047. esac
  12048. ;;
  12049. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12050. # PIC is the default for these OSes.
  12051. ;;
  12052. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12053. # This hack is so that the source file can tell whether it is being
  12054. # built for inclusion in a dll (and should export symbols for example).
  12055. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12056. # (--disable-auto-import) libraries
  12057. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12058. ;;
  12059. darwin* | rhapsody*)
  12060. # PIC is the default on this platform
  12061. # Common symbols not allowed in MH_DYLIB files
  12062. lt_prog_compiler_pic_CXX='-fno-common'
  12063. ;;
  12064. *djgpp*)
  12065. # DJGPP does not support shared libraries at all
  12066. lt_prog_compiler_pic_CXX=
  12067. ;;
  12068. haiku*)
  12069. # PIC is the default for Haiku.
  12070. # The "-static" flag exists, but is broken.
  12071. lt_prog_compiler_static_CXX=
  12072. ;;
  12073. interix[3-9]*)
  12074. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12075. # Instead, we relocate shared libraries at runtime.
  12076. ;;
  12077. sysv4*MP*)
  12078. if test -d /usr/nec; then
  12079. lt_prog_compiler_pic_CXX=-Kconform_pic
  12080. fi
  12081. ;;
  12082. hpux*)
  12083. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12084. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12085. # sets the default TLS model and affects inlining.
  12086. case $host_cpu in
  12087. hppa*64*)
  12088. ;;
  12089. *)
  12090. lt_prog_compiler_pic_CXX='-fPIC'
  12091. ;;
  12092. esac
  12093. ;;
  12094. *qnx* | *nto*)
  12095. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12096. # it will coredump.
  12097. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12098. ;;
  12099. *)
  12100. lt_prog_compiler_pic_CXX='-fPIC'
  12101. ;;
  12102. esac
  12103. else
  12104. case $host_os in
  12105. aix[4-9]*)
  12106. # All AIX code is PIC.
  12107. if test "$host_cpu" = ia64; then
  12108. # AIX 5 now supports IA64 processor
  12109. lt_prog_compiler_static_CXX='-Bstatic'
  12110. else
  12111. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12112. fi
  12113. ;;
  12114. chorus*)
  12115. case $cc_basename in
  12116. cxch68*)
  12117. # Green Hills C++ Compiler
  12118. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12119. ;;
  12120. esac
  12121. ;;
  12122. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12123. # This hack is so that the source file can tell whether it is being
  12124. # built for inclusion in a dll (and should export symbols for example).
  12125. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12126. ;;
  12127. dgux*)
  12128. case $cc_basename in
  12129. ec++*)
  12130. lt_prog_compiler_pic_CXX='-KPIC'
  12131. ;;
  12132. ghcx*)
  12133. # Green Hills C++ Compiler
  12134. lt_prog_compiler_pic_CXX='-pic'
  12135. ;;
  12136. *)
  12137. ;;
  12138. esac
  12139. ;;
  12140. freebsd* | dragonfly*)
  12141. # FreeBSD uses GNU C++
  12142. ;;
  12143. hpux9* | hpux10* | hpux11*)
  12144. case $cc_basename in
  12145. CC*)
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12148. if test "$host_cpu" != ia64; then
  12149. lt_prog_compiler_pic_CXX='+Z'
  12150. fi
  12151. ;;
  12152. aCC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12155. case $host_cpu in
  12156. hppa*64*|ia64*)
  12157. # +Z the default
  12158. ;;
  12159. *)
  12160. lt_prog_compiler_pic_CXX='+Z'
  12161. ;;
  12162. esac
  12163. ;;
  12164. *)
  12165. ;;
  12166. esac
  12167. ;;
  12168. interix*)
  12169. # This is c89, which is MS Visual C++ (no shared libs)
  12170. # Anyone wants to do a port?
  12171. ;;
  12172. irix5* | irix6* | nonstopux*)
  12173. case $cc_basename in
  12174. CC*)
  12175. lt_prog_compiler_wl_CXX='-Wl,'
  12176. lt_prog_compiler_static_CXX='-non_shared'
  12177. # CC pic flag -KPIC is the default.
  12178. ;;
  12179. *)
  12180. ;;
  12181. esac
  12182. ;;
  12183. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12184. case $cc_basename in
  12185. KCC*)
  12186. # KAI C++ Compiler
  12187. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12188. lt_prog_compiler_pic_CXX='-fPIC'
  12189. ;;
  12190. ecpc* )
  12191. # old Intel C++ for x86_64 which still supported -KPIC.
  12192. lt_prog_compiler_wl_CXX='-Wl,'
  12193. lt_prog_compiler_pic_CXX='-KPIC'
  12194. lt_prog_compiler_static_CXX='-static'
  12195. ;;
  12196. icpc* )
  12197. # Intel C++, used to be incompatible with GCC.
  12198. # ICC 10 doesn't accept -KPIC any more.
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-fPIC'
  12201. lt_prog_compiler_static_CXX='-static'
  12202. ;;
  12203. pgCC* | pgcpp*)
  12204. # Portland Group C++ compiler
  12205. lt_prog_compiler_wl_CXX='-Wl,'
  12206. lt_prog_compiler_pic_CXX='-fpic'
  12207. lt_prog_compiler_static_CXX='-Bstatic'
  12208. ;;
  12209. cxx*)
  12210. # Compaq C++
  12211. # Make sure the PIC flag is empty. It appears that all Alpha
  12212. # Linux and Compaq Tru64 Unix objects are PIC.
  12213. lt_prog_compiler_pic_CXX=
  12214. lt_prog_compiler_static_CXX='-non_shared'
  12215. ;;
  12216. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12217. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12218. lt_prog_compiler_wl_CXX='-Wl,'
  12219. lt_prog_compiler_pic_CXX='-qpic'
  12220. lt_prog_compiler_static_CXX='-qstaticlink'
  12221. ;;
  12222. *)
  12223. case `$CC -V 2>&1 | sed 5q` in
  12224. *Sun\ C*)
  12225. # Sun C++ 5.9
  12226. lt_prog_compiler_pic_CXX='-KPIC'
  12227. lt_prog_compiler_static_CXX='-Bstatic'
  12228. lt_prog_compiler_wl_CXX='-Qoption ld '
  12229. ;;
  12230. esac
  12231. ;;
  12232. esac
  12233. ;;
  12234. lynxos*)
  12235. ;;
  12236. m88k*)
  12237. ;;
  12238. mvs*)
  12239. case $cc_basename in
  12240. cxx*)
  12241. lt_prog_compiler_pic_CXX='-W c,exportall'
  12242. ;;
  12243. *)
  12244. ;;
  12245. esac
  12246. ;;
  12247. netbsd*)
  12248. ;;
  12249. *qnx* | *nto*)
  12250. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12251. # it will coredump.
  12252. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12253. ;;
  12254. osf3* | osf4* | osf5*)
  12255. case $cc_basename in
  12256. KCC*)
  12257. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12258. ;;
  12259. RCC*)
  12260. # Rational C++ 2.4.1
  12261. lt_prog_compiler_pic_CXX='-pic'
  12262. ;;
  12263. cxx*)
  12264. # Digital/Compaq C++
  12265. lt_prog_compiler_wl_CXX='-Wl,'
  12266. # Make sure the PIC flag is empty. It appears that all Alpha
  12267. # Linux and Compaq Tru64 Unix objects are PIC.
  12268. lt_prog_compiler_pic_CXX=
  12269. lt_prog_compiler_static_CXX='-non_shared'
  12270. ;;
  12271. *)
  12272. ;;
  12273. esac
  12274. ;;
  12275. psos*)
  12276. ;;
  12277. solaris*)
  12278. case $cc_basename in
  12279. CC* | sunCC*)
  12280. # Sun C++ 4.2, 5.x and Centerline C++
  12281. lt_prog_compiler_pic_CXX='-KPIC'
  12282. lt_prog_compiler_static_CXX='-Bstatic'
  12283. lt_prog_compiler_wl_CXX='-Qoption ld '
  12284. ;;
  12285. gcx*)
  12286. # Green Hills C++ Compiler
  12287. lt_prog_compiler_pic_CXX='-PIC'
  12288. ;;
  12289. *)
  12290. ;;
  12291. esac
  12292. ;;
  12293. sunos4*)
  12294. case $cc_basename in
  12295. CC*)
  12296. # Sun C++ 4.x
  12297. lt_prog_compiler_pic_CXX='-pic'
  12298. lt_prog_compiler_static_CXX='-Bstatic'
  12299. ;;
  12300. lcc*)
  12301. # Lucid
  12302. lt_prog_compiler_pic_CXX='-pic'
  12303. ;;
  12304. *)
  12305. ;;
  12306. esac
  12307. ;;
  12308. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12309. case $cc_basename in
  12310. CC*)
  12311. lt_prog_compiler_wl_CXX='-Wl,'
  12312. lt_prog_compiler_pic_CXX='-KPIC'
  12313. lt_prog_compiler_static_CXX='-Bstatic'
  12314. ;;
  12315. esac
  12316. ;;
  12317. tandem*)
  12318. case $cc_basename in
  12319. NCC*)
  12320. # NonStop-UX NCC 3.20
  12321. lt_prog_compiler_pic_CXX='-KPIC'
  12322. ;;
  12323. *)
  12324. ;;
  12325. esac
  12326. ;;
  12327. vxworks*)
  12328. ;;
  12329. *)
  12330. lt_prog_compiler_can_build_shared_CXX=no
  12331. ;;
  12332. esac
  12333. fi
  12334. case $host_os in
  12335. # For platforms which do not support PIC, -DPIC is meaningless:
  12336. *djgpp*)
  12337. lt_prog_compiler_pic_CXX=
  12338. ;;
  12339. *)
  12340. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12341. ;;
  12342. esac
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12344. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12345. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12346. $as_echo_n "(cached) " >&6
  12347. else
  12348. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12349. fi
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12351. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12352. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12353. #
  12354. # Check to make sure the PIC flag actually works.
  12355. #
  12356. if test -n "$lt_prog_compiler_pic_CXX"; then
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12358. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12359. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12360. $as_echo_n "(cached) " >&6
  12361. else
  12362. lt_cv_prog_compiler_pic_works_CXX=no
  12363. ac_outfile=conftest.$ac_objext
  12364. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12365. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12366. # Insert the option either (1) after the last *FLAGS variable, or
  12367. # (2) before a word containing "conftest.", or (3) at the end.
  12368. # Note that $ac_compile itself does not contain backslashes and begins
  12369. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12370. # The option is referenced via a variable to avoid confusing sed.
  12371. lt_compile=`echo "$ac_compile" | $SED \
  12372. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12373. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12374. -e 's:$: $lt_compiler_flag:'`
  12375. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12376. (eval "$lt_compile" 2>conftest.err)
  12377. ac_status=$?
  12378. cat conftest.err >&5
  12379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12380. if (exit $ac_status) && test -s "$ac_outfile"; then
  12381. # The compiler can only warn and ignore the option if not recognized
  12382. # So say no if there are warnings other than the usual output.
  12383. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12385. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12386. lt_cv_prog_compiler_pic_works_CXX=yes
  12387. fi
  12388. fi
  12389. $RM conftest*
  12390. fi
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12392. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12393. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12394. case $lt_prog_compiler_pic_CXX in
  12395. "" | " "*) ;;
  12396. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12397. esac
  12398. else
  12399. lt_prog_compiler_pic_CXX=
  12400. lt_prog_compiler_can_build_shared_CXX=no
  12401. fi
  12402. fi
  12403. #
  12404. # Check to make sure the static flag actually works.
  12405. #
  12406. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12408. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12409. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. lt_cv_prog_compiler_static_works_CXX=no
  12413. save_LDFLAGS="$LDFLAGS"
  12414. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12415. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12416. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12417. # The linker can only warn and ignore the option if not recognized
  12418. # So say no if there are warnings
  12419. if test -s conftest.err; then
  12420. # Append any errors to the config.log.
  12421. cat conftest.err 1>&5
  12422. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12423. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12424. if diff conftest.exp conftest.er2 >/dev/null; then
  12425. lt_cv_prog_compiler_static_works_CXX=yes
  12426. fi
  12427. else
  12428. lt_cv_prog_compiler_static_works_CXX=yes
  12429. fi
  12430. fi
  12431. $RM -r conftest*
  12432. LDFLAGS="$save_LDFLAGS"
  12433. fi
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12435. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12436. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12437. :
  12438. else
  12439. lt_prog_compiler_static_CXX=
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12442. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12443. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. lt_cv_prog_compiler_c_o_CXX=no
  12447. $RM -r conftest 2>/dev/null
  12448. mkdir conftest
  12449. cd conftest
  12450. mkdir out
  12451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12452. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12453. # Insert the option either (1) after the last *FLAGS variable, or
  12454. # (2) before a word containing "conftest.", or (3) at the end.
  12455. # Note that $ac_compile itself does not contain backslashes and begins
  12456. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12457. lt_compile=`echo "$ac_compile" | $SED \
  12458. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12459. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12460. -e 's:$: $lt_compiler_flag:'`
  12461. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12462. (eval "$lt_compile" 2>out/conftest.err)
  12463. ac_status=$?
  12464. cat out/conftest.err >&5
  12465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12466. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12467. then
  12468. # The compiler can only warn and ignore the option if not recognized
  12469. # So say no if there are warnings
  12470. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12471. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12472. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12473. lt_cv_prog_compiler_c_o_CXX=yes
  12474. fi
  12475. fi
  12476. chmod u+w . 2>&5
  12477. $RM conftest*
  12478. # SGI C++ compiler will create directory out/ii_files/ for
  12479. # template instantiation
  12480. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12481. $RM out/* && rmdir out
  12482. cd ..
  12483. $RM -r conftest
  12484. $RM conftest*
  12485. fi
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12487. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12489. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12490. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12491. $as_echo_n "(cached) " >&6
  12492. else
  12493. lt_cv_prog_compiler_c_o_CXX=no
  12494. $RM -r conftest 2>/dev/null
  12495. mkdir conftest
  12496. cd conftest
  12497. mkdir out
  12498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12499. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12500. # Insert the option either (1) after the last *FLAGS variable, or
  12501. # (2) before a word containing "conftest.", or (3) at the end.
  12502. # Note that $ac_compile itself does not contain backslashes and begins
  12503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12504. lt_compile=`echo "$ac_compile" | $SED \
  12505. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12506. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12507. -e 's:$: $lt_compiler_flag:'`
  12508. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12509. (eval "$lt_compile" 2>out/conftest.err)
  12510. ac_status=$?
  12511. cat out/conftest.err >&5
  12512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12513. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12514. then
  12515. # The compiler can only warn and ignore the option if not recognized
  12516. # So say no if there are warnings
  12517. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12518. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12519. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12520. lt_cv_prog_compiler_c_o_CXX=yes
  12521. fi
  12522. fi
  12523. chmod u+w . 2>&5
  12524. $RM conftest*
  12525. # SGI C++ compiler will create directory out/ii_files/ for
  12526. # template instantiation
  12527. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12528. $RM out/* && rmdir out
  12529. cd ..
  12530. $RM -r conftest
  12531. $RM conftest*
  12532. fi
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12534. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12535. hard_links="nottested"
  12536. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12537. # do not overwrite the value of need_locks provided by the user
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12539. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12540. hard_links=yes
  12541. $RM conftest*
  12542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12543. touch conftest.a
  12544. ln conftest.a conftest.b 2>&5 || hard_links=no
  12545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12547. $as_echo "$hard_links" >&6; }
  12548. if test "$hard_links" = no; then
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12550. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12551. need_locks=warn
  12552. fi
  12553. else
  12554. need_locks=no
  12555. fi
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12557. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12558. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12559. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12560. case $host_os in
  12561. aix[4-9]*)
  12562. # If we're using GNU nm, then we don't want the "-C" option.
  12563. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12564. # Also, AIX nm treats weak defined symbols like other global defined
  12565. # symbols, whereas GNU nm marks them as "W".
  12566. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12567. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12568. else
  12569. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12570. fi
  12571. ;;
  12572. pw32*)
  12573. export_symbols_cmds_CXX="$ltdll_cmds"
  12574. ;;
  12575. cygwin* | mingw* | cegcc*)
  12576. case $cc_basename in
  12577. cl*)
  12578. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12579. ;;
  12580. *)
  12581. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12582. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12583. ;;
  12584. esac
  12585. ;;
  12586. *)
  12587. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12588. ;;
  12589. esac
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12591. $as_echo "$ld_shlibs_CXX" >&6; }
  12592. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12593. with_gnu_ld_CXX=$with_gnu_ld
  12594. #
  12595. # Do we need to explicitly link libc?
  12596. #
  12597. case "x$archive_cmds_need_lc_CXX" in
  12598. x|xyes)
  12599. # Assume -lc should be added
  12600. archive_cmds_need_lc_CXX=yes
  12601. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12602. case $archive_cmds_CXX in
  12603. *'~'*)
  12604. # FIXME: we may have to deal with multi-command sequences.
  12605. ;;
  12606. '$CC '*)
  12607. # Test whether the compiler implicitly links with -lc since on some
  12608. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12609. # to ld, don't add -lc before -lgcc.
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12611. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12612. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12613. $as_echo_n "(cached) " >&6
  12614. else
  12615. $RM conftest*
  12616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12618. (eval $ac_compile) 2>&5
  12619. ac_status=$?
  12620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12621. test $ac_status = 0; } 2>conftest.err; then
  12622. soname=conftest
  12623. lib=conftest
  12624. libobjs=conftest.$ac_objext
  12625. deplibs=
  12626. wl=$lt_prog_compiler_wl_CXX
  12627. pic_flag=$lt_prog_compiler_pic_CXX
  12628. compiler_flags=-v
  12629. linker_flags=-v
  12630. verstring=
  12631. output_objdir=.
  12632. libname=conftest
  12633. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12634. allow_undefined_flag_CXX=
  12635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12636. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12637. ac_status=$?
  12638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12639. test $ac_status = 0; }
  12640. then
  12641. lt_cv_archive_cmds_need_lc_CXX=no
  12642. else
  12643. lt_cv_archive_cmds_need_lc_CXX=yes
  12644. fi
  12645. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12646. else
  12647. cat conftest.err 1>&5
  12648. fi
  12649. $RM conftest*
  12650. fi
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12652. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12653. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12654. ;;
  12655. esac
  12656. fi
  12657. ;;
  12658. esac
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12660. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12661. library_names_spec=
  12662. libname_spec='lib$name'
  12663. soname_spec=
  12664. shrext_cmds=".so"
  12665. postinstall_cmds=
  12666. postuninstall_cmds=
  12667. finish_cmds=
  12668. finish_eval=
  12669. shlibpath_var=
  12670. shlibpath_overrides_runpath=unknown
  12671. version_type=none
  12672. dynamic_linker="$host_os ld.so"
  12673. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12674. need_lib_prefix=unknown
  12675. hardcode_into_libs=no
  12676. # when you set need_version to no, make sure it does not cause -set_version
  12677. # flags to be left without arguments
  12678. need_version=unknown
  12679. case $host_os in
  12680. aix3*)
  12681. version_type=linux # correct to gnu/linux during the next big refactor
  12682. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12683. shlibpath_var=LIBPATH
  12684. # AIX 3 has no versioning support, so we append a major version to the name.
  12685. soname_spec='${libname}${release}${shared_ext}$major'
  12686. ;;
  12687. aix[4-9]*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. need_lib_prefix=no
  12690. need_version=no
  12691. hardcode_into_libs=yes
  12692. if test "$host_cpu" = ia64; then
  12693. # AIX 5 supports IA64
  12694. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12695. shlibpath_var=LD_LIBRARY_PATH
  12696. else
  12697. # With GCC up to 2.95.x, collect2 would create an import file
  12698. # for dependence libraries. The import file would start with
  12699. # the line `#! .'. This would cause the generated library to
  12700. # depend on `.', always an invalid library. This was fixed in
  12701. # development snapshots of GCC prior to 3.0.
  12702. case $host_os in
  12703. aix4 | aix4.[01] | aix4.[01].*)
  12704. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12705. echo ' yes '
  12706. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12707. :
  12708. else
  12709. can_build_shared=no
  12710. fi
  12711. ;;
  12712. esac
  12713. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12714. # soname into executable. Probably we can add versioning support to
  12715. # collect2, so additional links can be useful in future.
  12716. if test "$aix_use_runtimelinking" = yes; then
  12717. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12718. # instead of lib<name>.a to let people know that these are not
  12719. # typical AIX shared libraries.
  12720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12721. else
  12722. # We preserve .a as extension for shared libraries through AIX4.2
  12723. # and later when we are not doing run time linking.
  12724. library_names_spec='${libname}${release}.a $libname.a'
  12725. soname_spec='${libname}${release}${shared_ext}$major'
  12726. fi
  12727. shlibpath_var=LIBPATH
  12728. fi
  12729. ;;
  12730. amigaos*)
  12731. case $host_cpu in
  12732. powerpc)
  12733. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12734. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12736. ;;
  12737. m68k)
  12738. library_names_spec='$libname.ixlibrary $libname.a'
  12739. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12740. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12741. ;;
  12742. esac
  12743. ;;
  12744. beos*)
  12745. library_names_spec='${libname}${shared_ext}'
  12746. dynamic_linker="$host_os ld.so"
  12747. shlibpath_var=LIBRARY_PATH
  12748. ;;
  12749. bsdi[45]*)
  12750. version_type=linux # correct to gnu/linux during the next big refactor
  12751. need_version=no
  12752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12753. soname_spec='${libname}${release}${shared_ext}$major'
  12754. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12755. shlibpath_var=LD_LIBRARY_PATH
  12756. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12757. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12758. # the default ld.so.conf also contains /usr/contrib/lib and
  12759. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12760. # libtool to hard-code these into programs
  12761. ;;
  12762. cygwin* | mingw* | pw32* | cegcc*)
  12763. version_type=windows
  12764. shrext_cmds=".dll"
  12765. need_version=no
  12766. need_lib_prefix=no
  12767. case $GCC,$cc_basename in
  12768. yes,*)
  12769. # gcc
  12770. library_names_spec='$libname.dll.a'
  12771. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12772. postinstall_cmds='base_file=`basename \${file}`~
  12773. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12774. dldir=$destdir/`dirname \$dlpath`~
  12775. test -d \$dldir || mkdir -p \$dldir~
  12776. $install_prog $dir/$dlname \$dldir/$dlname~
  12777. chmod a+x \$dldir/$dlname~
  12778. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12779. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12780. fi'
  12781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12782. dlpath=$dir/\$dldll~
  12783. $RM \$dlpath'
  12784. shlibpath_overrides_runpath=yes
  12785. case $host_os in
  12786. cygwin*)
  12787. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12788. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12789. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12790. ;;
  12791. mingw* | cegcc*)
  12792. # MinGW DLLs use traditional 'lib' prefix
  12793. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12794. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12795. ;;
  12796. pw32*)
  12797. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12798. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12799. ;;
  12800. esac
  12801. dynamic_linker='Win32 ld.exe'
  12802. ;;
  12803. *,cl*)
  12804. # Native MSVC
  12805. libname_spec='$name'
  12806. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12807. library_names_spec='${libname}.dll.lib'
  12808. case $build_os in
  12809. mingw*)
  12810. sys_lib_search_path_spec=
  12811. lt_save_ifs=$IFS
  12812. IFS=';'
  12813. for lt_path in $LIB
  12814. do
  12815. IFS=$lt_save_ifs
  12816. # Let DOS variable expansion print the short 8.3 style file name.
  12817. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12818. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12819. done
  12820. IFS=$lt_save_ifs
  12821. # Convert to MSYS style.
  12822. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12823. ;;
  12824. cygwin*)
  12825. # Convert to unix form, then to dos form, then back to unix form
  12826. # but this time dos style (no spaces!) so that the unix form looks
  12827. # like /cygdrive/c/PROGRA~1:/cygdr...
  12828. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12829. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12830. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12831. ;;
  12832. *)
  12833. sys_lib_search_path_spec="$LIB"
  12834. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12835. # It is most probably a Windows format PATH.
  12836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12837. else
  12838. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12839. fi
  12840. # FIXME: find the short name or the path components, as spaces are
  12841. # common. (e.g. "Program Files" -> "PROGRA~1")
  12842. ;;
  12843. esac
  12844. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12845. postinstall_cmds='base_file=`basename \${file}`~
  12846. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12847. dldir=$destdir/`dirname \$dlpath`~
  12848. test -d \$dldir || mkdir -p \$dldir~
  12849. $install_prog $dir/$dlname \$dldir/$dlname'
  12850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12851. dlpath=$dir/\$dldll~
  12852. $RM \$dlpath'
  12853. shlibpath_overrides_runpath=yes
  12854. dynamic_linker='Win32 link.exe'
  12855. ;;
  12856. *)
  12857. # Assume MSVC wrapper
  12858. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12859. dynamic_linker='Win32 ld.exe'
  12860. ;;
  12861. esac
  12862. # FIXME: first we should search . and the directory the executable is in
  12863. shlibpath_var=PATH
  12864. ;;
  12865. darwin* | rhapsody*)
  12866. dynamic_linker="$host_os dyld"
  12867. version_type=darwin
  12868. need_lib_prefix=no
  12869. need_version=no
  12870. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12871. soname_spec='${libname}${release}${major}$shared_ext'
  12872. shlibpath_overrides_runpath=yes
  12873. shlibpath_var=DYLD_LIBRARY_PATH
  12874. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12875. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12876. ;;
  12877. dgux*)
  12878. version_type=linux # correct to gnu/linux during the next big refactor
  12879. need_lib_prefix=no
  12880. need_version=no
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12882. soname_spec='${libname}${release}${shared_ext}$major'
  12883. shlibpath_var=LD_LIBRARY_PATH
  12884. ;;
  12885. freebsd* | dragonfly*)
  12886. # DragonFly does not have aout. When/if they implement a new
  12887. # versioning mechanism, adjust this.
  12888. if test -x /usr/bin/objformat; then
  12889. objformat=`/usr/bin/objformat`
  12890. else
  12891. case $host_os in
  12892. freebsd[23].*) objformat=aout ;;
  12893. *) objformat=elf ;;
  12894. esac
  12895. fi
  12896. version_type=freebsd-$objformat
  12897. case $version_type in
  12898. freebsd-elf*)
  12899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12900. need_version=no
  12901. need_lib_prefix=no
  12902. ;;
  12903. freebsd-*)
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12905. need_version=yes
  12906. ;;
  12907. esac
  12908. shlibpath_var=LD_LIBRARY_PATH
  12909. case $host_os in
  12910. freebsd2.*)
  12911. shlibpath_overrides_runpath=yes
  12912. ;;
  12913. freebsd3.[01]* | freebsdelf3.[01]*)
  12914. shlibpath_overrides_runpath=yes
  12915. hardcode_into_libs=yes
  12916. ;;
  12917. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12918. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. *) # from 4.6 on, and DragonFly
  12923. shlibpath_overrides_runpath=yes
  12924. hardcode_into_libs=yes
  12925. ;;
  12926. esac
  12927. ;;
  12928. gnu*)
  12929. version_type=linux # correct to gnu/linux during the next big refactor
  12930. need_lib_prefix=no
  12931. need_version=no
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12933. soname_spec='${libname}${release}${shared_ext}$major'
  12934. shlibpath_var=LD_LIBRARY_PATH
  12935. shlibpath_overrides_runpath=no
  12936. hardcode_into_libs=yes
  12937. ;;
  12938. haiku*)
  12939. version_type=linux # correct to gnu/linux during the next big refactor
  12940. need_lib_prefix=no
  12941. need_version=no
  12942. dynamic_linker="$host_os runtime_loader"
  12943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12944. soname_spec='${libname}${release}${shared_ext}$major'
  12945. shlibpath_var=LIBRARY_PATH
  12946. shlibpath_overrides_runpath=yes
  12947. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12948. hardcode_into_libs=yes
  12949. ;;
  12950. hpux9* | hpux10* | hpux11*)
  12951. # Give a soname corresponding to the major version so that dld.sl refuses to
  12952. # link against other versions.
  12953. version_type=sunos
  12954. need_lib_prefix=no
  12955. need_version=no
  12956. case $host_cpu in
  12957. ia64*)
  12958. shrext_cmds='.so'
  12959. hardcode_into_libs=yes
  12960. dynamic_linker="$host_os dld.so"
  12961. shlibpath_var=LD_LIBRARY_PATH
  12962. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12964. soname_spec='${libname}${release}${shared_ext}$major'
  12965. if test "X$HPUX_IA64_MODE" = X32; then
  12966. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12967. else
  12968. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12969. fi
  12970. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12971. ;;
  12972. hppa*64*)
  12973. shrext_cmds='.sl'
  12974. hardcode_into_libs=yes
  12975. dynamic_linker="$host_os dld.sl"
  12976. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12977. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12981. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12982. ;;
  12983. *)
  12984. shrext_cmds='.sl'
  12985. dynamic_linker="$host_os dld.sl"
  12986. shlibpath_var=SHLIB_PATH
  12987. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. ;;
  12991. esac
  12992. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12993. postinstall_cmds='chmod 555 $lib'
  12994. # or fails outright, so override atomically:
  12995. install_override_mode=555
  12996. ;;
  12997. interix[3-9]*)
  12998. version_type=linux # correct to gnu/linux during the next big refactor
  12999. need_lib_prefix=no
  13000. need_version=no
  13001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13002. soname_spec='${libname}${release}${shared_ext}$major'
  13003. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. shlibpath_overrides_runpath=no
  13006. hardcode_into_libs=yes
  13007. ;;
  13008. irix5* | irix6* | nonstopux*)
  13009. case $host_os in
  13010. nonstopux*) version_type=nonstopux ;;
  13011. *)
  13012. if test "$lt_cv_prog_gnu_ld" = yes; then
  13013. version_type=linux # correct to gnu/linux during the next big refactor
  13014. else
  13015. version_type=irix
  13016. fi ;;
  13017. esac
  13018. need_lib_prefix=no
  13019. need_version=no
  13020. soname_spec='${libname}${release}${shared_ext}$major'
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13022. case $host_os in
  13023. irix5* | nonstopux*)
  13024. libsuff= shlibsuff=
  13025. ;;
  13026. *)
  13027. case $LD in # libtool.m4 will add one of these switches to LD
  13028. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13029. libsuff= shlibsuff= libmagic=32-bit;;
  13030. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13031. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13032. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13033. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13034. *) libsuff= shlibsuff= libmagic=never-match;;
  13035. esac
  13036. ;;
  13037. esac
  13038. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13039. shlibpath_overrides_runpath=no
  13040. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13041. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13042. hardcode_into_libs=yes
  13043. ;;
  13044. # No shared lib support for Linux oldld, aout, or coff.
  13045. linux*oldld* | linux*aout* | linux*coff*)
  13046. dynamic_linker=no
  13047. ;;
  13048. # This must be glibc/ELF.
  13049. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13050. version_type=linux # correct to gnu/linux during the next big refactor
  13051. need_lib_prefix=no
  13052. need_version=no
  13053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13054. soname_spec='${libname}${release}${shared_ext}$major'
  13055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13056. shlibpath_var=LD_LIBRARY_PATH
  13057. shlibpath_overrides_runpath=no
  13058. # Some binutils ld are patched to set DT_RUNPATH
  13059. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13060. $as_echo_n "(cached) " >&6
  13061. else
  13062. lt_cv_shlibpath_overrides_runpath=no
  13063. save_LDFLAGS=$LDFLAGS
  13064. save_libdir=$libdir
  13065. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13066. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13068. /* end confdefs.h. */
  13069. int
  13070. main ()
  13071. {
  13072. ;
  13073. return 0;
  13074. }
  13075. _ACEOF
  13076. if ac_fn_cxx_try_link "$LINENO"; then :
  13077. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13078. lt_cv_shlibpath_overrides_runpath=yes
  13079. fi
  13080. fi
  13081. rm -f core conftest.err conftest.$ac_objext \
  13082. conftest$ac_exeext conftest.$ac_ext
  13083. LDFLAGS=$save_LDFLAGS
  13084. libdir=$save_libdir
  13085. fi
  13086. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13087. # This implies no fast_install, which is unacceptable.
  13088. # Some rework will be needed to allow for fast_install
  13089. # before this can be enabled.
  13090. hardcode_into_libs=yes
  13091. # Append ld.so.conf contents to the search path
  13092. if test -f /etc/ld.so.conf; then
  13093. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13094. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13095. fi
  13096. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13097. # powerpc, because MkLinux only supported shared libraries with the
  13098. # GNU dynamic linker. Since this was broken with cross compilers,
  13099. # most powerpc-linux boxes support dynamic linking these days and
  13100. # people can always --disable-shared, the test was removed, and we
  13101. # assume the GNU/Linux dynamic linker is in use.
  13102. dynamic_linker='GNU/Linux ld.so'
  13103. ;;
  13104. netbsd*)
  13105. version_type=sunos
  13106. need_lib_prefix=no
  13107. need_version=no
  13108. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13111. dynamic_linker='NetBSD (a.out) ld.so'
  13112. else
  13113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13114. soname_spec='${libname}${release}${shared_ext}$major'
  13115. dynamic_linker='NetBSD ld.elf_so'
  13116. fi
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=yes
  13119. hardcode_into_libs=yes
  13120. ;;
  13121. newsos6)
  13122. version_type=linux # correct to gnu/linux during the next big refactor
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. shlibpath_overrides_runpath=yes
  13126. ;;
  13127. *nto* | *qnx*)
  13128. version_type=qnx
  13129. need_lib_prefix=no
  13130. need_version=no
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. shlibpath_overrides_runpath=no
  13135. hardcode_into_libs=yes
  13136. dynamic_linker='ldqnx.so'
  13137. ;;
  13138. openbsd*)
  13139. version_type=sunos
  13140. sys_lib_dlsearch_path_spec="/usr/lib"
  13141. need_lib_prefix=no
  13142. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13143. case $host_os in
  13144. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13145. *) need_version=no ;;
  13146. esac
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13148. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13151. case $host_os in
  13152. openbsd2.[89] | openbsd2.[89].*)
  13153. shlibpath_overrides_runpath=no
  13154. ;;
  13155. *)
  13156. shlibpath_overrides_runpath=yes
  13157. ;;
  13158. esac
  13159. else
  13160. shlibpath_overrides_runpath=yes
  13161. fi
  13162. ;;
  13163. os2*)
  13164. libname_spec='$name'
  13165. shrext_cmds=".dll"
  13166. need_lib_prefix=no
  13167. library_names_spec='$libname${shared_ext} $libname.a'
  13168. dynamic_linker='OS/2 ld.exe'
  13169. shlibpath_var=LIBPATH
  13170. ;;
  13171. osf3* | osf4* | osf5*)
  13172. version_type=osf
  13173. need_lib_prefix=no
  13174. need_version=no
  13175. soname_spec='${libname}${release}${shared_ext}$major'
  13176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13177. shlibpath_var=LD_LIBRARY_PATH
  13178. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13179. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13180. ;;
  13181. rdos*)
  13182. dynamic_linker=no
  13183. ;;
  13184. solaris*)
  13185. version_type=linux # correct to gnu/linux during the next big refactor
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. hardcode_into_libs=yes
  13193. # ldd complains unless libraries are executable
  13194. postinstall_cmds='chmod +x $lib'
  13195. ;;
  13196. sunos4*)
  13197. version_type=sunos
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13199. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. shlibpath_overrides_runpath=yes
  13202. if test "$with_gnu_ld" = yes; then
  13203. need_lib_prefix=no
  13204. fi
  13205. need_version=yes
  13206. ;;
  13207. sysv4 | sysv4.3*)
  13208. version_type=linux # correct to gnu/linux during the next big refactor
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. case $host_vendor in
  13213. sni)
  13214. shlibpath_overrides_runpath=no
  13215. need_lib_prefix=no
  13216. runpath_var=LD_RUN_PATH
  13217. ;;
  13218. siemens)
  13219. need_lib_prefix=no
  13220. ;;
  13221. motorola)
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. shlibpath_overrides_runpath=no
  13225. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13226. ;;
  13227. esac
  13228. ;;
  13229. sysv4*MP*)
  13230. if test -d /usr/nec ;then
  13231. version_type=linux # correct to gnu/linux during the next big refactor
  13232. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13233. soname_spec='$libname${shared_ext}.$major'
  13234. shlibpath_var=LD_LIBRARY_PATH
  13235. fi
  13236. ;;
  13237. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13238. version_type=freebsd-elf
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13242. soname_spec='${libname}${release}${shared_ext}$major'
  13243. shlibpath_var=LD_LIBRARY_PATH
  13244. shlibpath_overrides_runpath=yes
  13245. hardcode_into_libs=yes
  13246. if test "$with_gnu_ld" = yes; then
  13247. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13248. else
  13249. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13250. case $host_os in
  13251. sco3.2v5*)
  13252. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13253. ;;
  13254. esac
  13255. fi
  13256. sys_lib_dlsearch_path_spec='/usr/lib'
  13257. ;;
  13258. tpf*)
  13259. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13260. version_type=linux # correct to gnu/linux during the next big refactor
  13261. need_lib_prefix=no
  13262. need_version=no
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13264. shlibpath_var=LD_LIBRARY_PATH
  13265. shlibpath_overrides_runpath=no
  13266. hardcode_into_libs=yes
  13267. ;;
  13268. uts4*)
  13269. version_type=linux # correct to gnu/linux during the next big refactor
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. shlibpath_var=LD_LIBRARY_PATH
  13273. ;;
  13274. *)
  13275. dynamic_linker=no
  13276. ;;
  13277. esac
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13279. $as_echo "$dynamic_linker" >&6; }
  13280. test "$dynamic_linker" = no && can_build_shared=no
  13281. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13282. if test "$GCC" = yes; then
  13283. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13284. fi
  13285. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13286. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13287. fi
  13288. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13289. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13290. fi
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13292. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13293. hardcode_action_CXX=
  13294. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13295. test -n "$runpath_var_CXX" ||
  13296. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13297. # We can hardcode non-existent directories.
  13298. if test "$hardcode_direct_CXX" != no &&
  13299. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13300. # have to relink, otherwise we might link with an installed library
  13301. # when we should be linking with a yet-to-be-installed one
  13302. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13303. test "$hardcode_minus_L_CXX" != no; then
  13304. # Linking always hardcodes the temporary library directory.
  13305. hardcode_action_CXX=relink
  13306. else
  13307. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13308. hardcode_action_CXX=immediate
  13309. fi
  13310. else
  13311. # We cannot hardcode anything, or else we can only hardcode existing
  13312. # directories.
  13313. hardcode_action_CXX=unsupported
  13314. fi
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13316. $as_echo "$hardcode_action_CXX" >&6; }
  13317. if test "$hardcode_action_CXX" = relink ||
  13318. test "$inherit_rpath_CXX" = yes; then
  13319. # Fast installation is not supported
  13320. enable_fast_install=no
  13321. elif test "$shlibpath_overrides_runpath" = yes ||
  13322. test "$enable_shared" = no; then
  13323. # Fast installation is not necessary
  13324. enable_fast_install=needless
  13325. fi
  13326. fi # test -n "$compiler"
  13327. CC=$lt_save_CC
  13328. CFLAGS=$lt_save_CFLAGS
  13329. LDCXX=$LD
  13330. LD=$lt_save_LD
  13331. GCC=$lt_save_GCC
  13332. with_gnu_ld=$lt_save_with_gnu_ld
  13333. lt_cv_path_LDCXX=$lt_cv_path_LD
  13334. lt_cv_path_LD=$lt_save_path_LD
  13335. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13336. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13337. fi # test "$_lt_caught_CXX_error" != yes
  13338. ac_ext=c
  13339. ac_cpp='$CPP $CPPFLAGS'
  13340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13343. # Find a good install program. We prefer a C program (faster),
  13344. # so one script is as good as another. But avoid the broken or
  13345. # incompatible versions:
  13346. # SysV /etc/install, /usr/sbin/install
  13347. # SunOS /usr/etc/install
  13348. # IRIX /sbin/install
  13349. # AIX /bin/install
  13350. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13351. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13352. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13353. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13354. # OS/2's system install, which has a completely different semantic
  13355. # ./install, which can be erroneously created by make from ./install.sh.
  13356. # Reject install programs that cannot install multiple files.
  13357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13358. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13359. if test -z "$INSTALL"; then
  13360. if ${ac_cv_path_install+:} false; then :
  13361. $as_echo_n "(cached) " >&6
  13362. else
  13363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13364. for as_dir in $PATH
  13365. do
  13366. IFS=$as_save_IFS
  13367. test -z "$as_dir" && as_dir=.
  13368. # Account for people who put trailing slashes in PATH elements.
  13369. case $as_dir/ in #((
  13370. ./ | .// | /[cC]/* | \
  13371. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13372. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13373. /usr/ucb/* ) ;;
  13374. *)
  13375. # OSF1 and SCO ODT 3.0 have their own names for install.
  13376. # Don't use installbsd from OSF since it installs stuff as root
  13377. # by default.
  13378. for ac_prog in ginstall scoinst install; do
  13379. for ac_exec_ext in '' $ac_executable_extensions; do
  13380. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13381. if test $ac_prog = install &&
  13382. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13383. # AIX install. It has an incompatible calling convention.
  13384. :
  13385. elif test $ac_prog = install &&
  13386. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13387. # program-specific install script used by HP pwplus--don't use.
  13388. :
  13389. else
  13390. rm -rf conftest.one conftest.two conftest.dir
  13391. echo one > conftest.one
  13392. echo two > conftest.two
  13393. mkdir conftest.dir
  13394. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13395. test -s conftest.one && test -s conftest.two &&
  13396. test -s conftest.dir/conftest.one &&
  13397. test -s conftest.dir/conftest.two
  13398. then
  13399. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13400. break 3
  13401. fi
  13402. fi
  13403. fi
  13404. done
  13405. done
  13406. ;;
  13407. esac
  13408. done
  13409. IFS=$as_save_IFS
  13410. rm -rf conftest.one conftest.two conftest.dir
  13411. fi
  13412. if test "${ac_cv_path_install+set}" = set; then
  13413. INSTALL=$ac_cv_path_install
  13414. else
  13415. # As a last resort, use the slow shell script. Don't cache a
  13416. # value for INSTALL within a source directory, because that will
  13417. # break other packages using the cache if that directory is
  13418. # removed, or if the value is a relative name.
  13419. INSTALL=$ac_install_sh
  13420. fi
  13421. fi
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13423. $as_echo "$INSTALL" >&6; }
  13424. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13425. # It thinks the first close brace ends the variable substitution.
  13426. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13427. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13428. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13430. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13431. set x ${MAKE-make}
  13432. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13433. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. cat >conftest.make <<\_ACEOF
  13437. SHELL = /bin/sh
  13438. all:
  13439. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13440. _ACEOF
  13441. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13442. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13443. *@@@%%%=?*=@@@%%%*)
  13444. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13445. *)
  13446. eval ac_cv_prog_make_${ac_make}_set=no;;
  13447. esac
  13448. rm -f conftest.make
  13449. fi
  13450. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13452. $as_echo "yes" >&6; }
  13453. SET_MAKE=
  13454. else
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13456. $as_echo "no" >&6; }
  13457. SET_MAKE="MAKE=${MAKE-make}"
  13458. fi
  13459. if test -n "$ac_tool_prefix"; then
  13460. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13461. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13463. $as_echo_n "checking for $ac_word... " >&6; }
  13464. if ${ac_cv_prog_WINDRES+:} false; then :
  13465. $as_echo_n "(cached) " >&6
  13466. else
  13467. if test -n "$WINDRES"; then
  13468. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13469. else
  13470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13471. for as_dir in $PATH
  13472. do
  13473. IFS=$as_save_IFS
  13474. test -z "$as_dir" && as_dir=.
  13475. for ac_exec_ext in '' $ac_executable_extensions; do
  13476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13477. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13479. break 2
  13480. fi
  13481. done
  13482. done
  13483. IFS=$as_save_IFS
  13484. fi
  13485. fi
  13486. WINDRES=$ac_cv_prog_WINDRES
  13487. if test -n "$WINDRES"; then
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13489. $as_echo "$WINDRES" >&6; }
  13490. else
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13492. $as_echo "no" >&6; }
  13493. fi
  13494. fi
  13495. if test -z "$ac_cv_prog_WINDRES"; then
  13496. ac_ct_WINDRES=$WINDRES
  13497. # Extract the first word of "windres", so it can be a program name with args.
  13498. set dummy windres; ac_word=$2
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13500. $as_echo_n "checking for $ac_word... " >&6; }
  13501. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13502. $as_echo_n "(cached) " >&6
  13503. else
  13504. if test -n "$ac_ct_WINDRES"; then
  13505. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13506. else
  13507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13508. for as_dir in $PATH
  13509. do
  13510. IFS=$as_save_IFS
  13511. test -z "$as_dir" && as_dir=.
  13512. for ac_exec_ext in '' $ac_executable_extensions; do
  13513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13514. ac_cv_prog_ac_ct_WINDRES="windres"
  13515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13516. break 2
  13517. fi
  13518. done
  13519. done
  13520. IFS=$as_save_IFS
  13521. fi
  13522. fi
  13523. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13524. if test -n "$ac_ct_WINDRES"; then
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13526. $as_echo "$ac_ct_WINDRES" >&6; }
  13527. else
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13529. $as_echo "no" >&6; }
  13530. fi
  13531. if test "x$ac_ct_WINDRES" = x; then
  13532. WINDRES=":"
  13533. else
  13534. case $cross_compiling:$ac_tool_warned in
  13535. yes:)
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13538. ac_tool_warned=yes ;;
  13539. esac
  13540. WINDRES=$ac_ct_WINDRES
  13541. fi
  13542. else
  13543. WINDRES="$ac_cv_prog_WINDRES"
  13544. fi
  13545. case "$host" in
  13546. *-*-mingw32*)
  13547. # Except on msys, where make can't handle full pathnames (bug 1972)
  13548. ;;
  13549. *)
  13550. srcdir=`cd $srcdir && pwd`
  13551. ;;
  13552. esac
  13553. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13554. if test x$srcdir != x.; then
  13555. INCLUDE="-Iinclude $INCLUDE"
  13556. elif test -d .hg; then
  13557. as_fn_error $? "
  13558. *** When building from Mercurial you should configure and build in a
  13559. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13560. " "$LINENO" 5
  13561. fi
  13562. BASE_CFLAGS=""
  13563. BASE_LDFLAGS=""
  13564. case "$host" in
  13565. *-*-cygwin*)
  13566. # We build SDL on cygwin without the UNIX emulation layer
  13567. save_CFLAGS="$CFLAGS"
  13568. have_no_cygwin=no
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13570. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13571. CFLAGS="$save_CFLAGS -mno-cygwin"
  13572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13573. /* end confdefs.h. */
  13574. int
  13575. main ()
  13576. {
  13577. ;
  13578. return 0;
  13579. }
  13580. _ACEOF
  13581. if ac_fn_c_try_compile "$LINENO"; then :
  13582. have_no_cygwin=yes
  13583. fi
  13584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13586. $as_echo "$have_no_cygwin" >&6; }
  13587. CFLAGS="$save_CFLAGS"
  13588. if test x$have_no_cygwin = xyes; then
  13589. BASE_CFLAGS="-mno-cygwin"
  13590. BASE_LDFLAGS="-mno-cygwin"
  13591. fi
  13592. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13593. ;;
  13594. esac
  13595. # Uncomment the following line if you want to force SDL and applications
  13596. # built with it to be compiled for a particular architecture.
  13597. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13598. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13599. # The default optimization for SDL is -O3 (Bug #31)
  13600. if test "x$orig_CFLAGS" = x; then
  13601. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13602. fi
  13603. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13604. BUILD_LDFLAGS="$LDFLAGS"
  13605. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13606. ## These are common directories to find software packages
  13607. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13608. # if test -d $path/include; then
  13609. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13610. # fi
  13611. # if test -d $path/lib; then
  13612. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13613. # fi
  13614. #done
  13615. SDL_CFLAGS="$BASE_CFLAGS"
  13616. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13617. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13618. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13619. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13620. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13621. find_lib()
  13622. {
  13623. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13624. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13625. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13626. if test "$cross_compiling" = yes; then
  13627. host_lib_path=""
  13628. else
  13629. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13630. fi
  13631. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13632. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13633. if test x$lib != x; then
  13634. echo $lib
  13635. return
  13636. fi
  13637. done
  13638. }
  13639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13640. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13641. if ${ac_cv_c_const+:} false; then :
  13642. $as_echo_n "(cached) " >&6
  13643. else
  13644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13645. /* end confdefs.h. */
  13646. int
  13647. main ()
  13648. {
  13649. #ifndef __cplusplus
  13650. /* Ultrix mips cc rejects this sort of thing. */
  13651. typedef int charset[2];
  13652. const charset cs = { 0, 0 };
  13653. /* SunOS 4.1.1 cc rejects this. */
  13654. char const *const *pcpcc;
  13655. char **ppc;
  13656. /* NEC SVR4.0.2 mips cc rejects this. */
  13657. struct point {int x, y;};
  13658. static struct point const zero = {0,0};
  13659. /* AIX XL C 1.02.0.0 rejects this.
  13660. It does not let you subtract one const X* pointer from another in
  13661. an arm of an if-expression whose if-part is not a constant
  13662. expression */
  13663. const char *g = "string";
  13664. pcpcc = &g + (g ? g-g : 0);
  13665. /* HPUX 7.0 cc rejects these. */
  13666. ++pcpcc;
  13667. ppc = (char**) pcpcc;
  13668. pcpcc = (char const *const *) ppc;
  13669. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13670. char tx;
  13671. char *t = &tx;
  13672. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13673. *t++ = 0;
  13674. if (s) return 0;
  13675. }
  13676. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13677. int x[] = {25, 17};
  13678. const int *foo = &x[0];
  13679. ++foo;
  13680. }
  13681. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13682. typedef const int *iptr;
  13683. iptr p = 0;
  13684. ++p;
  13685. }
  13686. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13687. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13688. struct s { int j; const int *ap[3]; } bx;
  13689. struct s *b = &bx; b->j = 5;
  13690. }
  13691. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13692. const int foo = 10;
  13693. if (!foo) return 0;
  13694. }
  13695. return !cs[0] && !zero.x;
  13696. #endif
  13697. ;
  13698. return 0;
  13699. }
  13700. _ACEOF
  13701. if ac_fn_c_try_compile "$LINENO"; then :
  13702. ac_cv_c_const=yes
  13703. else
  13704. ac_cv_c_const=no
  13705. fi
  13706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13707. fi
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13709. $as_echo "$ac_cv_c_const" >&6; }
  13710. if test $ac_cv_c_const = no; then
  13711. $as_echo "#define const /**/" >>confdefs.h
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13714. $as_echo_n "checking for inline... " >&6; }
  13715. if ${ac_cv_c_inline+:} false; then :
  13716. $as_echo_n "(cached) " >&6
  13717. else
  13718. ac_cv_c_inline=no
  13719. for ac_kw in inline __inline__ __inline; do
  13720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13721. /* end confdefs.h. */
  13722. #ifndef __cplusplus
  13723. typedef int foo_t;
  13724. static $ac_kw foo_t static_foo () {return 0; }
  13725. $ac_kw foo_t foo () {return 0; }
  13726. #endif
  13727. _ACEOF
  13728. if ac_fn_c_try_compile "$LINENO"; then :
  13729. ac_cv_c_inline=$ac_kw
  13730. fi
  13731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13732. test "$ac_cv_c_inline" != no && break
  13733. done
  13734. fi
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13736. $as_echo "$ac_cv_c_inline" >&6; }
  13737. case $ac_cv_c_inline in
  13738. inline | yes) ;;
  13739. *)
  13740. case $ac_cv_c_inline in
  13741. no) ac_val=;;
  13742. *) ac_val=$ac_cv_c_inline;;
  13743. esac
  13744. cat >>confdefs.h <<_ACEOF
  13745. #ifndef __cplusplus
  13746. #define inline $ac_val
  13747. #endif
  13748. _ACEOF
  13749. ;;
  13750. esac
  13751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13752. $as_echo_n "checking for working volatile... " >&6; }
  13753. if ${ac_cv_c_volatile+:} false; then :
  13754. $as_echo_n "(cached) " >&6
  13755. else
  13756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13757. /* end confdefs.h. */
  13758. int
  13759. main ()
  13760. {
  13761. volatile int x;
  13762. int * volatile y = (int *) 0;
  13763. return !x && !y;
  13764. ;
  13765. return 0;
  13766. }
  13767. _ACEOF
  13768. if ac_fn_c_try_compile "$LINENO"; then :
  13769. ac_cv_c_volatile=yes
  13770. else
  13771. ac_cv_c_volatile=no
  13772. fi
  13773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13774. fi
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13776. $as_echo "$ac_cv_c_volatile" >&6; }
  13777. if test $ac_cv_c_volatile = no; then
  13778. $as_echo "#define volatile /**/" >>confdefs.h
  13779. fi
  13780. # Check whether --enable-assertions was given.
  13781. if test "${enable_assertions+set}" = set; then :
  13782. enableval=$enable_assertions;
  13783. else
  13784. enable_assertions=auto
  13785. fi
  13786. case "$enable_assertions" in
  13787. auto) # Use optimization settings to determine assertion level
  13788. ;;
  13789. disabled)
  13790. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13791. ;;
  13792. release)
  13793. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13794. ;;
  13795. enabled)
  13796. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13797. ;;
  13798. paranoid)
  13799. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13800. ;;
  13801. *)
  13802. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13803. ;;
  13804. esac
  13805. # Check whether --enable-dependency-tracking was given.
  13806. if test "${enable_dependency_tracking+set}" = set; then :
  13807. enableval=$enable_dependency_tracking;
  13808. else
  13809. enable_dependency_tracking=yes
  13810. fi
  13811. if test x$enable_dependency_tracking = xyes; then
  13812. have_gcc_mmd_mt=no
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13814. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13816. /* end confdefs.h. */
  13817. #if !defined(__GNUC__) || __GNUC__ < 3
  13818. #error Dependency tracking requires GCC 3.0 or newer
  13819. #endif
  13820. int
  13821. main ()
  13822. {
  13823. ;
  13824. return 0;
  13825. }
  13826. _ACEOF
  13827. if ac_fn_c_try_compile "$LINENO"; then :
  13828. have_gcc_mmd_mt=yes
  13829. fi
  13830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13832. $as_echo "$have_gcc_mmd_mt" >&6; }
  13833. if test x$have_gcc_mmd_mt = xyes; then
  13834. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13835. fi
  13836. fi
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13838. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13839. have_no_undefined=no
  13840. case "$host" in
  13841. *-*-openbsd*)
  13842. ;;
  13843. *)
  13844. save_LDFLAGS="$LDFLAGS"
  13845. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13847. /* end confdefs.h. */
  13848. int
  13849. main ()
  13850. {
  13851. ;
  13852. return 0;
  13853. }
  13854. _ACEOF
  13855. if ac_fn_c_try_link "$LINENO"; then :
  13856. have_no_undefined=yes
  13857. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13858. fi
  13859. rm -f core conftest.err conftest.$ac_objext \
  13860. conftest$ac_exeext conftest.$ac_ext
  13861. LDFLAGS="$save_LDFLAGS"
  13862. ;;
  13863. esac
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13865. $as_echo "$have_no_undefined" >&6; }
  13866. # Check whether --enable-libc was given.
  13867. if test "${enable_libc+set}" = set; then :
  13868. enableval=$enable_libc;
  13869. else
  13870. enable_libc=yes
  13871. fi
  13872. if test x$enable_libc = xyes; then
  13873. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13875. $as_echo_n "checking for ANSI C header files... " >&6; }
  13876. if ${ac_cv_header_stdc+:} false; then :
  13877. $as_echo_n "(cached) " >&6
  13878. else
  13879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13880. /* end confdefs.h. */
  13881. #include <stdlib.h>
  13882. #include <stdarg.h>
  13883. #include <string.h>
  13884. #include <float.h>
  13885. int
  13886. main ()
  13887. {
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_c_try_compile "$LINENO"; then :
  13893. ac_cv_header_stdc=yes
  13894. else
  13895. ac_cv_header_stdc=no
  13896. fi
  13897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13898. if test $ac_cv_header_stdc = yes; then
  13899. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13901. /* end confdefs.h. */
  13902. #include <string.h>
  13903. _ACEOF
  13904. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13905. $EGREP "memchr" >/dev/null 2>&1; then :
  13906. else
  13907. ac_cv_header_stdc=no
  13908. fi
  13909. rm -f conftest*
  13910. fi
  13911. if test $ac_cv_header_stdc = yes; then
  13912. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13914. /* end confdefs.h. */
  13915. #include <stdlib.h>
  13916. _ACEOF
  13917. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13918. $EGREP "free" >/dev/null 2>&1; then :
  13919. else
  13920. ac_cv_header_stdc=no
  13921. fi
  13922. rm -f conftest*
  13923. fi
  13924. if test $ac_cv_header_stdc = yes; then
  13925. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13926. if test "$cross_compiling" = yes; then :
  13927. :
  13928. else
  13929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13930. /* end confdefs.h. */
  13931. #include <ctype.h>
  13932. #include <stdlib.h>
  13933. #if ((' ' & 0x0FF) == 0x020)
  13934. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13935. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13936. #else
  13937. # define ISLOWER(c) \
  13938. (('a' <= (c) && (c) <= 'i') \
  13939. || ('j' <= (c) && (c) <= 'r') \
  13940. || ('s' <= (c) && (c) <= 'z'))
  13941. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13942. #endif
  13943. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13944. int
  13945. main ()
  13946. {
  13947. int i;
  13948. for (i = 0; i < 256; i++)
  13949. if (XOR (islower (i), ISLOWER (i))
  13950. || toupper (i) != TOUPPER (i))
  13951. return 2;
  13952. return 0;
  13953. }
  13954. _ACEOF
  13955. if ac_fn_c_try_run "$LINENO"; then :
  13956. else
  13957. ac_cv_header_stdc=no
  13958. fi
  13959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13961. fi
  13962. fi
  13963. fi
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13965. $as_echo "$ac_cv_header_stdc" >&6; }
  13966. if test $ac_cv_header_stdc = yes; then
  13967. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13968. fi
  13969. 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
  13970. do :
  13971. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13972. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13973. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13974. cat >>confdefs.h <<_ACEOF
  13975. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13976. _ACEOF
  13977. fi
  13978. done
  13979. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13980. if test "x$ac_cv_type_size_t" = xyes; then :
  13981. else
  13982. cat >>confdefs.h <<_ACEOF
  13983. #define size_t unsigned int
  13984. _ACEOF
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13987. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13988. if ${ac_cv_define_M_PI+:} false; then :
  13989. $as_echo_n "(cached) " >&6
  13990. else
  13991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13992. /* end confdefs.h. */
  13993. #include <math.h>
  13994. #ifdef M_PI
  13995. YES_IS_DEFINED
  13996. #endif
  13997. _ACEOF
  13998. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13999. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14000. ac_cv_define_M_PI=yes
  14001. else
  14002. ac_cv_define_M_PI=no
  14003. fi
  14004. rm -f conftest*
  14005. fi
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14007. $as_echo "$ac_cv_define_M_PI" >&6; }
  14008. if test "$ac_cv_define_M_PI" = "yes" ; then
  14009. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14010. fi
  14011. case "$host" in
  14012. *-*-cygwin* | *-*-mingw32*)
  14013. ;;
  14014. *)
  14015. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14016. # for constant arguments. Useless!
  14017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14018. $as_echo_n "checking for working alloca.h... " >&6; }
  14019. if ${ac_cv_working_alloca_h+:} false; then :
  14020. $as_echo_n "(cached) " >&6
  14021. else
  14022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14023. /* end confdefs.h. */
  14024. #include <alloca.h>
  14025. int
  14026. main ()
  14027. {
  14028. char *p = (char *) alloca (2 * sizeof (int));
  14029. if (p) return 0;
  14030. ;
  14031. return 0;
  14032. }
  14033. _ACEOF
  14034. if ac_fn_c_try_link "$LINENO"; then :
  14035. ac_cv_working_alloca_h=yes
  14036. else
  14037. ac_cv_working_alloca_h=no
  14038. fi
  14039. rm -f core conftest.err conftest.$ac_objext \
  14040. conftest$ac_exeext conftest.$ac_ext
  14041. fi
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14043. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14044. if test $ac_cv_working_alloca_h = yes; then
  14045. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14046. fi
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14048. $as_echo_n "checking for alloca... " >&6; }
  14049. if ${ac_cv_func_alloca_works+:} false; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14053. /* end confdefs.h. */
  14054. #ifdef __GNUC__
  14055. # define alloca __builtin_alloca
  14056. #else
  14057. # ifdef _MSC_VER
  14058. # include <malloc.h>
  14059. # define alloca _alloca
  14060. # else
  14061. # ifdef HAVE_ALLOCA_H
  14062. # include <alloca.h>
  14063. # else
  14064. # ifdef _AIX
  14065. #pragma alloca
  14066. # else
  14067. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14068. void *alloca (size_t);
  14069. # endif
  14070. # endif
  14071. # endif
  14072. # endif
  14073. #endif
  14074. int
  14075. main ()
  14076. {
  14077. char *p = (char *) alloca (1);
  14078. if (p) return 0;
  14079. ;
  14080. return 0;
  14081. }
  14082. _ACEOF
  14083. if ac_fn_c_try_link "$LINENO"; then :
  14084. ac_cv_func_alloca_works=yes
  14085. else
  14086. ac_cv_func_alloca_works=no
  14087. fi
  14088. rm -f core conftest.err conftest.$ac_objext \
  14089. conftest$ac_exeext conftest.$ac_ext
  14090. fi
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14092. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14093. if test $ac_cv_func_alloca_works = yes; then
  14094. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14095. else
  14096. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14097. # that cause trouble. Some versions do not even contain alloca or
  14098. # contain a buggy version. If you still want to use their alloca,
  14099. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14100. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14101. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14103. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14104. if ${ac_cv_os_cray+:} false; then :
  14105. $as_echo_n "(cached) " >&6
  14106. else
  14107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14108. /* end confdefs.h. */
  14109. #if defined CRAY && ! defined CRAY2
  14110. webecray
  14111. #else
  14112. wenotbecray
  14113. #endif
  14114. _ACEOF
  14115. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14116. $EGREP "webecray" >/dev/null 2>&1; then :
  14117. ac_cv_os_cray=yes
  14118. else
  14119. ac_cv_os_cray=no
  14120. fi
  14121. rm -f conftest*
  14122. fi
  14123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14124. $as_echo "$ac_cv_os_cray" >&6; }
  14125. if test $ac_cv_os_cray = yes; then
  14126. for ac_func in _getb67 GETB67 getb67; do
  14127. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14128. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14129. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14130. cat >>confdefs.h <<_ACEOF
  14131. #define CRAY_STACKSEG_END $ac_func
  14132. _ACEOF
  14133. break
  14134. fi
  14135. done
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14138. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14139. if ${ac_cv_c_stack_direction+:} false; then :
  14140. $as_echo_n "(cached) " >&6
  14141. else
  14142. if test "$cross_compiling" = yes; then :
  14143. ac_cv_c_stack_direction=0
  14144. else
  14145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14146. /* end confdefs.h. */
  14147. $ac_includes_default
  14148. int
  14149. find_stack_direction (int *addr, int depth)
  14150. {
  14151. int dir, dummy = 0;
  14152. if (! addr)
  14153. addr = &dummy;
  14154. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14155. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14156. return dir + dummy;
  14157. }
  14158. int
  14159. main (int argc, char **argv)
  14160. {
  14161. return find_stack_direction (0, argc + !argv + 20) < 0;
  14162. }
  14163. _ACEOF
  14164. if ac_fn_c_try_run "$LINENO"; then :
  14165. ac_cv_c_stack_direction=1
  14166. else
  14167. ac_cv_c_stack_direction=-1
  14168. fi
  14169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14170. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14171. fi
  14172. fi
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14174. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14175. cat >>confdefs.h <<_ACEOF
  14176. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14177. _ACEOF
  14178. fi
  14179. ;;
  14180. esac
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14182. $as_echo_n "checking for working memcmp... " >&6; }
  14183. if ${ac_cv_func_memcmp_working+:} false; then :
  14184. $as_echo_n "(cached) " >&6
  14185. else
  14186. if test "$cross_compiling" = yes; then :
  14187. ac_cv_func_memcmp_working=no
  14188. else
  14189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14190. /* end confdefs.h. */
  14191. $ac_includes_default
  14192. int
  14193. main ()
  14194. {
  14195. /* Some versions of memcmp are not 8-bit clean. */
  14196. char c0 = '\100', c1 = '\200', c2 = '\201';
  14197. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14198. return 1;
  14199. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14200. or more and with at least one buffer not starting on a 4-byte boundary.
  14201. William Lewis provided this test program. */
  14202. {
  14203. char foo[21];
  14204. char bar[21];
  14205. int i;
  14206. for (i = 0; i < 4; i++)
  14207. {
  14208. char *a = foo + i;
  14209. char *b = bar + i;
  14210. strcpy (a, "--------01111111");
  14211. strcpy (b, "--------10000000");
  14212. if (memcmp (a, b, 16) >= 0)
  14213. return 1;
  14214. }
  14215. return 0;
  14216. }
  14217. ;
  14218. return 0;
  14219. }
  14220. _ACEOF
  14221. if ac_fn_c_try_run "$LINENO"; then :
  14222. ac_cv_func_memcmp_working=yes
  14223. else
  14224. ac_cv_func_memcmp_working=no
  14225. fi
  14226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14227. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14228. fi
  14229. fi
  14230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14231. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14232. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14233. *" memcmp.$ac_objext "* ) ;;
  14234. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14235. ;;
  14236. esac
  14237. if test x$ac_cv_func_memcmp_working = xyes; then
  14238. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14239. fi
  14240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14241. $as_echo_n "checking for working strtod... " >&6; }
  14242. if ${ac_cv_func_strtod+:} false; then :
  14243. $as_echo_n "(cached) " >&6
  14244. else
  14245. if test "$cross_compiling" = yes; then :
  14246. ac_cv_func_strtod=no
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. $ac_includes_default
  14251. #ifndef strtod
  14252. double strtod ();
  14253. #endif
  14254. int
  14255. main()
  14256. {
  14257. {
  14258. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14259. char *string = " +69";
  14260. char *term;
  14261. double value;
  14262. value = strtod (string, &term);
  14263. if (value != 69 || term != (string + 4))
  14264. return 1;
  14265. }
  14266. {
  14267. /* Under Solaris 2.4, strtod returns the wrong value for the
  14268. terminating character under some conditions. */
  14269. char *string = "NaN";
  14270. char *term;
  14271. strtod (string, &term);
  14272. if (term != string && *(term - 1) == 0)
  14273. return 1;
  14274. }
  14275. return 0;
  14276. }
  14277. _ACEOF
  14278. if ac_fn_c_try_run "$LINENO"; then :
  14279. ac_cv_func_strtod=yes
  14280. else
  14281. ac_cv_func_strtod=no
  14282. fi
  14283. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14284. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14285. fi
  14286. fi
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14288. $as_echo "$ac_cv_func_strtod" >&6; }
  14289. if test $ac_cv_func_strtod = no; then
  14290. case " $LIBOBJS " in
  14291. *" strtod.$ac_objext "* ) ;;
  14292. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14293. ;;
  14294. esac
  14295. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14296. if test "x$ac_cv_func_pow" = xyes; then :
  14297. fi
  14298. if test $ac_cv_func_pow = no; then
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14300. $as_echo_n "checking for pow in -lm... " >&6; }
  14301. if ${ac_cv_lib_m_pow+:} false; then :
  14302. $as_echo_n "(cached) " >&6
  14303. else
  14304. ac_check_lib_save_LIBS=$LIBS
  14305. LIBS="-lm $LIBS"
  14306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14307. /* end confdefs.h. */
  14308. /* Override any GCC internal prototype to avoid an error.
  14309. Use char because int might match the return type of a GCC
  14310. builtin and then its argument prototype would still apply. */
  14311. #ifdef __cplusplus
  14312. extern "C"
  14313. #endif
  14314. char pow ();
  14315. int
  14316. main ()
  14317. {
  14318. return pow ();
  14319. ;
  14320. return 0;
  14321. }
  14322. _ACEOF
  14323. if ac_fn_c_try_link "$LINENO"; then :
  14324. ac_cv_lib_m_pow=yes
  14325. else
  14326. ac_cv_lib_m_pow=no
  14327. fi
  14328. rm -f core conftest.err conftest.$ac_objext \
  14329. conftest$ac_exeext conftest.$ac_ext
  14330. LIBS=$ac_check_lib_save_LIBS
  14331. fi
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14333. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14334. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14335. POW_LIB=-lm
  14336. else
  14337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14338. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14339. fi
  14340. fi
  14341. fi
  14342. if test x$ac_cv_func_strtod = xyes; then
  14343. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14344. fi
  14345. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14346. if test "x$ac_cv_func_mprotect" = xyes; then :
  14347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14348. /* end confdefs.h. */
  14349. #include <sys/types.h>
  14350. #include <sys/mman.h>
  14351. int
  14352. main ()
  14353. {
  14354. ;
  14355. return 0;
  14356. }
  14357. _ACEOF
  14358. if ac_fn_c_try_compile "$LINENO"; then :
  14359. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14362. fi
  14363. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14364. do :
  14365. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14366. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14367. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14368. cat >>confdefs.h <<_ACEOF
  14369. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14370. _ACEOF
  14371. fi
  14372. done
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14374. $as_echo_n "checking for pow in -lm... " >&6; }
  14375. if ${ac_cv_lib_m_pow+:} false; then :
  14376. $as_echo_n "(cached) " >&6
  14377. else
  14378. ac_check_lib_save_LIBS=$LIBS
  14379. LIBS="-lm $LIBS"
  14380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14381. /* end confdefs.h. */
  14382. /* Override any GCC internal prototype to avoid an error.
  14383. Use char because int might match the return type of a GCC
  14384. builtin and then its argument prototype would still apply. */
  14385. #ifdef __cplusplus
  14386. extern "C"
  14387. #endif
  14388. char pow ();
  14389. int
  14390. main ()
  14391. {
  14392. return pow ();
  14393. ;
  14394. return 0;
  14395. }
  14396. _ACEOF
  14397. if ac_fn_c_try_link "$LINENO"; then :
  14398. ac_cv_lib_m_pow=yes
  14399. else
  14400. ac_cv_lib_m_pow=no
  14401. fi
  14402. rm -f core conftest.err conftest.$ac_objext \
  14403. conftest$ac_exeext conftest.$ac_ext
  14404. LIBS=$ac_check_lib_save_LIBS
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14407. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14408. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14409. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14410. fi
  14411. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14412. do :
  14413. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14414. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14415. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14416. cat >>confdefs.h <<_ACEOF
  14417. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14418. _ACEOF
  14419. fi
  14420. done
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14422. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14423. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14424. $as_echo_n "(cached) " >&6
  14425. else
  14426. ac_check_lib_save_LIBS=$LIBS
  14427. LIBS="-liconv $LIBS"
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. /* Override any GCC internal prototype to avoid an error.
  14431. Use char because int might match the return type of a GCC
  14432. builtin and then its argument prototype would still apply. */
  14433. #ifdef __cplusplus
  14434. extern "C"
  14435. #endif
  14436. char iconv_open ();
  14437. int
  14438. main ()
  14439. {
  14440. return iconv_open ();
  14441. ;
  14442. return 0;
  14443. }
  14444. _ACEOF
  14445. if ac_fn_c_try_link "$LINENO"; then :
  14446. ac_cv_lib_iconv_iconv_open=yes
  14447. else
  14448. ac_cv_lib_iconv_iconv_open=no
  14449. fi
  14450. rm -f core conftest.err conftest.$ac_objext \
  14451. conftest$ac_exeext conftest.$ac_ext
  14452. LIBS=$ac_check_lib_save_LIBS
  14453. fi
  14454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14455. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14456. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14457. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14458. fi
  14459. for ac_func in iconv
  14460. do :
  14461. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14462. if test "x$ac_cv_func_iconv" = xyes; then :
  14463. cat >>confdefs.h <<_ACEOF
  14464. #define HAVE_ICONV 1
  14465. _ACEOF
  14466. fi
  14467. done
  14468. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14469. "
  14470. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14471. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14472. fi
  14473. for ac_header in libunwind.h
  14474. do :
  14475. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14476. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14477. cat >>confdefs.h <<_ACEOF
  14478. #define HAVE_LIBUNWIND_H 1
  14479. _ACEOF
  14480. fi
  14481. done
  14482. fi
  14483. # Check whether --enable-gcc-atomics was given.
  14484. if test "${enable_gcc_atomics+set}" = set; then :
  14485. enableval=$enable_gcc_atomics;
  14486. else
  14487. enable_gcc_atomics=yes
  14488. fi
  14489. if test x$enable_gcc_atomics = xyes; then
  14490. have_gcc_atomics=no
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14492. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14494. /* end confdefs.h. */
  14495. int
  14496. main ()
  14497. {
  14498. int a;
  14499. void *x, *y, *z;
  14500. __sync_lock_test_and_set(&a, 4);
  14501. __sync_lock_test_and_set(&x, y);
  14502. __sync_fetch_and_add(&a, 1);
  14503. __sync_bool_compare_and_swap(&a, 5, 10);
  14504. __sync_bool_compare_and_swap(&x, y, z);
  14505. ;
  14506. return 0;
  14507. }
  14508. _ACEOF
  14509. if ac_fn_c_try_link "$LINENO"; then :
  14510. have_gcc_atomics=yes
  14511. fi
  14512. rm -f core conftest.err conftest.$ac_objext \
  14513. conftest$ac_exeext conftest.$ac_ext
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14515. $as_echo "$have_gcc_atomics" >&6; }
  14516. if test x$have_gcc_atomics = xyes; then
  14517. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14518. else
  14519. # See if we have the minimum operation needed for GCC atomics
  14520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14521. /* end confdefs.h. */
  14522. int
  14523. main ()
  14524. {
  14525. int a;
  14526. __sync_lock_test_and_set(&a, 1);
  14527. __sync_lock_release(&a);
  14528. ;
  14529. return 0;
  14530. }
  14531. _ACEOF
  14532. if ac_fn_c_try_link "$LINENO"; then :
  14533. have_gcc_sync_lock_test_and_set=yes
  14534. fi
  14535. rm -f core conftest.err conftest.$ac_objext \
  14536. conftest$ac_exeext conftest.$ac_ext
  14537. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14538. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14539. fi
  14540. fi
  14541. fi
  14542. # Standard C sources
  14543. SOURCES="$SOURCES $srcdir/src/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14550. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14552. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14554. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14560. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14561. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14562. # Check whether --enable-atomic was given.
  14563. if test "${enable_atomic+set}" = set; then :
  14564. enableval=$enable_atomic;
  14565. else
  14566. enable_atomic=yes
  14567. fi
  14568. if test x$enable_atomic != xyes; then
  14569. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14570. else
  14571. SUMMARY_modules="${SUMMARY_modules} atomic"
  14572. fi
  14573. # Check whether --enable-audio was given.
  14574. if test "${enable_audio+set}" = set; then :
  14575. enableval=$enable_audio;
  14576. else
  14577. enable_audio=yes
  14578. fi
  14579. if test x$enable_audio != xyes; then
  14580. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14581. else
  14582. SUMMARY_modules="${SUMMARY_modules} audio"
  14583. fi
  14584. # Check whether --enable-video was given.
  14585. if test "${enable_video+set}" = set; then :
  14586. enableval=$enable_video;
  14587. else
  14588. enable_video=yes
  14589. fi
  14590. if test x$enable_video != xyes; then
  14591. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14592. else
  14593. SUMMARY_modules="${SUMMARY_modules} video"
  14594. fi
  14595. # Check whether --enable-render was given.
  14596. if test "${enable_render+set}" = set; then :
  14597. enableval=$enable_render;
  14598. else
  14599. enable_render=yes
  14600. fi
  14601. if test x$enable_render != xyes; then
  14602. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14603. else
  14604. SUMMARY_modules="${SUMMARY_modules} render"
  14605. fi
  14606. # Check whether --enable-events was given.
  14607. if test "${enable_events+set}" = set; then :
  14608. enableval=$enable_events;
  14609. else
  14610. enable_events=yes
  14611. fi
  14612. if test x$enable_events != xyes; then
  14613. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14614. else
  14615. SUMMARY_modules="${SUMMARY_modules} events"
  14616. fi
  14617. # Check whether --enable-joystick was given.
  14618. if test "${enable_joystick+set}" = set; then :
  14619. enableval=$enable_joystick;
  14620. else
  14621. enable_joystick=yes
  14622. fi
  14623. if test x$enable_joystick != xyes; then
  14624. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14625. else
  14626. SUMMARY_modules="${SUMMARY_modules} joystick"
  14627. fi
  14628. # Check whether --enable-haptic was given.
  14629. if test "${enable_haptic+set}" = set; then :
  14630. enableval=$enable_haptic;
  14631. else
  14632. enable_haptic=yes
  14633. fi
  14634. if test x$enable_haptic != xyes; then
  14635. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14636. else
  14637. SUMMARY_modules="${SUMMARY_modules} haptic"
  14638. fi
  14639. # Check whether --enable-power was given.
  14640. if test "${enable_power+set}" = set; then :
  14641. enableval=$enable_power;
  14642. else
  14643. enable_power=yes
  14644. fi
  14645. if test x$enable_power != xyes; then
  14646. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14647. else
  14648. SUMMARY_modules="${SUMMARY_modules} power"
  14649. fi
  14650. # Check whether --enable-filesystem was given.
  14651. if test "${enable_filesystem+set}" = set; then :
  14652. enableval=$enable_filesystem;
  14653. else
  14654. enable_filesystem=yes
  14655. fi
  14656. if test x$enable_filesystem != xyes; then
  14657. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14658. else
  14659. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14660. fi
  14661. # Check whether --enable-threads was given.
  14662. if test "${enable_threads+set}" = set; then :
  14663. enableval=$enable_threads;
  14664. else
  14665. enable_threads=yes
  14666. fi
  14667. if test x$enable_threads != xyes; then
  14668. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14669. else
  14670. SUMMARY_modules="${SUMMARY_modules} threads"
  14671. fi
  14672. # Check whether --enable-timers was given.
  14673. if test "${enable_timers+set}" = set; then :
  14674. enableval=$enable_timers;
  14675. else
  14676. enable_timers=yes
  14677. fi
  14678. if test x$enable_timers != xyes; then
  14679. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14680. else
  14681. SUMMARY_modules="${SUMMARY_modules} timers"
  14682. fi
  14683. # Check whether --enable-file was given.
  14684. if test "${enable_file+set}" = set; then :
  14685. enableval=$enable_file;
  14686. else
  14687. enable_file=yes
  14688. fi
  14689. if test x$enable_file != xyes; then
  14690. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14691. else
  14692. SUMMARY_modules="${SUMMARY_modules} file"
  14693. fi
  14694. # Check whether --enable-loadso was given.
  14695. if test "${enable_loadso+set}" = set; then :
  14696. enableval=$enable_loadso;
  14697. else
  14698. enable_loadso=yes
  14699. fi
  14700. if test x$enable_loadso != xyes; then
  14701. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14702. else
  14703. SUMMARY_modules="${SUMMARY_modules} loadso"
  14704. fi
  14705. # Check whether --enable-cpuinfo was given.
  14706. if test "${enable_cpuinfo+set}" = set; then :
  14707. enableval=$enable_cpuinfo;
  14708. else
  14709. enable_cpuinfo=yes
  14710. fi
  14711. if test x$enable_cpuinfo != xyes; then
  14712. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14713. else
  14714. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14715. fi
  14716. # Check whether --enable-assembly was given.
  14717. if test "${enable_assembly+set}" = set; then :
  14718. enableval=$enable_assembly;
  14719. else
  14720. enable_assembly=yes
  14721. fi
  14722. if test x$enable_assembly = xyes; then
  14723. SUMMARY_modules="${SUMMARY_modules} assembly"
  14724. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14725. # Make sure that we don't generate floating point code that would
  14726. # cause illegal instruction exceptions on older processors
  14727. case "$host" in
  14728. *-*-darwin*)
  14729. # Don't need to worry about Apple hardware, it's all SSE capable
  14730. default_ssemath=yes
  14731. ;;
  14732. *64-*-*)
  14733. # x86 64-bit architectures all have SSE instructions
  14734. default_ssemath=yes
  14735. ;;
  14736. *)
  14737. default_ssemath=no
  14738. ;;
  14739. esac
  14740. # Check whether --enable-ssemath was given.
  14741. if test "${enable_ssemath+set}" = set; then :
  14742. enableval=$enable_ssemath;
  14743. else
  14744. enable_ssemath=$default_ssemath
  14745. fi
  14746. if test x$enable_ssemath = xno; then
  14747. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14748. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14749. fi
  14750. fi
  14751. # Check whether --enable-mmx was given.
  14752. if test "${enable_mmx+set}" = set; then :
  14753. enableval=$enable_mmx;
  14754. else
  14755. enable_mmx=yes
  14756. fi
  14757. if test x$enable_mmx = xyes; then
  14758. save_CFLAGS="$CFLAGS"
  14759. have_gcc_mmx=no
  14760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14761. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14762. mmx_CFLAGS="-mmmx"
  14763. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14765. /* end confdefs.h. */
  14766. #ifdef __MINGW32__
  14767. #include <_mingw.h>
  14768. #ifdef __MINGW64_VERSION_MAJOR
  14769. #include <intrin.h>
  14770. #else
  14771. #include <mmintrin.h>
  14772. #endif
  14773. #else
  14774. #include <mmintrin.h>
  14775. #endif
  14776. #ifndef __MMX__
  14777. #error Assembler CPP flag not enabled
  14778. #endif
  14779. int
  14780. main ()
  14781. {
  14782. ;
  14783. return 0;
  14784. }
  14785. _ACEOF
  14786. if ac_fn_c_try_compile "$LINENO"; then :
  14787. have_gcc_mmx=yes
  14788. fi
  14789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14791. $as_echo "$have_gcc_mmx" >&6; }
  14792. CFLAGS="$save_CFLAGS"
  14793. if test x$have_gcc_mmx = xyes; then
  14794. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14795. SUMMARY_math="${SUMMARY_math} mmx"
  14796. fi
  14797. fi
  14798. # Check whether --enable-3dnow was given.
  14799. if test "${enable_3dnow+set}" = set; then :
  14800. enableval=$enable_3dnow;
  14801. else
  14802. enable_3dnow=yes
  14803. fi
  14804. if test x$enable_3dnow = xyes; then
  14805. save_CFLAGS="$CFLAGS"
  14806. have_gcc_3dnow=no
  14807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14808. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14809. amd3dnow_CFLAGS="-m3dnow"
  14810. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14812. /* end confdefs.h. */
  14813. #include <mm3dnow.h>
  14814. #ifndef __3dNOW__
  14815. #error Assembler CPP flag not enabled
  14816. #endif
  14817. int
  14818. main ()
  14819. {
  14820. void *p = 0;
  14821. _m_prefetch(p);
  14822. ;
  14823. return 0;
  14824. }
  14825. _ACEOF
  14826. if ac_fn_c_try_link "$LINENO"; then :
  14827. have_gcc_3dnow=yes
  14828. fi
  14829. rm -f core conftest.err conftest.$ac_objext \
  14830. conftest$ac_exeext conftest.$ac_ext
  14831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14832. $as_echo "$have_gcc_3dnow" >&6; }
  14833. CFLAGS="$save_CFLAGS"
  14834. if test x$have_gcc_3dnow = xyes; then
  14835. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14836. SUMMARY_math="${SUMMARY_math} 3dnow"
  14837. fi
  14838. fi
  14839. # Check whether --enable-sse was given.
  14840. if test "${enable_sse+set}" = set; then :
  14841. enableval=$enable_sse;
  14842. else
  14843. enable_sse=yes
  14844. fi
  14845. if test x$enable_sse = xyes; then
  14846. save_CFLAGS="$CFLAGS"
  14847. have_gcc_sse=no
  14848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14849. $as_echo_n "checking for GCC -msse option... " >&6; }
  14850. sse_CFLAGS="-msse"
  14851. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14853. /* end confdefs.h. */
  14854. #ifdef __MINGW32__
  14855. #include <_mingw.h>
  14856. #ifdef __MINGW64_VERSION_MAJOR
  14857. #include <intrin.h>
  14858. #else
  14859. #include <xmmintrin.h>
  14860. #endif
  14861. #else
  14862. #include <xmmintrin.h>
  14863. #endif
  14864. #ifndef __SSE__
  14865. #error Assembler CPP flag not enabled
  14866. #endif
  14867. int
  14868. main ()
  14869. {
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. if ac_fn_c_try_compile "$LINENO"; then :
  14875. have_gcc_sse=yes
  14876. fi
  14877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14879. $as_echo "$have_gcc_sse" >&6; }
  14880. CFLAGS="$save_CFLAGS"
  14881. if test x$have_gcc_sse = xyes; then
  14882. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14883. SUMMARY_math="${SUMMARY_math} sse"
  14884. fi
  14885. fi
  14886. # Check whether --enable-sse2 was given.
  14887. if test "${enable_sse2+set}" = set; then :
  14888. enableval=$enable_sse2;
  14889. else
  14890. enable_sse2=$default_ssemath
  14891. fi
  14892. if test x$enable_sse2 = xyes; then
  14893. save_CFLAGS="$CFLAGS"
  14894. have_gcc_sse2=no
  14895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14896. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14897. sse2_CFLAGS="-msse2"
  14898. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14900. /* end confdefs.h. */
  14901. #ifdef __MINGW32__
  14902. #include <_mingw.h>
  14903. #ifdef __MINGW64_VERSION_MAJOR
  14904. #include <intrin.h>
  14905. #else
  14906. #include <emmintrin.h>
  14907. #endif
  14908. #else
  14909. #include <emmintrin.h>
  14910. #endif
  14911. #ifndef __SSE2__
  14912. #error Assembler CPP flag not enabled
  14913. #endif
  14914. int
  14915. main ()
  14916. {
  14917. ;
  14918. return 0;
  14919. }
  14920. _ACEOF
  14921. if ac_fn_c_try_compile "$LINENO"; then :
  14922. have_gcc_sse2=yes
  14923. fi
  14924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14926. $as_echo "$have_gcc_sse2" >&6; }
  14927. CFLAGS="$save_CFLAGS"
  14928. if test x$have_gcc_sse2 = xyes; then
  14929. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14930. SUMMARY_math="${SUMMARY_math} sse2"
  14931. fi
  14932. fi
  14933. # Check whether --enable-sse3 was given.
  14934. if test "${enable_sse3+set}" = set; then :
  14935. enableval=$enable_sse3;
  14936. else
  14937. enable_sse3=$default_ssemath
  14938. fi
  14939. if test x$enable_sse3 = xyes; then
  14940. save_CFLAGS="$CFLAGS"
  14941. have_gcc_sse3=no
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14943. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14944. sse3_CFLAGS="-msse3"
  14945. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14947. /* end confdefs.h. */
  14948. #ifdef __MINGW32__
  14949. #include <_mingw.h>
  14950. #ifdef __MINGW64_VERSION_MAJOR
  14951. #include <intrin.h>
  14952. #else
  14953. #include <pmmintrin.h>
  14954. #endif
  14955. #else
  14956. #include <pmmintrin.h>
  14957. #endif
  14958. #ifndef __SSE2__
  14959. #error Assembler CPP flag not enabled
  14960. #endif
  14961. int
  14962. main ()
  14963. {
  14964. ;
  14965. return 0;
  14966. }
  14967. _ACEOF
  14968. if ac_fn_c_try_compile "$LINENO"; then :
  14969. have_gcc_sse3=yes
  14970. fi
  14971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14973. $as_echo "$have_gcc_sse3" >&6; }
  14974. CFLAGS="$save_CFLAGS"
  14975. if test x$have_gcc_sse3 = xyes; then
  14976. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14977. SUMMARY_math="${SUMMARY_math} sse3"
  14978. fi
  14979. fi
  14980. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  14981. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  14982. have_immintrin_h_hdr=yes
  14983. else
  14984. have_immintrin_h_hdr=no
  14985. fi
  14986. if test x$have_immintrin_h_hdr = xyes; then
  14987. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  14988. fi
  14989. # Check whether --enable-altivec was given.
  14990. if test "${enable_altivec+set}" = set; then :
  14991. enableval=$enable_altivec;
  14992. else
  14993. enable_altivec=yes
  14994. fi
  14995. if test x$enable_altivec = xyes; then
  14996. save_CFLAGS="$CFLAGS"
  14997. have_gcc_altivec=no
  14998. have_altivec_h_hdr=no
  14999. altivec_CFLAGS="-maltivec"
  15000. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15002. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15004. /* end confdefs.h. */
  15005. #include <altivec.h>
  15006. vector unsigned int vzero() {
  15007. return vec_splat_u32(0);
  15008. }
  15009. int
  15010. main ()
  15011. {
  15012. ;
  15013. return 0;
  15014. }
  15015. _ACEOF
  15016. if ac_fn_c_try_compile "$LINENO"; then :
  15017. have_gcc_altivec=yes
  15018. have_altivec_h_hdr=yes
  15019. fi
  15020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15022. $as_echo "$have_gcc_altivec" >&6; }
  15023. if test x$have_gcc_altivec = xno; then
  15024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15025. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15027. /* end confdefs.h. */
  15028. vector unsigned int vzero() {
  15029. return vec_splat_u32(0);
  15030. }
  15031. int
  15032. main ()
  15033. {
  15034. ;
  15035. return 0;
  15036. }
  15037. _ACEOF
  15038. if ac_fn_c_try_compile "$LINENO"; then :
  15039. have_gcc_altivec=yes
  15040. fi
  15041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15043. $as_echo "$have_gcc_altivec" >&6; }
  15044. fi
  15045. if test x$have_gcc_altivec = xno; then
  15046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15047. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15048. altivec_CFLAGS="-faltivec"
  15049. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15051. /* end confdefs.h. */
  15052. #include <altivec.h>
  15053. vector unsigned int vzero() {
  15054. return vec_splat_u32(0);
  15055. }
  15056. int
  15057. main ()
  15058. {
  15059. ;
  15060. return 0;
  15061. }
  15062. _ACEOF
  15063. if ac_fn_c_try_compile "$LINENO"; then :
  15064. have_gcc_altivec=yes
  15065. have_altivec_h_hdr=yes
  15066. fi
  15067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15069. $as_echo "$have_gcc_altivec" >&6; }
  15070. fi
  15071. if test x$have_gcc_altivec = xno; then
  15072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15073. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15075. /* end confdefs.h. */
  15076. vector unsigned int vzero() {
  15077. return vec_splat_u32(0);
  15078. }
  15079. int
  15080. main ()
  15081. {
  15082. ;
  15083. return 0;
  15084. }
  15085. _ACEOF
  15086. if ac_fn_c_try_compile "$LINENO"; then :
  15087. have_gcc_altivec=yes
  15088. fi
  15089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15091. $as_echo "$have_gcc_altivec" >&6; }
  15092. fi
  15093. CFLAGS="$save_CFLAGS"
  15094. if test x$have_gcc_altivec = xyes; then
  15095. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15096. if test x$have_altivec_h_hdr = xyes; then
  15097. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15098. fi
  15099. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15100. SUMMARY_math="${SUMMARY_math} altivec"
  15101. fi
  15102. fi
  15103. fi
  15104. CheckOSS()
  15105. {
  15106. # Check whether --enable-oss was given.
  15107. if test "${enable_oss+set}" = set; then :
  15108. enableval=$enable_oss;
  15109. else
  15110. enable_oss=maybe
  15111. fi
  15112. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15113. # use sndio instead. So on there, we default to disabled. You can force
  15114. # it on if you really want, though.
  15115. if test x$enable_oss = xmaybe; then
  15116. enable_oss=yes
  15117. case "$host" in
  15118. *-*-openbsd*)
  15119. enable_oss=no;;
  15120. esac
  15121. fi
  15122. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15124. $as_echo_n "checking for OSS audio support... " >&6; }
  15125. have_oss=no
  15126. if test x$have_oss != xyes; then
  15127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15128. /* end confdefs.h. */
  15129. #include <sys/soundcard.h>
  15130. int
  15131. main ()
  15132. {
  15133. int arg = SNDCTL_DSP_SETFRAGMENT;
  15134. ;
  15135. return 0;
  15136. }
  15137. _ACEOF
  15138. if ac_fn_c_try_compile "$LINENO"; then :
  15139. have_oss=yes
  15140. fi
  15141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15142. fi
  15143. if test x$have_oss != xyes; then
  15144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15145. /* end confdefs.h. */
  15146. #include <soundcard.h>
  15147. int
  15148. main ()
  15149. {
  15150. int arg = SNDCTL_DSP_SETFRAGMENT;
  15151. ;
  15152. return 0;
  15153. }
  15154. _ACEOF
  15155. if ac_fn_c_try_compile "$LINENO"; then :
  15156. have_oss=yes
  15157. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15158. fi
  15159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15160. fi
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15162. $as_echo "$have_oss" >&6; }
  15163. if test x$have_oss = xyes; then
  15164. SUMMARY_audio="${SUMMARY_audio} oss"
  15165. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15166. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15167. have_audio=yes
  15168. # We may need to link with ossaudio emulation library
  15169. case "$host" in
  15170. *-*-openbsd*|*-*-netbsd*)
  15171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15172. esac
  15173. fi
  15174. fi
  15175. }
  15176. CheckALSA()
  15177. {
  15178. # Check whether --enable-alsa was given.
  15179. if test "${enable_alsa+set}" = set; then :
  15180. enableval=$enable_alsa;
  15181. else
  15182. enable_alsa=yes
  15183. fi
  15184. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15185. alsa_save_CFLAGS="$CFLAGS"
  15186. alsa_save_LDFLAGS="$LDFLAGS"
  15187. alsa_save_LIBS="$LIBS"
  15188. alsa_found=yes
  15189. # Check whether --with-alsa-prefix was given.
  15190. if test "${with_alsa_prefix+set}" = set; then :
  15191. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15192. else
  15193. alsa_prefix=""
  15194. fi
  15195. # Check whether --with-alsa-inc-prefix was given.
  15196. if test "${with_alsa_inc_prefix+set}" = set; then :
  15197. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15198. else
  15199. alsa_inc_prefix=""
  15200. fi
  15201. # Check whether --enable-alsatest was given.
  15202. if test "${enable_alsatest+set}" = set; then :
  15203. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15204. else
  15205. enable_alsatest=yes
  15206. fi
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15208. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15209. if test "$alsa_inc_prefix" != "" ; then
  15210. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15211. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15212. fi
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15214. $as_echo "$ALSA_CFLAGS" >&6; }
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15216. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15217. if test "$alsa_prefix" != "" ; then
  15218. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15219. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15220. fi
  15221. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15222. LIBS=`echo $LIBS | sed 's/-lm//'`
  15223. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15224. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15225. LIBS=`echo $LIBS | sed 's/ //'`
  15226. LIBS="$ALSA_LIBS $LIBS"
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15228. $as_echo "$ALSA_LIBS" >&6; }
  15229. min_alsa_version=1.0.11
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15231. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15232. no_alsa=""
  15233. alsa_min_major_version=`echo $min_alsa_version | \
  15234. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15235. alsa_min_minor_version=`echo $min_alsa_version | \
  15236. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15237. alsa_min_micro_version=`echo $min_alsa_version | \
  15238. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15239. ac_ext=c
  15240. ac_cpp='$CPP $CPPFLAGS'
  15241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15245. /* end confdefs.h. */
  15246. #include <alsa/asoundlib.h>
  15247. int
  15248. main ()
  15249. {
  15250. /* ensure backward compatibility */
  15251. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15252. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15253. #endif
  15254. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15255. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15256. #endif
  15257. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15258. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15259. #endif
  15260. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15261. exit(0);
  15262. # else
  15263. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15264. # error not present
  15265. # endif
  15266. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15267. exit(0);
  15268. # else
  15269. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15270. # error not present
  15271. # endif
  15272. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15273. # error not present
  15274. # endif
  15275. # endif
  15276. # endif
  15277. exit(0);
  15278. ;
  15279. return 0;
  15280. }
  15281. _ACEOF
  15282. if ac_fn_c_try_compile "$LINENO"; then :
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15284. $as_echo "found." >&6; }
  15285. else
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15287. $as_echo "not present." >&6; }
  15288. alsa_found=no
  15289. fi
  15290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15291. ac_ext=c
  15292. ac_cpp='$CPP $CPPFLAGS'
  15293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15296. if test "x$enable_alsatest" = "xyes"; then
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15298. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15299. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15300. $as_echo_n "(cached) " >&6
  15301. else
  15302. ac_check_lib_save_LIBS=$LIBS
  15303. LIBS="-lasound $LIBS"
  15304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15305. /* end confdefs.h. */
  15306. /* Override any GCC internal prototype to avoid an error.
  15307. Use char because int might match the return type of a GCC
  15308. builtin and then its argument prototype would still apply. */
  15309. #ifdef __cplusplus
  15310. extern "C"
  15311. #endif
  15312. char snd_ctl_open ();
  15313. int
  15314. main ()
  15315. {
  15316. return snd_ctl_open ();
  15317. ;
  15318. return 0;
  15319. }
  15320. _ACEOF
  15321. if ac_fn_c_try_link "$LINENO"; then :
  15322. ac_cv_lib_asound_snd_ctl_open=yes
  15323. else
  15324. ac_cv_lib_asound_snd_ctl_open=no
  15325. fi
  15326. rm -f core conftest.err conftest.$ac_objext \
  15327. conftest$ac_exeext conftest.$ac_ext
  15328. LIBS=$ac_check_lib_save_LIBS
  15329. fi
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15331. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15332. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15333. cat >>confdefs.h <<_ACEOF
  15334. #define HAVE_LIBASOUND 1
  15335. _ACEOF
  15336. LIBS="-lasound $LIBS"
  15337. else
  15338. alsa_found=no
  15339. fi
  15340. fi
  15341. if test "x$alsa_found" = "xyes" ; then
  15342. have_alsa=yes
  15343. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15344. LIBS=`echo $LIBS | sed 's/ //'`
  15345. LIBS="-lasound $LIBS"
  15346. fi
  15347. if test "x$alsa_found" = "xno" ; then
  15348. have_alsa=no
  15349. CFLAGS="$alsa_save_CFLAGS"
  15350. LDFLAGS="$alsa_save_LDFLAGS"
  15351. LIBS="$alsa_save_LIBS"
  15352. ALSA_CFLAGS=""
  15353. ALSA_LIBS=""
  15354. fi
  15355. # Restore all flags from before the ALSA detection runs
  15356. CFLAGS="$alsa_save_CFLAGS"
  15357. LDFLAGS="$alsa_save_LDFLAGS"
  15358. LIBS="$alsa_save_LIBS"
  15359. if test x$have_alsa = xyes; then
  15360. # Check whether --enable-alsa-shared was given.
  15361. if test "${enable_alsa_shared+set}" = set; then :
  15362. enableval=$enable_alsa_shared;
  15363. else
  15364. enable_alsa_shared=yes
  15365. fi
  15366. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15367. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15368. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15369. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15370. if test x$have_loadso != xyes && \
  15371. test x$enable_alsa_shared = xyes; then
  15372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15373. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15374. fi
  15375. if test x$have_loadso = xyes && \
  15376. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15377. echo "-- dynamic libasound -> $alsa_lib"
  15378. cat >>confdefs.h <<_ACEOF
  15379. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15380. _ACEOF
  15381. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15382. else
  15383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15384. SUMMARY_audio="${SUMMARY_audio} alsa"
  15385. fi
  15386. have_audio=yes
  15387. fi
  15388. fi
  15389. }
  15390. CheckJACK()
  15391. {
  15392. # Check whether --enable-jack was given.
  15393. if test "${enable_jack+set}" = set; then :
  15394. enableval=$enable_jack;
  15395. else
  15396. enable_jack=yes
  15397. fi
  15398. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15399. audio_jack=no
  15400. JACK_REQUIRED_VERSION=0.125
  15401. # Extract the first word of "pkg-config", so it can be a program name with args.
  15402. set dummy pkg-config; ac_word=$2
  15403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15404. $as_echo_n "checking for $ac_word... " >&6; }
  15405. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15406. $as_echo_n "(cached) " >&6
  15407. else
  15408. case $PKG_CONFIG in
  15409. [\\/]* | ?:[\\/]*)
  15410. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15411. ;;
  15412. *)
  15413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15414. for as_dir in $PATH
  15415. do
  15416. IFS=$as_save_IFS
  15417. test -z "$as_dir" && as_dir=.
  15418. for ac_exec_ext in '' $ac_executable_extensions; do
  15419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15420. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15422. break 2
  15423. fi
  15424. done
  15425. done
  15426. IFS=$as_save_IFS
  15427. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15428. ;;
  15429. esac
  15430. fi
  15431. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15432. if test -n "$PKG_CONFIG"; then
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15434. $as_echo "$PKG_CONFIG" >&6; }
  15435. else
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15437. $as_echo "no" >&6; }
  15438. fi
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15440. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15441. if test x$PKG_CONFIG != xno; then
  15442. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15443. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15444. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15445. audio_jack=yes
  15446. fi
  15447. fi
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15449. $as_echo "$audio_jack" >&6; }
  15450. if test x$audio_jack = xyes; then
  15451. # Check whether --enable-jack-shared was given.
  15452. if test "${enable_jack_shared+set}" = set; then :
  15453. enableval=$enable_jack_shared;
  15454. else
  15455. enable_jack_shared=yes
  15456. fi
  15457. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15458. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15459. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15460. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15461. if test x$have_loadso != xyes && \
  15462. test x$enable_jack_shared = xyes; then
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15464. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15465. fi
  15466. if test x$have_loadso = xyes && \
  15467. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15468. echo "-- dynamic libjack -> $jack_lib"
  15469. cat >>confdefs.h <<_ACEOF
  15470. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15471. _ACEOF
  15472. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15473. case "$host" in
  15474. # On Solaris, jack must be linked deferred explicitly
  15475. # to prevent undefined symbol failures.
  15476. *-*-solaris*)
  15477. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15479. esac
  15480. else
  15481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15482. SUMMARY_audio="${SUMMARY_audio} jack"
  15483. fi
  15484. have_audio=yes
  15485. fi
  15486. fi
  15487. }
  15488. CheckESD()
  15489. {
  15490. # Check whether --enable-esd was given.
  15491. if test "${enable_esd+set}" = set; then :
  15492. enableval=$enable_esd;
  15493. else
  15494. enable_esd=yes
  15495. fi
  15496. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15497. # Check whether --with-esd-prefix was given.
  15498. if test "${with_esd_prefix+set}" = set; then :
  15499. withval=$with_esd_prefix; esd_prefix="$withval"
  15500. else
  15501. esd_prefix=""
  15502. fi
  15503. # Check whether --with-esd-exec-prefix was given.
  15504. if test "${with_esd_exec_prefix+set}" = set; then :
  15505. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15506. else
  15507. esd_exec_prefix=""
  15508. fi
  15509. # Check whether --enable-esdtest was given.
  15510. if test "${enable_esdtest+set}" = set; then :
  15511. enableval=$enable_esdtest;
  15512. else
  15513. enable_esdtest=yes
  15514. fi
  15515. if test x$esd_exec_prefix != x ; then
  15516. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15517. if test x${ESD_CONFIG+set} != xset ; then
  15518. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15519. fi
  15520. fi
  15521. if test x$esd_prefix != x ; then
  15522. esd_args="$esd_args --prefix=$esd_prefix"
  15523. if test x${ESD_CONFIG+set} != xset ; then
  15524. ESD_CONFIG=$esd_prefix/bin/esd-config
  15525. fi
  15526. fi
  15527. # Extract the first word of "esd-config", so it can be a program name with args.
  15528. set dummy esd-config; ac_word=$2
  15529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15530. $as_echo_n "checking for $ac_word... " >&6; }
  15531. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15532. $as_echo_n "(cached) " >&6
  15533. else
  15534. case $ESD_CONFIG in
  15535. [\\/]* | ?:[\\/]*)
  15536. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15537. ;;
  15538. *)
  15539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15540. for as_dir in $PATH
  15541. do
  15542. IFS=$as_save_IFS
  15543. test -z "$as_dir" && as_dir=.
  15544. for ac_exec_ext in '' $ac_executable_extensions; do
  15545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15546. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15548. break 2
  15549. fi
  15550. done
  15551. done
  15552. IFS=$as_save_IFS
  15553. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15554. ;;
  15555. esac
  15556. fi
  15557. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15558. if test -n "$ESD_CONFIG"; then
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15560. $as_echo "$ESD_CONFIG" >&6; }
  15561. else
  15562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15563. $as_echo "no" >&6; }
  15564. fi
  15565. min_esd_version=0.2.8
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15567. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15568. no_esd=""
  15569. if test "$ESD_CONFIG" = "no" ; then
  15570. no_esd=yes
  15571. else
  15572. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15573. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15574. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15575. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15576. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15577. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15578. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15579. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15580. if test "x$enable_esdtest" = "xyes" ; then
  15581. ac_save_CFLAGS="$CFLAGS"
  15582. ac_save_LIBS="$LIBS"
  15583. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15584. LIBS="$LIBS $ESD_LIBS"
  15585. rm -f conf.esdtest
  15586. if test "$cross_compiling" = yes; then :
  15587. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15588. else
  15589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15590. /* end confdefs.h. */
  15591. #include <stdio.h>
  15592. #include <stdlib.h>
  15593. #include <string.h>
  15594. #include <esd.h>
  15595. char*
  15596. my_strdup (char *str)
  15597. {
  15598. char *new_str;
  15599. if (str)
  15600. {
  15601. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15602. strcpy (new_str, str);
  15603. }
  15604. else
  15605. new_str = NULL;
  15606. return new_str;
  15607. }
  15608. int main ()
  15609. {
  15610. int major, minor, micro;
  15611. char *tmp_version;
  15612. system ("touch conf.esdtest");
  15613. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15614. tmp_version = my_strdup("$min_esd_version");
  15615. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15616. printf("%s, bad version string\n", "$min_esd_version");
  15617. exit(1);
  15618. }
  15619. if (($esd_major_version > major) ||
  15620. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15621. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15622. {
  15623. return 0;
  15624. }
  15625. else
  15626. {
  15627. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15628. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15629. printf("*** best to upgrade to the required version.\n");
  15630. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15631. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15632. printf("*** config.cache before re-running configure\n");
  15633. return 1;
  15634. }
  15635. }
  15636. _ACEOF
  15637. if ac_fn_c_try_run "$LINENO"; then :
  15638. else
  15639. no_esd=yes
  15640. fi
  15641. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15642. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15643. fi
  15644. CFLAGS="$ac_save_CFLAGS"
  15645. LIBS="$ac_save_LIBS"
  15646. fi
  15647. fi
  15648. if test "x$no_esd" = x ; then
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15650. $as_echo "yes" >&6; }
  15651. have_esd=yes
  15652. else
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15654. $as_echo "no" >&6; }
  15655. if test "$ESD_CONFIG" = "no" ; then
  15656. echo "*** The esd-config script installed by ESD could not be found"
  15657. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15658. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15659. echo "*** full path to esd-config."
  15660. else
  15661. if test -f conf.esdtest ; then
  15662. :
  15663. else
  15664. echo "*** Could not run ESD test program, checking why..."
  15665. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15666. LIBS="$LIBS $ESD_LIBS"
  15667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15668. /* end confdefs.h. */
  15669. #include <stdio.h>
  15670. #include <esd.h>
  15671. int
  15672. main ()
  15673. {
  15674. return 0;
  15675. ;
  15676. return 0;
  15677. }
  15678. _ACEOF
  15679. if ac_fn_c_try_link "$LINENO"; then :
  15680. echo "*** The test program compiled, but did not run. This usually means"
  15681. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15682. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15683. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15684. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15685. echo "*** is required on your system"
  15686. echo "***"
  15687. echo "*** If you have an old version installed, it is best to remove it, although"
  15688. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15689. else
  15690. echo "*** The test program failed to compile or link. See the file config.log for the"
  15691. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15692. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15693. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15694. fi
  15695. rm -f core conftest.err conftest.$ac_objext \
  15696. conftest$ac_exeext conftest.$ac_ext
  15697. CFLAGS="$ac_save_CFLAGS"
  15698. LIBS="$ac_save_LIBS"
  15699. fi
  15700. fi
  15701. ESD_CFLAGS=""
  15702. ESD_LIBS=""
  15703. have_esd=no
  15704. fi
  15705. rm -f conf.esdtest
  15706. if test x$have_esd = xyes; then
  15707. # Check whether --enable-esd-shared was given.
  15708. if test "${enable_esd_shared+set}" = set; then :
  15709. enableval=$enable_esd_shared;
  15710. else
  15711. enable_esd_shared=yes
  15712. fi
  15713. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15714. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15715. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15716. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15717. if test x$have_loadso != xyes && \
  15718. test x$enable_esd_shared = xyes; then
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15720. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15721. fi
  15722. if test x$have_loadso = xyes && \
  15723. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15724. echo "-- dynamic libesd -> $esd_lib"
  15725. cat >>confdefs.h <<_ACEOF
  15726. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15727. _ACEOF
  15728. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15729. else
  15730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15731. SUMMARY_audio="${SUMMARY_audio} esd"
  15732. fi
  15733. have_audio=yes
  15734. fi
  15735. fi
  15736. }
  15737. CheckPulseAudio()
  15738. {
  15739. # Check whether --enable-pulseaudio was given.
  15740. if test "${enable_pulseaudio+set}" = set; then :
  15741. enableval=$enable_pulseaudio;
  15742. else
  15743. enable_pulseaudio=yes
  15744. fi
  15745. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15746. audio_pulseaudio=no
  15747. PULSEAUDIO_REQUIRED_VERSION=0.9
  15748. # Extract the first word of "pkg-config", so it can be a program name with args.
  15749. set dummy pkg-config; ac_word=$2
  15750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15751. $as_echo_n "checking for $ac_word... " >&6; }
  15752. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15753. $as_echo_n "(cached) " >&6
  15754. else
  15755. case $PKG_CONFIG in
  15756. [\\/]* | ?:[\\/]*)
  15757. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15758. ;;
  15759. *)
  15760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15761. for as_dir in $PATH
  15762. do
  15763. IFS=$as_save_IFS
  15764. test -z "$as_dir" && as_dir=.
  15765. for ac_exec_ext in '' $ac_executable_extensions; do
  15766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15767. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15769. break 2
  15770. fi
  15771. done
  15772. done
  15773. IFS=$as_save_IFS
  15774. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15775. ;;
  15776. esac
  15777. fi
  15778. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15779. if test -n "$PKG_CONFIG"; then
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15781. $as_echo "$PKG_CONFIG" >&6; }
  15782. else
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15784. $as_echo "no" >&6; }
  15785. fi
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15787. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15788. if test x$PKG_CONFIG != xno; then
  15789. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15790. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15791. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15792. audio_pulseaudio=yes
  15793. fi
  15794. fi
  15795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15796. $as_echo "$audio_pulseaudio" >&6; }
  15797. if test x$audio_pulseaudio = xyes; then
  15798. # Check whether --enable-pulseaudio-shared was given.
  15799. if test "${enable_pulseaudio_shared+set}" = set; then :
  15800. enableval=$enable_pulseaudio_shared;
  15801. else
  15802. enable_pulseaudio_shared=yes
  15803. fi
  15804. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15805. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15806. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15807. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15808. if test x$have_loadso != xyes && \
  15809. test x$enable_pulseaudio_shared = xyes; then
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15811. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15812. fi
  15813. if test x$have_loadso = xyes && \
  15814. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15815. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15816. cat >>confdefs.h <<_ACEOF
  15817. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15818. _ACEOF
  15819. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15820. case "$host" in
  15821. # On Solaris, pulseaudio must be linked deferred explicitly
  15822. # to prevent undefined symbol failures.
  15823. *-*-solaris*)
  15824. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15826. esac
  15827. else
  15828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15829. SUMMARY_audio="${SUMMARY_audio} pulse"
  15830. fi
  15831. have_audio=yes
  15832. fi
  15833. fi
  15834. }
  15835. CheckARTSC()
  15836. {
  15837. # Check whether --enable-arts was given.
  15838. if test "${enable_arts+set}" = set; then :
  15839. enableval=$enable_arts;
  15840. else
  15841. enable_arts=yes
  15842. fi
  15843. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15844. # Extract the first word of "artsc-config", so it can be a program name with args.
  15845. set dummy artsc-config; ac_word=$2
  15846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15847. $as_echo_n "checking for $ac_word... " >&6; }
  15848. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15849. $as_echo_n "(cached) " >&6
  15850. else
  15851. case $ARTSCONFIG in
  15852. [\\/]* | ?:[\\/]*)
  15853. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15854. ;;
  15855. *)
  15856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15857. for as_dir in $PATH
  15858. do
  15859. IFS=$as_save_IFS
  15860. test -z "$as_dir" && as_dir=.
  15861. for ac_exec_ext in '' $ac_executable_extensions; do
  15862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15863. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15865. break 2
  15866. fi
  15867. done
  15868. done
  15869. IFS=$as_save_IFS
  15870. ;;
  15871. esac
  15872. fi
  15873. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15874. if test -n "$ARTSCONFIG"; then
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15876. $as_echo "$ARTSCONFIG" >&6; }
  15877. else
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15879. $as_echo "no" >&6; }
  15880. fi
  15881. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15882. : # arts isn't installed
  15883. else
  15884. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15885. ARTS_LIBS=`$ARTSCONFIG --libs`
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15887. $as_echo_n "checking for aRts development environment... " >&6; }
  15888. audio_arts=no
  15889. save_CFLAGS="$CFLAGS"
  15890. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15892. /* end confdefs.h. */
  15893. #include <artsc.h>
  15894. int
  15895. main ()
  15896. {
  15897. arts_stream_t stream;
  15898. ;
  15899. return 0;
  15900. }
  15901. _ACEOF
  15902. if ac_fn_c_try_compile "$LINENO"; then :
  15903. audio_arts=yes
  15904. fi
  15905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15906. CFLAGS="$save_CFLAGS"
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15908. $as_echo "$audio_arts" >&6; }
  15909. if test x$audio_arts = xyes; then
  15910. # Check whether --enable-arts-shared was given.
  15911. if test "${enable_arts_shared+set}" = set; then :
  15912. enableval=$enable_arts_shared;
  15913. else
  15914. enable_arts_shared=yes
  15915. fi
  15916. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15917. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15918. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15919. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15920. if test x$have_loadso != xyes && \
  15921. test x$enable_arts_shared = xyes; then
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15923. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15924. fi
  15925. if test x$have_loadso = xyes && \
  15926. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15927. echo "-- dynamic libartsc -> $arts_lib"
  15928. cat >>confdefs.h <<_ACEOF
  15929. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15930. _ACEOF
  15931. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15932. else
  15933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15934. SUMMARY_audio="${SUMMARY_audio} arts"
  15935. fi
  15936. have_audio=yes
  15937. fi
  15938. fi
  15939. fi
  15940. }
  15941. CheckNAS()
  15942. {
  15943. # Check whether --enable-nas was given.
  15944. if test "${enable_nas+set}" = set; then :
  15945. enableval=$enable_nas;
  15946. else
  15947. enable_nas=yes
  15948. fi
  15949. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15950. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15951. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15952. have_nas_hdr=yes
  15953. fi
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15955. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15956. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15957. $as_echo_n "(cached) " >&6
  15958. else
  15959. ac_check_lib_save_LIBS=$LIBS
  15960. LIBS="-laudio $LIBS"
  15961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15962. /* end confdefs.h. */
  15963. /* Override any GCC internal prototype to avoid an error.
  15964. Use char because int might match the return type of a GCC
  15965. builtin and then its argument prototype would still apply. */
  15966. #ifdef __cplusplus
  15967. extern "C"
  15968. #endif
  15969. char AuOpenServer ();
  15970. int
  15971. main ()
  15972. {
  15973. return AuOpenServer ();
  15974. ;
  15975. return 0;
  15976. }
  15977. _ACEOF
  15978. if ac_fn_c_try_link "$LINENO"; then :
  15979. ac_cv_lib_audio_AuOpenServer=yes
  15980. else
  15981. ac_cv_lib_audio_AuOpenServer=no
  15982. fi
  15983. rm -f core conftest.err conftest.$ac_objext \
  15984. conftest$ac_exeext conftest.$ac_ext
  15985. LIBS=$ac_check_lib_save_LIBS
  15986. fi
  15987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15988. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15989. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15990. have_nas_lib=yes
  15991. fi
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15993. $as_echo_n "checking for NAS audio support... " >&6; }
  15994. have_nas=no
  15995. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15996. have_nas=yes
  15997. NAS_LIBS="-laudio"
  15998. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15999. have_nas=yes
  16000. NAS_CFLAGS="-I/usr/X11R6/include/"
  16001. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16002. fi
  16003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16004. $as_echo "$have_nas" >&6; }
  16005. if test x$have_nas = xyes; then
  16006. # Check whether --enable-nas-shared was given.
  16007. if test "${enable_nas_shared+set}" = set; then :
  16008. enableval=$enable_nas_shared;
  16009. else
  16010. enable_nas_shared=yes
  16011. fi
  16012. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16013. if test x$have_loadso != xyes && \
  16014. test x$enable_nas_shared = xyes; then
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16016. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16017. fi
  16018. if test x$have_loadso = xyes && \
  16019. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16020. echo "-- dynamic libaudio -> $nas_lib"
  16021. cat >>confdefs.h <<_ACEOF
  16022. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16023. _ACEOF
  16024. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16025. else
  16026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16027. SUMMARY_audio="${SUMMARY_audio} nas"
  16028. fi
  16029. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16030. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16031. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16032. have_audio=yes
  16033. fi
  16034. fi
  16035. }
  16036. CheckSNDIO()
  16037. {
  16038. # Check whether --enable-sndio was given.
  16039. if test "${enable_sndio+set}" = set; then :
  16040. enableval=$enable_sndio;
  16041. else
  16042. enable_sndio=yes
  16043. fi
  16044. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16045. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16046. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16047. have_sndio_hdr=yes
  16048. fi
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16050. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16051. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16052. $as_echo_n "(cached) " >&6
  16053. else
  16054. ac_check_lib_save_LIBS=$LIBS
  16055. LIBS="-lsndio $LIBS"
  16056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16057. /* end confdefs.h. */
  16058. /* Override any GCC internal prototype to avoid an error.
  16059. Use char because int might match the return type of a GCC
  16060. builtin and then its argument prototype would still apply. */
  16061. #ifdef __cplusplus
  16062. extern "C"
  16063. #endif
  16064. char sio_open ();
  16065. int
  16066. main ()
  16067. {
  16068. return sio_open ();
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_link "$LINENO"; then :
  16074. ac_cv_lib_sndio_sio_open=yes
  16075. else
  16076. ac_cv_lib_sndio_sio_open=no
  16077. fi
  16078. rm -f core conftest.err conftest.$ac_objext \
  16079. conftest$ac_exeext conftest.$ac_ext
  16080. LIBS=$ac_check_lib_save_LIBS
  16081. fi
  16082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16083. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16084. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16085. have_sndio_lib=yes
  16086. fi
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16088. $as_echo_n "checking for sndio audio support... " >&6; }
  16089. have_sndio=no
  16090. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16091. have_sndio=yes
  16092. SNDIO_LIBS="-lsndio"
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16095. $as_echo "$have_sndio" >&6; }
  16096. if test x$have_sndio = xyes; then
  16097. # Check whether --enable-sndio-shared was given.
  16098. if test "${enable_sndio_shared+set}" = set; then :
  16099. enableval=$enable_sndio_shared;
  16100. else
  16101. enable_sndio_shared=yes
  16102. fi
  16103. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16104. if test x$have_loadso != xyes && \
  16105. test x$enable_sndio_shared = xyes; then
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16107. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16108. fi
  16109. if test x$have_loadso = xyes && \
  16110. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16111. echo "-- dynamic libsndio -> $sndio_lib"
  16112. cat >>confdefs.h <<_ACEOF
  16113. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16114. _ACEOF
  16115. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16116. else
  16117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16118. SUMMARY_audio="${SUMMARY_audio} sndio"
  16119. fi
  16120. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16121. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16122. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16123. have_audio=yes
  16124. fi
  16125. fi
  16126. }
  16127. CheckFusionSound()
  16128. {
  16129. # Check whether --enable-fusionsound was given.
  16130. if test "${enable_fusionsound+set}" = set; then :
  16131. enableval=$enable_fusionsound;
  16132. else
  16133. enable_fusionsound=no
  16134. fi
  16135. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16136. fusionsound=no
  16137. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16138. # Extract the first word of "pkg-config", so it can be a program name with args.
  16139. set dummy pkg-config; ac_word=$2
  16140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16141. $as_echo_n "checking for $ac_word... " >&6; }
  16142. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16143. $as_echo_n "(cached) " >&6
  16144. else
  16145. case $PKG_CONFIG in
  16146. [\\/]* | ?:[\\/]*)
  16147. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16148. ;;
  16149. *)
  16150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16151. for as_dir in $PATH
  16152. do
  16153. IFS=$as_save_IFS
  16154. test -z "$as_dir" && as_dir=.
  16155. for ac_exec_ext in '' $ac_executable_extensions; do
  16156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16157. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16159. break 2
  16160. fi
  16161. done
  16162. done
  16163. IFS=$as_save_IFS
  16164. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16165. ;;
  16166. esac
  16167. fi
  16168. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16169. if test -n "$PKG_CONFIG"; then
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16171. $as_echo "$PKG_CONFIG" >&6; }
  16172. else
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16174. $as_echo "no" >&6; }
  16175. fi
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16177. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16178. if test x$PKG_CONFIG != xno; then
  16179. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16180. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16181. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16182. fusionsound=yes
  16183. fi
  16184. fi
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16186. $as_echo "$fusionsound" >&6; }
  16187. if test x$fusionsound = xyes; then
  16188. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16189. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16190. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16191. # Check whether --enable-fusionsound-shared was given.
  16192. if test "${enable_fusionsound_shared+set}" = set; then :
  16193. enableval=$enable_fusionsound_shared;
  16194. else
  16195. enable_fusionsound_shared=yes
  16196. fi
  16197. fusionsound_shared=no
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16199. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16200. if test x$have_loadso != xyes && \
  16201. test x$enable_fusionsound_shared = xyes; then
  16202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16203. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16204. fi
  16205. if test x$have_loadso = xyes && \
  16206. test x$enable_fusionsound_shared = xyes; then
  16207. cat >>confdefs.h <<_ACEOF
  16208. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16209. _ACEOF
  16210. fusionsound_shared=yes
  16211. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16212. else
  16213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16214. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16217. $as_echo "$fusionsound_shared" >&6; }
  16218. have_audio=yes
  16219. fi
  16220. fi
  16221. }
  16222. CheckDiskAudio()
  16223. {
  16224. # Check whether --enable-diskaudio was given.
  16225. if test "${enable_diskaudio+set}" = set; then :
  16226. enableval=$enable_diskaudio;
  16227. else
  16228. enable_diskaudio=yes
  16229. fi
  16230. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16231. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16232. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16233. SUMMARY_audio="${SUMMARY_audio} disk"
  16234. fi
  16235. }
  16236. CheckDummyAudio()
  16237. {
  16238. # Check whether --enable-dummyaudio was given.
  16239. if test "${enable_dummyaudio+set}" = set; then :
  16240. enableval=$enable_dummyaudio;
  16241. else
  16242. enable_dummyaudio=yes
  16243. fi
  16244. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16245. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16246. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16247. SUMMARY_audio="${SUMMARY_audio} dummy"
  16248. fi
  16249. }
  16250. CheckLibSampleRate()
  16251. {
  16252. # Check whether --enable-libsamplerate was given.
  16253. if test "${enable_libsamplerate+set}" = set; then :
  16254. enableval=$enable_libsamplerate;
  16255. else
  16256. enable_libsamplerate=yes
  16257. fi
  16258. if test x$enable_libsamplerate = xyes; then
  16259. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16260. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16261. have_samplerate_h_hdr=yes
  16262. else
  16263. have_samplerate_h_hdr=no
  16264. fi
  16265. if test x$have_samplerate_h_hdr = xyes; then
  16266. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16267. # Check whether --enable-libsamplerate-shared was given.
  16268. if test "${enable_libsamplerate_shared+set}" = set; then :
  16269. enableval=$enable_libsamplerate_shared;
  16270. else
  16271. enable_libsamplerate_shared=yes
  16272. fi
  16273. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16274. if test x$have_loadso != xyes && \
  16275. test x$enable_libsamplerate_shared = xyes; then
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16277. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16278. fi
  16279. if test x$have_loadso = xyes && \
  16280. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16281. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16282. cat >>confdefs.h <<_ACEOF
  16283. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16284. _ACEOF
  16285. else
  16286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16287. fi
  16288. fi
  16289. fi
  16290. }
  16291. CheckVisibilityHidden()
  16292. {
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16294. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16295. have_gcc_fvisibility=no
  16296. visibility_CFLAGS="-fvisibility=hidden"
  16297. save_CFLAGS="$CFLAGS"
  16298. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #if !defined(__GNUC__) || __GNUC__ < 4
  16302. #error SDL only uses visibility attributes in GCC 4 or newer
  16303. #endif
  16304. int
  16305. main ()
  16306. {
  16307. ;
  16308. return 0;
  16309. }
  16310. _ACEOF
  16311. if ac_fn_c_try_compile "$LINENO"; then :
  16312. have_gcc_fvisibility=yes
  16313. fi
  16314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16316. $as_echo "$have_gcc_fvisibility" >&6; }
  16317. CFLAGS="$save_CFLAGS"
  16318. if test x$have_gcc_fvisibility = xyes; then
  16319. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16320. fi
  16321. }
  16322. CheckStackBoundary()
  16323. {
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16325. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16326. have_gcc_preferred_stack_boundary=no
  16327. save_CFLAGS="$CFLAGS"
  16328. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16330. /* end confdefs.h. */
  16331. int x = 0;
  16332. int
  16333. main ()
  16334. {
  16335. ;
  16336. return 0;
  16337. }
  16338. _ACEOF
  16339. if ac_fn_c_try_compile "$LINENO"; then :
  16340. have_gcc_preferred_stack_boundary=yes
  16341. fi
  16342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16344. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16345. CFLAGS="$save_CFLAGS"
  16346. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16347. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16348. fi
  16349. }
  16350. CheckDeclarationAfterStatement()
  16351. {
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16353. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16354. have_gcc_declaration_after_statement=no
  16355. save_CFLAGS="$CFLAGS"
  16356. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16358. /* end confdefs.h. */
  16359. int x = 0;
  16360. int
  16361. main ()
  16362. {
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. if ac_fn_c_try_compile "$LINENO"; then :
  16368. have_gcc_declaration_after_statement=yes
  16369. fi
  16370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16372. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16373. CFLAGS="$save_CFLAGS"
  16374. if test x$have_gcc_declaration_after_statement = xyes; then
  16375. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16376. fi
  16377. }
  16378. CheckWarnAll()
  16379. {
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16381. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16382. have_gcc_Wall=no
  16383. save_CFLAGS="$CFLAGS"
  16384. CFLAGS="$save_CFLAGS -Wall"
  16385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16386. /* end confdefs.h. */
  16387. int x = 0;
  16388. int
  16389. main ()
  16390. {
  16391. ;
  16392. return 0;
  16393. }
  16394. _ACEOF
  16395. if ac_fn_c_try_compile "$LINENO"; then :
  16396. have_gcc_Wall=yes
  16397. fi
  16398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16400. $as_echo "$have_gcc_Wall" >&6; }
  16401. CFLAGS="$save_CFLAGS"
  16402. if test x$have_gcc_Wall = xyes; then
  16403. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16405. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16406. need_gcc_Wno_multichar=no
  16407. case "$host" in
  16408. *-*-haiku*)
  16409. need_gcc_Wno_multichar=yes
  16410. ;;
  16411. esac
  16412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16413. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16414. if test x$need_gcc_Wno_multichar = xyes; then
  16415. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16416. fi
  16417. fi
  16418. }
  16419. CheckWayland()
  16420. {
  16421. # Check whether --enable-video-wayland was given.
  16422. if test "${enable_video_wayland+set}" = set; then :
  16423. enableval=$enable_video_wayland;
  16424. else
  16425. enable_video_wayland=yes
  16426. fi
  16427. # Check whether --enable-video-wayland-qt-touch was given.
  16428. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16429. enableval=$enable_video_wayland_qt_touch;
  16430. else
  16431. enable_video_wayland_qt_touch=yes
  16432. fi
  16433. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16434. # Extract the first word of "pkg-config", so it can be a program name with args.
  16435. set dummy pkg-config; ac_word=$2
  16436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16437. $as_echo_n "checking for $ac_word... " >&6; }
  16438. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16439. $as_echo_n "(cached) " >&6
  16440. else
  16441. case $PKG_CONFIG in
  16442. [\\/]* | ?:[\\/]*)
  16443. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16444. ;;
  16445. *)
  16446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16447. for as_dir in $PATH
  16448. do
  16449. IFS=$as_save_IFS
  16450. test -z "$as_dir" && as_dir=.
  16451. for ac_exec_ext in '' $ac_executable_extensions; do
  16452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16453. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16455. break 2
  16456. fi
  16457. done
  16458. done
  16459. IFS=$as_save_IFS
  16460. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16461. ;;
  16462. esac
  16463. fi
  16464. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16465. if test -n "$PKG_CONFIG"; then
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16467. $as_echo "$PKG_CONFIG" >&6; }
  16468. else
  16469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16470. $as_echo "no" >&6; }
  16471. fi
  16472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16473. $as_echo_n "checking for Wayland support... " >&6; }
  16474. video_wayland=no
  16475. if test x$PKG_CONFIG != xno && \
  16476. test x$video_opengl_egl = xyes && \
  16477. test x$video_opengles_v2 = xyes; then
  16478. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16479. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16480. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16481. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16482. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16483. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16484. video_wayland=yes
  16485. fi
  16486. fi
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16488. $as_echo "$video_wayland" >&6; }
  16489. if test x$video_wayland = xyes; then
  16490. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16491. if test x$enable_video_wayland_qt_touch = xyes; then
  16492. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16493. fi
  16494. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16495. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16496. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16497. # Check whether --enable-wayland-shared was given.
  16498. if test "${enable_wayland_shared+set}" = set; then :
  16499. enableval=$enable_wayland_shared;
  16500. else
  16501. enable_wayland_shared=maybe
  16502. fi
  16503. case "$host" in
  16504. *)
  16505. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16506. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16507. if test x$wayland_egl_lib = x; then
  16508. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16509. fi
  16510. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16511. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16512. ;;
  16513. esac
  16514. if test x$enable_wayland_shared = xmaybe; then
  16515. enable_wayland_shared=yes
  16516. fi
  16517. if test x$have_loadso != xyes && \
  16518. test x$enable_wayland_shared = xyes; then
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16520. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16521. enable_wayland_shared=no
  16522. fi
  16523. if test x$have_loadso = xyes && \
  16524. test x$enable_wayland_shared = xyes && \
  16525. test x$wayland_client_lib != x && \
  16526. test x$wayland_egl_lib != x && \
  16527. test x$wayland_cursor_lib != x && \
  16528. test x$xkbcommon_lib != x; then
  16529. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16530. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16531. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16532. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16533. cat >>confdefs.h <<_ACEOF
  16534. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16535. _ACEOF
  16536. cat >>confdefs.h <<_ACEOF
  16537. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16538. _ACEOF
  16539. cat >>confdefs.h <<_ACEOF
  16540. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16541. _ACEOF
  16542. cat >>confdefs.h <<_ACEOF
  16543. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16544. _ACEOF
  16545. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16546. else
  16547. enable_wayland_shared=no
  16548. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16549. SUMMARY_video="${SUMMARY_video} wayland"
  16550. fi
  16551. have_video=yes
  16552. fi
  16553. fi
  16554. }
  16555. CheckMir()
  16556. {
  16557. # Check whether --enable-video-mir was given.
  16558. if test "${enable_video_mir+set}" = set; then :
  16559. enableval=$enable_video_mir;
  16560. else
  16561. enable_video_mir=yes
  16562. fi
  16563. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16564. # Extract the first word of "pkg-config", so it can be a program name with args.
  16565. set dummy pkg-config; ac_word=$2
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16567. $as_echo_n "checking for $ac_word... " >&6; }
  16568. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16569. $as_echo_n "(cached) " >&6
  16570. else
  16571. case $PKG_CONFIG in
  16572. [\\/]* | ?:[\\/]*)
  16573. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16574. ;;
  16575. *)
  16576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16577. for as_dir in $PATH
  16578. do
  16579. IFS=$as_save_IFS
  16580. test -z "$as_dir" && as_dir=.
  16581. for ac_exec_ext in '' $ac_executable_extensions; do
  16582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16583. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16585. break 2
  16586. fi
  16587. done
  16588. done
  16589. IFS=$as_save_IFS
  16590. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16591. ;;
  16592. esac
  16593. fi
  16594. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16595. if test -n "$PKG_CONFIG"; then
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16597. $as_echo "$PKG_CONFIG" >&6; }
  16598. else
  16599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16600. $as_echo "no" >&6; }
  16601. fi
  16602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16603. $as_echo_n "checking for Mir support... " >&6; }
  16604. video_mir=no
  16605. if test x$PKG_CONFIG != xno; then
  16606. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16607. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16608. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16609. save_CFLAGS="$CFLAGS"
  16610. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16612. /* end confdefs.h. */
  16613. #include <mir_toolkit/mir_client_library.h>
  16614. int
  16615. main ()
  16616. {
  16617. MirWindowAttrib attrib = mir_window_attrib_state
  16618. ;
  16619. return 0;
  16620. }
  16621. _ACEOF
  16622. if ac_fn_c_try_compile "$LINENO"; then :
  16623. video_mir=yes
  16624. fi
  16625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16626. CFLAGS="$save_CFLAGS"
  16627. fi
  16628. fi
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16630. $as_echo "$video_mir" >&6; }
  16631. if test x$video_mir = xyes; then
  16632. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16633. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16634. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16635. # Check whether --enable-mir-shared was given.
  16636. if test "${enable_mir_shared+set}" = set; then :
  16637. enableval=$enable_mir_shared;
  16638. else
  16639. enable_mir_shared=maybe
  16640. fi
  16641. case "$host" in
  16642. *)
  16643. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16644. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16645. ;;
  16646. esac
  16647. if test x$enable_mir_shared = xmaybe; then
  16648. enable_mir_shared=yes
  16649. fi
  16650. if test x$have_loadso != xyes && \
  16651. test x$enable_mir_shared = xyes; then
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16653. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16654. enable_mir_shared=no
  16655. fi
  16656. if test x$have_loadso = xyes && \
  16657. test x$enable_mir_shared = xyes && \
  16658. test x$mirclient_lib != x && \
  16659. test x$xkbcommon_lib != x; then
  16660. echo "-- dynamic libmirclient -> $mirclient_lib"
  16661. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16662. cat >>confdefs.h <<_ACEOF
  16663. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16664. _ACEOF
  16665. cat >>confdefs.h <<_ACEOF
  16666. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16667. _ACEOF
  16668. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16669. else
  16670. enable_mir_shared=no
  16671. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16672. SUMMARY_video="${SUMMARY_video} mir"
  16673. fi
  16674. have_video=yes
  16675. fi
  16676. fi
  16677. }
  16678. CheckNativeClient()
  16679. {
  16680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16681. /* end confdefs.h. */
  16682. #if !defined(__native_client__)
  16683. #error "NO NACL"
  16684. #endif
  16685. int
  16686. main ()
  16687. {
  16688. ;
  16689. return 0;
  16690. }
  16691. _ACEOF
  16692. if ac_fn_c_try_compile "$LINENO"; then :
  16693. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16694. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16695. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16696. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16697. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16698. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16699. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16700. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16701. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16702. SUMMARY_audio="${SUMMARY_audio} nacl"
  16703. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16704. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16705. fi
  16706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16707. }
  16708. CheckRPI()
  16709. {
  16710. # Check whether --enable-video-rpi was given.
  16711. if test "${enable_video_rpi+set}" = set; then :
  16712. enableval=$enable_video_rpi;
  16713. else
  16714. enable_video_rpi=yes
  16715. fi
  16716. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16717. # Extract the first word of "pkg-config", so it can be a program name with args.
  16718. set dummy pkg-config; ac_word=$2
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16720. $as_echo_n "checking for $ac_word... " >&6; }
  16721. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16722. $as_echo_n "(cached) " >&6
  16723. else
  16724. case $PKG_CONFIG in
  16725. [\\/]* | ?:[\\/]*)
  16726. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16727. ;;
  16728. *)
  16729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16730. for as_dir in $PATH
  16731. do
  16732. IFS=$as_save_IFS
  16733. test -z "$as_dir" && as_dir=.
  16734. for ac_exec_ext in '' $ac_executable_extensions; do
  16735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16736. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16738. break 2
  16739. fi
  16740. done
  16741. done
  16742. IFS=$as_save_IFS
  16743. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16744. ;;
  16745. esac
  16746. fi
  16747. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16748. if test -n "$PKG_CONFIG"; then
  16749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16750. $as_echo "$PKG_CONFIG" >&6; }
  16751. else
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16753. $as_echo "no" >&6; }
  16754. fi
  16755. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16756. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16757. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16758. elif test x$ARCH = xnetbsd; then
  16759. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16760. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16761. else
  16762. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16763. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  16764. fi
  16765. # Save the original compiler flags and libraries
  16766. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16767. # Add the Raspberry Pi compiler flags and libraries
  16768. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16770. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16771. have_video_rpi=no
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. #include <bcm_host.h>
  16775. int
  16776. main ()
  16777. {
  16778. bcm_host_init();
  16779. ;
  16780. return 0;
  16781. }
  16782. _ACEOF
  16783. if ac_fn_c_try_link "$LINENO"; then :
  16784. have_video_rpi=yes
  16785. fi
  16786. rm -f core conftest.err conftest.$ac_objext \
  16787. conftest$ac_exeext conftest.$ac_ext
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16789. $as_echo "$have_video_rpi" >&6; }
  16790. # Restore the compiler flags and libraries
  16791. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16792. if test x$have_video_rpi = xyes; then
  16793. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16794. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16795. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16796. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16797. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16798. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16799. SUMMARY_video="${SUMMARY_video} rpi"
  16800. fi
  16801. fi
  16802. }
  16803. CheckX11()
  16804. {
  16805. # Check whether --enable-video-x11 was given.
  16806. if test "${enable_video_x11+set}" = set; then :
  16807. enableval=$enable_video_x11;
  16808. else
  16809. enable_video_x11=yes
  16810. fi
  16811. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16812. case "$host" in
  16813. *-*-darwin*)
  16814. # This isn't necessary for X11, but fixes GLX detection
  16815. if test "x$x_includes" = xNONE && \
  16816. test "x$x_libraries" = xNONE && \
  16817. test -d /usr/X11R6/include && \
  16818. test -d /usr/X11R6/lib; then
  16819. x_includes="/usr/X11R6/include"
  16820. x_libraries="/usr/X11R6/lib"
  16821. fi
  16822. ;;
  16823. esac
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16825. $as_echo_n "checking for X... " >&6; }
  16826. # Check whether --with-x was given.
  16827. if test "${with_x+set}" = set; then :
  16828. withval=$with_x;
  16829. fi
  16830. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16831. if test "x$with_x" = xno; then
  16832. # The user explicitly disabled X.
  16833. have_x=disabled
  16834. else
  16835. case $x_includes,$x_libraries in #(
  16836. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16837. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16838. $as_echo_n "(cached) " >&6
  16839. else
  16840. # One or both of the vars are not set, and there is no cached value.
  16841. ac_x_includes=no ac_x_libraries=no
  16842. rm -f -r conftest.dir
  16843. if mkdir conftest.dir; then
  16844. cd conftest.dir
  16845. cat >Imakefile <<'_ACEOF'
  16846. incroot:
  16847. @echo incroot='${INCROOT}'
  16848. usrlibdir:
  16849. @echo usrlibdir='${USRLIBDIR}'
  16850. libdir:
  16851. @echo libdir='${LIBDIR}'
  16852. _ACEOF
  16853. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16854. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16855. for ac_var in incroot usrlibdir libdir; do
  16856. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16857. done
  16858. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16859. for ac_extension in a so sl dylib la dll; do
  16860. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16861. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16862. ac_im_usrlibdir=$ac_im_libdir; break
  16863. fi
  16864. done
  16865. # Screen out bogus values from the imake configuration. They are
  16866. # bogus both because they are the default anyway, and because
  16867. # using them would break gcc on systems where it needs fixed includes.
  16868. case $ac_im_incroot in
  16869. /usr/include) ac_x_includes= ;;
  16870. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16871. esac
  16872. case $ac_im_usrlibdir in
  16873. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16874. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16875. esac
  16876. fi
  16877. cd ..
  16878. rm -f -r conftest.dir
  16879. fi
  16880. # Standard set of common directories for X headers.
  16881. # Check X11 before X11Rn because it is often a symlink to the current release.
  16882. ac_x_header_dirs='
  16883. /usr/X11/include
  16884. /usr/X11R7/include
  16885. /usr/X11R6/include
  16886. /usr/X11R5/include
  16887. /usr/X11R4/include
  16888. /usr/include/X11
  16889. /usr/include/X11R7
  16890. /usr/include/X11R6
  16891. /usr/include/X11R5
  16892. /usr/include/X11R4
  16893. /usr/local/X11/include
  16894. /usr/local/X11R7/include
  16895. /usr/local/X11R6/include
  16896. /usr/local/X11R5/include
  16897. /usr/local/X11R4/include
  16898. /usr/local/include/X11
  16899. /usr/local/include/X11R7
  16900. /usr/local/include/X11R6
  16901. /usr/local/include/X11R5
  16902. /usr/local/include/X11R4
  16903. /usr/X386/include
  16904. /usr/x386/include
  16905. /usr/XFree86/include/X11
  16906. /usr/include
  16907. /usr/local/include
  16908. /usr/unsupported/include
  16909. /usr/athena/include
  16910. /usr/local/x11r5/include
  16911. /usr/lpp/Xamples/include
  16912. /usr/openwin/include
  16913. /usr/openwin/share/include'
  16914. if test "$ac_x_includes" = no; then
  16915. # Guess where to find include files, by looking for Xlib.h.
  16916. # First, try using that file with no special directory specified.
  16917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. /* end confdefs.h. */
  16919. #include <X11/Xlib.h>
  16920. _ACEOF
  16921. if ac_fn_c_try_cpp "$LINENO"; then :
  16922. # We can compile using X headers with no special include directory.
  16923. ac_x_includes=
  16924. else
  16925. for ac_dir in $ac_x_header_dirs; do
  16926. if test -r "$ac_dir/X11/Xlib.h"; then
  16927. ac_x_includes=$ac_dir
  16928. break
  16929. fi
  16930. done
  16931. fi
  16932. rm -f conftest.err conftest.i conftest.$ac_ext
  16933. fi # $ac_x_includes = no
  16934. if test "$ac_x_libraries" = no; then
  16935. # Check for the libraries.
  16936. # See if we find them without any special options.
  16937. # Don't add to $LIBS permanently.
  16938. ac_save_LIBS=$LIBS
  16939. LIBS="-lX11 $LIBS"
  16940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16941. /* end confdefs.h. */
  16942. #include <X11/Xlib.h>
  16943. int
  16944. main ()
  16945. {
  16946. XrmInitialize ()
  16947. ;
  16948. return 0;
  16949. }
  16950. _ACEOF
  16951. if ac_fn_c_try_link "$LINENO"; then :
  16952. LIBS=$ac_save_LIBS
  16953. # We can link X programs with no special library path.
  16954. ac_x_libraries=
  16955. else
  16956. LIBS=$ac_save_LIBS
  16957. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16958. do
  16959. # Don't even attempt the hair of trying to link an X program!
  16960. for ac_extension in a so sl dylib la dll; do
  16961. if test -r "$ac_dir/libX11.$ac_extension"; then
  16962. ac_x_libraries=$ac_dir
  16963. break 2
  16964. fi
  16965. done
  16966. done
  16967. fi
  16968. rm -f core conftest.err conftest.$ac_objext \
  16969. conftest$ac_exeext conftest.$ac_ext
  16970. fi # $ac_x_libraries = no
  16971. case $ac_x_includes,$ac_x_libraries in #(
  16972. no,* | *,no | *\'*)
  16973. # Didn't find X, or a directory has "'" in its name.
  16974. ac_cv_have_x="have_x=no";; #(
  16975. *)
  16976. # Record where we found X for the cache.
  16977. ac_cv_have_x="have_x=yes\
  16978. ac_x_includes='$ac_x_includes'\
  16979. ac_x_libraries='$ac_x_libraries'"
  16980. esac
  16981. fi
  16982. ;; #(
  16983. *) have_x=yes;;
  16984. esac
  16985. eval "$ac_cv_have_x"
  16986. fi # $with_x != no
  16987. if test "$have_x" != yes; then
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16989. $as_echo "$have_x" >&6; }
  16990. no_x=yes
  16991. else
  16992. # If each of the values was on the command line, it overrides each guess.
  16993. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16994. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16995. # Update the cache value to reflect the command line values.
  16996. ac_cv_have_x="have_x=yes\
  16997. ac_x_includes='$x_includes'\
  16998. ac_x_libraries='$x_libraries'"
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17000. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17001. fi
  17002. if test "$no_x" = yes; then
  17003. # Not all programs may use this symbol, but it does not hurt to define it.
  17004. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17005. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17006. else
  17007. if test -n "$x_includes"; then
  17008. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17009. fi
  17010. # It would also be nice to do this for all -L options, not just this one.
  17011. if test -n "$x_libraries"; then
  17012. X_LIBS="$X_LIBS -L$x_libraries"
  17013. # For Solaris; some versions of Sun CC require a space after -R and
  17014. # others require no space. Words are not sufficient . . . .
  17015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17016. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17017. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17018. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17019. ac_c_werror_flag=yes
  17020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17021. /* end confdefs.h. */
  17022. int
  17023. main ()
  17024. {
  17025. ;
  17026. return 0;
  17027. }
  17028. _ACEOF
  17029. if ac_fn_c_try_link "$LINENO"; then :
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17031. $as_echo "no" >&6; }
  17032. X_LIBS="$X_LIBS -R$x_libraries"
  17033. else
  17034. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17036. /* end confdefs.h. */
  17037. int
  17038. main ()
  17039. {
  17040. ;
  17041. return 0;
  17042. }
  17043. _ACEOF
  17044. if ac_fn_c_try_link "$LINENO"; then :
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17046. $as_echo "yes" >&6; }
  17047. X_LIBS="$X_LIBS -R $x_libraries"
  17048. else
  17049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17050. $as_echo "neither works" >&6; }
  17051. fi
  17052. rm -f core conftest.err conftest.$ac_objext \
  17053. conftest$ac_exeext conftest.$ac_ext
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext \
  17056. conftest$ac_exeext conftest.$ac_ext
  17057. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17058. LIBS=$ac_xsave_LIBS
  17059. fi
  17060. # Check for system-dependent libraries X programs must link with.
  17061. # Do this before checking for the system-independent R6 libraries
  17062. # (-lICE), since we may need -lsocket or whatever for X linking.
  17063. if test "$ISC" = yes; then
  17064. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17065. else
  17066. # Martyn Johnson says this is needed for Ultrix, if the X
  17067. # libraries were built with DECnet support. And Karl Berry says
  17068. # the Alpha needs dnet_stub (dnet does not exist).
  17069. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17071. /* end confdefs.h. */
  17072. /* Override any GCC internal prototype to avoid an error.
  17073. Use char because int might match the return type of a GCC
  17074. builtin and then its argument prototype would still apply. */
  17075. #ifdef __cplusplus
  17076. extern "C"
  17077. #endif
  17078. char XOpenDisplay ();
  17079. int
  17080. main ()
  17081. {
  17082. return XOpenDisplay ();
  17083. ;
  17084. return 0;
  17085. }
  17086. _ACEOF
  17087. if ac_fn_c_try_link "$LINENO"; then :
  17088. else
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17090. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17091. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17092. $as_echo_n "(cached) " >&6
  17093. else
  17094. ac_check_lib_save_LIBS=$LIBS
  17095. LIBS="-ldnet $LIBS"
  17096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17097. /* end confdefs.h. */
  17098. /* Override any GCC internal prototype to avoid an error.
  17099. Use char because int might match the return type of a GCC
  17100. builtin and then its argument prototype would still apply. */
  17101. #ifdef __cplusplus
  17102. extern "C"
  17103. #endif
  17104. char dnet_ntoa ();
  17105. int
  17106. main ()
  17107. {
  17108. return dnet_ntoa ();
  17109. ;
  17110. return 0;
  17111. }
  17112. _ACEOF
  17113. if ac_fn_c_try_link "$LINENO"; then :
  17114. ac_cv_lib_dnet_dnet_ntoa=yes
  17115. else
  17116. ac_cv_lib_dnet_dnet_ntoa=no
  17117. fi
  17118. rm -f core conftest.err conftest.$ac_objext \
  17119. conftest$ac_exeext conftest.$ac_ext
  17120. LIBS=$ac_check_lib_save_LIBS
  17121. fi
  17122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17123. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17124. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17125. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17126. fi
  17127. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17129. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17130. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17131. $as_echo_n "(cached) " >&6
  17132. else
  17133. ac_check_lib_save_LIBS=$LIBS
  17134. LIBS="-ldnet_stub $LIBS"
  17135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17136. /* end confdefs.h. */
  17137. /* Override any GCC internal prototype to avoid an error.
  17138. Use char because int might match the return type of a GCC
  17139. builtin and then its argument prototype would still apply. */
  17140. #ifdef __cplusplus
  17141. extern "C"
  17142. #endif
  17143. char dnet_ntoa ();
  17144. int
  17145. main ()
  17146. {
  17147. return dnet_ntoa ();
  17148. ;
  17149. return 0;
  17150. }
  17151. _ACEOF
  17152. if ac_fn_c_try_link "$LINENO"; then :
  17153. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17154. else
  17155. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17156. fi
  17157. rm -f core conftest.err conftest.$ac_objext \
  17158. conftest$ac_exeext conftest.$ac_ext
  17159. LIBS=$ac_check_lib_save_LIBS
  17160. fi
  17161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17162. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17163. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17164. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17165. fi
  17166. fi
  17167. fi
  17168. rm -f core conftest.err conftest.$ac_objext \
  17169. conftest$ac_exeext conftest.$ac_ext
  17170. LIBS="$ac_xsave_LIBS"
  17171. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17172. # to get the SysV transport functions.
  17173. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17174. # needs -lnsl.
  17175. # The nsl library prevents programs from opening the X display
  17176. # on Irix 5.2, according to T.E. Dickey.
  17177. # The functions gethostbyname, getservbyname, and inet_addr are
  17178. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17179. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17180. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17181. fi
  17182. if test $ac_cv_func_gethostbyname = no; then
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17184. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17185. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17186. $as_echo_n "(cached) " >&6
  17187. else
  17188. ac_check_lib_save_LIBS=$LIBS
  17189. LIBS="-lnsl $LIBS"
  17190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17191. /* end confdefs.h. */
  17192. /* Override any GCC internal prototype to avoid an error.
  17193. Use char because int might match the return type of a GCC
  17194. builtin and then its argument prototype would still apply. */
  17195. #ifdef __cplusplus
  17196. extern "C"
  17197. #endif
  17198. char gethostbyname ();
  17199. int
  17200. main ()
  17201. {
  17202. return gethostbyname ();
  17203. ;
  17204. return 0;
  17205. }
  17206. _ACEOF
  17207. if ac_fn_c_try_link "$LINENO"; then :
  17208. ac_cv_lib_nsl_gethostbyname=yes
  17209. else
  17210. ac_cv_lib_nsl_gethostbyname=no
  17211. fi
  17212. rm -f core conftest.err conftest.$ac_objext \
  17213. conftest$ac_exeext conftest.$ac_ext
  17214. LIBS=$ac_check_lib_save_LIBS
  17215. fi
  17216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17217. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17218. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17219. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17220. fi
  17221. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17223. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17224. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17225. $as_echo_n "(cached) " >&6
  17226. else
  17227. ac_check_lib_save_LIBS=$LIBS
  17228. LIBS="-lbsd $LIBS"
  17229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17230. /* end confdefs.h. */
  17231. /* Override any GCC internal prototype to avoid an error.
  17232. Use char because int might match the return type of a GCC
  17233. builtin and then its argument prototype would still apply. */
  17234. #ifdef __cplusplus
  17235. extern "C"
  17236. #endif
  17237. char gethostbyname ();
  17238. int
  17239. main ()
  17240. {
  17241. return gethostbyname ();
  17242. ;
  17243. return 0;
  17244. }
  17245. _ACEOF
  17246. if ac_fn_c_try_link "$LINENO"; then :
  17247. ac_cv_lib_bsd_gethostbyname=yes
  17248. else
  17249. ac_cv_lib_bsd_gethostbyname=no
  17250. fi
  17251. rm -f core conftest.err conftest.$ac_objext \
  17252. conftest$ac_exeext conftest.$ac_ext
  17253. LIBS=$ac_check_lib_save_LIBS
  17254. fi
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17256. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17257. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17258. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17259. fi
  17260. fi
  17261. fi
  17262. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17263. # socket/setsockopt and other routines are undefined under SCO ODT
  17264. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17265. # on later versions), says Simon Leinen: it contains gethostby*
  17266. # variants that don't use the name server (or something). -lsocket
  17267. # must be given before -lnsl if both are needed. We assume that
  17268. # if connect needs -lnsl, so does gethostbyname.
  17269. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17270. if test "x$ac_cv_func_connect" = xyes; then :
  17271. fi
  17272. if test $ac_cv_func_connect = no; then
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17274. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17275. if ${ac_cv_lib_socket_connect+:} false; then :
  17276. $as_echo_n "(cached) " >&6
  17277. else
  17278. ac_check_lib_save_LIBS=$LIBS
  17279. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17281. /* end confdefs.h. */
  17282. /* Override any GCC internal prototype to avoid an error.
  17283. Use char because int might match the return type of a GCC
  17284. builtin and then its argument prototype would still apply. */
  17285. #ifdef __cplusplus
  17286. extern "C"
  17287. #endif
  17288. char connect ();
  17289. int
  17290. main ()
  17291. {
  17292. return connect ();
  17293. ;
  17294. return 0;
  17295. }
  17296. _ACEOF
  17297. if ac_fn_c_try_link "$LINENO"; then :
  17298. ac_cv_lib_socket_connect=yes
  17299. else
  17300. ac_cv_lib_socket_connect=no
  17301. fi
  17302. rm -f core conftest.err conftest.$ac_objext \
  17303. conftest$ac_exeext conftest.$ac_ext
  17304. LIBS=$ac_check_lib_save_LIBS
  17305. fi
  17306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17307. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17308. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17309. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17310. fi
  17311. fi
  17312. # Guillermo Gomez says -lposix is necessary on A/UX.
  17313. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17314. if test "x$ac_cv_func_remove" = xyes; then :
  17315. fi
  17316. if test $ac_cv_func_remove = no; then
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17318. $as_echo_n "checking for remove in -lposix... " >&6; }
  17319. if ${ac_cv_lib_posix_remove+:} false; then :
  17320. $as_echo_n "(cached) " >&6
  17321. else
  17322. ac_check_lib_save_LIBS=$LIBS
  17323. LIBS="-lposix $LIBS"
  17324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17325. /* end confdefs.h. */
  17326. /* Override any GCC internal prototype to avoid an error.
  17327. Use char because int might match the return type of a GCC
  17328. builtin and then its argument prototype would still apply. */
  17329. #ifdef __cplusplus
  17330. extern "C"
  17331. #endif
  17332. char remove ();
  17333. int
  17334. main ()
  17335. {
  17336. return remove ();
  17337. ;
  17338. return 0;
  17339. }
  17340. _ACEOF
  17341. if ac_fn_c_try_link "$LINENO"; then :
  17342. ac_cv_lib_posix_remove=yes
  17343. else
  17344. ac_cv_lib_posix_remove=no
  17345. fi
  17346. rm -f core conftest.err conftest.$ac_objext \
  17347. conftest$ac_exeext conftest.$ac_ext
  17348. LIBS=$ac_check_lib_save_LIBS
  17349. fi
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17351. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17352. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17353. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17354. fi
  17355. fi
  17356. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17357. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17358. if test "x$ac_cv_func_shmat" = xyes; then :
  17359. fi
  17360. if test $ac_cv_func_shmat = no; then
  17361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17362. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17363. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17364. $as_echo_n "(cached) " >&6
  17365. else
  17366. ac_check_lib_save_LIBS=$LIBS
  17367. LIBS="-lipc $LIBS"
  17368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17369. /* end confdefs.h. */
  17370. /* Override any GCC internal prototype to avoid an error.
  17371. Use char because int might match the return type of a GCC
  17372. builtin and then its argument prototype would still apply. */
  17373. #ifdef __cplusplus
  17374. extern "C"
  17375. #endif
  17376. char shmat ();
  17377. int
  17378. main ()
  17379. {
  17380. return shmat ();
  17381. ;
  17382. return 0;
  17383. }
  17384. _ACEOF
  17385. if ac_fn_c_try_link "$LINENO"; then :
  17386. ac_cv_lib_ipc_shmat=yes
  17387. else
  17388. ac_cv_lib_ipc_shmat=no
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext \
  17391. conftest$ac_exeext conftest.$ac_ext
  17392. LIBS=$ac_check_lib_save_LIBS
  17393. fi
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17395. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17396. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17397. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17398. fi
  17399. fi
  17400. fi
  17401. # Check for libraries that X11R6 Xt/Xaw programs need.
  17402. ac_save_LDFLAGS=$LDFLAGS
  17403. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17404. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17405. # check for ICE first), but we must link in the order -lSM -lICE or
  17406. # we get undefined symbols. So assume we have SM if we have ICE.
  17407. # These have to be linked with before -lX11, unlike the other
  17408. # libraries we check for below, so use a different variable.
  17409. # John Interrante, Karl Berry
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17411. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17412. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17413. $as_echo_n "(cached) " >&6
  17414. else
  17415. ac_check_lib_save_LIBS=$LIBS
  17416. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17418. /* end confdefs.h. */
  17419. /* Override any GCC internal prototype to avoid an error.
  17420. Use char because int might match the return type of a GCC
  17421. builtin and then its argument prototype would still apply. */
  17422. #ifdef __cplusplus
  17423. extern "C"
  17424. #endif
  17425. char IceConnectionNumber ();
  17426. int
  17427. main ()
  17428. {
  17429. return IceConnectionNumber ();
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. if ac_fn_c_try_link "$LINENO"; then :
  17435. ac_cv_lib_ICE_IceConnectionNumber=yes
  17436. else
  17437. ac_cv_lib_ICE_IceConnectionNumber=no
  17438. fi
  17439. rm -f core conftest.err conftest.$ac_objext \
  17440. conftest$ac_exeext conftest.$ac_ext
  17441. LIBS=$ac_check_lib_save_LIBS
  17442. fi
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17444. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17445. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17446. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17447. fi
  17448. LDFLAGS=$ac_save_LDFLAGS
  17449. fi
  17450. if test x$have_x = xyes; then
  17451. # Check whether --enable-x11-shared was given.
  17452. if test "${enable_x11_shared+set}" = set; then :
  17453. enableval=$enable_x11_shared;
  17454. else
  17455. enable_x11_shared=maybe
  17456. fi
  17457. case "$host" in
  17458. *-*-darwin*)
  17459. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17460. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17461. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17462. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17463. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17464. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17465. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17466. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17467. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17468. ;;
  17469. *-*-openbsd*)
  17470. x11_lib='libX11.so'
  17471. x11ext_lib='libXext.so'
  17472. xcursor_lib='libXcursor.so'
  17473. xinerama_lib='libXinerama.so'
  17474. xinput_lib='libXi.so'
  17475. xrandr_lib='libXrandr.so'
  17476. xrender_lib='libXrender.so'
  17477. xss_lib='libXss.so'
  17478. xvidmode_lib='libXxf86vm.so'
  17479. ;;
  17480. *)
  17481. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17482. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17483. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17484. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17485. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17486. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17487. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17488. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17489. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17490. ;;
  17491. esac
  17492. if test x$ac_cv_func_shmat != xyes; then
  17493. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17494. fi
  17495. CFLAGS="$CFLAGS $X_CFLAGS"
  17496. LDFLAGS="$LDFLAGS $X_LIBS"
  17497. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17498. #include <X11/Xproto.h>
  17499. "
  17500. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17501. have_xext_h_hdr=yes
  17502. else
  17503. have_xext_h_hdr=no
  17504. fi
  17505. if test x$have_xext_h_hdr != xyes; then
  17506. as_fn_error $? "
  17507. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17508. " "$LINENO" 5
  17509. fi
  17510. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17511. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17512. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17513. # Needed so SDL applications can include SDL_syswm.h
  17514. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17515. if test x$enable_x11_shared = xmaybe; then
  17516. enable_x11_shared=yes
  17517. fi
  17518. if test x$have_loadso != xyes && \
  17519. test x$enable_x11_shared = xyes; then
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17521. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17522. enable_x11_shared=no
  17523. fi
  17524. if test x$have_loadso = xyes && \
  17525. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17526. echo "-- dynamic libX11 -> $x11_lib"
  17527. echo "-- dynamic libX11ext -> $x11ext_lib"
  17528. cat >>confdefs.h <<_ACEOF
  17529. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17530. _ACEOF
  17531. cat >>confdefs.h <<_ACEOF
  17532. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17533. _ACEOF
  17534. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17535. else
  17536. enable_x11_shared=no
  17537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17538. SUMMARY_video="${SUMMARY_video} x11"
  17539. fi
  17540. have_video=yes
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17542. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17543. have_const_param_XextAddDisplay=no
  17544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17545. /* end confdefs.h. */
  17546. #include <X11/Xlib.h>
  17547. #include <X11/Xproto.h>
  17548. #include <X11/extensions/Xext.h>
  17549. #include <X11/extensions/extutil.h>
  17550. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17551. int
  17552. main ()
  17553. {
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. if ac_fn_c_try_compile "$LINENO"; then :
  17559. have_const_param_XextAddDisplay=yes
  17560. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17561. fi
  17562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17564. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17566. $as_echo_n "checking for XGenericEvent... " >&6; }
  17567. have_XGenericEvent=no
  17568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17569. /* end confdefs.h. */
  17570. #include <X11/Xlib.h>
  17571. int
  17572. main ()
  17573. {
  17574. Display *display;
  17575. XEvent event;
  17576. XGenericEventCookie *cookie = &event.xcookie;
  17577. XNextEvent(display, &event);
  17578. XGetEventData(display, cookie);
  17579. XFreeEventData(display, cookie);
  17580. ;
  17581. return 0;
  17582. }
  17583. _ACEOF
  17584. if ac_fn_c_try_compile "$LINENO"; then :
  17585. have_XGenericEvent=yes
  17586. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17587. fi
  17588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17590. $as_echo "$have_XGenericEvent" >&6; }
  17591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17592. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17593. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17594. $as_echo_n "(cached) " >&6
  17595. else
  17596. ac_check_lib_save_LIBS=$LIBS
  17597. LIBS="-lX11 $LIBS"
  17598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17599. /* end confdefs.h. */
  17600. /* Override any GCC internal prototype to avoid an error.
  17601. Use char because int might match the return type of a GCC
  17602. builtin and then its argument prototype would still apply. */
  17603. #ifdef __cplusplus
  17604. extern "C"
  17605. #endif
  17606. char XkbKeycodeToKeysym ();
  17607. int
  17608. main ()
  17609. {
  17610. return XkbKeycodeToKeysym ();
  17611. ;
  17612. return 0;
  17613. }
  17614. _ACEOF
  17615. if ac_fn_c_try_link "$LINENO"; then :
  17616. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17617. else
  17618. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17619. fi
  17620. rm -f core conftest.err conftest.$ac_objext \
  17621. conftest$ac_exeext conftest.$ac_ext
  17622. LIBS=$ac_check_lib_save_LIBS
  17623. fi
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17625. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17626. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17627. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17628. fi
  17629. # Check whether --enable-video-x11-xcursor was given.
  17630. if test "${enable_video_x11_xcursor+set}" = set; then :
  17631. enableval=$enable_video_x11_xcursor;
  17632. else
  17633. enable_video_x11_xcursor=yes
  17634. fi
  17635. if test x$enable_video_x11_xcursor = xyes; then
  17636. definitely_enable_video_x11_xcursor=no
  17637. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17638. "
  17639. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17640. have_xcursor_h_hdr=yes
  17641. else
  17642. have_xcursor_h_hdr=no
  17643. fi
  17644. if test x$have_xcursor_h_hdr = xyes; then
  17645. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17646. echo "-- dynamic libXcursor -> $xcursor_lib"
  17647. cat >>confdefs.h <<_ACEOF
  17648. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17649. _ACEOF
  17650. definitely_enable_video_x11_xcursor=yes
  17651. else
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17653. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17654. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17655. $as_echo_n "(cached) " >&6
  17656. else
  17657. ac_check_lib_save_LIBS=$LIBS
  17658. LIBS="-lXcursor $LIBS"
  17659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17660. /* end confdefs.h. */
  17661. /* Override any GCC internal prototype to avoid an error.
  17662. Use char because int might match the return type of a GCC
  17663. builtin and then its argument prototype would still apply. */
  17664. #ifdef __cplusplus
  17665. extern "C"
  17666. #endif
  17667. char XcursorImageCreate ();
  17668. int
  17669. main ()
  17670. {
  17671. return XcursorImageCreate ();
  17672. ;
  17673. return 0;
  17674. }
  17675. _ACEOF
  17676. if ac_fn_c_try_link "$LINENO"; then :
  17677. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17678. else
  17679. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17680. fi
  17681. rm -f core conftest.err conftest.$ac_objext \
  17682. conftest$ac_exeext conftest.$ac_ext
  17683. LIBS=$ac_check_lib_save_LIBS
  17684. fi
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17686. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17687. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17688. have_xcursor_lib=yes
  17689. fi
  17690. if test x$have_xcursor_lib = xyes ; then
  17691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17692. definitely_enable_video_x11_xcursor=yes
  17693. fi
  17694. fi
  17695. fi
  17696. fi
  17697. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17698. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17699. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17700. fi
  17701. # Check whether --enable-video-x11-xdbe was given.
  17702. if test "${enable_video_x11_xdbe+set}" = set; then :
  17703. enableval=$enable_video_x11_xdbe;
  17704. else
  17705. enable_video_x11_xdbe=yes
  17706. fi
  17707. if test x$enable_video_x11_xdbe = xyes; then
  17708. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17709. "
  17710. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17711. have_dbe_h_hdr=yes
  17712. else
  17713. have_dbe_h_hdr=no
  17714. fi
  17715. if test x$have_dbe_h_hdr = xyes; then
  17716. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17717. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17718. fi
  17719. fi
  17720. # Check whether --enable-video-x11-xinerama was given.
  17721. if test "${enable_video_x11_xinerama+set}" = set; then :
  17722. enableval=$enable_video_x11_xinerama;
  17723. else
  17724. enable_video_x11_xinerama=yes
  17725. fi
  17726. if test x$enable_video_x11_xinerama = xyes; then
  17727. definitely_enable_video_x11_xinerama=no
  17728. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17729. "
  17730. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17731. have_xinerama_h_hdr=yes
  17732. else
  17733. have_xinerama_h_hdr=no
  17734. fi
  17735. if test x$have_xinerama_h_hdr = xyes; then
  17736. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17737. echo "-- dynamic libXinerama -> $xinerama_lib"
  17738. cat >>confdefs.h <<_ACEOF
  17739. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17740. _ACEOF
  17741. definitely_enable_video_x11_xinerama=yes
  17742. else
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17744. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17745. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17746. $as_echo_n "(cached) " >&6
  17747. else
  17748. ac_check_lib_save_LIBS=$LIBS
  17749. LIBS="-lXinerama $LIBS"
  17750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17751. /* end confdefs.h. */
  17752. /* Override any GCC internal prototype to avoid an error.
  17753. Use char because int might match the return type of a GCC
  17754. builtin and then its argument prototype would still apply. */
  17755. #ifdef __cplusplus
  17756. extern "C"
  17757. #endif
  17758. char XineramaQueryExtension ();
  17759. int
  17760. main ()
  17761. {
  17762. return XineramaQueryExtension ();
  17763. ;
  17764. return 0;
  17765. }
  17766. _ACEOF
  17767. if ac_fn_c_try_link "$LINENO"; then :
  17768. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17769. else
  17770. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17771. fi
  17772. rm -f core conftest.err conftest.$ac_objext \
  17773. conftest$ac_exeext conftest.$ac_ext
  17774. LIBS=$ac_check_lib_save_LIBS
  17775. fi
  17776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17777. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17778. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17779. have_xinerama_lib=yes
  17780. fi
  17781. if test x$have_xinerama_lib = xyes ; then
  17782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17783. definitely_enable_video_x11_xinerama=yes
  17784. fi
  17785. fi
  17786. fi
  17787. fi
  17788. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17789. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17790. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17791. fi
  17792. # Check whether --enable-video-x11-xinput was given.
  17793. if test "${enable_video_x11_xinput+set}" = set; then :
  17794. enableval=$enable_video_x11_xinput;
  17795. else
  17796. enable_video_x11_xinput=yes
  17797. fi
  17798. if test x$enable_video_x11_xinput = xyes; then
  17799. definitely_enable_video_x11_xinput=no
  17800. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17801. "
  17802. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17803. have_xinput_h_hdr=yes
  17804. else
  17805. have_xinput_h_hdr=no
  17806. fi
  17807. if test x$have_xinput_h_hdr = xyes; then
  17808. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17809. echo "-- dynamic libXi -> $xinput_lib"
  17810. cat >>confdefs.h <<_ACEOF
  17811. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17812. _ACEOF
  17813. definitely_enable_video_x11_xinput=yes
  17814. else
  17815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17816. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17817. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17818. $as_echo_n "(cached) " >&6
  17819. else
  17820. ac_check_lib_save_LIBS=$LIBS
  17821. LIBS="-lXi $LIBS"
  17822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17823. /* end confdefs.h. */
  17824. /* Override any GCC internal prototype to avoid an error.
  17825. Use char because int might match the return type of a GCC
  17826. builtin and then its argument prototype would still apply. */
  17827. #ifdef __cplusplus
  17828. extern "C"
  17829. #endif
  17830. char XOpenDevice ();
  17831. int
  17832. main ()
  17833. {
  17834. return XOpenDevice ();
  17835. ;
  17836. return 0;
  17837. }
  17838. _ACEOF
  17839. if ac_fn_c_try_link "$LINENO"; then :
  17840. ac_cv_lib_Xi_XOpenDevice=yes
  17841. else
  17842. ac_cv_lib_Xi_XOpenDevice=no
  17843. fi
  17844. rm -f core conftest.err conftest.$ac_objext \
  17845. conftest$ac_exeext conftest.$ac_ext
  17846. LIBS=$ac_check_lib_save_LIBS
  17847. fi
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17849. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17850. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17851. have_xinput_lib=yes
  17852. fi
  17853. if test x$have_xinput_lib = xyes ; then
  17854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17855. definitely_enable_video_x11_xinput=yes
  17856. fi
  17857. fi
  17858. fi
  17859. fi
  17860. if test x$definitely_enable_video_x11_xinput = xyes; then
  17861. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17862. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17864. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17865. have_xinput2_multitouch=no
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. #include <X11/Xlib.h>
  17869. #include <X11/Xproto.h>
  17870. #include <X11/extensions/XInput2.h>
  17871. int
  17872. main ()
  17873. {
  17874. int event_type = XI_TouchBegin;
  17875. XITouchClassInfo *t;
  17876. ;
  17877. return 0;
  17878. }
  17879. _ACEOF
  17880. if ac_fn_c_try_compile "$LINENO"; then :
  17881. have_xinput2_multitouch=yes
  17882. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17883. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17884. fi
  17885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17887. $as_echo "$have_xinput2_multitouch" >&6; }
  17888. fi
  17889. # Check whether --enable-video-x11-xrandr was given.
  17890. if test "${enable_video_x11_xrandr+set}" = set; then :
  17891. enableval=$enable_video_x11_xrandr;
  17892. else
  17893. enable_video_x11_xrandr=yes
  17894. fi
  17895. if test x$enable_video_x11_xrandr = xyes; then
  17896. definitely_enable_video_x11_xrandr=no
  17897. have_xrandr_h_hdr=no
  17898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17899. /* end confdefs.h. */
  17900. #include <X11/Xlib.h>
  17901. #include <X11/extensions/Xrandr.h>
  17902. int
  17903. main ()
  17904. {
  17905. XRRScreenResources *res = NULL;
  17906. ;
  17907. return 0;
  17908. }
  17909. _ACEOF
  17910. if ac_fn_c_try_compile "$LINENO"; then :
  17911. have_xrandr_h_hdr=yes
  17912. fi
  17913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17914. if test x$have_xrandr_h_hdr = xyes; then
  17915. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17916. echo "-- dynamic libXrandr -> $xrandr_lib"
  17917. cat >>confdefs.h <<_ACEOF
  17918. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17919. _ACEOF
  17920. definitely_enable_video_x11_xrandr=yes
  17921. else
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17923. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17924. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17925. $as_echo_n "(cached) " >&6
  17926. else
  17927. ac_check_lib_save_LIBS=$LIBS
  17928. LIBS="-lXrandr $LIBS"
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. /* Override any GCC internal prototype to avoid an error.
  17932. Use char because int might match the return type of a GCC
  17933. builtin and then its argument prototype would still apply. */
  17934. #ifdef __cplusplus
  17935. extern "C"
  17936. #endif
  17937. char XRRQueryExtension ();
  17938. int
  17939. main ()
  17940. {
  17941. return XRRQueryExtension ();
  17942. ;
  17943. return 0;
  17944. }
  17945. _ACEOF
  17946. if ac_fn_c_try_link "$LINENO"; then :
  17947. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17948. else
  17949. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17950. fi
  17951. rm -f core conftest.err conftest.$ac_objext \
  17952. conftest$ac_exeext conftest.$ac_ext
  17953. LIBS=$ac_check_lib_save_LIBS
  17954. fi
  17955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17956. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17957. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17958. have_xrandr_lib=yes
  17959. fi
  17960. if test x$have_xrandr_lib = xyes ; then
  17961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17962. definitely_enable_video_x11_xrandr=yes
  17963. fi
  17964. fi
  17965. fi
  17966. fi
  17967. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17968. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17969. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17970. fi
  17971. # Check whether --enable-video-x11-scrnsaver was given.
  17972. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17973. enableval=$enable_video_x11_scrnsaver;
  17974. else
  17975. enable_video_x11_scrnsaver=yes
  17976. fi
  17977. if test x$enable_video_x11_scrnsaver = xyes; then
  17978. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17979. "
  17980. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17981. have_scrnsaver_h_hdr=yes
  17982. else
  17983. have_scrnsaver_h_hdr=no
  17984. fi
  17985. if test x$have_scrnsaver_h_hdr = xyes; then
  17986. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17987. echo "-- dynamic libXss -> $xss_lib"
  17988. cat >>confdefs.h <<_ACEOF
  17989. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17990. _ACEOF
  17991. definitely_enable_video_x11_scrnsaver=yes
  17992. else
  17993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17994. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17995. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17996. $as_echo_n "(cached) " >&6
  17997. else
  17998. ac_check_lib_save_LIBS=$LIBS
  17999. LIBS="-lXss $LIBS"
  18000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18001. /* end confdefs.h. */
  18002. /* Override any GCC internal prototype to avoid an error.
  18003. Use char because int might match the return type of a GCC
  18004. builtin and then its argument prototype would still apply. */
  18005. #ifdef __cplusplus
  18006. extern "C"
  18007. #endif
  18008. char XScreenSaverSuspend ();
  18009. int
  18010. main ()
  18011. {
  18012. return XScreenSaverSuspend ();
  18013. ;
  18014. return 0;
  18015. }
  18016. _ACEOF
  18017. if ac_fn_c_try_link "$LINENO"; then :
  18018. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18019. else
  18020. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18021. fi
  18022. rm -f core conftest.err conftest.$ac_objext \
  18023. conftest$ac_exeext conftest.$ac_ext
  18024. LIBS=$ac_check_lib_save_LIBS
  18025. fi
  18026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18027. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18028. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18029. have_xss_lib=yes
  18030. fi
  18031. if test x$have_xss_lib = xyes ; then
  18032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18033. definitely_enable_video_x11_scrnsaver=yes
  18034. fi
  18035. fi
  18036. fi
  18037. fi
  18038. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18039. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18040. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18041. fi
  18042. # Check whether --enable-video-x11-xshape was given.
  18043. if test "${enable_video_x11_xshape+set}" = set; then :
  18044. enableval=$enable_video_x11_xshape;
  18045. else
  18046. enable_video_x11_xshape=yes
  18047. fi
  18048. if test x$enable_video_x11_xshape = xyes; then
  18049. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18050. "
  18051. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18052. have_shape_h_hdr=yes
  18053. else
  18054. have_shape_h_hdr=no
  18055. fi
  18056. if test x$have_shape_h_hdr = xyes; then
  18057. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18058. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18059. fi
  18060. fi
  18061. # Check whether --enable-video-x11-vm was given.
  18062. if test "${enable_video_x11_vm+set}" = set; then :
  18063. enableval=$enable_video_x11_vm;
  18064. else
  18065. enable_video_x11_vm=yes
  18066. fi
  18067. if test x$enable_video_x11_vm = xyes; then
  18068. definitely_enable_video_x11_vm=no
  18069. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18070. "
  18071. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18072. have_vm_h_hdr=yes
  18073. else
  18074. have_vm_h_hdr=no
  18075. fi
  18076. if test x$have_vm_h_hdr = xyes; then
  18077. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18078. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18079. cat >>confdefs.h <<_ACEOF
  18080. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18081. _ACEOF
  18082. definitely_enable_video_x11_vm=yes
  18083. else
  18084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18085. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18086. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18087. $as_echo_n "(cached) " >&6
  18088. else
  18089. ac_check_lib_save_LIBS=$LIBS
  18090. LIBS="-lXxf86vm $LIBS"
  18091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18092. /* end confdefs.h. */
  18093. /* Override any GCC internal prototype to avoid an error.
  18094. Use char because int might match the return type of a GCC
  18095. builtin and then its argument prototype would still apply. */
  18096. #ifdef __cplusplus
  18097. extern "C"
  18098. #endif
  18099. char XF86VidModeQueryVersion ();
  18100. int
  18101. main ()
  18102. {
  18103. return XF86VidModeQueryVersion ();
  18104. ;
  18105. return 0;
  18106. }
  18107. _ACEOF
  18108. if ac_fn_c_try_link "$LINENO"; then :
  18109. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18110. else
  18111. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18112. fi
  18113. rm -f core conftest.err conftest.$ac_objext \
  18114. conftest$ac_exeext conftest.$ac_ext
  18115. LIBS=$ac_check_lib_save_LIBS
  18116. fi
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18118. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18119. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18120. have_vm_lib=yes
  18121. fi
  18122. if test x$have_vm_lib = xyes ; then
  18123. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18124. definitely_enable_video_x11_vm=yes
  18125. fi
  18126. fi
  18127. fi
  18128. fi
  18129. if test x$definitely_enable_video_x11_vm = xyes; then
  18130. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18131. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18132. fi
  18133. fi
  18134. fi
  18135. }
  18136. CheckVivanteVideo()
  18137. {
  18138. # Check whether --enable-video-vivante was given.
  18139. if test "${enable_video_vivante+set}" = set; then :
  18140. enableval=$enable_video_vivante;
  18141. else
  18142. enable_video_vivante=yes
  18143. fi
  18144. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18146. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18147. have_vivante_vdk=no
  18148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18149. /* end confdefs.h. */
  18150. #define LINUX
  18151. #define EGL_API_FB
  18152. #include <gc_vdk.h>
  18153. int
  18154. main ()
  18155. {
  18156. ;
  18157. return 0;
  18158. }
  18159. _ACEOF
  18160. if ac_fn_c_try_compile "$LINENO"; then :
  18161. have_vivante_vdk=yes
  18162. fi
  18163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18165. $as_echo "$have_vivante_vdk" >&6; }
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18167. $as_echo_n "checking for Vivante FB API... " >&6; }
  18168. have_vivante_egl=no
  18169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18170. /* end confdefs.h. */
  18171. #define LINUX
  18172. #define EGL_API_FB
  18173. #include <EGL/eglvivante.h>
  18174. int
  18175. main ()
  18176. {
  18177. ;
  18178. return 0;
  18179. }
  18180. _ACEOF
  18181. if ac_fn_c_try_compile "$LINENO"; then :
  18182. have_vivante_egl=yes
  18183. fi
  18184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18186. $as_echo "$have_vivante_egl" >&6; }
  18187. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18188. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18189. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18190. if test x$have_vivante_vdk = xyes; then
  18191. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18193. fi
  18194. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18195. SUMMARY_video="${SUMMARY_video} vivante"
  18196. have_video=yes
  18197. fi
  18198. fi
  18199. }
  18200. CheckHaikuVideo()
  18201. {
  18202. if test x$enable_video = xyes; then
  18203. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18204. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18205. have_video=yes
  18206. SUMMARY_video="${SUMMARY_video} haiku"
  18207. fi
  18208. }
  18209. CheckCOCOA()
  18210. {
  18211. # Check whether --enable-video-cocoa was given.
  18212. if test "${enable_video_cocoa+set}" = set; then :
  18213. enableval=$enable_video_cocoa;
  18214. else
  18215. enable_video_cocoa=yes
  18216. fi
  18217. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18218. save_CFLAGS="$CFLAGS"
  18219. CFLAGS="$CFLAGS -x objective-c"
  18220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18221. $as_echo_n "checking for Cocoa framework... " >&6; }
  18222. have_cocoa=no
  18223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18224. /* end confdefs.h. */
  18225. #import <Cocoa/Cocoa.h>
  18226. int
  18227. main ()
  18228. {
  18229. ;
  18230. return 0;
  18231. }
  18232. _ACEOF
  18233. if ac_fn_c_try_compile "$LINENO"; then :
  18234. have_cocoa=yes
  18235. fi
  18236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18238. $as_echo "$have_cocoa" >&6; }
  18239. CFLAGS="$save_CFLAGS"
  18240. if test x$have_cocoa = xyes; then
  18241. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18242. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18243. SUMMARY_video="${SUMMARY_video} cocoa"
  18244. have_video=yes
  18245. fi
  18246. fi
  18247. }
  18248. CheckMETAL()
  18249. {
  18250. # Check whether --enable-render-metal was given.
  18251. if test "${enable_render_metal+set}" = set; then :
  18252. enableval=$enable_render_metal;
  18253. else
  18254. enable_render_metal=yes
  18255. fi
  18256. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18257. save_CFLAGS="$CFLAGS"
  18258. CFLAGS="$CFLAGS -x objective-c"
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18260. $as_echo_n "checking for Metal framework... " >&6; }
  18261. have_metal=no
  18262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18263. /* end confdefs.h. */
  18264. #import <Cocoa/Cocoa.h>
  18265. #import <Metal/Metal.h>
  18266. #import <QuartzCore/CAMetalLayer.h>
  18267. #if !TARGET_CPU_X86_64
  18268. #error Metal doesn't work on this configuration
  18269. #endif
  18270. int
  18271. main ()
  18272. {
  18273. ;
  18274. return 0;
  18275. }
  18276. _ACEOF
  18277. if ac_fn_c_try_compile "$LINENO"; then :
  18278. have_metal=yes
  18279. fi
  18280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18281. CFLAGS="$save_CFLAGS"
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18283. $as_echo "$have_metal" >&6; }
  18284. if test x$have_metal = xyes; then
  18285. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18286. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18287. SUMMARY_video="${SUMMARY_video} metal"
  18288. fi
  18289. fi
  18290. }
  18291. CheckDirectFB()
  18292. {
  18293. # Check whether --enable-video-directfb was given.
  18294. if test "${enable_video_directfb+set}" = set; then :
  18295. enableval=$enable_video_directfb;
  18296. else
  18297. enable_video_directfb=no
  18298. fi
  18299. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18300. video_directfb=no
  18301. DIRECTFB_REQUIRED_VERSION=1.0.0
  18302. for ac_prog in directfb-config
  18303. do
  18304. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18305. set dummy $ac_prog; ac_word=$2
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18307. $as_echo_n "checking for $ac_word... " >&6; }
  18308. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18309. $as_echo_n "(cached) " >&6
  18310. else
  18311. case $DIRECTFBCONFIG in
  18312. [\\/]* | ?:[\\/]*)
  18313. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18314. ;;
  18315. *)
  18316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18317. as_dummy="$prefix/bin:$PATH"
  18318. for as_dir in $as_dummy
  18319. do
  18320. IFS=$as_save_IFS
  18321. test -z "$as_dir" && as_dir=.
  18322. for ac_exec_ext in '' $ac_executable_extensions; do
  18323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18324. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18326. break 2
  18327. fi
  18328. done
  18329. done
  18330. IFS=$as_save_IFS
  18331. ;;
  18332. esac
  18333. fi
  18334. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18335. if test -n "$DIRECTFBCONFIG"; then
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18337. $as_echo "$DIRECTFBCONFIG" >&6; }
  18338. else
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18340. $as_echo "no" >&6; }
  18341. fi
  18342. test -n "$DIRECTFBCONFIG" && break
  18343. done
  18344. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18345. if test x$DIRECTFBCONFIG = xno; then
  18346. # Extract the first word of "pkg-config", so it can be a program name with args.
  18347. set dummy pkg-config; ac_word=$2
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18349. $as_echo_n "checking for $ac_word... " >&6; }
  18350. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18351. $as_echo_n "(cached) " >&6
  18352. else
  18353. case $PKG_CONFIG in
  18354. [\\/]* | ?:[\\/]*)
  18355. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18356. ;;
  18357. *)
  18358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18359. for as_dir in $PATH
  18360. do
  18361. IFS=$as_save_IFS
  18362. test -z "$as_dir" && as_dir=.
  18363. for ac_exec_ext in '' $ac_executable_extensions; do
  18364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18365. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18367. break 2
  18368. fi
  18369. done
  18370. done
  18371. IFS=$as_save_IFS
  18372. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18373. ;;
  18374. esac
  18375. fi
  18376. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18377. if test -n "$PKG_CONFIG"; then
  18378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18379. $as_echo "$PKG_CONFIG" >&6; }
  18380. else
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18382. $as_echo "no" >&6; }
  18383. fi
  18384. if test x$PKG_CONFIG != xno; then
  18385. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18386. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18387. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18388. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18389. video_directfb=yes
  18390. fi
  18391. fi
  18392. else
  18393. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18394. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18395. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18396. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18397. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18398. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18399. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18400. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18401. video_directfb=yes
  18402. fi
  18403. fi
  18404. if test x$video_directfb = xyes; then
  18405. # SuSE 11.1 installs directfb-config without directfb-devel
  18406. save_CPPFLAGS="$CPPFLAGS"
  18407. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18408. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18409. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18410. have_directfb_hdr=yes
  18411. else
  18412. have_directfb_hdr=no
  18413. fi
  18414. CPPFLAGS="$save_CPPFLAGS"
  18415. video_directfb=$have_directfb_hdr
  18416. fi
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18418. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18420. $as_echo "$video_directfb" >&6; }
  18421. if test x$video_directfb = xyes; then
  18422. # Check whether --enable-directfb-shared was given.
  18423. if test "${enable_directfb_shared+set}" = set; then :
  18424. enableval=$enable_directfb_shared;
  18425. else
  18426. enable_directfb_shared=yes
  18427. fi
  18428. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18429. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18430. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18432. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18433. directfb_shared=no
  18434. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18435. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18437. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18438. if test x$have_loadso != xyes && \
  18439. test x$enable_directfb_shared = xyes; then
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18441. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18442. fi
  18443. if test x$have_loadso = xyes && \
  18444. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18445. directfb_shared=yes
  18446. echo "-- $directfb_lib_spec -> $directfb_lib"
  18447. cat >>confdefs.h <<_ACEOF
  18448. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18449. _ACEOF
  18450. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18451. else
  18452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18453. SUMMARY_video="${SUMMARY_video} directfb"
  18454. fi
  18455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18456. $as_echo "$directfb_shared" >&6; }
  18457. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18458. have_video=yes
  18459. fi
  18460. fi
  18461. }
  18462. CheckKMSDRM()
  18463. {
  18464. # Check whether --enable-video-kmsdrm was given.
  18465. if test "${enable_video_kmsdrm+set}" = set; then :
  18466. enableval=$enable_video_kmsdrm;
  18467. else
  18468. enable_video_kmsdrm=no
  18469. fi
  18470. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18471. video_kmsdrm=no
  18472. libdrm_avail=no
  18473. libgbm_avail=no
  18474. LIBDRM_REQUIRED_VERSION=2.4.46
  18475. LIBGBM_REQUIRED_VERSION=9.0.0
  18476. # Extract the first word of "pkg-config", so it can be a program name with args.
  18477. set dummy pkg-config; ac_word=$2
  18478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18479. $as_echo_n "checking for $ac_word... " >&6; }
  18480. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18481. $as_echo_n "(cached) " >&6
  18482. else
  18483. case $PKG_CONFIG in
  18484. [\\/]* | ?:[\\/]*)
  18485. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18486. ;;
  18487. *)
  18488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18489. for as_dir in $PATH
  18490. do
  18491. IFS=$as_save_IFS
  18492. test -z "$as_dir" && as_dir=.
  18493. for ac_exec_ext in '' $ac_executable_extensions; do
  18494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18495. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18497. break 2
  18498. fi
  18499. done
  18500. done
  18501. IFS=$as_save_IFS
  18502. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18503. ;;
  18504. esac
  18505. fi
  18506. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18507. if test -n "$PKG_CONFIG"; then
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18509. $as_echo "$PKG_CONFIG" >&6; }
  18510. else
  18511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18512. $as_echo "no" >&6; }
  18513. fi
  18514. if test x$PKG_CONFIG != xno; then
  18515. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18516. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18517. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18518. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18519. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18520. libdrm_avail=yes
  18521. fi
  18522. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18523. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18524. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18525. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18526. libgbm_avail=yes
  18527. fi
  18528. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18529. video_kmsdrm=yes
  18530. fi
  18531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18532. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18534. $as_echo "$libdrm_avail" >&6; }
  18535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18536. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18538. $as_echo "$libgbm_avail" >&6; }
  18539. if test x$video_kmsdrm = xyes; then
  18540. # Check whether --enable-kmsdrm-shared was given.
  18541. if test "${enable_kmsdrm_shared+set}" = set; then :
  18542. enableval=$enable_kmsdrm_shared;
  18543. else
  18544. enable_kmsdrm_shared=yes
  18545. fi
  18546. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18547. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18548. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18550. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18551. kmsdrm_shared=no
  18552. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18553. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18554. if test x$have_loadso != xyes && \
  18555. test x$enable_kmsdrm_shared = xyes; then
  18556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18557. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18558. fi
  18559. if test x$have_loadso = xyes && \
  18560. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18561. kmsdrm_shared=yes
  18562. cat >>confdefs.h <<_ACEOF
  18563. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18564. _ACEOF
  18565. cat >>confdefs.h <<_ACEOF
  18566. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18567. _ACEOF
  18568. cat >>confdefs.h <<_ACEOF
  18569. #define HAVE_KMSDRM_SHARED "TRUE"
  18570. _ACEOF
  18571. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18572. else
  18573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18574. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18575. fi
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18577. $as_echo "$kmsdrm_shared" >&6; }
  18578. have_video=yes
  18579. fi
  18580. fi
  18581. fi
  18582. fi
  18583. }
  18584. CheckDummyVideo()
  18585. {
  18586. # Check whether --enable-video-dummy was given.
  18587. if test "${enable_video_dummy+set}" = set; then :
  18588. enableval=$enable_video_dummy;
  18589. else
  18590. enable_video_dummy=yes
  18591. fi
  18592. if test x$enable_video_dummy = xyes; then
  18593. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18594. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18595. have_video=yes
  18596. SUMMARY_video="${SUMMARY_video} dummy"
  18597. fi
  18598. }
  18599. CheckQNXVideo()
  18600. {
  18601. if test x$enable_video = xyes; then
  18602. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18603. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18604. have_video=yes
  18605. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18606. SUMMARY_video="${SUMMARY_video} qnx"
  18607. fi
  18608. }
  18609. CheckQNXAudio()
  18610. {
  18611. if test x$enable_audio = xyes; then
  18612. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18613. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18614. have_audio=yes
  18615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18616. SUMMARY_audio="${SUMMARY_audio} qsa"
  18617. fi
  18618. }
  18619. # Check whether --enable-video-opengl was given.
  18620. if test "${enable_video_opengl+set}" = set; then :
  18621. enableval=$enable_video_opengl;
  18622. else
  18623. enable_video_opengl=yes
  18624. fi
  18625. CheckOpenGLX11()
  18626. {
  18627. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18629. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18630. video_opengl=no
  18631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18632. /* end confdefs.h. */
  18633. #include <GL/gl.h>
  18634. #include <GL/glx.h>
  18635. int
  18636. main ()
  18637. {
  18638. ;
  18639. return 0;
  18640. }
  18641. _ACEOF
  18642. if ac_fn_c_try_compile "$LINENO"; then :
  18643. video_opengl=yes
  18644. fi
  18645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18647. $as_echo "$video_opengl" >&6; }
  18648. if test x$video_opengl = xyes; then
  18649. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18650. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18651. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18652. SUMMARY_video="${SUMMARY_video} opengl"
  18653. fi
  18654. fi
  18655. }
  18656. # Check whether --enable-video-opengles was given.
  18657. if test "${enable_video_opengles+set}" = set; then :
  18658. enableval=$enable_video_opengles;
  18659. else
  18660. enable_video_opengles=yes
  18661. fi
  18662. # Check whether --enable-video-opengles1 was given.
  18663. if test "${enable_video_opengles1+set}" = set; then :
  18664. enableval=$enable_video_opengles1;
  18665. else
  18666. enable_video_opengles1=yes
  18667. fi
  18668. # Check whether --enable-video-opengles2 was given.
  18669. if test "${enable_video_opengles2+set}" = set; then :
  18670. enableval=$enable_video_opengles2;
  18671. else
  18672. enable_video_opengles2=yes
  18673. fi
  18674. CheckOpenGLESX11()
  18675. {
  18676. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18678. $as_echo_n "checking for EGL support... " >&6; }
  18679. video_opengl_egl=no
  18680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18681. /* end confdefs.h. */
  18682. #define LINUX
  18683. #define EGL_API_FB
  18684. #include <EGL/egl.h>
  18685. #include <EGL/eglext.h>
  18686. int
  18687. main ()
  18688. {
  18689. ;
  18690. return 0;
  18691. }
  18692. _ACEOF
  18693. if ac_fn_c_try_compile "$LINENO"; then :
  18694. video_opengl_egl=yes
  18695. fi
  18696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18698. $as_echo "$video_opengl_egl" >&6; }
  18699. if test x$video_opengl_egl = xyes; then
  18700. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18701. fi
  18702. if test x$enable_video_opengles1 = xyes; then
  18703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18704. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18705. video_opengles_v1=no
  18706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18707. /* end confdefs.h. */
  18708. #include <GLES/gl.h>
  18709. #include <GLES/glext.h>
  18710. int
  18711. main ()
  18712. {
  18713. ;
  18714. return 0;
  18715. }
  18716. _ACEOF
  18717. if ac_fn_c_try_compile "$LINENO"; then :
  18718. video_opengles_v1=yes
  18719. fi
  18720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18722. $as_echo "$video_opengles_v1" >&6; }
  18723. if test x$video_opengles_v1 = xyes; then
  18724. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18725. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18726. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18727. fi
  18728. fi
  18729. if test x$enable_video_opengles2 = xyes; then
  18730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18731. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18732. video_opengles_v2=no
  18733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18734. /* end confdefs.h. */
  18735. #include <GLES2/gl2.h>
  18736. #include <GLES2/gl2ext.h>
  18737. int
  18738. main ()
  18739. {
  18740. ;
  18741. return 0;
  18742. }
  18743. _ACEOF
  18744. if ac_fn_c_try_compile "$LINENO"; then :
  18745. video_opengles_v2=yes
  18746. fi
  18747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18749. $as_echo "$video_opengles_v2" >&6; }
  18750. if test x$video_opengles_v2 = xyes; then
  18751. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18752. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18753. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18754. fi
  18755. fi
  18756. fi
  18757. }
  18758. CheckWINDOWSGL()
  18759. {
  18760. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18761. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18762. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18763. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18764. SUMMARY_video="${SUMMARY_video} opengl"
  18765. fi
  18766. }
  18767. CheckWINDOWSGLES()
  18768. {
  18769. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18771. $as_echo_n "checking for EGL support... " >&6; }
  18772. video_opengl_egl=no
  18773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18774. /* end confdefs.h. */
  18775. #include <EGL/egl.h>
  18776. int
  18777. main ()
  18778. {
  18779. ;
  18780. return 0;
  18781. }
  18782. _ACEOF
  18783. if ac_fn_c_try_compile "$LINENO"; then :
  18784. video_opengl_egl=yes
  18785. fi
  18786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18788. $as_echo "$video_opengl_egl" >&6; }
  18789. if test x$video_opengl_egl = xyes; then
  18790. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18791. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18792. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18793. fi
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18795. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18796. video_opengles_v2=no
  18797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18798. /* end confdefs.h. */
  18799. #include <GLES2/gl2.h>
  18800. #include <GLES2/gl2ext.h>
  18801. int
  18802. main ()
  18803. {
  18804. ;
  18805. return 0;
  18806. }
  18807. _ACEOF
  18808. if ac_fn_c_try_compile "$LINENO"; then :
  18809. video_opengles_v2=yes
  18810. fi
  18811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18813. $as_echo "$video_opengles_v2" >&6; }
  18814. if test x$video_opengles_v2 = xyes; then
  18815. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18816. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18817. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18818. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18819. fi
  18820. fi
  18821. }
  18822. CheckHaikuGL()
  18823. {
  18824. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18825. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18826. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18827. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18829. SUMMARY_video="${SUMMARY_video} opengl"
  18830. fi
  18831. }
  18832. CheckMacGL()
  18833. {
  18834. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18835. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18836. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18837. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18838. SUMMARY_video="${SUMMARY_video} opengl"
  18839. fi
  18840. }
  18841. CheckEmscriptenGLES()
  18842. {
  18843. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18845. $as_echo_n "checking for EGL support... " >&6; }
  18846. video_opengl_egl=no
  18847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18848. /* end confdefs.h. */
  18849. #include <EGL/egl.h>
  18850. int
  18851. main ()
  18852. {
  18853. ;
  18854. return 0;
  18855. }
  18856. _ACEOF
  18857. if ac_fn_c_try_compile "$LINENO"; then :
  18858. video_opengl_egl=yes
  18859. fi
  18860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18862. $as_echo "$video_opengl_egl" >&6; }
  18863. if test x$video_opengl_egl = xyes; then
  18864. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18865. fi
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18867. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18868. video_opengles_v2=no
  18869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18870. /* end confdefs.h. */
  18871. #include <GLES2/gl2.h>
  18872. #include <GLES2/gl2ext.h>
  18873. int
  18874. main ()
  18875. {
  18876. ;
  18877. return 0;
  18878. }
  18879. _ACEOF
  18880. if ac_fn_c_try_compile "$LINENO"; then :
  18881. video_opengles_v2=yes
  18882. fi
  18883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18885. $as_echo "$video_opengles_v2" >&6; }
  18886. if test x$video_opengles_v2 = xyes; then
  18887. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18888. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18889. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18890. fi
  18891. fi
  18892. }
  18893. # Check whether --enable-video-vulkan was given.
  18894. if test "${enable_video_vulkan+set}" = set; then :
  18895. enableval=$enable_video_vulkan;
  18896. else
  18897. enable_video_vulkan=yes
  18898. fi
  18899. CheckVulkan()
  18900. {
  18901. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18902. case "$host" in
  18903. *-*-android*)
  18904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18905. /* end confdefs.h. */
  18906. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18907. #error Vulkan doesn't work on this configuration
  18908. #endif
  18909. int
  18910. main ()
  18911. {
  18912. ;
  18913. return 0;
  18914. }
  18915. _ACEOF
  18916. if ac_fn_c_try_compile "$LINENO"; then :
  18917. else
  18918. enable_video_vulkan=no
  18919. fi
  18920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18921. ;;
  18922. *-*-darwin*)
  18923. save_CFLAGS="$CFLAGS"
  18924. CFLAGS="$CFLAGS -x objective-c"
  18925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18926. /* end confdefs.h. */
  18927. #include <Cocoa/Cocoa.h>
  18928. #include <Metal/Metal.h>
  18929. #include <QuartzCore/CAMetalLayer.h>
  18930. #if !TARGET_CPU_X86_64
  18931. #error Vulkan doesn't work on this configuration
  18932. #endif
  18933. int
  18934. main ()
  18935. {
  18936. ;
  18937. return 0;
  18938. }
  18939. _ACEOF
  18940. if ac_fn_c_try_compile "$LINENO"; then :
  18941. else
  18942. enable_video_vulkan=no
  18943. fi
  18944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18945. CFLAGS="$save_CFLAGS"
  18946. ;;
  18947. *)
  18948. ;;
  18949. esac
  18950. if test x$enable_video_vulkan = xno; then
  18951. # For reasons I am totally unable to see, I get an undefined macro error if
  18952. # I put this in the AC_TRY_COMPILE.
  18953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18954. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18955. fi
  18956. fi
  18957. if test x$enable_video_vulkan = xyes; then
  18958. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18959. SUMMARY_video="${SUMMARY_video} vulkan"
  18960. fi
  18961. }
  18962. CheckInputEvents()
  18963. {
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18965. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18966. use_input_events=no
  18967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. /* end confdefs.h. */
  18969. #include <linux/input.h>
  18970. int
  18971. main ()
  18972. {
  18973. #ifndef EVIOCGNAME
  18974. #error EVIOCGNAME() ioctl not available
  18975. #endif
  18976. ;
  18977. return 0;
  18978. }
  18979. _ACEOF
  18980. if ac_fn_c_try_compile "$LINENO"; then :
  18981. use_input_events=yes
  18982. fi
  18983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18985. $as_echo "$use_input_events" >&6; }
  18986. if test x$use_input_events = xyes; then
  18987. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18988. SUMMARY_input="${SUMMARY_input} linuxev"
  18989. fi
  18990. }
  18991. CheckInputKD()
  18992. {
  18993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18994. $as_echo_n "checking for Linux kd.h... " >&6; }
  18995. use_input_kd=no
  18996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18997. /* end confdefs.h. */
  18998. #include <linux/kd.h>
  18999. #include <linux/keyboard.h>
  19000. int
  19001. main ()
  19002. {
  19003. struct kbentry kbe;
  19004. kbe.kb_table = KG_CTRL;
  19005. ioctl(0, KDGKBENT, &kbe);
  19006. ;
  19007. return 0;
  19008. }
  19009. _ACEOF
  19010. if ac_fn_c_try_compile "$LINENO"; then :
  19011. use_input_kd=yes
  19012. fi
  19013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19015. $as_echo "$use_input_kd" >&6; }
  19016. if test x$use_input_kd = xyes; then
  19017. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19018. SUMMARY_input="${SUMMARY_input} linuxkd"
  19019. fi
  19020. }
  19021. CheckLibUDev()
  19022. {
  19023. # Check whether --enable-libudev was given.
  19024. if test "${enable_libudev+set}" = set; then :
  19025. enableval=$enable_libudev;
  19026. else
  19027. enable_libudev=yes
  19028. fi
  19029. if test x$enable_libudev = xyes; then
  19030. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19031. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19032. have_libudev_h_hdr=yes
  19033. else
  19034. have_libudev_h_hdr=no
  19035. fi
  19036. if test x$have_libudev_h_hdr = xyes; then
  19037. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19038. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19039. if test x$udev_lib != x; then
  19040. echo "-- dynamic udev -> $udev_lib"
  19041. cat >>confdefs.h <<_ACEOF
  19042. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19043. _ACEOF
  19044. fi
  19045. fi
  19046. fi
  19047. }
  19048. CheckDBus()
  19049. {
  19050. # Check whether --enable-dbus was given.
  19051. if test "${enable_dbus+set}" = set; then :
  19052. enableval=$enable_dbus;
  19053. else
  19054. enable_dbus=yes
  19055. fi
  19056. if test x$enable_dbus = xyes; then
  19057. # Extract the first word of "pkg-config", so it can be a program name with args.
  19058. set dummy pkg-config; ac_word=$2
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19060. $as_echo_n "checking for $ac_word... " >&6; }
  19061. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19062. $as_echo_n "(cached) " >&6
  19063. else
  19064. case $PKG_CONFIG in
  19065. [\\/]* | ?:[\\/]*)
  19066. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19067. ;;
  19068. *)
  19069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19070. for as_dir in $PATH
  19071. do
  19072. IFS=$as_save_IFS
  19073. test -z "$as_dir" && as_dir=.
  19074. for ac_exec_ext in '' $ac_executable_extensions; do
  19075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19076. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19078. break 2
  19079. fi
  19080. done
  19081. done
  19082. IFS=$as_save_IFS
  19083. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19084. ;;
  19085. esac
  19086. fi
  19087. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19088. if test -n "$PKG_CONFIG"; then
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19090. $as_echo "$PKG_CONFIG" >&6; }
  19091. else
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19093. $as_echo "no" >&6; }
  19094. fi
  19095. if test x$PKG_CONFIG != xno; then
  19096. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19097. save_CFLAGS="$CFLAGS"
  19098. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19099. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19100. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19101. have_dbus_dbus_h_hdr=yes
  19102. else
  19103. have_dbus_dbus_h_hdr=no
  19104. fi
  19105. CFLAGS="$save_CFLAGS"
  19106. if test x$have_dbus_dbus_h_hdr = xyes; then
  19107. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19108. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19109. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19110. fi
  19111. fi
  19112. fi
  19113. }
  19114. CheckIME()
  19115. {
  19116. # Check whether --enable-ime was given.
  19117. if test "${enable_ime+set}" = set; then :
  19118. enableval=$enable_ime;
  19119. else
  19120. enable_ime=yes
  19121. fi
  19122. if test x$enable_ime = xyes; then
  19123. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19124. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19125. fi
  19126. }
  19127. CheckIBus()
  19128. {
  19129. # Check whether --enable-ibus was given.
  19130. if test "${enable_ibus+set}" = set; then :
  19131. enableval=$enable_ibus;
  19132. else
  19133. enable_ibus=yes
  19134. fi
  19135. if test x$enable_ibus = xyes; then
  19136. # Extract the first word of "pkg-config", so it can be a program name with args.
  19137. set dummy pkg-config; ac_word=$2
  19138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19139. $as_echo_n "checking for $ac_word... " >&6; }
  19140. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19141. $as_echo_n "(cached) " >&6
  19142. else
  19143. case $PKG_CONFIG in
  19144. [\\/]* | ?:[\\/]*)
  19145. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19146. ;;
  19147. *)
  19148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19149. for as_dir in $PATH
  19150. do
  19151. IFS=$as_save_IFS
  19152. test -z "$as_dir" && as_dir=.
  19153. for ac_exec_ext in '' $ac_executable_extensions; do
  19154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19155. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19157. break 2
  19158. fi
  19159. done
  19160. done
  19161. IFS=$as_save_IFS
  19162. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19163. ;;
  19164. esac
  19165. fi
  19166. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19167. if test -n "$PKG_CONFIG"; then
  19168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19169. $as_echo "$PKG_CONFIG" >&6; }
  19170. else
  19171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19172. $as_echo "no" >&6; }
  19173. fi
  19174. if test x$PKG_CONFIG != xno; then
  19175. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19176. save_CFLAGS="$CFLAGS"
  19177. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19178. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19179. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19180. have_ibus_ibus_h_hdr=yes
  19181. else
  19182. have_ibus_ibus_h_hdr=no
  19183. fi
  19184. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19185. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19186. have_inotify_inotify_h_hdr=yes
  19187. else
  19188. have_inotify_inotify_h_hdr=no
  19189. fi
  19190. CFLAGS="$save_CFLAGS"
  19191. if test x$have_ibus_ibus_h_hdr = xyes; then
  19192. if test x$enable_ime != xyes; then
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19194. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19195. have_ibus_ibus_h_hdr=no
  19196. elif test x$enable_dbus != xyes; then
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19198. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19199. have_ibus_ibus_h_hdr=no
  19200. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19202. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19203. have_ibus_ibus_h_hdr=no
  19204. else
  19205. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19206. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19207. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19208. fi
  19209. fi
  19210. fi
  19211. fi
  19212. }
  19213. CheckFcitx()
  19214. {
  19215. # Check whether --enable-fcitx was given.
  19216. if test "${enable_fcitx+set}" = set; then :
  19217. enableval=$enable_fcitx;
  19218. else
  19219. enable_fcitx=yes
  19220. fi
  19221. if test x$enable_fcitx = xyes; then
  19222. # Extract the first word of "pkg-config", so it can be a program name with args.
  19223. set dummy pkg-config; ac_word=$2
  19224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19225. $as_echo_n "checking for $ac_word... " >&6; }
  19226. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19227. $as_echo_n "(cached) " >&6
  19228. else
  19229. case $PKG_CONFIG in
  19230. [\\/]* | ?:[\\/]*)
  19231. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19232. ;;
  19233. *)
  19234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19235. for as_dir in $PATH
  19236. do
  19237. IFS=$as_save_IFS
  19238. test -z "$as_dir" && as_dir=.
  19239. for ac_exec_ext in '' $ac_executable_extensions; do
  19240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19241. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19243. break 2
  19244. fi
  19245. done
  19246. done
  19247. IFS=$as_save_IFS
  19248. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19249. ;;
  19250. esac
  19251. fi
  19252. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19253. if test -n "$PKG_CONFIG"; then
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19255. $as_echo "$PKG_CONFIG" >&6; }
  19256. else
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19258. $as_echo "no" >&6; }
  19259. fi
  19260. if test x$PKG_CONFIG != xno; then
  19261. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19262. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19263. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19264. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19265. have_fcitx_frontend_h_hdr=yes
  19266. else
  19267. have_fcitx_frontend_h_hdr=no
  19268. fi
  19269. CFLAGS="$save_CFLAGS"
  19270. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19271. if test x$enable_ime != xyes; then
  19272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19273. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19274. have_fcitx_frontend_h_hdr=no
  19275. elif test x$enable_dbus != xyes; then
  19276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19277. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19278. have_fcitx_frontend_h_hdr=no
  19279. else
  19280. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19281. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19282. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19283. fi
  19284. fi
  19285. fi
  19286. fi
  19287. }
  19288. CheckTslib()
  19289. {
  19290. # Check whether --enable-input-tslib was given.
  19291. if test "${enable_input_tslib+set}" = set; then :
  19292. enableval=$enable_input_tslib;
  19293. else
  19294. enable_input_tslib=yes
  19295. fi
  19296. if test x$enable_input_tslib = xyes; then
  19297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19298. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19299. enable_input_tslib=no
  19300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19301. /* end confdefs.h. */
  19302. #include "tslib.h"
  19303. int
  19304. main ()
  19305. {
  19306. ;
  19307. return 0;
  19308. }
  19309. _ACEOF
  19310. if ac_fn_c_try_compile "$LINENO"; then :
  19311. enable_input_tslib=yes
  19312. fi
  19313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19315. $as_echo "$enable_input_tslib" >&6; }
  19316. if test x$enable_input_tslib = xyes; then
  19317. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19319. SUMMARY_input="${SUMMARY_input} ts"
  19320. fi
  19321. fi
  19322. }
  19323. CheckPTHREAD()
  19324. {
  19325. # Check whether --enable-pthreads was given.
  19326. if test "${enable_pthreads+set}" = set; then :
  19327. enableval=$enable_pthreads;
  19328. else
  19329. enable_pthreads=yes
  19330. fi
  19331. # Check whether --enable-pthread-sem was given.
  19332. if test "${enable_pthread_sem+set}" = set; then :
  19333. enableval=$enable_pthread_sem;
  19334. else
  19335. enable_pthread_sem=yes
  19336. fi
  19337. case "$host" in
  19338. *-*-android*)
  19339. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19340. pthread_lib=""
  19341. ;;
  19342. *-*-linux*|*-*-uclinux*)
  19343. pthread_cflags="-D_REENTRANT"
  19344. pthread_lib="-lpthread"
  19345. ;;
  19346. *-*-bsdi*)
  19347. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19348. pthread_lib=""
  19349. ;;
  19350. *-*-darwin*)
  19351. pthread_cflags="-D_THREAD_SAFE"
  19352. # causes Carbon.p complaints?
  19353. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19354. ;;
  19355. *-*-freebsd*|*-*-dragonfly*)
  19356. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19357. pthread_lib="-pthread"
  19358. ;;
  19359. *-*-netbsd*)
  19360. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19361. pthread_lib="-lpthread"
  19362. ;;
  19363. *-*-openbsd*)
  19364. pthread_cflags="-D_REENTRANT"
  19365. pthread_lib="-pthread"
  19366. ;;
  19367. *-*-solaris2.9)
  19368. # From Solaris 9+, posix4's preferred name is rt.
  19369. pthread_cflags="-D_REENTRANT"
  19370. pthread_lib="-lpthread -lrt"
  19371. ;;
  19372. *-*-solaris2.10)
  19373. # Solaris 10+ merged pthread into libc.
  19374. pthread_cflags="-D_REENTRANT"
  19375. pthread_lib="-lrt"
  19376. ;;
  19377. *-*-solaris*)
  19378. # Solaris 11+ merged rt into libc.
  19379. pthread_cflags="-D_REENTRANT"
  19380. pthread_lib=""
  19381. ;;
  19382. *-*-sysv5*)
  19383. pthread_cflags="-D_REENTRANT -Kthread"
  19384. pthread_lib=""
  19385. ;;
  19386. *-*-aix*)
  19387. pthread_cflags="-D_REENTRANT -mthreads"
  19388. pthread_lib="-lpthread"
  19389. ;;
  19390. *-*-hpux11*)
  19391. pthread_cflags="-D_REENTRANT"
  19392. pthread_lib="-L/usr/lib -lpthread"
  19393. ;;
  19394. *-*-haiku*)
  19395. pthread_cflags="-D_REENTRANT"
  19396. pthread_lib=""
  19397. ;;
  19398. *-*-nto*)
  19399. pthread_cflags="-D_REENTRANT"
  19400. pthread_lib=""
  19401. ;;
  19402. *)
  19403. pthread_cflags="-D_REENTRANT"
  19404. pthread_lib="-lpthread"
  19405. ;;
  19406. esac
  19407. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19408. # Save the original compiler flags and libraries
  19409. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19410. # Add the pthread compiler flags and libraries
  19411. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19412. # Check to see if we have pthread support on this system
  19413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19414. $as_echo_n "checking for pthreads... " >&6; }
  19415. use_pthreads=no
  19416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19417. /* end confdefs.h. */
  19418. #include <pthread.h>
  19419. int
  19420. main ()
  19421. {
  19422. pthread_attr_t type;
  19423. pthread_attr_init(&type);
  19424. ;
  19425. return 0;
  19426. }
  19427. _ACEOF
  19428. if ac_fn_c_try_link "$LINENO"; then :
  19429. use_pthreads=yes
  19430. fi
  19431. rm -f core conftest.err conftest.$ac_objext \
  19432. conftest$ac_exeext conftest.$ac_ext
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19434. $as_echo "$use_pthreads" >&6; }
  19435. # Restore the compiler flags and libraries
  19436. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19437. # Do futher testing if we have pthread support...
  19438. if test x$use_pthreads = xyes; then
  19439. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19440. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19441. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19442. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19443. # Save the original compiler flags and libraries
  19444. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19445. # Add the pthread compiler flags and libraries
  19446. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19447. # Check to see if recursive mutexes are available
  19448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19449. $as_echo_n "checking for recursive mutexes... " >&6; }
  19450. has_recursive_mutexes=no
  19451. if test x$has_recursive_mutexes = xno; then
  19452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19453. /* end confdefs.h. */
  19454. #define _GNU_SOURCE 1
  19455. #include <pthread.h>
  19456. int
  19457. main ()
  19458. {
  19459. pthread_mutexattr_t attr;
  19460. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19461. ;
  19462. return 0;
  19463. }
  19464. _ACEOF
  19465. if ac_fn_c_try_link "$LINENO"; then :
  19466. has_recursive_mutexes=yes
  19467. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19468. fi
  19469. rm -f core conftest.err conftest.$ac_objext \
  19470. conftest$ac_exeext conftest.$ac_ext
  19471. fi
  19472. if test x$has_recursive_mutexes = xno; then
  19473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19474. /* end confdefs.h. */
  19475. #define _GNU_SOURCE 1
  19476. #include <pthread.h>
  19477. int
  19478. main ()
  19479. {
  19480. pthread_mutexattr_t attr;
  19481. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19482. ;
  19483. return 0;
  19484. }
  19485. _ACEOF
  19486. if ac_fn_c_try_link "$LINENO"; then :
  19487. has_recursive_mutexes=yes
  19488. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext \
  19491. conftest$ac_exeext conftest.$ac_ext
  19492. fi
  19493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19494. $as_echo "$has_recursive_mutexes" >&6; }
  19495. # Check to see if pthread semaphore support is missing
  19496. if test x$enable_pthread_sem = xyes; then
  19497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19498. $as_echo_n "checking for pthread semaphores... " >&6; }
  19499. have_pthread_sem=no
  19500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19501. /* end confdefs.h. */
  19502. #include <pthread.h>
  19503. #include <semaphore.h>
  19504. int
  19505. main ()
  19506. {
  19507. ;
  19508. return 0;
  19509. }
  19510. _ACEOF
  19511. if ac_fn_c_try_compile "$LINENO"; then :
  19512. have_pthread_sem=yes
  19513. fi
  19514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19516. $as_echo "$have_pthread_sem" >&6; }
  19517. fi
  19518. if test x$have_pthread_sem = xyes; then
  19519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19520. $as_echo_n "checking for sem_timedwait... " >&6; }
  19521. have_sem_timedwait=no
  19522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19523. /* end confdefs.h. */
  19524. #include <pthread.h>
  19525. #include <semaphore.h>
  19526. int
  19527. main ()
  19528. {
  19529. sem_timedwait(NULL, NULL);
  19530. ;
  19531. return 0;
  19532. }
  19533. _ACEOF
  19534. if ac_fn_c_try_link "$LINENO"; then :
  19535. have_sem_timedwait=yes
  19536. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19537. fi
  19538. rm -f core conftest.err conftest.$ac_objext \
  19539. conftest$ac_exeext conftest.$ac_ext
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19541. $as_echo "$have_sem_timedwait" >&6; }
  19542. fi
  19543. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19544. "
  19545. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19546. have_pthread_np_h=yes
  19547. else
  19548. have_pthread_np_h=no
  19549. fi
  19550. if test x$have_pthread_np_h = xyes; then
  19551. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19552. fi
  19553. # Check to see if pthread naming is available
  19554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19555. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19557. /* end confdefs.h. */
  19558. /* Override any GCC internal prototype to avoid an error.
  19559. Use char because int might match the return type of a GCC
  19560. builtin and then its argument prototype would still apply. */
  19561. #ifdef __cplusplus
  19562. extern "C"
  19563. #endif
  19564. char pthread_setname_np ();
  19565. int
  19566. main ()
  19567. {
  19568. return pthread_setname_np ();
  19569. ;
  19570. return 0;
  19571. }
  19572. _ACEOF
  19573. if ac_fn_c_try_link "$LINENO"; then :
  19574. has_pthread_setname_np=yes
  19575. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19576. else
  19577. has_pthread_setname_np=no
  19578. fi
  19579. rm -f core conftest.err conftest.$ac_objext \
  19580. conftest$ac_exeext conftest.$ac_ext
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19582. $as_echo "$has_pthread_setname_np" >&6; }
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19584. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19586. /* end confdefs.h. */
  19587. /* Override any GCC internal prototype to avoid an error.
  19588. Use char because int might match the return type of a GCC
  19589. builtin and then its argument prototype would still apply. */
  19590. #ifdef __cplusplus
  19591. extern "C"
  19592. #endif
  19593. char pthread_set_name_np ();
  19594. int
  19595. main ()
  19596. {
  19597. return pthread_set_name_np ();
  19598. ;
  19599. return 0;
  19600. }
  19601. _ACEOF
  19602. if ac_fn_c_try_link "$LINENO"; then :
  19603. has_pthread_set_name_np=yes
  19604. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19605. else
  19606. has_pthread_set_name_np=no
  19607. fi
  19608. rm -f core conftest.err conftest.$ac_objext \
  19609. conftest$ac_exeext conftest.$ac_ext
  19610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19611. $as_echo "$has_pthread_set_name_np" >&6; }
  19612. # Restore the compiler flags and libraries
  19613. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19614. # Basic thread creation functions
  19615. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19616. # Semaphores
  19617. # We can fake these with mutexes and condition variables if necessary
  19618. if test x$have_pthread_sem = xyes; then
  19619. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19620. else
  19621. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19622. fi
  19623. # Mutexes
  19624. # We can fake these with semaphores if necessary
  19625. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19626. # Condition variables
  19627. # We can fake these with semaphores and mutexes if necessary
  19628. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19629. # Thread local storage
  19630. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19631. have_threads=yes
  19632. fi
  19633. fi
  19634. }
  19635. CheckWINDOWS()
  19636. {
  19637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19638. $as_echo_n "checking Windows compiler... " >&6; }
  19639. have_win32_gcc=no
  19640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19641. /* end confdefs.h. */
  19642. #include <windows.h>
  19643. int
  19644. main ()
  19645. {
  19646. ;
  19647. return 0;
  19648. }
  19649. _ACEOF
  19650. if ac_fn_c_try_compile "$LINENO"; then :
  19651. have_win32_gcc=yes
  19652. fi
  19653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19655. $as_echo "$have_win32_gcc" >&6; }
  19656. if test x$have_win32_gcc != xyes; then
  19657. as_fn_error $? "
  19658. *** Your compiler ($CC) does not produce Windows executables!
  19659. " "$LINENO" 5
  19660. fi
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19662. $as_echo_n "checking Windows CE... " >&6; }
  19663. have_wince=no
  19664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19665. /* end confdefs.h. */
  19666. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19667. #error This is not Windows CE
  19668. #endif
  19669. int
  19670. main ()
  19671. {
  19672. ;
  19673. return 0;
  19674. }
  19675. _ACEOF
  19676. if ac_fn_c_try_compile "$LINENO"; then :
  19677. have_wince=yes
  19678. as_fn_error $? "
  19679. *** Sorry, Windows CE is no longer supported.
  19680. " "$LINENO" 5
  19681. fi
  19682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19684. $as_echo "$have_wince" >&6; }
  19685. # This fixes Windows stack alignment with newer GCC
  19686. CheckStackBoundary
  19687. }
  19688. CheckDIRECTX()
  19689. {
  19690. # Check whether --enable-directx was given.
  19691. if test "${enable_directx+set}" = set; then :
  19692. enableval=$enable_directx;
  19693. else
  19694. enable_directx=yes
  19695. fi
  19696. if test x$enable_directx = xyes; then
  19697. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19698. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19699. have_d3d=yes
  19700. fi
  19701. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19702. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19703. have_d3d11=yes
  19704. fi
  19705. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19706. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19707. have_ddraw=yes
  19708. fi
  19709. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19710. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19711. have_dsound=yes
  19712. fi
  19713. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19714. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19715. have_dinput=yes
  19716. fi
  19717. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19718. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19719. have_dxgi=yes
  19720. fi
  19721. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19722. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19723. have_xinput=yes
  19724. fi
  19725. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19726. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19727. have_wasapi=yes
  19728. fi
  19729. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19730. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19731. else
  19732. have_wasapi=no
  19733. fi
  19734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19735. /* end confdefs.h. */
  19736. #include <windows.h>
  19737. #include <xinput.h>
  19738. XINPUT_GAMEPAD_EX x1;
  19739. int
  19740. main ()
  19741. {
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_compile "$LINENO"; then :
  19747. have_xinput_gamepadex=yes
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19751. /* end confdefs.h. */
  19752. #include <windows.h>
  19753. #include <xinput.h>
  19754. XINPUT_STATE_EX s1;
  19755. int
  19756. main ()
  19757. {
  19758. ;
  19759. return 0;
  19760. }
  19761. _ACEOF
  19762. if ac_fn_c_try_compile "$LINENO"; then :
  19763. have_xinput_stateex=yes
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19766. if test x$have_ddraw = xyes; then
  19767. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19768. fi
  19769. if test x$have_dinput = xyes; then
  19770. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19771. fi
  19772. if test x$have_dsound = xyes; then
  19773. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19774. fi
  19775. if test x$have_dxgi = xyes; then
  19776. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19777. fi
  19778. if test x$have_xinput = xyes; then
  19779. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19780. fi
  19781. if test x$have_xinput_gamepadex = xyes; then
  19782. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19783. fi
  19784. if test x$have_xinput_stateex = xyes; then
  19785. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19786. fi
  19787. SUMMARY_video="${SUMMARY_video} directx"
  19788. SUMMARY_audio="${SUMMARY_audio} directx"
  19789. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19790. # FIXME: ...so force it off for now.
  19791. case "$host" in
  19792. *-*-cygwin*)
  19793. have_dinput=false
  19794. ;;
  19795. esac
  19796. fi
  19797. }
  19798. CheckDLOPEN()
  19799. {
  19800. # Check whether --enable-sdl-dlopen was given.
  19801. if test "${enable_sdl_dlopen+set}" = set; then :
  19802. enableval=$enable_sdl_dlopen;
  19803. else
  19804. enable_sdl_dlopen=yes
  19805. fi
  19806. if test x$enable_sdl_dlopen = xyes; then
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19808. $as_echo_n "checking for dlopen... " >&6; }
  19809. have_dlopen=no
  19810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19811. /* end confdefs.h. */
  19812. #include <dlfcn.h>
  19813. int
  19814. main ()
  19815. {
  19816. void *handle = dlopen("", RTLD_NOW);
  19817. const char *loaderror = (char *) dlerror();
  19818. ;
  19819. return 0;
  19820. }
  19821. _ACEOF
  19822. if ac_fn_c_try_compile "$LINENO"; then :
  19823. have_dlopen=yes
  19824. fi
  19825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19827. $as_echo "$have_dlopen" >&6; }
  19828. if test x$have_dlopen = xyes; then
  19829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19830. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19831. if ${ac_cv_lib_c_dlopen+:} false; then :
  19832. $as_echo_n "(cached) " >&6
  19833. else
  19834. ac_check_lib_save_LIBS=$LIBS
  19835. LIBS="-lc $LIBS"
  19836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19837. /* end confdefs.h. */
  19838. /* Override any GCC internal prototype to avoid an error.
  19839. Use char because int might match the return type of a GCC
  19840. builtin and then its argument prototype would still apply. */
  19841. #ifdef __cplusplus
  19842. extern "C"
  19843. #endif
  19844. char dlopen ();
  19845. int
  19846. main ()
  19847. {
  19848. return dlopen ();
  19849. ;
  19850. return 0;
  19851. }
  19852. _ACEOF
  19853. if ac_fn_c_try_link "$LINENO"; then :
  19854. ac_cv_lib_c_dlopen=yes
  19855. else
  19856. ac_cv_lib_c_dlopen=no
  19857. fi
  19858. rm -f core conftest.err conftest.$ac_objext \
  19859. conftest$ac_exeext conftest.$ac_ext
  19860. LIBS=$ac_check_lib_save_LIBS
  19861. fi
  19862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19863. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19864. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19865. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19866. else
  19867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19868. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19869. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19870. $as_echo_n "(cached) " >&6
  19871. else
  19872. ac_check_lib_save_LIBS=$LIBS
  19873. LIBS="-ldl $LIBS"
  19874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19875. /* end confdefs.h. */
  19876. /* Override any GCC internal prototype to avoid an error.
  19877. Use char because int might match the return type of a GCC
  19878. builtin and then its argument prototype would still apply. */
  19879. #ifdef __cplusplus
  19880. extern "C"
  19881. #endif
  19882. char dlopen ();
  19883. int
  19884. main ()
  19885. {
  19886. return dlopen ();
  19887. ;
  19888. return 0;
  19889. }
  19890. _ACEOF
  19891. if ac_fn_c_try_link "$LINENO"; then :
  19892. ac_cv_lib_dl_dlopen=yes
  19893. else
  19894. ac_cv_lib_dl_dlopen=no
  19895. fi
  19896. rm -f core conftest.err conftest.$ac_objext \
  19897. conftest$ac_exeext conftest.$ac_ext
  19898. LIBS=$ac_check_lib_save_LIBS
  19899. fi
  19900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19901. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19902. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19904. else
  19905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19906. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19907. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19908. $as_echo_n "(cached) " >&6
  19909. else
  19910. ac_check_lib_save_LIBS=$LIBS
  19911. LIBS="-lltdl $LIBS"
  19912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19913. /* end confdefs.h. */
  19914. /* Override any GCC internal prototype to avoid an error.
  19915. Use char because int might match the return type of a GCC
  19916. builtin and then its argument prototype would still apply. */
  19917. #ifdef __cplusplus
  19918. extern "C"
  19919. #endif
  19920. char dlopen ();
  19921. int
  19922. main ()
  19923. {
  19924. return dlopen ();
  19925. ;
  19926. return 0;
  19927. }
  19928. _ACEOF
  19929. if ac_fn_c_try_link "$LINENO"; then :
  19930. ac_cv_lib_ltdl_dlopen=yes
  19931. else
  19932. ac_cv_lib_ltdl_dlopen=no
  19933. fi
  19934. rm -f core conftest.err conftest.$ac_objext \
  19935. conftest$ac_exeext conftest.$ac_ext
  19936. LIBS=$ac_check_lib_save_LIBS
  19937. fi
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19939. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19940. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19942. fi
  19943. fi
  19944. fi
  19945. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19946. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19947. have_loadso=yes
  19948. fi
  19949. fi
  19950. }
  19951. CheckUSBHID()
  19952. {
  19953. case "$host" in
  19954. *-*-*bsd*)
  19955. if test x$enable_joystick = xyes; then
  19956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19957. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19958. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19959. $as_echo_n "(cached) " >&6
  19960. else
  19961. ac_check_lib_save_LIBS=$LIBS
  19962. LIBS="-lusbhid $LIBS"
  19963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19964. /* end confdefs.h. */
  19965. /* Override any GCC internal prototype to avoid an error.
  19966. Use char because int might match the return type of a GCC
  19967. builtin and then its argument prototype would still apply. */
  19968. #ifdef __cplusplus
  19969. extern "C"
  19970. #endif
  19971. char hid_init ();
  19972. int
  19973. main ()
  19974. {
  19975. return hid_init ();
  19976. ;
  19977. return 0;
  19978. }
  19979. _ACEOF
  19980. if ac_fn_c_try_link "$LINENO"; then :
  19981. ac_cv_lib_usbhid_hid_init=yes
  19982. else
  19983. ac_cv_lib_usbhid_hid_init=no
  19984. fi
  19985. rm -f core conftest.err conftest.$ac_objext \
  19986. conftest$ac_exeext conftest.$ac_ext
  19987. LIBS=$ac_check_lib_save_LIBS
  19988. fi
  19989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19990. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19991. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19992. have_libusbhid=yes
  19993. fi
  19994. if test x$have_libusbhid = xyes; then
  19995. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19996. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19997. USB_CFLAGS="-DHAVE_USBHID_H"
  19998. fi
  19999. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20000. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20001. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20002. fi
  20003. USB_LIBS="$USB_LIBS -lusbhid"
  20004. else
  20005. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20006. if test "x$ac_cv_header_usb_h" = xyes; then :
  20007. USB_CFLAGS="-DHAVE_USB_H"
  20008. fi
  20009. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20010. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20011. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20012. fi
  20013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20014. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20015. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20016. $as_echo_n "(cached) " >&6
  20017. else
  20018. ac_check_lib_save_LIBS=$LIBS
  20019. LIBS="-lusb $LIBS"
  20020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20021. /* end confdefs.h. */
  20022. /* Override any GCC internal prototype to avoid an error.
  20023. Use char because int might match the return type of a GCC
  20024. builtin and then its argument prototype would still apply. */
  20025. #ifdef __cplusplus
  20026. extern "C"
  20027. #endif
  20028. char hid_init ();
  20029. int
  20030. main ()
  20031. {
  20032. return hid_init ();
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. if ac_fn_c_try_link "$LINENO"; then :
  20038. ac_cv_lib_usb_hid_init=yes
  20039. else
  20040. ac_cv_lib_usb_hid_init=no
  20041. fi
  20042. rm -f core conftest.err conftest.$ac_objext \
  20043. conftest$ac_exeext conftest.$ac_ext
  20044. LIBS=$ac_check_lib_save_LIBS
  20045. fi
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20047. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20048. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20049. USB_LIBS="$USB_LIBS -lusb"
  20050. fi
  20051. fi
  20052. save_CFLAGS="$CFLAGS"
  20053. CFLAGS="$CFLAGS $USB_CFLAGS"
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20055. $as_echo_n "checking for usbhid... " >&6; }
  20056. have_usbhid=no
  20057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20058. /* end confdefs.h. */
  20059. #include <sys/types.h>
  20060. #if defined(HAVE_USB_H)
  20061. #include <usb.h>
  20062. #endif
  20063. #ifdef __DragonFly__
  20064. # include <bus/usb/usb.h>
  20065. # include <bus/usb/usbhid.h>
  20066. #else
  20067. # include <dev/usb/usb.h>
  20068. # include <dev/usb/usbhid.h>
  20069. #endif
  20070. #if defined(HAVE_USBHID_H)
  20071. #include <usbhid.h>
  20072. #elif defined(HAVE_LIBUSB_H)
  20073. #include <libusb.h>
  20074. #elif defined(HAVE_LIBUSBHID_H)
  20075. #include <libusbhid.h>
  20076. #endif
  20077. int
  20078. main ()
  20079. {
  20080. struct report_desc *repdesc;
  20081. struct usb_ctl_report *repbuf;
  20082. hid_kind_t hidkind;
  20083. ;
  20084. return 0;
  20085. }
  20086. _ACEOF
  20087. if ac_fn_c_try_compile "$LINENO"; then :
  20088. have_usbhid=yes
  20089. fi
  20090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20092. $as_echo "$have_usbhid" >&6; }
  20093. if test x$have_usbhid = xyes; then
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20095. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20096. have_usbhid_ucr_data=no
  20097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20098. /* end confdefs.h. */
  20099. #include <sys/types.h>
  20100. #if defined(HAVE_USB_H)
  20101. #include <usb.h>
  20102. #endif
  20103. #ifdef __DragonFly__
  20104. # include <bus/usb/usb.h>
  20105. # include <bus/usb/usbhid.h>
  20106. #else
  20107. # include <dev/usb/usb.h>
  20108. # include <dev/usb/usbhid.h>
  20109. #endif
  20110. #if defined(HAVE_USBHID_H)
  20111. #include <usbhid.h>
  20112. #elif defined(HAVE_LIBUSB_H)
  20113. #include <libusb.h>
  20114. #elif defined(HAVE_LIBUSBHID_H)
  20115. #include <libusbhid.h>
  20116. #endif
  20117. int
  20118. main ()
  20119. {
  20120. struct usb_ctl_report buf;
  20121. if (buf.ucr_data) { }
  20122. ;
  20123. return 0;
  20124. }
  20125. _ACEOF
  20126. if ac_fn_c_try_compile "$LINENO"; then :
  20127. have_usbhid_ucr_data=yes
  20128. fi
  20129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20130. if test x$have_usbhid_ucr_data = xyes; then
  20131. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20132. fi
  20133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20134. $as_echo "$have_usbhid_ucr_data" >&6; }
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20136. $as_echo_n "checking for new usbhid API... " >&6; }
  20137. have_usbhid_new=no
  20138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20139. /* end confdefs.h. */
  20140. #include <sys/types.h>
  20141. #if defined(HAVE_USB_H)
  20142. #include <usb.h>
  20143. #endif
  20144. #ifdef __DragonFly__
  20145. #include <bus/usb/usb.h>
  20146. #include <bus/usb/usbhid.h>
  20147. #else
  20148. #include <dev/usb/usb.h>
  20149. #include <dev/usb/usbhid.h>
  20150. #endif
  20151. #if defined(HAVE_USBHID_H)
  20152. #include <usbhid.h>
  20153. #elif defined(HAVE_LIBUSB_H)
  20154. #include <libusb.h>
  20155. #elif defined(HAVE_LIBUSBHID_H)
  20156. #include <libusbhid.h>
  20157. #endif
  20158. int
  20159. main ()
  20160. {
  20161. report_desc_t d;
  20162. hid_start_parse(d, 1, 1);
  20163. ;
  20164. return 0;
  20165. }
  20166. _ACEOF
  20167. if ac_fn_c_try_compile "$LINENO"; then :
  20168. have_usbhid_new=yes
  20169. fi
  20170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20171. if test x$have_usbhid_new = xyes; then
  20172. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20173. fi
  20174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20175. $as_echo "$have_usbhid_new" >&6; }
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20177. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20178. have_machine_joystick=no
  20179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20180. /* end confdefs.h. */
  20181. #include <machine/joystick.h>
  20182. int
  20183. main ()
  20184. {
  20185. struct joystick t;
  20186. ;
  20187. return 0;
  20188. }
  20189. _ACEOF
  20190. if ac_fn_c_try_compile "$LINENO"; then :
  20191. have_machine_joystick=yes
  20192. fi
  20193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20194. if test x$have_machine_joystick = xyes; then
  20195. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20196. fi
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20198. $as_echo "$have_machine_joystick" >&6; }
  20199. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20200. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20201. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20203. have_joystick=yes
  20204. fi
  20205. CFLAGS="$save_CFLAGS"
  20206. fi
  20207. ;;
  20208. esac
  20209. }
  20210. CheckClockGettime()
  20211. {
  20212. # Check whether --enable-clock_gettime was given.
  20213. if test "${enable_clock_gettime+set}" = set; then :
  20214. enableval=$enable_clock_gettime;
  20215. else
  20216. enable_clock_gettime=yes
  20217. fi
  20218. if test x$enable_clock_gettime = xyes; then
  20219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20220. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20221. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20222. $as_echo_n "(cached) " >&6
  20223. else
  20224. ac_check_lib_save_LIBS=$LIBS
  20225. LIBS="-lrt $LIBS"
  20226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20227. /* end confdefs.h. */
  20228. /* Override any GCC internal prototype to avoid an error.
  20229. Use char because int might match the return type of a GCC
  20230. builtin and then its argument prototype would still apply. */
  20231. #ifdef __cplusplus
  20232. extern "C"
  20233. #endif
  20234. char clock_gettime ();
  20235. int
  20236. main ()
  20237. {
  20238. return clock_gettime ();
  20239. ;
  20240. return 0;
  20241. }
  20242. _ACEOF
  20243. if ac_fn_c_try_link "$LINENO"; then :
  20244. ac_cv_lib_rt_clock_gettime=yes
  20245. else
  20246. ac_cv_lib_rt_clock_gettime=no
  20247. fi
  20248. rm -f core conftest.err conftest.$ac_objext \
  20249. conftest$ac_exeext conftest.$ac_ext
  20250. LIBS=$ac_check_lib_save_LIBS
  20251. fi
  20252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20253. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20254. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20255. have_clock_gettime=yes
  20256. fi
  20257. if test x$have_clock_gettime = xyes; then
  20258. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20260. else
  20261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20262. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20263. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20264. $as_echo_n "(cached) " >&6
  20265. else
  20266. ac_check_lib_save_LIBS=$LIBS
  20267. LIBS="-lc $LIBS"
  20268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20269. /* end confdefs.h. */
  20270. /* Override any GCC internal prototype to avoid an error.
  20271. Use char because int might match the return type of a GCC
  20272. builtin and then its argument prototype would still apply. */
  20273. #ifdef __cplusplus
  20274. extern "C"
  20275. #endif
  20276. char clock_gettime ();
  20277. int
  20278. main ()
  20279. {
  20280. return clock_gettime ();
  20281. ;
  20282. return 0;
  20283. }
  20284. _ACEOF
  20285. if ac_fn_c_try_link "$LINENO"; then :
  20286. ac_cv_lib_c_clock_gettime=yes
  20287. else
  20288. ac_cv_lib_c_clock_gettime=no
  20289. fi
  20290. rm -f core conftest.err conftest.$ac_objext \
  20291. conftest$ac_exeext conftest.$ac_ext
  20292. LIBS=$ac_check_lib_save_LIBS
  20293. fi
  20294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20295. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20296. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20297. have_clock_gettime=yes
  20298. fi
  20299. if test x$have_clock_gettime = xyes; then
  20300. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20302. fi
  20303. fi
  20304. fi
  20305. }
  20306. CheckLinuxVersion()
  20307. {
  20308. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20309. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20310. have_linux_version_h=yes
  20311. fi
  20312. if test x$have_linux_version_h = xyes; then
  20313. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20314. fi
  20315. }
  20316. CheckRPATH()
  20317. {
  20318. # Check whether --enable-rpath was given.
  20319. if test "${enable_rpath+set}" = set; then :
  20320. enableval=$enable_rpath;
  20321. else
  20322. enable_rpath=yes
  20323. fi
  20324. }
  20325. CheckWarnAll
  20326. case "$host" in
  20327. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20328. case "$host" in
  20329. *-*-android*)
  20330. # Android
  20331. ARCH=android
  20332. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20333. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20334. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20335. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20336. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20337. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20338. if test x$enable_video = xyes; then
  20339. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20340. # FIXME: confdefs? Not AC_DEFINE?
  20341. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20342. SUMMARY_video="${SUMMARY_video} android"
  20343. fi
  20344. ;;
  20345. *-*-linux*) ARCH=linux ;;
  20346. *-*-uclinux*) ARCH=linux ;;
  20347. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20348. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20349. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20350. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20351. *-*-bsdi*) ARCH=bsdi ;;
  20352. *-*-freebsd*) ARCH=freebsd ;;
  20353. *-*-dragonfly*) ARCH=freebsd ;;
  20354. *-*-netbsd*) ARCH=netbsd ;;
  20355. *-*-openbsd*) ARCH=openbsd ;;
  20356. *-*-sysv5*) ARCH=sysv5 ;;
  20357. *-*-solaris*) ARCH=solaris ;;
  20358. *-*-hpux*) ARCH=hpux ;;
  20359. *-*-aix*) ARCH=aix ;;
  20360. *-*-minix*) ARCH=minix ;;
  20361. *-*-nto*) ARCH=nto
  20362. CheckQNXVideo
  20363. ;;
  20364. esac
  20365. CheckVisibilityHidden
  20366. CheckDeclarationAfterStatement
  20367. CheckDummyVideo
  20368. CheckDiskAudio
  20369. CheckDummyAudio
  20370. CheckDLOPEN
  20371. CheckOSS
  20372. CheckALSA
  20373. CheckPulseAudio
  20374. CheckJACK
  20375. CheckARTSC
  20376. CheckESD
  20377. CheckNAS
  20378. CheckSNDIO
  20379. CheckFusionSound
  20380. CheckLibSampleRate
  20381. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20382. CheckRPI
  20383. CheckX11
  20384. CheckDirectFB
  20385. CheckKMSDRM
  20386. CheckOpenGLX11
  20387. CheckOpenGLESX11
  20388. CheckVulkan
  20389. CheckMir
  20390. CheckWayland
  20391. CheckLibUDev
  20392. CheckDBus
  20393. CheckIME
  20394. CheckIBus
  20395. CheckFcitx
  20396. case $ARCH in
  20397. linux)
  20398. CheckInputEvents
  20399. CheckInputKD
  20400. ;;
  20401. esac
  20402. CheckTslib
  20403. CheckUSBHID
  20404. CheckPTHREAD
  20405. CheckClockGettime
  20406. CheckLinuxVersion
  20407. CheckRPATH
  20408. CheckVivanteVideo
  20409. # Set up files for the audio library
  20410. if test x$enable_audio = xyes; then
  20411. case $ARCH in
  20412. sysv5|solaris|hpux)
  20413. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20414. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20415. SUMMARY_audio="${SUMMARY_audio} sun"
  20416. have_audio=yes
  20417. ;;
  20418. netbsd) # Don't use this on OpenBSD, it's busted.
  20419. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20420. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20421. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20422. have_audio=yes
  20423. ;;
  20424. aix)
  20425. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20426. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20427. SUMMARY_audio="${SUMMARY_audio} paudio"
  20428. have_audio=yes
  20429. ;;
  20430. android)
  20431. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20432. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20433. SUMMARY_audio="${SUMMARY_audio} android"
  20434. have_audio=yes
  20435. ;;
  20436. nto)
  20437. CheckQNXAudio
  20438. ;;
  20439. esac
  20440. fi
  20441. # Set up files for the joystick library
  20442. if test x$enable_joystick = xyes; then
  20443. case $ARCH in
  20444. linux)
  20445. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20446. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20447. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20448. have_joystick=yes
  20449. ;;
  20450. android)
  20451. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20452. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20453. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20454. have_joystick=yes
  20455. ;;
  20456. esac
  20457. fi
  20458. # Set up files for the haptic library
  20459. if test x$enable_haptic = xyes; then
  20460. case $ARCH in
  20461. linux)
  20462. if test x$use_input_events = xyes; then
  20463. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20464. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20465. have_haptic=yes
  20466. fi
  20467. ;;
  20468. android)
  20469. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20470. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20471. have_haptic=yes
  20472. ;;
  20473. esac
  20474. fi
  20475. # Set up files for the power library
  20476. if test x$enable_power = xyes; then
  20477. case $ARCH in
  20478. linux)
  20479. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20480. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20481. have_power=yes
  20482. ;;
  20483. android)
  20484. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20485. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20486. have_power=yes
  20487. ;;
  20488. esac
  20489. fi
  20490. # Set up files for the filesystem library
  20491. if test x$enable_filesystem = xyes; then
  20492. case $ARCH in
  20493. android)
  20494. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20495. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20496. have_filesystem=yes
  20497. ;;
  20498. *)
  20499. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20500. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20501. have_filesystem=yes
  20502. ;;
  20503. esac
  20504. fi
  20505. # Set up files for the timer library
  20506. if test x$enable_timers = xyes; then
  20507. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20508. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20509. have_timers=yes
  20510. fi
  20511. # Set up files for udev hotplugging support
  20512. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20513. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20514. fi
  20515. # Set up files for evdev input
  20516. if test x$use_input_events = xyes; then
  20517. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20518. fi
  20519. # Set up other core UNIX files
  20520. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20521. ;;
  20522. *-*-cygwin* | *-*-mingw32*)
  20523. ARCH=win32
  20524. if test "$build" != "$host"; then # cross-compiling
  20525. # Default cross-compile location
  20526. ac_default_prefix=/usr/local/cross-tools/$host
  20527. else
  20528. # Look for the location of the tools and install there
  20529. if test "$BUILD_PREFIX" != ""; then
  20530. ac_default_prefix=$BUILD_PREFIX
  20531. fi
  20532. fi
  20533. CheckDeclarationAfterStatement
  20534. CheckDummyVideo
  20535. CheckDiskAudio
  20536. CheckDummyAudio
  20537. CheckWINDOWS
  20538. CheckWINDOWSGL
  20539. CheckWINDOWSGLES
  20540. CheckVulkan
  20541. CheckDIRECTX
  20542. # Set up the core platform files
  20543. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20544. # Set up files for the video library
  20545. if test x$enable_video = xyes; then
  20546. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20547. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20548. have_video=yes
  20549. # Check whether --enable-render-d3d was given.
  20550. if test "${enable_render_d3d+set}" = set; then :
  20551. enableval=$enable_render_d3d;
  20552. else
  20553. enable_render_d3d=yes
  20554. fi
  20555. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20556. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20557. fi
  20558. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20559. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20560. fi
  20561. fi
  20562. # Set up files for the audio library
  20563. if test x$enable_audio = xyes; then
  20564. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20565. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20566. if test x$have_dsound = xyes; then
  20567. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20568. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20569. fi
  20570. if test x$have_wasapi = xyes; then
  20571. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20572. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20573. fi
  20574. have_audio=yes
  20575. fi
  20576. # Set up files for the joystick library
  20577. if test x$enable_joystick = xyes; then
  20578. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20579. if test x$have_xinput = xyes; then
  20580. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20581. fi
  20582. if test x$have_dinput = xyes; then
  20583. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20585. fi
  20586. else
  20587. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20588. fi
  20589. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20590. have_joystick=yes
  20591. fi
  20592. if test x$enable_haptic = xyes; then
  20593. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20594. if test x$have_xinput = xyes; then
  20595. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20596. fi
  20597. if test x$have_dinput = xyes; then
  20598. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20599. fi
  20600. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20601. have_haptic=yes
  20602. fi
  20603. fi
  20604. if test x$enable_power = xyes; then
  20605. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20606. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20607. have_power=yes
  20608. fi
  20609. if test x$enable_filesystem = xyes; then
  20610. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20611. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20612. have_filesystem=yes
  20613. fi
  20614. # Set up files for the thread library
  20615. if test x$enable_threads = xyes; then
  20616. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20617. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20618. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20619. have_threads=yes
  20620. fi
  20621. # Set up files for the timer library
  20622. if test x$enable_timers = xyes; then
  20623. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20624. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20625. have_timers=yes
  20626. fi
  20627. # Set up files for the shared object loading library
  20628. if test x$enable_loadso = xyes; then
  20629. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20630. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20631. have_loadso=yes
  20632. fi
  20633. # Set up the system libraries we need
  20634. if test -f /lib/w32api/libuuid.a; then
  20635. LIBUUID=/lib/w32api/libuuid.a
  20636. else
  20637. LIBUUID=-luuid
  20638. fi
  20639. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20640. # The Windows platform requires special setup
  20641. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20642. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20643. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20644. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20645. # Check to see if this is a mingw or cygwin build
  20646. have_mingw32=
  20647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20648. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20649. if ${ac_cv_lib_mingw32_main+:} false; then :
  20650. $as_echo_n "(cached) " >&6
  20651. else
  20652. ac_check_lib_save_LIBS=$LIBS
  20653. LIBS="-lmingw32 $LIBS"
  20654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20655. /* end confdefs.h. */
  20656. int
  20657. main ()
  20658. {
  20659. return main ();
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_link "$LINENO"; then :
  20665. ac_cv_lib_mingw32_main=yes
  20666. else
  20667. ac_cv_lib_mingw32_main=no
  20668. fi
  20669. rm -f core conftest.err conftest.$ac_objext \
  20670. conftest$ac_exeext conftest.$ac_ext
  20671. LIBS=$ac_check_lib_save_LIBS
  20672. fi
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20674. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20675. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20676. have_mingw32=yes
  20677. fi
  20678. if test x$have_mingw32 = xyes; then
  20679. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20680. else
  20681. SDL_LIBS="-lcygwin $SDL_LIBS"
  20682. fi
  20683. ;;
  20684. *-*-beos*)
  20685. as_fn_error $? "
  20686. *** BeOS support has been removed as of SDL 2.0.2.
  20687. " "$LINENO" 5
  20688. ;;
  20689. *-*-haiku*)
  20690. ARCH=haiku
  20691. ac_default_prefix=/boot/system
  20692. CheckDummyVideo
  20693. CheckDiskAudio
  20694. CheckDummyAudio
  20695. CheckDLOPEN
  20696. CheckHaikuVideo
  20697. CheckHaikuGL
  20698. CheckPTHREAD
  20699. # Set up files for the audio library
  20700. if test x$enable_audio = xyes; then
  20701. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20702. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20703. SUMMARY_audio="${SUMMARY_audio} haiku"
  20704. have_audio=yes
  20705. fi
  20706. # Set up files for the joystick library
  20707. if test x$enable_joystick = xyes; then
  20708. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20709. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20710. have_joystick=yes
  20711. fi
  20712. # Set up files for the timer library
  20713. if test x$enable_timers = xyes; then
  20714. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20715. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20716. have_timers=yes
  20717. fi
  20718. # Set up files for the system power library
  20719. if test x$enable_power = xyes; then
  20720. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20721. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20722. have_power=yes
  20723. fi
  20724. # Set up files for the system filesystem library
  20725. if test x$enable_filesystem = xyes; then
  20726. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20727. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20728. have_filesystem=yes
  20729. fi
  20730. # The Haiku platform requires special setup.
  20731. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20733. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20734. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20735. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20737. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20738. if eval \${$as_ac_File+:} false; then :
  20739. $as_echo_n "(cached) " >&6
  20740. else
  20741. test "$cross_compiling" = yes &&
  20742. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20743. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20744. eval "$as_ac_File=yes"
  20745. else
  20746. eval "$as_ac_File=no"
  20747. fi
  20748. fi
  20749. eval ac_res=\$$as_ac_File
  20750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20751. $as_echo "$ac_res" >&6; }
  20752. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20753. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20754. else
  20755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20756. fi
  20757. ;;
  20758. arm*-apple-darwin*|*-ios-*)
  20759. ARCH=ios
  20760. CheckVisibilityHidden
  20761. CheckDeclarationAfterStatement
  20762. CheckDummyVideo
  20763. CheckDiskAudio
  20764. CheckDummyAudio
  20765. CheckDLOPEN
  20766. CheckMETAL
  20767. CheckVulkan
  20768. CheckPTHREAD
  20769. # Set up files for the audio library
  20770. if test x$enable_audio = xyes; then
  20771. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20772. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20773. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20774. have_audio=yes
  20775. fi
  20776. # Set up files for the joystick library
  20777. if test x$enable_joystick = xyes; then
  20778. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20779. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20780. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20781. have_joystick=yes
  20782. fi
  20783. # Set up files for the haptic library
  20784. #if test x$enable_haptic = xyes; then
  20785. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20786. # have_haptic=yes
  20787. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20788. #fi
  20789. # Set up files for the power library
  20790. if test x$enable_power = xyes; then
  20791. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20792. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20793. have_power=yes
  20794. fi
  20795. # Set up files for the filesystem library
  20796. if test x$enable_filesystem = xyes; then
  20797. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20798. have_filesystem=yes
  20799. fi
  20800. # Set up additional files for the file library
  20801. if test x$enable_file = xyes; then
  20802. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20803. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20804. fi
  20805. # Set up files for the timer library
  20806. if test x$enable_timers = xyes; then
  20807. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20808. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20809. have_timers=yes
  20810. fi
  20811. # Set up other core UNIX files
  20812. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20813. # The iOS platform requires special setup.
  20814. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20815. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20816. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20817. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20818. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20819. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20822. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20824. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20827. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20828. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20829. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20830. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20831. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20833. fi
  20834. ;;
  20835. *-*-darwin* )
  20836. # This could be either full "Mac OS X", or plain "Darwin" which is
  20837. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20838. # Next line is broken, and a few files below require Mac OS X (full)
  20839. ARCH=macosx
  20840. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20841. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20842. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20843. CheckVisibilityHidden
  20844. CheckDeclarationAfterStatement
  20845. CheckDummyVideo
  20846. CheckDiskAudio
  20847. CheckDummyAudio
  20848. CheckDLOPEN
  20849. CheckCOCOA
  20850. CheckMETAL
  20851. CheckX11
  20852. CheckMacGL
  20853. CheckOpenGLX11
  20854. CheckVulkan
  20855. CheckPTHREAD
  20856. # Set up files for the audio library
  20857. if test x$enable_audio = xyes; then
  20858. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20859. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20860. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20861. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20862. have_audio=yes
  20863. fi
  20864. # Set up files for the joystick library
  20865. if test x$enable_joystick = xyes; then
  20866. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20867. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20868. have_joystick=yes
  20869. fi
  20870. # Set up files for the haptic library
  20871. if test x$enable_haptic = xyes; then
  20872. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20873. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20875. have_haptic=yes
  20876. fi
  20877. # Set up files for the power library
  20878. if test x$enable_power = xyes; then
  20879. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20880. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20881. have_power=yes
  20882. fi
  20883. # Set up files for the filesystem library
  20884. if test x$enable_filesystem = xyes; then
  20885. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20886. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20887. have_filesystem=yes
  20888. fi
  20889. # Set up files for the timer library
  20890. if test x$enable_timers = xyes; then
  20891. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20892. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20893. have_timers=yes
  20894. fi
  20895. # Set up additional files for the file library
  20896. if test x$enable_file = xyes; then
  20897. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20898. fi
  20899. # Set up other core UNIX files
  20900. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20901. # The Mac OS X platform requires special setup.
  20902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20903. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20904. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20907. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20908. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  20909. fi
  20910. ;;
  20911. *-nacl|*-pnacl)
  20912. ARCH=nacl
  20913. CheckNativeClient
  20914. CheckDummyAudio
  20915. CheckDummyVideo
  20916. CheckInputEvents
  20917. CheckPTHREAD
  20918. # Set up files for the timer library
  20919. if test x$enable_timers = xyes; then
  20920. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20921. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20922. have_timers=yes
  20923. fi
  20924. if test x$enable_filesystem = xyes; then
  20925. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20926. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20927. have_filesystem=yes
  20928. fi
  20929. ;;
  20930. *-*-emscripten* )
  20931. if test x$enable_video = xyes; then
  20932. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20933. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20934. have_video=yes
  20935. SUMMARY_video="${SUMMARY_video} emscripten"
  20936. fi
  20937. if test x$enable_audio = xyes; then
  20938. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20939. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20940. have_audio=yes
  20941. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20942. fi
  20943. CheckVisibilityHidden
  20944. CheckDeclarationAfterStatement
  20945. CheckDummyVideo
  20946. CheckDiskAudio
  20947. CheckDummyAudio
  20948. CheckDLOPEN
  20949. CheckClockGettime
  20950. CheckEmscriptenGLES
  20951. # Set up files for the power library
  20952. if test x$enable_power = xyes; then
  20953. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20954. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20955. have_power=yes
  20956. fi
  20957. # Set up files for the power library
  20958. if test x$enable_joystick = xyes; then
  20959. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20960. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20961. have_joystick=yes
  20962. fi
  20963. # Set up files for the filesystem library
  20964. if test x$enable_filesystem = xyes; then
  20965. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20966. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20967. have_filesystem=yes
  20968. fi
  20969. # Set up files for the timer library
  20970. if test x$enable_timers = xyes; then
  20971. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20972. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20973. have_timers=yes
  20974. fi
  20975. ;;
  20976. *)
  20977. as_fn_error $? "
  20978. *** Unsupported host: Please add to configure.in
  20979. " "$LINENO" 5
  20980. ;;
  20981. esac
  20982. # Verify that we have all the platform specific files we need
  20983. if test x$have_joystick != xyes; then
  20984. if test x$enable_joystick = xyes; then
  20985. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20986. fi
  20987. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20988. fi
  20989. if test x$have_haptic != xyes; then
  20990. if test x$enable_haptic = xyes; then
  20991. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20992. fi
  20993. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20994. fi
  20995. if test x$have_threads != xyes; then
  20996. if test x$enable_threads = xyes; then
  20997. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20998. fi
  20999. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21000. fi
  21001. if test x$have_timers != xyes; then
  21002. if test x$enable_timers = xyes; then
  21003. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21004. fi
  21005. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21006. fi
  21007. if test x$have_filesystem != xyes; then
  21008. if test x$enable_filesystem = xyes; then
  21009. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21010. fi
  21011. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21012. fi
  21013. if test x$have_loadso != xyes; then
  21014. if test x$enable_loadso = xyes; then
  21015. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21016. fi
  21017. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21018. fi
  21019. if test x$SDLMAIN_SOURCES = x; then
  21020. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21021. fi
  21022. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21023. if test x$video_wayland = xyes; then
  21024. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  21025. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  21026. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  21027. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  21028. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  21029. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  21030. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  21031. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  21032. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  21033. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  21034. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  21035. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  21036. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  21037. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  21038. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  21039. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  21040. WAYLAND_CORE_PROTOCOL_OBJECT="
  21041. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  21042. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  21043. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21044. do echo ; echo \$p | sed\
  21045. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  21046. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  21047. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  21048. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21049. do echo ; echo \$p | sed\
  21050. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  21051. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  21052. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  21053. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21054. do echo ; echo \$p | sed\
  21055. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  21056. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  21057. WAYLAND_PROTOCOLS_DEPENDS="
  21058. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  21059. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  21060. $WAYLAND_CORE_PROTOCOL_OBJECT
  21061. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  21062. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  21063. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  21064. "
  21065. fi
  21066. OBJECTS=`echo $SOURCES`
  21067. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21068. for EXT in asm cc m c S; do
  21069. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21070. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21071. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21072. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21073. done
  21074. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21075. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21076. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21077. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21078. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21079. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21080. \\$(WINDRES) \\$< \\$@,g"`
  21081. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21082. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21083. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21084. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21085. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21086. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21087. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21088. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21089. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21090. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21091. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21092. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21093. # Set runtime shared library paths as needed
  21094. if test "x$enable_rpath" = "xyes"; then
  21095. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21096. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21098. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21099. have_enable_new_dtags=no
  21100. save_LDFLAGS="$LDFLAGS"
  21101. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21103. /* end confdefs.h. */
  21104. int
  21105. main ()
  21106. {
  21107. ;
  21108. return 0;
  21109. }
  21110. _ACEOF
  21111. if ac_fn_c_try_link "$LINENO"; then :
  21112. have_enable_new_dtags=yes
  21113. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21114. fi
  21115. rm -f core conftest.err conftest.$ac_objext \
  21116. conftest$ac_exeext conftest.$ac_ext
  21117. LDFLAGS="$save_LDFLAGS"
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21119. $as_echo "$have_enable_new_dtags" >&6; }
  21120. fi
  21121. if test $ARCH = solaris; then
  21122. SDL_RLD_FLAGS="-R\${libdir}"
  21123. fi
  21124. else
  21125. SDL_RLD_FLAGS=""
  21126. fi
  21127. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21128. if test x$enable_shared = xyes; then
  21129. ENABLE_SHARED_TRUE=
  21130. ENABLE_SHARED_FALSE="#"
  21131. else
  21132. ENABLE_SHARED_TRUE="#"
  21133. ENABLE_SHARED_FALSE=
  21134. fi
  21135. if test x$enable_static = xyes; then
  21136. ENABLE_STATIC_TRUE=
  21137. ENABLE_STATIC_FALSE="#"
  21138. else
  21139. ENABLE_STATIC_TRUE="#"
  21140. ENABLE_STATIC_FALSE=
  21141. fi
  21142. cat >Makefile.rules <<__EOF__
  21143. # Build rules for objects
  21144. -include \$(OBJECTS:.lo=.d)
  21145. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21146. $srcdir/src/SDL.c: update-revision
  21147. $DEPENDS
  21148. $VERSION_DEPENDS
  21149. $SDLMAIN_DEPENDS
  21150. $SDLTEST_DEPENDS
  21151. $WAYLAND_PROTOCOLS_DEPENDS
  21152. __EOF__
  21153. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21154. ac_config_commands="$ac_config_commands sdl2_config"
  21155. SUMMARY="SDL2 Configure Summary:\n"
  21156. if test x$enable_shared = xyes; then
  21157. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21158. fi
  21159. if test x$enable_static = xyes; then
  21160. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21161. fi
  21162. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21163. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21164. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21165. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21166. if test x$have_x = xyes; then
  21167. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21168. fi
  21169. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21170. if test x$have_samplerate_h_hdr = xyes; then
  21171. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21172. else
  21173. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21174. fi
  21175. if test x$have_libudev_h_hdr = xyes; then
  21176. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21177. else
  21178. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21179. fi
  21180. if test x$have_dbus_dbus_h_hdr = xyes; then
  21181. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21182. else
  21183. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21184. fi
  21185. if test x$enable_ime = xyes; then
  21186. SUMMARY="${SUMMARY}Using ime : YES\n"
  21187. else
  21188. SUMMARY="${SUMMARY}Using ime : NO\n"
  21189. fi
  21190. if test x$have_ibus_ibus_h_hdr = xyes; then
  21191. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21192. else
  21193. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21194. fi
  21195. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21196. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21197. else
  21198. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21199. fi
  21200. ac_config_commands="$ac_config_commands summary"
  21201. cat >confcache <<\_ACEOF
  21202. # This file is a shell script that caches the results of configure
  21203. # tests run on this system so they can be shared between configure
  21204. # scripts and configure runs, see configure's option --config-cache.
  21205. # It is not useful on other systems. If it contains results you don't
  21206. # want to keep, you may remove or edit it.
  21207. #
  21208. # config.status only pays attention to the cache file if you give it
  21209. # the --recheck option to rerun configure.
  21210. #
  21211. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21212. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21213. # following values.
  21214. _ACEOF
  21215. # The following way of writing the cache mishandles newlines in values,
  21216. # but we know of no workaround that is simple, portable, and efficient.
  21217. # So, we kill variables containing newlines.
  21218. # Ultrix sh set writes to stderr and can't be redirected directly,
  21219. # and sets the high bit in the cache file unless we assign to the vars.
  21220. (
  21221. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21222. eval ac_val=\$$ac_var
  21223. case $ac_val in #(
  21224. *${as_nl}*)
  21225. case $ac_var in #(
  21226. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21227. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21228. esac
  21229. case $ac_var in #(
  21230. _ | IFS | as_nl) ;; #(
  21231. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21232. *) { eval $ac_var=; unset $ac_var;} ;;
  21233. esac ;;
  21234. esac
  21235. done
  21236. (set) 2>&1 |
  21237. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21238. *${as_nl}ac_space=\ *)
  21239. # `set' does not quote correctly, so add quotes: double-quote
  21240. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21241. sed -n \
  21242. "s/'/'\\\\''/g;
  21243. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21244. ;; #(
  21245. *)
  21246. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21247. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21248. ;;
  21249. esac |
  21250. sort
  21251. ) |
  21252. sed '
  21253. /^ac_cv_env_/b end
  21254. t clear
  21255. :clear
  21256. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21257. t end
  21258. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21259. :end' >>confcache
  21260. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21261. if test -w "$cache_file"; then
  21262. if test "x$cache_file" != "x/dev/null"; then
  21263. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21264. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21265. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21266. cat confcache >"$cache_file"
  21267. else
  21268. case $cache_file in #(
  21269. */* | ?:*)
  21270. mv -f confcache "$cache_file"$$ &&
  21271. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21272. *)
  21273. mv -f confcache "$cache_file" ;;
  21274. esac
  21275. fi
  21276. fi
  21277. else
  21278. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21279. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21280. fi
  21281. fi
  21282. rm -f confcache
  21283. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21284. # Let make expand exec_prefix.
  21285. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21286. DEFS=-DHAVE_CONFIG_H
  21287. ac_libobjs=
  21288. ac_ltlibobjs=
  21289. U=
  21290. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21291. # 1. Remove the extension, and $U if already installed.
  21292. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21293. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21294. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21295. # will be set to the directory where LIBOBJS objects are built.
  21296. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21297. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21298. done
  21299. LIBOBJS=$ac_libobjs
  21300. LTLIBOBJS=$ac_ltlibobjs
  21301. : "${CONFIG_STATUS=./config.status}"
  21302. ac_write_fail=0
  21303. ac_clean_files_save=$ac_clean_files
  21304. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21305. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21306. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21307. as_write_fail=0
  21308. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21309. #! $SHELL
  21310. # Generated by $as_me.
  21311. # Run this file to recreate the current configuration.
  21312. # Compiler output produced by configure, useful for debugging
  21313. # configure, is in config.log if it exists.
  21314. debug=false
  21315. ac_cs_recheck=false
  21316. ac_cs_silent=false
  21317. SHELL=\${CONFIG_SHELL-$SHELL}
  21318. export SHELL
  21319. _ASEOF
  21320. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21321. ## -------------------- ##
  21322. ## M4sh Initialization. ##
  21323. ## -------------------- ##
  21324. # Be more Bourne compatible
  21325. DUALCASE=1; export DUALCASE # for MKS sh
  21326. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21327. emulate sh
  21328. NULLCMD=:
  21329. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21330. # is contrary to our usage. Disable this feature.
  21331. alias -g '${1+"$@"}'='"$@"'
  21332. setopt NO_GLOB_SUBST
  21333. else
  21334. case `(set -o) 2>/dev/null` in #(
  21335. *posix*) :
  21336. set -o posix ;; #(
  21337. *) :
  21338. ;;
  21339. esac
  21340. fi
  21341. as_nl='
  21342. '
  21343. export as_nl
  21344. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21345. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21346. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21347. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21348. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21349. # but without wasting forks for bash or zsh.
  21350. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21351. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21352. as_echo='print -r --'
  21353. as_echo_n='print -rn --'
  21354. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21355. as_echo='printf %s\n'
  21356. as_echo_n='printf %s'
  21357. else
  21358. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21359. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21360. as_echo_n='/usr/ucb/echo -n'
  21361. else
  21362. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21363. as_echo_n_body='eval
  21364. arg=$1;
  21365. case $arg in #(
  21366. *"$as_nl"*)
  21367. expr "X$arg" : "X\\(.*\\)$as_nl";
  21368. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21369. esac;
  21370. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21371. '
  21372. export as_echo_n_body
  21373. as_echo_n='sh -c $as_echo_n_body as_echo'
  21374. fi
  21375. export as_echo_body
  21376. as_echo='sh -c $as_echo_body as_echo'
  21377. fi
  21378. # The user is always right.
  21379. if test "${PATH_SEPARATOR+set}" != set; then
  21380. PATH_SEPARATOR=:
  21381. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21382. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21383. PATH_SEPARATOR=';'
  21384. }
  21385. fi
  21386. # IFS
  21387. # We need space, tab and new line, in precisely that order. Quoting is
  21388. # there to prevent editors from complaining about space-tab.
  21389. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21390. # splitting by setting IFS to empty value.)
  21391. IFS=" "" $as_nl"
  21392. # Find who we are. Look in the path if we contain no directory separator.
  21393. as_myself=
  21394. case $0 in #((
  21395. *[\\/]* ) as_myself=$0 ;;
  21396. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21397. for as_dir in $PATH
  21398. do
  21399. IFS=$as_save_IFS
  21400. test -z "$as_dir" && as_dir=.
  21401. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21402. done
  21403. IFS=$as_save_IFS
  21404. ;;
  21405. esac
  21406. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21407. # in which case we are not to be found in the path.
  21408. if test "x$as_myself" = x; then
  21409. as_myself=$0
  21410. fi
  21411. if test ! -f "$as_myself"; then
  21412. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21413. exit 1
  21414. fi
  21415. # Unset variables that we do not need and which cause bugs (e.g. in
  21416. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21417. # suppresses any "Segmentation fault" message there. '((' could
  21418. # trigger a bug in pdksh 5.2.14.
  21419. for as_var in BASH_ENV ENV MAIL MAILPATH
  21420. do eval test x\${$as_var+set} = xset \
  21421. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21422. done
  21423. PS1='$ '
  21424. PS2='> '
  21425. PS4='+ '
  21426. # NLS nuisances.
  21427. LC_ALL=C
  21428. export LC_ALL
  21429. LANGUAGE=C
  21430. export LANGUAGE
  21431. # CDPATH.
  21432. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21433. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21434. # ----------------------------------------
  21435. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21436. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21437. # script with STATUS, using 1 if that was 0.
  21438. as_fn_error ()
  21439. {
  21440. as_status=$1; test $as_status -eq 0 && as_status=1
  21441. if test "$4"; then
  21442. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21443. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21444. fi
  21445. $as_echo "$as_me: error: $2" >&2
  21446. as_fn_exit $as_status
  21447. } # as_fn_error
  21448. # as_fn_set_status STATUS
  21449. # -----------------------
  21450. # Set $? to STATUS, without forking.
  21451. as_fn_set_status ()
  21452. {
  21453. return $1
  21454. } # as_fn_set_status
  21455. # as_fn_exit STATUS
  21456. # -----------------
  21457. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21458. as_fn_exit ()
  21459. {
  21460. set +e
  21461. as_fn_set_status $1
  21462. exit $1
  21463. } # as_fn_exit
  21464. # as_fn_unset VAR
  21465. # ---------------
  21466. # Portably unset VAR.
  21467. as_fn_unset ()
  21468. {
  21469. { eval $1=; unset $1;}
  21470. }
  21471. as_unset=as_fn_unset
  21472. # as_fn_append VAR VALUE
  21473. # ----------------------
  21474. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21475. # advantage of any shell optimizations that allow amortized linear growth over
  21476. # repeated appends, instead of the typical quadratic growth present in naive
  21477. # implementations.
  21478. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21479. eval 'as_fn_append ()
  21480. {
  21481. eval $1+=\$2
  21482. }'
  21483. else
  21484. as_fn_append ()
  21485. {
  21486. eval $1=\$$1\$2
  21487. }
  21488. fi # as_fn_append
  21489. # as_fn_arith ARG...
  21490. # ------------------
  21491. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21492. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21493. # must be portable across $(()) and expr.
  21494. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21495. eval 'as_fn_arith ()
  21496. {
  21497. as_val=$(( $* ))
  21498. }'
  21499. else
  21500. as_fn_arith ()
  21501. {
  21502. as_val=`expr "$@" || test $? -eq 1`
  21503. }
  21504. fi # as_fn_arith
  21505. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21506. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21507. as_expr=expr
  21508. else
  21509. as_expr=false
  21510. fi
  21511. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21512. as_basename=basename
  21513. else
  21514. as_basename=false
  21515. fi
  21516. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21517. as_dirname=dirname
  21518. else
  21519. as_dirname=false
  21520. fi
  21521. as_me=`$as_basename -- "$0" ||
  21522. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21523. X"$0" : 'X\(//\)$' \| \
  21524. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21525. $as_echo X/"$0" |
  21526. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21527. s//\1/
  21528. q
  21529. }
  21530. /^X\/\(\/\/\)$/{
  21531. s//\1/
  21532. q
  21533. }
  21534. /^X\/\(\/\).*/{
  21535. s//\1/
  21536. q
  21537. }
  21538. s/.*/./; q'`
  21539. # Avoid depending upon Character Ranges.
  21540. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21541. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21542. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21543. as_cr_digits='0123456789'
  21544. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21545. ECHO_C= ECHO_N= ECHO_T=
  21546. case `echo -n x` in #(((((
  21547. -n*)
  21548. case `echo 'xy\c'` in
  21549. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21550. xy) ECHO_C='\c';;
  21551. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21552. ECHO_T=' ';;
  21553. esac;;
  21554. *)
  21555. ECHO_N='-n';;
  21556. esac
  21557. rm -f conf$$ conf$$.exe conf$$.file
  21558. if test -d conf$$.dir; then
  21559. rm -f conf$$.dir/conf$$.file
  21560. else
  21561. rm -f conf$$.dir
  21562. mkdir conf$$.dir 2>/dev/null
  21563. fi
  21564. if (echo >conf$$.file) 2>/dev/null; then
  21565. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21566. as_ln_s='ln -s'
  21567. # ... but there are two gotchas:
  21568. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21569. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21570. # In both cases, we have to default to `cp -pR'.
  21571. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21572. as_ln_s='cp -pR'
  21573. elif ln conf$$.file conf$$ 2>/dev/null; then
  21574. as_ln_s=ln
  21575. else
  21576. as_ln_s='cp -pR'
  21577. fi
  21578. else
  21579. as_ln_s='cp -pR'
  21580. fi
  21581. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21582. rmdir conf$$.dir 2>/dev/null
  21583. # as_fn_mkdir_p
  21584. # -------------
  21585. # Create "$as_dir" as a directory, including parents if necessary.
  21586. as_fn_mkdir_p ()
  21587. {
  21588. case $as_dir in #(
  21589. -*) as_dir=./$as_dir;;
  21590. esac
  21591. test -d "$as_dir" || eval $as_mkdir_p || {
  21592. as_dirs=
  21593. while :; do
  21594. case $as_dir in #(
  21595. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21596. *) as_qdir=$as_dir;;
  21597. esac
  21598. as_dirs="'$as_qdir' $as_dirs"
  21599. as_dir=`$as_dirname -- "$as_dir" ||
  21600. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21601. X"$as_dir" : 'X\(//\)[^/]' \| \
  21602. X"$as_dir" : 'X\(//\)$' \| \
  21603. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21604. $as_echo X"$as_dir" |
  21605. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21606. s//\1/
  21607. q
  21608. }
  21609. /^X\(\/\/\)[^/].*/{
  21610. s//\1/
  21611. q
  21612. }
  21613. /^X\(\/\/\)$/{
  21614. s//\1/
  21615. q
  21616. }
  21617. /^X\(\/\).*/{
  21618. s//\1/
  21619. q
  21620. }
  21621. s/.*/./; q'`
  21622. test -d "$as_dir" && break
  21623. done
  21624. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21625. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21626. } # as_fn_mkdir_p
  21627. if mkdir -p . 2>/dev/null; then
  21628. as_mkdir_p='mkdir -p "$as_dir"'
  21629. else
  21630. test -d ./-p && rmdir ./-p
  21631. as_mkdir_p=false
  21632. fi
  21633. # as_fn_executable_p FILE
  21634. # -----------------------
  21635. # Test if FILE is an executable regular file.
  21636. as_fn_executable_p ()
  21637. {
  21638. test -f "$1" && test -x "$1"
  21639. } # as_fn_executable_p
  21640. as_test_x='test -x'
  21641. as_executable_p=as_fn_executable_p
  21642. # Sed expression to map a string onto a valid CPP name.
  21643. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21644. # Sed expression to map a string onto a valid variable name.
  21645. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21646. exec 6>&1
  21647. ## ----------------------------------- ##
  21648. ## Main body of $CONFIG_STATUS script. ##
  21649. ## ----------------------------------- ##
  21650. _ASEOF
  21651. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21652. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21653. # Save the log message, to keep $0 and so on meaningful, and to
  21654. # report actual input values of CONFIG_FILES etc. instead of their
  21655. # values after options handling.
  21656. ac_log="
  21657. This file was extended by $as_me, which was
  21658. generated by GNU Autoconf 2.69. Invocation command line was
  21659. CONFIG_FILES = $CONFIG_FILES
  21660. CONFIG_HEADERS = $CONFIG_HEADERS
  21661. CONFIG_LINKS = $CONFIG_LINKS
  21662. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21663. $ $0 $@
  21664. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21665. "
  21666. _ACEOF
  21667. case $ac_config_files in *"
  21668. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21669. esac
  21670. case $ac_config_headers in *"
  21671. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21672. esac
  21673. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21674. # Files that config.status was made for.
  21675. config_files="$ac_config_files"
  21676. config_headers="$ac_config_headers"
  21677. config_commands="$ac_config_commands"
  21678. _ACEOF
  21679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21680. ac_cs_usage="\
  21681. \`$as_me' instantiates files and other configuration actions
  21682. from templates according to the current configuration. Unless the files
  21683. and actions are specified as TAGs, all are instantiated by default.
  21684. Usage: $0 [OPTION]... [TAG]...
  21685. -h, --help print this help, then exit
  21686. -V, --version print version number and configuration settings, then exit
  21687. --config print configuration, then exit
  21688. -q, --quiet, --silent
  21689. do not print progress messages
  21690. -d, --debug don't remove temporary files
  21691. --recheck update $as_me by reconfiguring in the same conditions
  21692. --file=FILE[:TEMPLATE]
  21693. instantiate the configuration file FILE
  21694. --header=FILE[:TEMPLATE]
  21695. instantiate the configuration header FILE
  21696. Configuration files:
  21697. $config_files
  21698. Configuration headers:
  21699. $config_headers
  21700. Configuration commands:
  21701. $config_commands
  21702. Report bugs to the package provider."
  21703. _ACEOF
  21704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21705. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21706. ac_cs_version="\\
  21707. config.status
  21708. configured by $0, generated by GNU Autoconf 2.69,
  21709. with options \\"\$ac_cs_config\\"
  21710. Copyright (C) 2012 Free Software Foundation, Inc.
  21711. This config.status script is free software; the Free Software Foundation
  21712. gives unlimited permission to copy, distribute and modify it."
  21713. ac_pwd='$ac_pwd'
  21714. srcdir='$srcdir'
  21715. INSTALL='$INSTALL'
  21716. AWK='$AWK'
  21717. test -n "\$AWK" || AWK=awk
  21718. _ACEOF
  21719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21720. # The default lists apply if the user does not specify any file.
  21721. ac_need_defaults=:
  21722. while test $# != 0
  21723. do
  21724. case $1 in
  21725. --*=?*)
  21726. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21727. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21728. ac_shift=:
  21729. ;;
  21730. --*=)
  21731. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21732. ac_optarg=
  21733. ac_shift=:
  21734. ;;
  21735. *)
  21736. ac_option=$1
  21737. ac_optarg=$2
  21738. ac_shift=shift
  21739. ;;
  21740. esac
  21741. case $ac_option in
  21742. # Handling of the options.
  21743. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21744. ac_cs_recheck=: ;;
  21745. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21746. $as_echo "$ac_cs_version"; exit ;;
  21747. --config | --confi | --conf | --con | --co | --c )
  21748. $as_echo "$ac_cs_config"; exit ;;
  21749. --debug | --debu | --deb | --de | --d | -d )
  21750. debug=: ;;
  21751. --file | --fil | --fi | --f )
  21752. $ac_shift
  21753. case $ac_optarg in
  21754. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21755. '') as_fn_error $? "missing file argument" ;;
  21756. esac
  21757. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21758. ac_need_defaults=false;;
  21759. --header | --heade | --head | --hea )
  21760. $ac_shift
  21761. case $ac_optarg in
  21762. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21763. esac
  21764. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21765. ac_need_defaults=false;;
  21766. --he | --h)
  21767. # Conflict between --help and --header
  21768. as_fn_error $? "ambiguous option: \`$1'
  21769. Try \`$0 --help' for more information.";;
  21770. --help | --hel | -h )
  21771. $as_echo "$ac_cs_usage"; exit ;;
  21772. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21773. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21774. ac_cs_silent=: ;;
  21775. # This is an error.
  21776. -*) as_fn_error $? "unrecognized option: \`$1'
  21777. Try \`$0 --help' for more information." ;;
  21778. *) as_fn_append ac_config_targets " $1"
  21779. ac_need_defaults=false ;;
  21780. esac
  21781. shift
  21782. done
  21783. ac_configure_extra_args=
  21784. if $ac_cs_silent; then
  21785. exec 6>/dev/null
  21786. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21787. fi
  21788. _ACEOF
  21789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21790. if \$ac_cs_recheck; then
  21791. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21792. shift
  21793. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21794. CONFIG_SHELL='$SHELL'
  21795. export CONFIG_SHELL
  21796. exec "\$@"
  21797. fi
  21798. _ACEOF
  21799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21800. exec 5>>config.log
  21801. {
  21802. echo
  21803. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21804. ## Running $as_me. ##
  21805. _ASBOX
  21806. $as_echo "$ac_log"
  21807. } >&5
  21808. _ACEOF
  21809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21810. #
  21811. # INIT-COMMANDS
  21812. #
  21813. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21814. # if CDPATH is set.
  21815. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21816. sed_quote_subst='$sed_quote_subst'
  21817. double_quote_subst='$double_quote_subst'
  21818. delay_variable_subst='$delay_variable_subst'
  21819. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21820. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21821. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21822. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21823. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21824. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21825. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21826. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21827. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21828. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21829. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21830. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21831. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21832. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21833. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21834. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21835. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21836. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21837. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21838. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21839. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21840. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21841. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21842. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21843. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21844. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21845. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21846. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21847. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21848. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21849. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21850. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21851. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21852. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21853. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21854. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21855. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21856. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21857. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21858. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21859. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21860. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21861. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21862. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21863. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21864. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21865. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21866. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21867. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21868. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21869. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21870. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21871. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21872. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21873. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21874. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21875. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21876. 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"`'
  21877. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21878. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21879. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21880. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21881. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21882. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21883. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21884. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21885. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21886. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21887. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21888. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21889. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21890. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21891. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21892. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21893. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21894. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21895. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21896. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21897. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21898. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21899. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21900. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21901. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21902. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21903. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21904. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21905. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21906. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21907. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21908. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21909. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21910. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21911. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21912. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21913. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21914. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21915. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21916. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21917. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21918. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21919. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21920. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21921. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21922. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21923. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21924. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21925. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21926. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21927. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21928. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21929. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21930. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21931. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21932. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21933. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21934. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21935. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21936. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21937. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21938. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21939. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21940. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21941. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21942. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21943. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21944. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21945. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21946. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21947. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21948. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21949. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21950. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21951. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21952. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21953. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21954. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21955. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21956. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21957. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21958. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21959. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21960. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21961. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21962. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21963. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21964. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21965. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21966. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21967. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21968. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21969. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21970. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21971. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21972. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21973. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21974. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21975. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21976. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21977. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21978. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21979. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21980. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21981. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21982. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21983. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21984. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21985. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21986. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21987. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21988. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21989. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21990. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21991. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21992. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21993. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21994. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21995. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21996. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21997. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21998. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21999. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22000. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22001. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22002. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22003. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22004. LTCC='$LTCC'
  22005. LTCFLAGS='$LTCFLAGS'
  22006. compiler='$compiler_DEFAULT'
  22007. # A function that is used when there is no print builtin or printf.
  22008. func_fallback_echo ()
  22009. {
  22010. eval 'cat <<_LTECHO_EOF
  22011. \$1
  22012. _LTECHO_EOF'
  22013. }
  22014. # Quote evaled strings.
  22015. for var in AS \
  22016. DLLTOOL \
  22017. OBJDUMP \
  22018. SHELL \
  22019. ECHO \
  22020. PATH_SEPARATOR \
  22021. SED \
  22022. GREP \
  22023. EGREP \
  22024. FGREP \
  22025. LD \
  22026. NM \
  22027. LN_S \
  22028. lt_SP2NL \
  22029. lt_NL2SP \
  22030. reload_flag \
  22031. deplibs_check_method \
  22032. file_magic_cmd \
  22033. file_magic_glob \
  22034. want_nocaseglob \
  22035. sharedlib_from_linklib_cmd \
  22036. AR \
  22037. AR_FLAGS \
  22038. archiver_list_spec \
  22039. STRIP \
  22040. RANLIB \
  22041. CC \
  22042. CFLAGS \
  22043. compiler \
  22044. lt_cv_sys_global_symbol_pipe \
  22045. lt_cv_sys_global_symbol_to_cdecl \
  22046. lt_cv_sys_global_symbol_to_c_name_address \
  22047. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22048. nm_file_list_spec \
  22049. lt_prog_compiler_no_builtin_flag \
  22050. lt_prog_compiler_pic \
  22051. lt_prog_compiler_wl \
  22052. lt_prog_compiler_static \
  22053. lt_cv_prog_compiler_c_o \
  22054. need_locks \
  22055. MANIFEST_TOOL \
  22056. DSYMUTIL \
  22057. NMEDIT \
  22058. LIPO \
  22059. OTOOL \
  22060. OTOOL64 \
  22061. shrext_cmds \
  22062. export_dynamic_flag_spec \
  22063. whole_archive_flag_spec \
  22064. compiler_needs_object \
  22065. with_gnu_ld \
  22066. allow_undefined_flag \
  22067. no_undefined_flag \
  22068. hardcode_libdir_flag_spec \
  22069. hardcode_libdir_separator \
  22070. exclude_expsyms \
  22071. include_expsyms \
  22072. file_list_spec \
  22073. variables_saved_for_relink \
  22074. libname_spec \
  22075. library_names_spec \
  22076. soname_spec \
  22077. install_override_mode \
  22078. finish_eval \
  22079. old_striplib \
  22080. striplib \
  22081. compiler_lib_search_dirs \
  22082. predep_objects \
  22083. postdep_objects \
  22084. predeps \
  22085. postdeps \
  22086. compiler_lib_search_path \
  22087. LD_CXX \
  22088. reload_flag_CXX \
  22089. compiler_CXX \
  22090. lt_prog_compiler_no_builtin_flag_CXX \
  22091. lt_prog_compiler_pic_CXX \
  22092. lt_prog_compiler_wl_CXX \
  22093. lt_prog_compiler_static_CXX \
  22094. lt_cv_prog_compiler_c_o_CXX \
  22095. export_dynamic_flag_spec_CXX \
  22096. whole_archive_flag_spec_CXX \
  22097. compiler_needs_object_CXX \
  22098. with_gnu_ld_CXX \
  22099. allow_undefined_flag_CXX \
  22100. no_undefined_flag_CXX \
  22101. hardcode_libdir_flag_spec_CXX \
  22102. hardcode_libdir_separator_CXX \
  22103. exclude_expsyms_CXX \
  22104. include_expsyms_CXX \
  22105. file_list_spec_CXX \
  22106. compiler_lib_search_dirs_CXX \
  22107. predep_objects_CXX \
  22108. postdep_objects_CXX \
  22109. predeps_CXX \
  22110. postdeps_CXX \
  22111. compiler_lib_search_path_CXX; do
  22112. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22113. *[\\\\\\\`\\"\\\$]*)
  22114. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22115. ;;
  22116. *)
  22117. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22118. ;;
  22119. esac
  22120. done
  22121. # Double-quote double-evaled strings.
  22122. for var in reload_cmds \
  22123. old_postinstall_cmds \
  22124. old_postuninstall_cmds \
  22125. old_archive_cmds \
  22126. extract_expsyms_cmds \
  22127. old_archive_from_new_cmds \
  22128. old_archive_from_expsyms_cmds \
  22129. archive_cmds \
  22130. archive_expsym_cmds \
  22131. module_cmds \
  22132. module_expsym_cmds \
  22133. export_symbols_cmds \
  22134. prelink_cmds \
  22135. postlink_cmds \
  22136. postinstall_cmds \
  22137. postuninstall_cmds \
  22138. finish_cmds \
  22139. sys_lib_search_path_spec \
  22140. sys_lib_dlsearch_path_spec \
  22141. reload_cmds_CXX \
  22142. old_archive_cmds_CXX \
  22143. old_archive_from_new_cmds_CXX \
  22144. old_archive_from_expsyms_cmds_CXX \
  22145. archive_cmds_CXX \
  22146. archive_expsym_cmds_CXX \
  22147. module_cmds_CXX \
  22148. module_expsym_cmds_CXX \
  22149. export_symbols_cmds_CXX \
  22150. prelink_cmds_CXX \
  22151. postlink_cmds_CXX; do
  22152. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22153. *[\\\\\\\`\\"\\\$]*)
  22154. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22155. ;;
  22156. *)
  22157. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22158. ;;
  22159. esac
  22160. done
  22161. ac_aux_dir='$ac_aux_dir'
  22162. xsi_shell='$xsi_shell'
  22163. lt_shell_append='$lt_shell_append'
  22164. # See if we are running on zsh, and set the options which allow our
  22165. # commands through without removal of \ escapes INIT.
  22166. if test -n "\${ZSH_VERSION+set}" ; then
  22167. setopt NO_GLOB_SUBST
  22168. fi
  22169. PACKAGE='$PACKAGE'
  22170. VERSION='$VERSION'
  22171. TIMESTAMP='$TIMESTAMP'
  22172. RM='$RM'
  22173. ofile='$ofile'
  22174. SUMMARY="$SUMMARY"
  22175. _ACEOF
  22176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22177. # Handling of arguments.
  22178. for ac_config_target in $ac_config_targets
  22179. do
  22180. case $ac_config_target in
  22181. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22182. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22183. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22184. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22185. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22186. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22187. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22188. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22189. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22190. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22191. esac
  22192. done
  22193. # If the user did not use the arguments to specify the items to instantiate,
  22194. # then the envvar interface is used. Set only those that are not.
  22195. # We use the long form for the default assignment because of an extremely
  22196. # bizarre bug on SunOS 4.1.3.
  22197. if $ac_need_defaults; then
  22198. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22199. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22200. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22201. fi
  22202. # Have a temporary directory for convenience. Make it in the build tree
  22203. # simply because there is no reason against having it here, and in addition,
  22204. # creating and moving files from /tmp can sometimes cause problems.
  22205. # Hook for its removal unless debugging.
  22206. # Note that there is a small window in which the directory will not be cleaned:
  22207. # after its creation but before its name has been assigned to `$tmp'.
  22208. $debug ||
  22209. {
  22210. tmp= ac_tmp=
  22211. trap 'exit_status=$?
  22212. : "${ac_tmp:=$tmp}"
  22213. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22214. ' 0
  22215. trap 'as_fn_exit 1' 1 2 13 15
  22216. }
  22217. # Create a (secure) tmp directory for tmp files.
  22218. {
  22219. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22220. test -d "$tmp"
  22221. } ||
  22222. {
  22223. tmp=./conf$$-$RANDOM
  22224. (umask 077 && mkdir "$tmp")
  22225. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22226. ac_tmp=$tmp
  22227. # Set up the scripts for CONFIG_FILES section.
  22228. # No need to generate them if there are no CONFIG_FILES.
  22229. # This happens for instance with `./config.status config.h'.
  22230. if test -n "$CONFIG_FILES"; then
  22231. ac_cr=`echo X | tr X '\015'`
  22232. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22233. # But we know of no other shell where ac_cr would be empty at this
  22234. # point, so we can use a bashism as a fallback.
  22235. if test "x$ac_cr" = x; then
  22236. eval ac_cr=\$\'\\r\'
  22237. fi
  22238. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22239. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22240. ac_cs_awk_cr='\\r'
  22241. else
  22242. ac_cs_awk_cr=$ac_cr
  22243. fi
  22244. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22245. _ACEOF
  22246. {
  22247. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22248. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22249. echo "_ACEOF"
  22250. } >conf$$subs.sh ||
  22251. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22252. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22253. ac_delim='%!_!# '
  22254. for ac_last_try in false false false false false :; do
  22255. . ./conf$$subs.sh ||
  22256. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22257. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22258. if test $ac_delim_n = $ac_delim_num; then
  22259. break
  22260. elif $ac_last_try; then
  22261. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22262. else
  22263. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22264. fi
  22265. done
  22266. rm -f conf$$subs.sh
  22267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22268. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22269. _ACEOF
  22270. sed -n '
  22271. h
  22272. s/^/S["/; s/!.*/"]=/
  22273. p
  22274. g
  22275. s/^[^!]*!//
  22276. :repl
  22277. t repl
  22278. s/'"$ac_delim"'$//
  22279. t delim
  22280. :nl
  22281. h
  22282. s/\(.\{148\}\)..*/\1/
  22283. t more1
  22284. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22285. p
  22286. n
  22287. b repl
  22288. :more1
  22289. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22290. p
  22291. g
  22292. s/.\{148\}//
  22293. t nl
  22294. :delim
  22295. h
  22296. s/\(.\{148\}\)..*/\1/
  22297. t more2
  22298. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22299. p
  22300. b
  22301. :more2
  22302. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22303. p
  22304. g
  22305. s/.\{148\}//
  22306. t delim
  22307. ' <conf$$subs.awk | sed '
  22308. /^[^""]/{
  22309. N
  22310. s/\n//
  22311. }
  22312. ' >>$CONFIG_STATUS || ac_write_fail=1
  22313. rm -f conf$$subs.awk
  22314. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22315. _ACAWK
  22316. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22317. for (key in S) S_is_set[key] = 1
  22318. FS = ""
  22319. }
  22320. {
  22321. line = $ 0
  22322. nfields = split(line, field, "@")
  22323. substed = 0
  22324. len = length(field[1])
  22325. for (i = 2; i < nfields; i++) {
  22326. key = field[i]
  22327. keylen = length(key)
  22328. if (S_is_set[key]) {
  22329. value = S[key]
  22330. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22331. len += length(value) + length(field[++i])
  22332. substed = 1
  22333. } else
  22334. len += 1 + keylen
  22335. }
  22336. print line
  22337. }
  22338. _ACAWK
  22339. _ACEOF
  22340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22341. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22342. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22343. else
  22344. cat
  22345. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22346. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22347. _ACEOF
  22348. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22349. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22350. # trailing colons and then remove the whole line if VPATH becomes empty
  22351. # (actually we leave an empty line to preserve line numbers).
  22352. if test "x$srcdir" = x.; then
  22353. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22354. h
  22355. s///
  22356. s/^/:/
  22357. s/[ ]*$/:/
  22358. s/:\$(srcdir):/:/g
  22359. s/:\${srcdir}:/:/g
  22360. s/:@srcdir@:/:/g
  22361. s/^:*//
  22362. s/:*$//
  22363. x
  22364. s/\(=[ ]*\).*/\1/
  22365. G
  22366. s/\n//
  22367. s/^[^=]*=[ ]*$//
  22368. }'
  22369. fi
  22370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22371. fi # test -n "$CONFIG_FILES"
  22372. # Set up the scripts for CONFIG_HEADERS section.
  22373. # No need to generate them if there are no CONFIG_HEADERS.
  22374. # This happens for instance with `./config.status Makefile'.
  22375. if test -n "$CONFIG_HEADERS"; then
  22376. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22377. BEGIN {
  22378. _ACEOF
  22379. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22380. # here-document in config.status, that substitutes the proper values into
  22381. # config.h.in to produce config.h.
  22382. # Create a delimiter string that does not exist in confdefs.h, to ease
  22383. # handling of long lines.
  22384. ac_delim='%!_!# '
  22385. for ac_last_try in false false :; do
  22386. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22387. if test -z "$ac_tt"; then
  22388. break
  22389. elif $ac_last_try; then
  22390. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22391. else
  22392. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22393. fi
  22394. done
  22395. # For the awk script, D is an array of macro values keyed by name,
  22396. # likewise P contains macro parameters if any. Preserve backslash
  22397. # newline sequences.
  22398. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22399. sed -n '
  22400. s/.\{148\}/&'"$ac_delim"'/g
  22401. t rset
  22402. :rset
  22403. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22404. t def
  22405. d
  22406. :def
  22407. s/\\$//
  22408. t bsnl
  22409. s/["\\]/\\&/g
  22410. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22411. D["\1"]=" \3"/p
  22412. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22413. d
  22414. :bsnl
  22415. s/["\\]/\\&/g
  22416. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22417. D["\1"]=" \3\\\\\\n"\\/p
  22418. t cont
  22419. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22420. t cont
  22421. d
  22422. :cont
  22423. n
  22424. s/.\{148\}/&'"$ac_delim"'/g
  22425. t clear
  22426. :clear
  22427. s/\\$//
  22428. t bsnlc
  22429. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22430. d
  22431. :bsnlc
  22432. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22433. b cont
  22434. ' <confdefs.h | sed '
  22435. s/'"$ac_delim"'/"\\\
  22436. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22438. for (key in D) D_is_set[key] = 1
  22439. FS = ""
  22440. }
  22441. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22442. line = \$ 0
  22443. split(line, arg, " ")
  22444. if (arg[1] == "#") {
  22445. defundef = arg[2]
  22446. mac1 = arg[3]
  22447. } else {
  22448. defundef = substr(arg[1], 2)
  22449. mac1 = arg[2]
  22450. }
  22451. split(mac1, mac2, "(") #)
  22452. macro = mac2[1]
  22453. prefix = substr(line, 1, index(line, defundef) - 1)
  22454. if (D_is_set[macro]) {
  22455. # Preserve the white space surrounding the "#".
  22456. print prefix "define", macro P[macro] D[macro]
  22457. next
  22458. } else {
  22459. # Replace #undef with comments. This is necessary, for example,
  22460. # in the case of _POSIX_SOURCE, which is predefined and required
  22461. # on some systems where configure will not decide to define it.
  22462. if (defundef == "undef") {
  22463. print "/*", prefix defundef, macro, "*/"
  22464. next
  22465. }
  22466. }
  22467. }
  22468. { print }
  22469. _ACAWK
  22470. _ACEOF
  22471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22472. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22473. fi # test -n "$CONFIG_HEADERS"
  22474. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22475. shift
  22476. for ac_tag
  22477. do
  22478. case $ac_tag in
  22479. :[FHLC]) ac_mode=$ac_tag; continue;;
  22480. esac
  22481. case $ac_mode$ac_tag in
  22482. :[FHL]*:*);;
  22483. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22484. :[FH]-) ac_tag=-:-;;
  22485. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22486. esac
  22487. ac_save_IFS=$IFS
  22488. IFS=:
  22489. set x $ac_tag
  22490. IFS=$ac_save_IFS
  22491. shift
  22492. ac_file=$1
  22493. shift
  22494. case $ac_mode in
  22495. :L) ac_source=$1;;
  22496. :[FH])
  22497. ac_file_inputs=
  22498. for ac_f
  22499. do
  22500. case $ac_f in
  22501. -) ac_f="$ac_tmp/stdin";;
  22502. *) # Look for the file first in the build tree, then in the source tree
  22503. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22504. # because $ac_f cannot contain `:'.
  22505. test -f "$ac_f" ||
  22506. case $ac_f in
  22507. [\\/$]*) false;;
  22508. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22509. esac ||
  22510. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22511. esac
  22512. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22513. as_fn_append ac_file_inputs " '$ac_f'"
  22514. done
  22515. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22516. # use $as_me), people would be surprised to read:
  22517. # /* config.h. Generated by config.status. */
  22518. configure_input='Generated from '`
  22519. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22520. `' by configure.'
  22521. if test x"$ac_file" != x-; then
  22522. configure_input="$ac_file. $configure_input"
  22523. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22524. $as_echo "$as_me: creating $ac_file" >&6;}
  22525. fi
  22526. # Neutralize special characters interpreted by sed in replacement strings.
  22527. case $configure_input in #(
  22528. *\&* | *\|* | *\\* )
  22529. ac_sed_conf_input=`$as_echo "$configure_input" |
  22530. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22531. *) ac_sed_conf_input=$configure_input;;
  22532. esac
  22533. case $ac_tag in
  22534. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22535. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22536. esac
  22537. ;;
  22538. esac
  22539. ac_dir=`$as_dirname -- "$ac_file" ||
  22540. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22541. X"$ac_file" : 'X\(//\)[^/]' \| \
  22542. X"$ac_file" : 'X\(//\)$' \| \
  22543. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22544. $as_echo X"$ac_file" |
  22545. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22546. s//\1/
  22547. q
  22548. }
  22549. /^X\(\/\/\)[^/].*/{
  22550. s//\1/
  22551. q
  22552. }
  22553. /^X\(\/\/\)$/{
  22554. s//\1/
  22555. q
  22556. }
  22557. /^X\(\/\).*/{
  22558. s//\1/
  22559. q
  22560. }
  22561. s/.*/./; q'`
  22562. as_dir="$ac_dir"; as_fn_mkdir_p
  22563. ac_builddir=.
  22564. case "$ac_dir" in
  22565. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22566. *)
  22567. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22568. # A ".." for each directory in $ac_dir_suffix.
  22569. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22570. case $ac_top_builddir_sub in
  22571. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22572. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22573. esac ;;
  22574. esac
  22575. ac_abs_top_builddir=$ac_pwd
  22576. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22577. # for backward compatibility:
  22578. ac_top_builddir=$ac_top_build_prefix
  22579. case $srcdir in
  22580. .) # We are building in place.
  22581. ac_srcdir=.
  22582. ac_top_srcdir=$ac_top_builddir_sub
  22583. ac_abs_top_srcdir=$ac_pwd ;;
  22584. [\\/]* | ?:[\\/]* ) # Absolute name.
  22585. ac_srcdir=$srcdir$ac_dir_suffix;
  22586. ac_top_srcdir=$srcdir
  22587. ac_abs_top_srcdir=$srcdir ;;
  22588. *) # Relative name.
  22589. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22590. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22591. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22592. esac
  22593. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22594. case $ac_mode in
  22595. :F)
  22596. #
  22597. # CONFIG_FILE
  22598. #
  22599. case $INSTALL in
  22600. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22601. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22602. esac
  22603. _ACEOF
  22604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22605. # If the template does not know about datarootdir, expand it.
  22606. # FIXME: This hack should be removed a few years after 2.60.
  22607. ac_datarootdir_hack=; ac_datarootdir_seen=
  22608. ac_sed_dataroot='
  22609. /datarootdir/ {
  22610. p
  22611. q
  22612. }
  22613. /@datadir@/p
  22614. /@docdir@/p
  22615. /@infodir@/p
  22616. /@localedir@/p
  22617. /@mandir@/p'
  22618. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22619. *datarootdir*) ac_datarootdir_seen=yes;;
  22620. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22622. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22623. _ACEOF
  22624. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22625. ac_datarootdir_hack='
  22626. s&@datadir@&$datadir&g
  22627. s&@docdir@&$docdir&g
  22628. s&@infodir@&$infodir&g
  22629. s&@localedir@&$localedir&g
  22630. s&@mandir@&$mandir&g
  22631. s&\\\${datarootdir}&$datarootdir&g' ;;
  22632. esac
  22633. _ACEOF
  22634. # Neutralize VPATH when `$srcdir' = `.'.
  22635. # Shell code in configure.ac might set extrasub.
  22636. # FIXME: do we really want to maintain this feature?
  22637. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22638. ac_sed_extra="$ac_vpsub
  22639. $extrasub
  22640. _ACEOF
  22641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22642. :t
  22643. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22644. s|@configure_input@|$ac_sed_conf_input|;t t
  22645. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22646. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22647. s&@srcdir@&$ac_srcdir&;t t
  22648. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22649. s&@top_srcdir@&$ac_top_srcdir&;t t
  22650. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22651. s&@builddir@&$ac_builddir&;t t
  22652. s&@abs_builddir@&$ac_abs_builddir&;t t
  22653. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22654. s&@INSTALL@&$ac_INSTALL&;t t
  22655. $ac_datarootdir_hack
  22656. "
  22657. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22658. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22659. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22660. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22661. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22662. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22664. which seems to be undefined. Please make sure it is defined" >&5
  22665. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22666. which seems to be undefined. Please make sure it is defined" >&2;}
  22667. rm -f "$ac_tmp/stdin"
  22668. case $ac_file in
  22669. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22670. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22671. esac \
  22672. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22673. ;;
  22674. :H)
  22675. #
  22676. # CONFIG_HEADER
  22677. #
  22678. if test x"$ac_file" != x-; then
  22679. {
  22680. $as_echo "/* $configure_input */" \
  22681. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22682. } >"$ac_tmp/config.h" \
  22683. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22684. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22685. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22686. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22687. else
  22688. rm -f "$ac_file"
  22689. mv "$ac_tmp/config.h" "$ac_file" \
  22690. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22691. fi
  22692. else
  22693. $as_echo "/* $configure_input */" \
  22694. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22695. || as_fn_error $? "could not create -" "$LINENO" 5
  22696. fi
  22697. ;;
  22698. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22699. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22700. ;;
  22701. esac
  22702. case $ac_file$ac_mode in
  22703. "libtool":C)
  22704. # See if we are running on zsh, and set the options which allow our
  22705. # commands through without removal of \ escapes.
  22706. if test -n "${ZSH_VERSION+set}" ; then
  22707. setopt NO_GLOB_SUBST
  22708. fi
  22709. cfgfile="${ofile}T"
  22710. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22711. $RM "$cfgfile"
  22712. cat <<_LT_EOF >> "$cfgfile"
  22713. #! $SHELL
  22714. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22715. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22716. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22717. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22718. #
  22719. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22720. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22721. # Foundation, Inc.
  22722. # Written by Gordon Matzigkeit, 1996
  22723. #
  22724. # This file is part of GNU Libtool.
  22725. #
  22726. # GNU Libtool is free software; you can redistribute it and/or
  22727. # modify it under the terms of the GNU General Public License as
  22728. # published by the Free Software Foundation; either version 2 of
  22729. # the License, or (at your option) any later version.
  22730. #
  22731. # As a special exception to the GNU General Public License,
  22732. # if you distribute this file as part of a program or library that
  22733. # is built using GNU Libtool, you may include this file under the
  22734. # same distribution terms that you use for the rest of that program.
  22735. #
  22736. # GNU Libtool is distributed in the hope that it will be useful,
  22737. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22738. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22739. # GNU General Public License for more details.
  22740. #
  22741. # You should have received a copy of the GNU General Public License
  22742. # along with GNU Libtool; see the file COPYING. If not, a copy
  22743. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22744. # obtained by writing to the Free Software Foundation, Inc.,
  22745. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22746. # The names of the tagged configurations supported by this script.
  22747. available_tags="CXX "
  22748. # ### BEGIN LIBTOOL CONFIG
  22749. # Which release of libtool.m4 was used?
  22750. macro_version=$macro_version
  22751. macro_revision=$macro_revision
  22752. # Assembler program.
  22753. AS=$lt_AS
  22754. # DLL creation program.
  22755. DLLTOOL=$lt_DLLTOOL
  22756. # Object dumper program.
  22757. OBJDUMP=$lt_OBJDUMP
  22758. # Whether or not to build shared libraries.
  22759. build_libtool_libs=$enable_shared
  22760. # Whether or not to build static libraries.
  22761. build_old_libs=$enable_static
  22762. # What type of objects to build.
  22763. pic_mode=$pic_mode
  22764. # Whether or not to optimize for fast installation.
  22765. fast_install=$enable_fast_install
  22766. # Shell to use when invoking shell scripts.
  22767. SHELL=$lt_SHELL
  22768. # An echo program that protects backslashes.
  22769. ECHO=$lt_ECHO
  22770. # The PATH separator for the build system.
  22771. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22772. # The host system.
  22773. host_alias=$host_alias
  22774. host=$host
  22775. host_os=$host_os
  22776. # The build system.
  22777. build_alias=$build_alias
  22778. build=$build
  22779. build_os=$build_os
  22780. # A sed program that does not truncate output.
  22781. SED=$lt_SED
  22782. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22783. Xsed="\$SED -e 1s/^X//"
  22784. # A grep program that handles long lines.
  22785. GREP=$lt_GREP
  22786. # An ERE matcher.
  22787. EGREP=$lt_EGREP
  22788. # A literal string matcher.
  22789. FGREP=$lt_FGREP
  22790. # A BSD- or MS-compatible name lister.
  22791. NM=$lt_NM
  22792. # Whether we need soft or hard links.
  22793. LN_S=$lt_LN_S
  22794. # What is the maximum length of a command?
  22795. max_cmd_len=$max_cmd_len
  22796. # Object file suffix (normally "o").
  22797. objext=$ac_objext
  22798. # Executable file suffix (normally "").
  22799. exeext=$exeext
  22800. # whether the shell understands "unset".
  22801. lt_unset=$lt_unset
  22802. # turn spaces into newlines.
  22803. SP2NL=$lt_lt_SP2NL
  22804. # turn newlines into spaces.
  22805. NL2SP=$lt_lt_NL2SP
  22806. # convert \$build file names to \$host format.
  22807. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22808. # convert \$build files to toolchain format.
  22809. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22810. # Method to check whether dependent libraries are shared objects.
  22811. deplibs_check_method=$lt_deplibs_check_method
  22812. # Command to use when deplibs_check_method = "file_magic".
  22813. file_magic_cmd=$lt_file_magic_cmd
  22814. # How to find potential files when deplibs_check_method = "file_magic".
  22815. file_magic_glob=$lt_file_magic_glob
  22816. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22817. want_nocaseglob=$lt_want_nocaseglob
  22818. # Command to associate shared and link libraries.
  22819. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22820. # The archiver.
  22821. AR=$lt_AR
  22822. # Flags to create an archive.
  22823. AR_FLAGS=$lt_AR_FLAGS
  22824. # How to feed a file listing to the archiver.
  22825. archiver_list_spec=$lt_archiver_list_spec
  22826. # A symbol stripping program.
  22827. STRIP=$lt_STRIP
  22828. # Commands used to install an old-style archive.
  22829. RANLIB=$lt_RANLIB
  22830. old_postinstall_cmds=$lt_old_postinstall_cmds
  22831. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22832. # Whether to use a lock for old archive extraction.
  22833. lock_old_archive_extraction=$lock_old_archive_extraction
  22834. # A C compiler.
  22835. LTCC=$lt_CC
  22836. # LTCC compiler flags.
  22837. LTCFLAGS=$lt_CFLAGS
  22838. # Take the output of nm and produce a listing of raw symbols and C names.
  22839. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22840. # Transform the output of nm in a proper C declaration.
  22841. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22842. # Transform the output of nm in a C name address pair.
  22843. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22844. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22845. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22846. # Specify filename containing input files for \$NM.
  22847. nm_file_list_spec=$lt_nm_file_list_spec
  22848. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22849. lt_sysroot=$lt_sysroot
  22850. # The name of the directory that contains temporary libtool files.
  22851. objdir=$objdir
  22852. # Used to examine libraries when file_magic_cmd begins with "file".
  22853. MAGIC_CMD=$MAGIC_CMD
  22854. # Must we lock files when doing compilation?
  22855. need_locks=$lt_need_locks
  22856. # Manifest tool.
  22857. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22858. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22859. DSYMUTIL=$lt_DSYMUTIL
  22860. # Tool to change global to local symbols on Mac OS X.
  22861. NMEDIT=$lt_NMEDIT
  22862. # Tool to manipulate fat objects and archives on Mac OS X.
  22863. LIPO=$lt_LIPO
  22864. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22865. OTOOL=$lt_OTOOL
  22866. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22867. OTOOL64=$lt_OTOOL64
  22868. # Old archive suffix (normally "a").
  22869. libext=$libext
  22870. # Shared library suffix (normally ".so").
  22871. shrext_cmds=$lt_shrext_cmds
  22872. # The commands to extract the exported symbol list from a shared archive.
  22873. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22874. # Variables whose values should be saved in libtool wrapper scripts and
  22875. # restored at link time.
  22876. variables_saved_for_relink=$lt_variables_saved_for_relink
  22877. # Do we need the "lib" prefix for modules?
  22878. need_lib_prefix=$need_lib_prefix
  22879. # Do we need a version for libraries?
  22880. need_version=$need_version
  22881. # Library versioning type.
  22882. version_type=$version_type
  22883. # Shared library runtime path variable.
  22884. runpath_var=$runpath_var
  22885. # Shared library path variable.
  22886. shlibpath_var=$shlibpath_var
  22887. # Is shlibpath searched before the hard-coded library search path?
  22888. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22889. # Format of library name prefix.
  22890. libname_spec=$lt_libname_spec
  22891. # List of archive names. First name is the real one, the rest are links.
  22892. # The last name is the one that the linker finds with -lNAME
  22893. library_names_spec=$lt_library_names_spec
  22894. # The coded name of the library, if different from the real name.
  22895. soname_spec=$lt_soname_spec
  22896. # Permission mode override for installation of shared libraries.
  22897. install_override_mode=$lt_install_override_mode
  22898. # Command to use after installation of a shared archive.
  22899. postinstall_cmds=$lt_postinstall_cmds
  22900. # Command to use after uninstallation of a shared archive.
  22901. postuninstall_cmds=$lt_postuninstall_cmds
  22902. # Commands used to finish a libtool library installation in a directory.
  22903. finish_cmds=$lt_finish_cmds
  22904. # As "finish_cmds", except a single script fragment to be evaled but
  22905. # not shown.
  22906. finish_eval=$lt_finish_eval
  22907. # Whether we should hardcode library paths into libraries.
  22908. hardcode_into_libs=$hardcode_into_libs
  22909. # Compile-time system search path for libraries.
  22910. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22911. # Run-time system search path for libraries.
  22912. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22913. # Whether dlopen is supported.
  22914. dlopen_support=$enable_dlopen
  22915. # Whether dlopen of programs is supported.
  22916. dlopen_self=$enable_dlopen_self
  22917. # Whether dlopen of statically linked programs is supported.
  22918. dlopen_self_static=$enable_dlopen_self_static
  22919. # Commands to strip libraries.
  22920. old_striplib=$lt_old_striplib
  22921. striplib=$lt_striplib
  22922. # The linker used to build libraries.
  22923. LD=$lt_LD
  22924. # How to create reloadable object files.
  22925. reload_flag=$lt_reload_flag
  22926. reload_cmds=$lt_reload_cmds
  22927. # Commands used to build an old-style archive.
  22928. old_archive_cmds=$lt_old_archive_cmds
  22929. # A language specific compiler.
  22930. CC=$lt_compiler
  22931. # Is the compiler the GNU compiler?
  22932. with_gcc=$GCC
  22933. # Compiler flag to turn off builtin functions.
  22934. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22935. # Additional compiler flags for building library objects.
  22936. pic_flag=$lt_lt_prog_compiler_pic
  22937. # How to pass a linker flag through the compiler.
  22938. wl=$lt_lt_prog_compiler_wl
  22939. # Compiler flag to prevent dynamic linking.
  22940. link_static_flag=$lt_lt_prog_compiler_static
  22941. # Does compiler simultaneously support -c and -o options?
  22942. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22943. # Whether or not to add -lc for building shared libraries.
  22944. build_libtool_need_lc=$archive_cmds_need_lc
  22945. # Whether or not to disallow shared libs when runtime libs are static.
  22946. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22947. # Compiler flag to allow reflexive dlopens.
  22948. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22949. # Compiler flag to generate shared objects directly from archives.
  22950. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22951. # Whether the compiler copes with passing no objects directly.
  22952. compiler_needs_object=$lt_compiler_needs_object
  22953. # Create an old-style archive from a shared archive.
  22954. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22955. # Create a temporary old-style archive to link instead of a shared archive.
  22956. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22957. # Commands used to build a shared archive.
  22958. archive_cmds=$lt_archive_cmds
  22959. archive_expsym_cmds=$lt_archive_expsym_cmds
  22960. # Commands used to build a loadable module if different from building
  22961. # a shared archive.
  22962. module_cmds=$lt_module_cmds
  22963. module_expsym_cmds=$lt_module_expsym_cmds
  22964. # Whether we are building with GNU ld or not.
  22965. with_gnu_ld=$lt_with_gnu_ld
  22966. # Flag that allows shared libraries with undefined symbols to be built.
  22967. allow_undefined_flag=$lt_allow_undefined_flag
  22968. # Flag that enforces no undefined symbols.
  22969. no_undefined_flag=$lt_no_undefined_flag
  22970. # Flag to hardcode \$libdir into a binary during linking.
  22971. # This must work even if \$libdir does not exist
  22972. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22973. # Whether we need a single "-rpath" flag with a separated argument.
  22974. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22975. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22976. # DIR into the resulting binary.
  22977. hardcode_direct=$hardcode_direct
  22978. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22979. # DIR into the resulting binary and the resulting library dependency is
  22980. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22981. # library is relocated.
  22982. hardcode_direct_absolute=$hardcode_direct_absolute
  22983. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22984. # into the resulting binary.
  22985. hardcode_minus_L=$hardcode_minus_L
  22986. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22987. # into the resulting binary.
  22988. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22989. # Set to "yes" if building a shared library automatically hardcodes DIR
  22990. # into the library and all subsequent libraries and executables linked
  22991. # against it.
  22992. hardcode_automatic=$hardcode_automatic
  22993. # Set to yes if linker adds runtime paths of dependent libraries
  22994. # to runtime path list.
  22995. inherit_rpath=$inherit_rpath
  22996. # Whether libtool must link a program against all its dependency libraries.
  22997. link_all_deplibs=$link_all_deplibs
  22998. # Set to "yes" if exported symbols are required.
  22999. always_export_symbols=$always_export_symbols
  23000. # The commands to list exported symbols.
  23001. export_symbols_cmds=$lt_export_symbols_cmds
  23002. # Symbols that should not be listed in the preloaded symbols.
  23003. exclude_expsyms=$lt_exclude_expsyms
  23004. # Symbols that must always be exported.
  23005. include_expsyms=$lt_include_expsyms
  23006. # Commands necessary for linking programs (against libraries) with templates.
  23007. prelink_cmds=$lt_prelink_cmds
  23008. # Commands necessary for finishing linking programs.
  23009. postlink_cmds=$lt_postlink_cmds
  23010. # Specify filename containing input files.
  23011. file_list_spec=$lt_file_list_spec
  23012. # How to hardcode a shared library path into an executable.
  23013. hardcode_action=$hardcode_action
  23014. # The directories searched by this compiler when creating a shared library.
  23015. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23016. # Dependencies to place before and after the objects being linked to
  23017. # create a shared library.
  23018. predep_objects=$lt_predep_objects
  23019. postdep_objects=$lt_postdep_objects
  23020. predeps=$lt_predeps
  23021. postdeps=$lt_postdeps
  23022. # The library search path used internally by the compiler when linking
  23023. # a shared library.
  23024. compiler_lib_search_path=$lt_compiler_lib_search_path
  23025. # ### END LIBTOOL CONFIG
  23026. _LT_EOF
  23027. case $host_os in
  23028. aix3*)
  23029. cat <<\_LT_EOF >> "$cfgfile"
  23030. # AIX sometimes has problems with the GCC collect2 program. For some
  23031. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23032. # vanish in a puff of smoke.
  23033. if test "X${COLLECT_NAMES+set}" != Xset; then
  23034. COLLECT_NAMES=
  23035. export COLLECT_NAMES
  23036. fi
  23037. _LT_EOF
  23038. ;;
  23039. esac
  23040. ltmain="$ac_aux_dir/ltmain.sh"
  23041. # We use sed instead of cat because bash on DJGPP gets confused if
  23042. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23043. # text mode, it properly converts lines to CR/LF. This bash problem
  23044. # is reportedly fixed, but why not run on old versions too?
  23045. sed '$q' "$ltmain" >> "$cfgfile" \
  23046. || (rm -f "$cfgfile"; exit 1)
  23047. if test x"$xsi_shell" = xyes; then
  23048. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23049. func_dirname ()\
  23050. {\
  23051. \ case ${1} in\
  23052. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23053. \ * ) func_dirname_result="${3}" ;;\
  23054. \ esac\
  23055. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23056. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23057. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23058. test 0 -eq $? || _lt_function_replace_fail=:
  23059. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23060. func_basename ()\
  23061. {\
  23062. \ func_basename_result="${1##*/}"\
  23063. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23064. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23065. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23066. test 0 -eq $? || _lt_function_replace_fail=:
  23067. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23068. func_dirname_and_basename ()\
  23069. {\
  23070. \ case ${1} in\
  23071. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23072. \ * ) func_dirname_result="${3}" ;;\
  23073. \ esac\
  23074. \ func_basename_result="${1##*/}"\
  23075. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23076. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23077. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23078. test 0 -eq $? || _lt_function_replace_fail=:
  23079. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23080. func_stripname ()\
  23081. {\
  23082. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23083. \ # positional parameters, so assign one to ordinary parameter first.\
  23084. \ func_stripname_result=${3}\
  23085. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23086. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23087. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23088. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23089. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23090. test 0 -eq $? || _lt_function_replace_fail=:
  23091. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23092. func_split_long_opt ()\
  23093. {\
  23094. \ func_split_long_opt_name=${1%%=*}\
  23095. \ func_split_long_opt_arg=${1#*=}\
  23096. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23097. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23098. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23099. test 0 -eq $? || _lt_function_replace_fail=:
  23100. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23101. func_split_short_opt ()\
  23102. {\
  23103. \ func_split_short_opt_arg=${1#??}\
  23104. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23105. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23106. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23107. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23108. test 0 -eq $? || _lt_function_replace_fail=:
  23109. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23110. func_lo2o ()\
  23111. {\
  23112. \ case ${1} in\
  23113. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23114. \ *) func_lo2o_result=${1} ;;\
  23115. \ esac\
  23116. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23117. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23118. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23119. test 0 -eq $? || _lt_function_replace_fail=:
  23120. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23121. func_xform ()\
  23122. {\
  23123. func_xform_result=${1%.*}.lo\
  23124. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23125. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23126. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23127. test 0 -eq $? || _lt_function_replace_fail=:
  23128. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23129. func_arith ()\
  23130. {\
  23131. func_arith_result=$(( $* ))\
  23132. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23133. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23134. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23135. test 0 -eq $? || _lt_function_replace_fail=:
  23136. sed -e '/^func_len ()$/,/^} # func_len /c\
  23137. func_len ()\
  23138. {\
  23139. func_len_result=${#1}\
  23140. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23141. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23142. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23143. test 0 -eq $? || _lt_function_replace_fail=:
  23144. fi
  23145. if test x"$lt_shell_append" = xyes; then
  23146. sed -e '/^func_append ()$/,/^} # func_append /c\
  23147. func_append ()\
  23148. {\
  23149. eval "${1}+=\\${2}"\
  23150. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23151. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23152. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23153. test 0 -eq $? || _lt_function_replace_fail=:
  23154. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23155. func_append_quoted ()\
  23156. {\
  23157. \ func_quote_for_eval "${2}"\
  23158. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23159. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23160. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23161. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23162. test 0 -eq $? || _lt_function_replace_fail=:
  23163. # Save a `func_append' function call where possible by direct use of '+='
  23164. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23165. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23166. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23167. test 0 -eq $? || _lt_function_replace_fail=:
  23168. else
  23169. # Save a `func_append' function call even when '+=' is not available
  23170. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23171. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23172. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23173. test 0 -eq $? || _lt_function_replace_fail=:
  23174. fi
  23175. if test x"$_lt_function_replace_fail" = x":"; then
  23176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23177. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23178. fi
  23179. mv -f "$cfgfile" "$ofile" ||
  23180. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23181. chmod +x "$ofile"
  23182. cat <<_LT_EOF >> "$ofile"
  23183. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23184. # The linker used to build libraries.
  23185. LD=$lt_LD_CXX
  23186. # How to create reloadable object files.
  23187. reload_flag=$lt_reload_flag_CXX
  23188. reload_cmds=$lt_reload_cmds_CXX
  23189. # Commands used to build an old-style archive.
  23190. old_archive_cmds=$lt_old_archive_cmds_CXX
  23191. # A language specific compiler.
  23192. CC=$lt_compiler_CXX
  23193. # Is the compiler the GNU compiler?
  23194. with_gcc=$GCC_CXX
  23195. # Compiler flag to turn off builtin functions.
  23196. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23197. # Additional compiler flags for building library objects.
  23198. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23199. # How to pass a linker flag through the compiler.
  23200. wl=$lt_lt_prog_compiler_wl_CXX
  23201. # Compiler flag to prevent dynamic linking.
  23202. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23203. # Does compiler simultaneously support -c and -o options?
  23204. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23205. # Whether or not to add -lc for building shared libraries.
  23206. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23207. # Whether or not to disallow shared libs when runtime libs are static.
  23208. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23209. # Compiler flag to allow reflexive dlopens.
  23210. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23211. # Compiler flag to generate shared objects directly from archives.
  23212. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23213. # Whether the compiler copes with passing no objects directly.
  23214. compiler_needs_object=$lt_compiler_needs_object_CXX
  23215. # Create an old-style archive from a shared archive.
  23216. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23217. # Create a temporary old-style archive to link instead of a shared archive.
  23218. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23219. # Commands used to build a shared archive.
  23220. archive_cmds=$lt_archive_cmds_CXX
  23221. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23222. # Commands used to build a loadable module if different from building
  23223. # a shared archive.
  23224. module_cmds=$lt_module_cmds_CXX
  23225. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23226. # Whether we are building with GNU ld or not.
  23227. with_gnu_ld=$lt_with_gnu_ld_CXX
  23228. # Flag that allows shared libraries with undefined symbols to be built.
  23229. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23230. # Flag that enforces no undefined symbols.
  23231. no_undefined_flag=$lt_no_undefined_flag_CXX
  23232. # Flag to hardcode \$libdir into a binary during linking.
  23233. # This must work even if \$libdir does not exist
  23234. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23235. # Whether we need a single "-rpath" flag with a separated argument.
  23236. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23237. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23238. # DIR into the resulting binary.
  23239. hardcode_direct=$hardcode_direct_CXX
  23240. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23241. # DIR into the resulting binary and the resulting library dependency is
  23242. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23243. # library is relocated.
  23244. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23245. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23246. # into the resulting binary.
  23247. hardcode_minus_L=$hardcode_minus_L_CXX
  23248. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23249. # into the resulting binary.
  23250. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23251. # Set to "yes" if building a shared library automatically hardcodes DIR
  23252. # into the library and all subsequent libraries and executables linked
  23253. # against it.
  23254. hardcode_automatic=$hardcode_automatic_CXX
  23255. # Set to yes if linker adds runtime paths of dependent libraries
  23256. # to runtime path list.
  23257. inherit_rpath=$inherit_rpath_CXX
  23258. # Whether libtool must link a program against all its dependency libraries.
  23259. link_all_deplibs=$link_all_deplibs_CXX
  23260. # Set to "yes" if exported symbols are required.
  23261. always_export_symbols=$always_export_symbols_CXX
  23262. # The commands to list exported symbols.
  23263. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23264. # Symbols that should not be listed in the preloaded symbols.
  23265. exclude_expsyms=$lt_exclude_expsyms_CXX
  23266. # Symbols that must always be exported.
  23267. include_expsyms=$lt_include_expsyms_CXX
  23268. # Commands necessary for linking programs (against libraries) with templates.
  23269. prelink_cmds=$lt_prelink_cmds_CXX
  23270. # Commands necessary for finishing linking programs.
  23271. postlink_cmds=$lt_postlink_cmds_CXX
  23272. # Specify filename containing input files.
  23273. file_list_spec=$lt_file_list_spec_CXX
  23274. # How to hardcode a shared library path into an executable.
  23275. hardcode_action=$hardcode_action_CXX
  23276. # The directories searched by this compiler when creating a shared library.
  23277. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23278. # Dependencies to place before and after the objects being linked to
  23279. # create a shared library.
  23280. predep_objects=$lt_predep_objects_CXX
  23281. postdep_objects=$lt_postdep_objects_CXX
  23282. predeps=$lt_predeps_CXX
  23283. postdeps=$lt_postdeps_CXX
  23284. # The library search path used internally by the compiler when linking
  23285. # a shared library.
  23286. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23287. # ### END LIBTOOL TAG CONFIG: CXX
  23288. _LT_EOF
  23289. ;;
  23290. "sdl2_config":C) chmod a+x sdl2-config ;;
  23291. "summary":C) echo -en "$SUMMARY" ;;
  23292. esac
  23293. done # for ac_tag
  23294. as_fn_exit 0
  23295. _ACEOF
  23296. ac_clean_files=$ac_clean_files_save
  23297. test $ac_write_fail = 0 ||
  23298. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23299. # configure is writing to config.log, and then calls config.status.
  23300. # config.status does its own redirection, appending to config.log.
  23301. # Unfortunately, on DOS this fails, as config.log is still kept open
  23302. # by configure, so config.status won't be able to write to it; its
  23303. # output is simply discarded. So we exec the FD to /dev/null,
  23304. # effectively closing config.log, so it can be properly (re)opened and
  23305. # appended to by config.status. When coming back to configure, we
  23306. # need to make the FD available again.
  23307. if test "$no_create" != yes; then
  23308. ac_cs_success=:
  23309. ac_config_status_args=
  23310. test "$silent" = yes &&
  23311. ac_config_status_args="$ac_config_status_args --quiet"
  23312. exec 5>/dev/null
  23313. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23314. exec 5>>config.log
  23315. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23316. # would make configure fail if this is the last instruction.
  23317. $ac_cs_success || as_fn_exit 1
  23318. fi
  23319. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23321. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23322. fi