configure 836 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. IBUS_LIBS
  607. IBUS_CFLAGS
  608. DBUS_LIBS
  609. DBUS_CFLAGS
  610. LIBGBM_LIBS
  611. LIBGBM_CFLAGS
  612. LIBDRM_LIBS
  613. LIBDRM_CFLAGS
  614. DIRECTFB_LIBS
  615. DIRECTFB_CFLAGS
  616. X_EXTRA_LIBS
  617. X_LIBS
  618. X_PRE_LIBS
  619. X_CFLAGS
  620. XMKMF
  621. RPI_LIBS
  622. RPI_CFLAGS
  623. FUSIONSOUND_LIBS
  624. FUSIONSOUND_CFLAGS
  625. ARTSCONFIG
  626. PULSEAUDIO_LIBS
  627. PULSEAUDIO_CFLAGS
  628. ESD_LIBS
  629. ESD_CFLAGS
  630. ESD_CONFIG
  631. JACK_LIBS
  632. JACK_CFLAGS
  633. ALSA_LIBS
  634. ALSA_CFLAGS
  635. POW_LIB
  636. LIBOBJS
  637. ALLOCA
  638. PKG_CONFIG_LIBDIR
  639. PKG_CONFIG_PATH
  640. PKG_CONFIG
  641. SET_MAKE
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. CXXCPP
  646. ac_ct_CXX
  647. CXXFLAGS
  648. CXX
  649. LT_AGE
  650. LT_REVISION
  651. LT_CURRENT
  652. LT_RELEASE
  653. RC
  654. CPP
  655. OTOOL64
  656. OTOOL
  657. LIPO
  658. NMEDIT
  659. DSYMUTIL
  660. MANIFEST_TOOL
  661. AWK
  662. RANLIB
  663. STRIP
  664. ac_ct_AR
  665. AR
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. host_os
  683. host_vendor
  684. host_cpu
  685. host
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. LIBTOOL
  691. OBJDUMP
  692. DLLTOOL
  693. AS
  694. SDL_VERSION
  695. SDL_BINARY_AGE
  696. SDL_INTERFACE_AGE
  697. SDL_MICRO_VERSION
  698. SDL_MINOR_VERSION
  699. SDL_MAJOR_VERSION
  700. target_alias
  701. host_alias
  702. build_alias
  703. LIBS
  704. ECHO_T
  705. ECHO_N
  706. ECHO_C
  707. DEFS
  708. mandir
  709. localedir
  710. libdir
  711. psdir
  712. pdfdir
  713. dvidir
  714. htmldir
  715. infodir
  716. docdir
  717. oldincludedir
  718. includedir
  719. localstatedir
  720. sharedstatedir
  721. sysconfdir
  722. datadir
  723. datarootdir
  724. libexecdir
  725. sbindir
  726. bindir
  727. program_transform_name
  728. prefix
  729. exec_prefix
  730. PACKAGE_URL
  731. PACKAGE_BUGREPORT
  732. PACKAGE_STRING
  733. PACKAGE_VERSION
  734. PACKAGE_TARNAME
  735. PACKAGE_NAME
  736. PATH_SEPARATOR
  737. SHELL'
  738. ac_subst_files=''
  739. ac_user_opts='
  740. enable_option_checking
  741. enable_shared
  742. enable_static
  743. with_pic
  744. enable_fast_install
  745. with_gnu_ld
  746. with_sysroot
  747. enable_libtool_lock
  748. enable_assertions
  749. enable_dependency_tracking
  750. enable_libc
  751. enable_gcc_atomics
  752. enable_atomic
  753. enable_audio
  754. enable_video
  755. enable_render
  756. enable_events
  757. enable_joystick
  758. enable_haptic
  759. enable_sensor
  760. enable_power
  761. enable_filesystem
  762. enable_threads
  763. enable_timers
  764. enable_file
  765. enable_loadso
  766. enable_cpuinfo
  767. enable_assembly
  768. enable_ssemath
  769. enable_mmx
  770. enable_3dnow
  771. enable_sse
  772. enable_sse2
  773. enable_sse3
  774. enable_altivec
  775. enable_oss
  776. enable_alsa
  777. with_alsa_prefix
  778. with_alsa_inc_prefix
  779. enable_alsatest
  780. enable_alsa_shared
  781. enable_jack
  782. enable_jack_shared
  783. enable_esd
  784. with_esd_prefix
  785. with_esd_exec_prefix
  786. enable_esdtest
  787. enable_esd_shared
  788. enable_pulseaudio
  789. enable_pulseaudio_shared
  790. enable_arts
  791. enable_arts_shared
  792. enable_nas
  793. enable_nas_shared
  794. enable_sndio
  795. enable_sndio_shared
  796. enable_fusionsound
  797. enable_fusionsound_shared
  798. enable_diskaudio
  799. enable_dummyaudio
  800. enable_libsamplerate
  801. enable_libsamplerate_shared
  802. enable_arm_simd
  803. enable_arm_neon
  804. enable_video_wayland
  805. enable_video_wayland_qt_touch
  806. enable_wayland_shared
  807. enable_video_rpi
  808. enable_video_x11
  809. with_x
  810. enable_x11_shared
  811. enable_video_x11_xcursor
  812. enable_video_x11_xdbe
  813. enable_video_x11_xinerama
  814. enable_video_x11_xinput
  815. enable_video_x11_xrandr
  816. enable_video_x11_scrnsaver
  817. enable_video_x11_xshape
  818. enable_video_x11_vm
  819. enable_video_vivante
  820. enable_video_cocoa
  821. enable_video_metal
  822. enable_render_metal
  823. enable_video_directfb
  824. enable_directfb_shared
  825. enable_video_kmsdrm
  826. enable_kmsdrm_shared
  827. enable_video_dummy
  828. enable_video_opengl
  829. enable_video_opengles
  830. enable_video_opengles1
  831. enable_video_opengles2
  832. enable_video_vulkan
  833. enable_libudev
  834. enable_dbus
  835. enable_ime
  836. enable_ibus
  837. enable_fcitx
  838. enable_pthreads
  839. enable_pthread_sem
  840. enable_directx
  841. enable_wasapi
  842. enable_sdl_dlopen
  843. enable_hidapi
  844. enable_hidapi_libusb
  845. enable_clock_gettime
  846. enable_rpath
  847. enable_backgrounding_signal
  848. enable_foregrounding_signal
  849. enable_joystick_virtual
  850. enable_render_d3d
  851. enable_sdl2_config
  852. '
  853. ac_precious_vars='build_alias
  854. host_alias
  855. target_alias
  856. CC
  857. CFLAGS
  858. LDFLAGS
  859. LIBS
  860. CPPFLAGS
  861. CPP
  862. CXX
  863. CXXFLAGS
  864. CCC
  865. CXXCPP
  866. PKG_CONFIG
  867. PKG_CONFIG_PATH
  868. PKG_CONFIG_LIBDIR
  869. JACK_CFLAGS
  870. JACK_LIBS
  871. PULSEAUDIO_CFLAGS
  872. PULSEAUDIO_LIBS
  873. FUSIONSOUND_CFLAGS
  874. FUSIONSOUND_LIBS
  875. RPI_CFLAGS
  876. RPI_LIBS
  877. XMKMF
  878. DIRECTFB_CFLAGS
  879. DIRECTFB_LIBS
  880. LIBDRM_CFLAGS
  881. LIBDRM_LIBS
  882. LIBGBM_CFLAGS
  883. LIBGBM_LIBS
  884. DBUS_CFLAGS
  885. DBUS_LIBS
  886. IBUS_CFLAGS
  887. IBUS_LIBS
  888. LIBUSB_CFLAGS
  889. LIBUSB_LIBS'
  890. # Initialize some variables set by options.
  891. ac_init_help=
  892. ac_init_version=false
  893. ac_unrecognized_opts=
  894. ac_unrecognized_sep=
  895. # The variables have the same names as the options, with
  896. # dashes changed to underlines.
  897. cache_file=/dev/null
  898. exec_prefix=NONE
  899. no_create=
  900. no_recursion=
  901. prefix=NONE
  902. program_prefix=NONE
  903. program_suffix=NONE
  904. program_transform_name=s,x,x,
  905. silent=
  906. site=
  907. srcdir=
  908. verbose=
  909. x_includes=NONE
  910. x_libraries=NONE
  911. # Installation directory options.
  912. # These are left unexpanded so users can "make install exec_prefix=/foo"
  913. # and all the variables that are supposed to be based on exec_prefix
  914. # by default will actually change.
  915. # Use braces instead of parens because sh, perl, etc. also accept them.
  916. # (The list follows the same order as the GNU Coding Standards.)
  917. bindir='${exec_prefix}/bin'
  918. sbindir='${exec_prefix}/sbin'
  919. libexecdir='${exec_prefix}/libexec'
  920. datarootdir='${prefix}/share'
  921. datadir='${datarootdir}'
  922. sysconfdir='${prefix}/etc'
  923. sharedstatedir='${prefix}/com'
  924. localstatedir='${prefix}/var'
  925. includedir='${prefix}/include'
  926. oldincludedir='/usr/include'
  927. docdir='${datarootdir}/doc/${PACKAGE}'
  928. infodir='${datarootdir}/info'
  929. htmldir='${docdir}'
  930. dvidir='${docdir}'
  931. pdfdir='${docdir}'
  932. psdir='${docdir}'
  933. libdir='${exec_prefix}/lib'
  934. localedir='${datarootdir}/locale'
  935. mandir='${datarootdir}/man'
  936. ac_prev=
  937. ac_dashdash=
  938. for ac_option
  939. do
  940. # If the previous option needs an argument, assign it.
  941. if test -n "$ac_prev"; then
  942. eval $ac_prev=\$ac_option
  943. ac_prev=
  944. continue
  945. fi
  946. case $ac_option in
  947. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  948. *=) ac_optarg= ;;
  949. *) ac_optarg=yes ;;
  950. esac
  951. # Accept the important Cygnus configure options, so we can diagnose typos.
  952. case $ac_dashdash$ac_option in
  953. --)
  954. ac_dashdash=yes ;;
  955. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  956. ac_prev=bindir ;;
  957. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  958. bindir=$ac_optarg ;;
  959. -build | --build | --buil | --bui | --bu)
  960. ac_prev=build_alias ;;
  961. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  962. build_alias=$ac_optarg ;;
  963. -cache-file | --cache-file | --cache-fil | --cache-fi \
  964. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  965. ac_prev=cache_file ;;
  966. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  967. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  968. cache_file=$ac_optarg ;;
  969. --config-cache | -C)
  970. cache_file=config.cache ;;
  971. -datadir | --datadir | --datadi | --datad)
  972. ac_prev=datadir ;;
  973. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  974. datadir=$ac_optarg ;;
  975. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  976. | --dataroo | --dataro | --datar)
  977. ac_prev=datarootdir ;;
  978. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  979. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  980. datarootdir=$ac_optarg ;;
  981. -disable-* | --disable-*)
  982. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  983. # Reject names that are not valid shell variable names.
  984. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  985. as_fn_error $? "invalid feature name: $ac_useropt"
  986. ac_useropt_orig=$ac_useropt
  987. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  988. case $ac_user_opts in
  989. *"
  990. "enable_$ac_useropt"
  991. "*) ;;
  992. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  993. ac_unrecognized_sep=', ';;
  994. esac
  995. eval enable_$ac_useropt=no ;;
  996. -docdir | --docdir | --docdi | --doc | --do)
  997. ac_prev=docdir ;;
  998. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  999. docdir=$ac_optarg ;;
  1000. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1001. ac_prev=dvidir ;;
  1002. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1003. dvidir=$ac_optarg ;;
  1004. -enable-* | --enable-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid feature name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "enable_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval enable_$ac_useropt=\$ac_optarg ;;
  1019. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1020. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1021. | --exec | --exe | --ex)
  1022. ac_prev=exec_prefix ;;
  1023. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1024. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1025. | --exec=* | --exe=* | --ex=*)
  1026. exec_prefix=$ac_optarg ;;
  1027. -gas | --gas | --ga | --g)
  1028. # Obsolete; use --with-gas.
  1029. with_gas=yes ;;
  1030. -help | --help | --hel | --he | -h)
  1031. ac_init_help=long ;;
  1032. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1033. ac_init_help=recursive ;;
  1034. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1035. ac_init_help=short ;;
  1036. -host | --host | --hos | --ho)
  1037. ac_prev=host_alias ;;
  1038. -host=* | --host=* | --hos=* | --ho=*)
  1039. host_alias=$ac_optarg ;;
  1040. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1041. ac_prev=htmldir ;;
  1042. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1043. | --ht=*)
  1044. htmldir=$ac_optarg ;;
  1045. -includedir | --includedir | --includedi | --included | --include \
  1046. | --includ | --inclu | --incl | --inc)
  1047. ac_prev=includedir ;;
  1048. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1049. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1050. includedir=$ac_optarg ;;
  1051. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1052. ac_prev=infodir ;;
  1053. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1054. infodir=$ac_optarg ;;
  1055. -libdir | --libdir | --libdi | --libd)
  1056. ac_prev=libdir ;;
  1057. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1058. libdir=$ac_optarg ;;
  1059. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1060. | --libexe | --libex | --libe)
  1061. ac_prev=libexecdir ;;
  1062. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1063. | --libexe=* | --libex=* | --libe=*)
  1064. libexecdir=$ac_optarg ;;
  1065. -localedir | --localedir | --localedi | --localed | --locale)
  1066. ac_prev=localedir ;;
  1067. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1068. localedir=$ac_optarg ;;
  1069. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1070. | --localstate | --localstat | --localsta | --localst | --locals)
  1071. ac_prev=localstatedir ;;
  1072. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1073. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1074. localstatedir=$ac_optarg ;;
  1075. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1076. ac_prev=mandir ;;
  1077. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1078. mandir=$ac_optarg ;;
  1079. -nfp | --nfp | --nf)
  1080. # Obsolete; use --without-fp.
  1081. with_fp=no ;;
  1082. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1083. | --no-cr | --no-c | -n)
  1084. no_create=yes ;;
  1085. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1086. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1087. no_recursion=yes ;;
  1088. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1089. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1090. | --oldin | --oldi | --old | --ol | --o)
  1091. ac_prev=oldincludedir ;;
  1092. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1093. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1094. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1095. oldincludedir=$ac_optarg ;;
  1096. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1097. ac_prev=prefix ;;
  1098. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1099. prefix=$ac_optarg ;;
  1100. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1101. | --program-pre | --program-pr | --program-p)
  1102. ac_prev=program_prefix ;;
  1103. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1104. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1105. program_prefix=$ac_optarg ;;
  1106. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1107. | --program-suf | --program-su | --program-s)
  1108. ac_prev=program_suffix ;;
  1109. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1110. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1111. program_suffix=$ac_optarg ;;
  1112. -program-transform-name | --program-transform-name \
  1113. | --program-transform-nam | --program-transform-na \
  1114. | --program-transform-n | --program-transform- \
  1115. | --program-transform | --program-transfor \
  1116. | --program-transfo | --program-transf \
  1117. | --program-trans | --program-tran \
  1118. | --progr-tra | --program-tr | --program-t)
  1119. ac_prev=program_transform_name ;;
  1120. -program-transform-name=* | --program-transform-name=* \
  1121. | --program-transform-nam=* | --program-transform-na=* \
  1122. | --program-transform-n=* | --program-transform-=* \
  1123. | --program-transform=* | --program-transfor=* \
  1124. | --program-transfo=* | --program-transf=* \
  1125. | --program-trans=* | --program-tran=* \
  1126. | --progr-tra=* | --program-tr=* | --program-t=*)
  1127. program_transform_name=$ac_optarg ;;
  1128. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1129. ac_prev=pdfdir ;;
  1130. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1131. pdfdir=$ac_optarg ;;
  1132. -psdir | --psdir | --psdi | --psd | --ps)
  1133. ac_prev=psdir ;;
  1134. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1135. psdir=$ac_optarg ;;
  1136. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1137. | -silent | --silent | --silen | --sile | --sil)
  1138. silent=yes ;;
  1139. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1140. ac_prev=sbindir ;;
  1141. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1142. | --sbi=* | --sb=*)
  1143. sbindir=$ac_optarg ;;
  1144. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1145. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1146. | --sharedst | --shareds | --shared | --share | --shar \
  1147. | --sha | --sh)
  1148. ac_prev=sharedstatedir ;;
  1149. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1150. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1151. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1152. | --sha=* | --sh=*)
  1153. sharedstatedir=$ac_optarg ;;
  1154. -site | --site | --sit)
  1155. ac_prev=site ;;
  1156. -site=* | --site=* | --sit=*)
  1157. site=$ac_optarg ;;
  1158. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1159. ac_prev=srcdir ;;
  1160. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1161. srcdir=$ac_optarg ;;
  1162. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1163. | --syscon | --sysco | --sysc | --sys | --sy)
  1164. ac_prev=sysconfdir ;;
  1165. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1166. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1167. sysconfdir=$ac_optarg ;;
  1168. -target | --target | --targe | --targ | --tar | --ta | --t)
  1169. ac_prev=target_alias ;;
  1170. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1171. target_alias=$ac_optarg ;;
  1172. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1173. verbose=yes ;;
  1174. -version | --version | --versio | --versi | --vers | -V)
  1175. ac_init_version=: ;;
  1176. -with-* | --with-*)
  1177. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1178. # Reject names that are not valid shell variable names.
  1179. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1180. as_fn_error $? "invalid package name: $ac_useropt"
  1181. ac_useropt_orig=$ac_useropt
  1182. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1183. case $ac_user_opts in
  1184. *"
  1185. "with_$ac_useropt"
  1186. "*) ;;
  1187. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1188. ac_unrecognized_sep=', ';;
  1189. esac
  1190. eval with_$ac_useropt=\$ac_optarg ;;
  1191. -without-* | --without-*)
  1192. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1193. # Reject names that are not valid shell variable names.
  1194. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1195. as_fn_error $? "invalid package name: $ac_useropt"
  1196. ac_useropt_orig=$ac_useropt
  1197. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1198. case $ac_user_opts in
  1199. *"
  1200. "with_$ac_useropt"
  1201. "*) ;;
  1202. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1203. ac_unrecognized_sep=', ';;
  1204. esac
  1205. eval with_$ac_useropt=no ;;
  1206. --x)
  1207. # Obsolete; use --with-x.
  1208. with_x=yes ;;
  1209. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1210. | --x-incl | --x-inc | --x-in | --x-i)
  1211. ac_prev=x_includes ;;
  1212. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1213. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1214. x_includes=$ac_optarg ;;
  1215. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1216. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1217. ac_prev=x_libraries ;;
  1218. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1219. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1220. x_libraries=$ac_optarg ;;
  1221. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1222. Try \`$0 --help' for more information"
  1223. ;;
  1224. *=*)
  1225. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1226. # Reject names that are not valid shell variable names.
  1227. case $ac_envvar in #(
  1228. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1229. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1230. esac
  1231. eval $ac_envvar=\$ac_optarg
  1232. export $ac_envvar ;;
  1233. *)
  1234. # FIXME: should be removed in autoconf 3.0.
  1235. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1236. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1237. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1238. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1239. ;;
  1240. esac
  1241. done
  1242. if test -n "$ac_prev"; then
  1243. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1244. as_fn_error $? "missing argument to $ac_option"
  1245. fi
  1246. if test -n "$ac_unrecognized_opts"; then
  1247. case $enable_option_checking in
  1248. no) ;;
  1249. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1250. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1251. esac
  1252. fi
  1253. # Check all directory arguments for consistency.
  1254. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1255. datadir sysconfdir sharedstatedir localstatedir includedir \
  1256. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1257. libdir localedir mandir
  1258. do
  1259. eval ac_val=\$$ac_var
  1260. # Remove trailing slashes.
  1261. case $ac_val in
  1262. */ )
  1263. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1264. eval $ac_var=\$ac_val;;
  1265. esac
  1266. # Be sure to have absolute directory names.
  1267. case $ac_val in
  1268. [\\/$]* | ?:[\\/]* ) continue;;
  1269. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1270. esac
  1271. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1272. done
  1273. # There might be people who depend on the old broken behavior: `$host'
  1274. # used to hold the argument of --host etc.
  1275. # FIXME: To remove some day.
  1276. build=$build_alias
  1277. host=$host_alias
  1278. target=$target_alias
  1279. # FIXME: To remove some day.
  1280. if test "x$host_alias" != x; then
  1281. if test "x$build_alias" = x; then
  1282. cross_compiling=maybe
  1283. elif test "x$build_alias" != "x$host_alias"; then
  1284. cross_compiling=yes
  1285. fi
  1286. fi
  1287. ac_tool_prefix=
  1288. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1289. test "$silent" = yes && exec 6>/dev/null
  1290. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1291. ac_ls_di=`ls -di .` &&
  1292. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1293. as_fn_error $? "working directory cannot be determined"
  1294. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1295. as_fn_error $? "pwd does not report name of working directory"
  1296. # Find the source files, if location was not specified.
  1297. if test -z "$srcdir"; then
  1298. ac_srcdir_defaulted=yes
  1299. # Try the directory containing this script, then the parent directory.
  1300. ac_confdir=`$as_dirname -- "$as_myself" ||
  1301. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1302. X"$as_myself" : 'X\(//\)[^/]' \| \
  1303. X"$as_myself" : 'X\(//\)$' \| \
  1304. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1305. $as_echo X"$as_myself" |
  1306. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1307. s//\1/
  1308. q
  1309. }
  1310. /^X\(\/\/\)[^/].*/{
  1311. s//\1/
  1312. q
  1313. }
  1314. /^X\(\/\/\)$/{
  1315. s//\1/
  1316. q
  1317. }
  1318. /^X\(\/\).*/{
  1319. s//\1/
  1320. q
  1321. }
  1322. s/.*/./; q'`
  1323. srcdir=$ac_confdir
  1324. if test ! -r "$srcdir/$ac_unique_file"; then
  1325. srcdir=..
  1326. fi
  1327. else
  1328. ac_srcdir_defaulted=no
  1329. fi
  1330. if test ! -r "$srcdir/$ac_unique_file"; then
  1331. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1332. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1333. fi
  1334. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1335. ac_abs_confdir=`(
  1336. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1337. pwd)`
  1338. # When building in place, set srcdir=.
  1339. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1340. srcdir=.
  1341. fi
  1342. # Remove unnecessary trailing slashes from srcdir.
  1343. # Double slashes in file names in object file debugging info
  1344. # mess up M-x gdb in Emacs.
  1345. case $srcdir in
  1346. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1347. esac
  1348. for ac_var in $ac_precious_vars; do
  1349. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1350. eval ac_env_${ac_var}_value=\$${ac_var}
  1351. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1352. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1353. done
  1354. #
  1355. # Report the --help message.
  1356. #
  1357. if test "$ac_init_help" = "long"; then
  1358. # Omit some internal or obsolete options to make the list less imposing.
  1359. # This message is too long to be a string in the A/UX 3.1 sh.
  1360. cat <<_ACEOF
  1361. \`configure' configures this package to adapt to many kinds of systems.
  1362. Usage: $0 [OPTION]... [VAR=VALUE]...
  1363. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1364. VAR=VALUE. See below for descriptions of some of the useful variables.
  1365. Defaults for the options are specified in brackets.
  1366. Configuration:
  1367. -h, --help display this help and exit
  1368. --help=short display options specific to this package
  1369. --help=recursive display the short help of all the included packages
  1370. -V, --version display version information and exit
  1371. -q, --quiet, --silent do not print \`checking ...' messages
  1372. --cache-file=FILE cache test results in FILE [disabled]
  1373. -C, --config-cache alias for \`--cache-file=config.cache'
  1374. -n, --no-create do not create output files
  1375. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1376. Installation directories:
  1377. --prefix=PREFIX install architecture-independent files in PREFIX
  1378. [$ac_default_prefix]
  1379. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1380. [PREFIX]
  1381. By default, \`make install' will install all the files in
  1382. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1383. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1384. for instance \`--prefix=\$HOME'.
  1385. For better control, use the options below.
  1386. Fine tuning of the installation directories:
  1387. --bindir=DIR user executables [EPREFIX/bin]
  1388. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1389. --libexecdir=DIR program executables [EPREFIX/libexec]
  1390. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1391. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1392. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1393. --libdir=DIR object code libraries [EPREFIX/lib]
  1394. --includedir=DIR C header files [PREFIX/include]
  1395. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1396. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1397. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1398. --infodir=DIR info documentation [DATAROOTDIR/info]
  1399. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1400. --mandir=DIR man documentation [DATAROOTDIR/man]
  1401. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1402. --htmldir=DIR html documentation [DOCDIR]
  1403. --dvidir=DIR dvi documentation [DOCDIR]
  1404. --pdfdir=DIR pdf documentation [DOCDIR]
  1405. --psdir=DIR ps documentation [DOCDIR]
  1406. _ACEOF
  1407. cat <<\_ACEOF
  1408. X features:
  1409. --x-includes=DIR X include files are in DIR
  1410. --x-libraries=DIR X library files are in DIR
  1411. System types:
  1412. --build=BUILD configure for building on BUILD [guessed]
  1413. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1414. _ACEOF
  1415. fi
  1416. if test -n "$ac_init_help"; then
  1417. cat <<\_ACEOF
  1418. Optional Features:
  1419. --disable-option-checking ignore unrecognized --enable/--with options
  1420. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1421. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1422. --enable-shared[=PKGS] build shared libraries [default=yes]
  1423. --enable-static[=PKGS] build static libraries [default=yes]
  1424. --enable-fast-install[=PKGS]
  1425. optimize for fast installation [default=yes]
  1426. --disable-libtool-lock avoid locking (might break parallel builds)
  1427. --enable-assertions Enable internal sanity checks
  1428. (auto/disabled/release/enabled/paranoid)
  1429. [[default=auto]]
  1430. --enable-dependency-tracking
  1431. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1432. --enable-libc Use the system C library [[default=yes]]
  1433. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1434. --enable-atomic Enable the atomic operations subsystem
  1435. [[default=yes]]
  1436. --enable-audio Enable the audio subsystem [[default=yes]]
  1437. --enable-video Enable the video subsystem [[default=yes]]
  1438. --enable-render Enable the render subsystem [[default=yes]]
  1439. --enable-events Enable the events subsystem [[default=yes]]
  1440. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1441. --enable-haptic Enable the haptic (force feedback) subsystem
  1442. [[default=yes]]
  1443. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1444. --enable-power Enable the power subsystem [[default=yes]]
  1445. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1446. --enable-threads Enable the threading subsystem [[default=yes]]
  1447. --enable-timers Enable the timer subsystem [[default=yes]]
  1448. --enable-file Enable the file subsystem [[default=yes]]
  1449. --enable-loadso Enable the shared object loading subsystem
  1450. [[default=yes]]
  1451. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1452. --enable-assembly Enable assembly routines [[default=yes]]
  1453. --enable-ssemath Allow GCC to use SSE floating point math
  1454. [[default=maybe]]
  1455. --enable-mmx use MMX assembly routines [[default=yes]]
  1456. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1457. --enable-sse use SSE assembly routines [[default=yes]]
  1458. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1459. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1460. --enable-altivec use Altivec assembly routines [[default=yes]]
  1461. --enable-oss support the OSS audio API [[default=maybe]]
  1462. --enable-alsa support the ALSA audio API [[default=yes]]
  1463. --disable-alsatest Do not try to compile and run a test Alsa program
  1464. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1465. --enable-jack use JACK audio [[default=yes]]
  1466. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1467. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1468. --disable-esdtest Do not try to compile and run a test ESD program
  1469. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1470. --enable-pulseaudio use PulseAudio [[default=yes]]
  1471. --enable-pulseaudio-shared
  1472. dynamically load PulseAudio support [[default=yes]]
  1473. --enable-arts support the Analog Real Time Synthesizer
  1474. [[default=yes]]
  1475. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1476. --enable-nas support the NAS audio API [[default=yes]]
  1477. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1478. --enable-sndio support the sndio audio API [[default=yes]]
  1479. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1480. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1481. --enable-fusionsound-shared
  1482. dynamically load fusionsound audio support
  1483. [[default=yes]]
  1484. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1485. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1486. --enable-libsamplerate use libsamplerate for audio rate conversion
  1487. [[default=yes]]
  1488. --enable-libsamplerate-shared
  1489. dynamically load libsamplerate [[default=yes]]
  1490. --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
  1491. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1492. --enable-video-wayland use Wayland video driver [[default=yes]]
  1493. --enable-video-wayland-qt-touch
  1494. QtWayland server support for Wayland video driver
  1495. [[default=yes]]
  1496. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1497. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1498. --enable-video-x11 use X11 video driver [[default=yes]]
  1499. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1500. --enable-video-x11-xcursor
  1501. enable X11 Xcursor support [[default=yes]]
  1502. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1503. --enable-video-x11-xinerama
  1504. enable X11 Xinerama support [[default=yes]]
  1505. --enable-video-x11-xinput
  1506. enable X11 XInput extension for manymouse, tablets,
  1507. etc [[default=yes]]
  1508. --enable-video-x11-xrandr
  1509. enable X11 Xrandr extension for fullscreen
  1510. [[default=yes]]
  1511. --enable-video-x11-scrnsaver
  1512. enable X11 screensaver extension [[default=yes]]
  1513. --enable-video-x11-xshape
  1514. enable X11 XShape support [[default=yes]]
  1515. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1516. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1517. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1518. --enable-video-metal include Metal support [[default=yes]]
  1519. --enable-render-metal enable the Metal render driver [[default=yes]]
  1520. --enable-video-directfb use DirectFB video driver [[default=no]]
  1521. --enable-directfb-shared
  1522. dynamically load directfb support [[default=yes]]
  1523. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1524. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1525. --enable-video-dummy use dummy video driver [[default=yes]]
  1526. --enable-video-opengl include OpenGL support [[default=yes]]
  1527. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1528. --enable-video-opengles1
  1529. include OpenGL ES 1.1 support [[default=yes]]
  1530. --enable-video-opengles2
  1531. include OpenGL ES 2.0 support [[default=yes]]
  1532. --enable-video-vulkan include Vulkan support [[default=yes]]
  1533. --enable-libudev enable libudev support [[default=yes]]
  1534. --enable-dbus enable D-Bus support [[default=yes]]
  1535. --enable-ime enable IME support [[default=yes]]
  1536. --enable-ibus enable IBus support [[default=yes]]
  1537. --enable-fcitx enable fcitx support [[default=yes]]
  1538. --enable-pthreads use POSIX threads for multi-threading
  1539. [[default=yes]]
  1540. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1541. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1542. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1543. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1544. --enable-hidapi use HIDAPI for low level joystick drivers
  1545. [[default=yes]]
  1546. --enable-hidapi-libusb use libusb for low level joystick drivers
  1547. [[default=maybe]]
  1548. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1549. UNIX [[default=yes]]
  1550. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1551. --enable-backgrounding-signal
  1552. number to use for magic backgrounding signal or 'no'
  1553. [[default=no]]
  1554. --enable-foregrounding-signal
  1555. number to use for magic foregrounding signal or 'no'
  1556. [[default=no]]
  1557. --enable-joystick-virtual
  1558. enable virtual joystick APIs [[default=yes]]
  1559. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1560. --enable-sdl2-config Install sdl2-config [default=yes]
  1561. Optional Packages:
  1562. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1563. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1564. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1565. both]
  1566. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1567. --with-sysroot=DIR Search for dependent libraries within DIR
  1568. (or the compiler's sysroot if not specified).
  1569. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1570. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1571. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1572. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1573. --with-x use the X Window System
  1574. Some influential environment variables:
  1575. CC C compiler command
  1576. CFLAGS C compiler flags
  1577. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1578. nonstandard directory <lib dir>
  1579. LIBS libraries to pass to the linker, e.g. -l<library>
  1580. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1581. you have headers in a nonstandard directory <include dir>
  1582. CPP C preprocessor
  1583. CXX C++ compiler command
  1584. CXXFLAGS C++ compiler flags
  1585. CXXCPP C++ preprocessor
  1586. PKG_CONFIG path to pkg-config utility
  1587. PKG_CONFIG_PATH
  1588. directories to add to pkg-config's search path
  1589. PKG_CONFIG_LIBDIR
  1590. path overriding pkg-config's built-in search path
  1591. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1592. JACK_LIBS linker flags for JACK, overriding pkg-config
  1593. PULSEAUDIO_CFLAGS
  1594. C compiler flags for PULSEAUDIO, overriding pkg-config
  1595. PULSEAUDIO_LIBS
  1596. linker flags for PULSEAUDIO, overriding pkg-config
  1597. FUSIONSOUND_CFLAGS
  1598. C compiler flags for FUSIONSOUND, overriding pkg-config
  1599. FUSIONSOUND_LIBS
  1600. linker flags for FUSIONSOUND, overriding pkg-config
  1601. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1602. RPI_LIBS linker flags for RPI, overriding pkg-config
  1603. XMKMF Path to xmkmf, Makefile generator for X Window System
  1604. DIRECTFB_CFLAGS
  1605. C compiler flags for DIRECTFB, overriding pkg-config
  1606. DIRECTFB_LIBS
  1607. linker flags for DIRECTFB, overriding pkg-config
  1608. LIBDRM_CFLAGS
  1609. C compiler flags for LIBDRM, overriding pkg-config
  1610. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1611. LIBGBM_CFLAGS
  1612. C compiler flags for LIBGBM, overriding pkg-config
  1613. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1614. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1615. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1616. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1617. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1618. LIBUSB_CFLAGS
  1619. C compiler flags for LIBUSB, overriding pkg-config
  1620. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1621. Use these variables to override the choices made by `configure' or to help
  1622. it to find libraries and programs with nonstandard names/locations.
  1623. Report bugs to the package provider.
  1624. _ACEOF
  1625. ac_status=$?
  1626. fi
  1627. if test "$ac_init_help" = "recursive"; then
  1628. # If there are subdirs, report their specific --help.
  1629. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1630. test -d "$ac_dir" ||
  1631. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1632. continue
  1633. ac_builddir=.
  1634. case "$ac_dir" in
  1635. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1636. *)
  1637. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1638. # A ".." for each directory in $ac_dir_suffix.
  1639. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1640. case $ac_top_builddir_sub in
  1641. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1642. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1643. esac ;;
  1644. esac
  1645. ac_abs_top_builddir=$ac_pwd
  1646. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1647. # for backward compatibility:
  1648. ac_top_builddir=$ac_top_build_prefix
  1649. case $srcdir in
  1650. .) # We are building in place.
  1651. ac_srcdir=.
  1652. ac_top_srcdir=$ac_top_builddir_sub
  1653. ac_abs_top_srcdir=$ac_pwd ;;
  1654. [\\/]* | ?:[\\/]* ) # Absolute name.
  1655. ac_srcdir=$srcdir$ac_dir_suffix;
  1656. ac_top_srcdir=$srcdir
  1657. ac_abs_top_srcdir=$srcdir ;;
  1658. *) # Relative name.
  1659. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1660. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1661. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1662. esac
  1663. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1664. cd "$ac_dir" || { ac_status=$?; continue; }
  1665. # Check for guested configure.
  1666. if test -f "$ac_srcdir/configure.gnu"; then
  1667. echo &&
  1668. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1669. elif test -f "$ac_srcdir/configure"; then
  1670. echo &&
  1671. $SHELL "$ac_srcdir/configure" --help=recursive
  1672. else
  1673. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1674. fi || ac_status=$?
  1675. cd "$ac_pwd" || { ac_status=$?; break; }
  1676. done
  1677. fi
  1678. test -n "$ac_init_help" && exit $ac_status
  1679. if $ac_init_version; then
  1680. cat <<\_ACEOF
  1681. configure
  1682. generated by GNU Autoconf 2.69
  1683. Copyright (C) 2012 Free Software Foundation, Inc.
  1684. This configure script is free software; the Free Software Foundation
  1685. gives unlimited permission to copy, distribute and modify it.
  1686. _ACEOF
  1687. exit
  1688. fi
  1689. ## ------------------------ ##
  1690. ## Autoconf initialization. ##
  1691. ## ------------------------ ##
  1692. # ac_fn_c_try_compile LINENO
  1693. # --------------------------
  1694. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1695. ac_fn_c_try_compile ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. rm -f conftest.$ac_objext
  1699. if { { ac_try="$ac_compile"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_compile") 2>conftest.err
  1707. ac_status=$?
  1708. if test -s conftest.err; then
  1709. grep -v '^ *+' conftest.err >conftest.er1
  1710. cat conftest.er1 >&5
  1711. mv -f conftest.er1 conftest.err
  1712. fi
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && {
  1715. test -z "$ac_c_werror_flag" ||
  1716. test ! -s conftest.err
  1717. } && test -s conftest.$ac_objext; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_c_try_compile
  1727. # ac_fn_c_try_link LINENO
  1728. # -----------------------
  1729. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_link ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext conftest$ac_exeext
  1734. if { { ac_try="$ac_link"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_link") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_c_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest$ac_exeext && {
  1753. test "$cross_compiling" = yes ||
  1754. test -x conftest$ac_exeext
  1755. }; then :
  1756. ac_retval=0
  1757. else
  1758. $as_echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. ac_retval=1
  1761. fi
  1762. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1763. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1764. # interfere with the next link command; also delete a directory that is
  1765. # left behind by Apple's compiler. We do this before executing the actions.
  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_link
  1770. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1771. # -------------------------------------------------------
  1772. # Tests whether HEADER exists and can be compiled using the include files in
  1773. # INCLUDES, setting the cache variable VAR accordingly.
  1774. ac_fn_c_check_header_compile ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1778. $as_echo_n "checking for $2... " >&6; }
  1779. if eval \${$3+:} false; then :
  1780. $as_echo_n "(cached) " >&6
  1781. else
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. #include <$2>
  1786. _ACEOF
  1787. if ac_fn_c_try_compile "$LINENO"; then :
  1788. eval "$3=yes"
  1789. else
  1790. eval "$3=no"
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } # ac_fn_c_check_header_compile
  1799. # ac_fn_c_try_cpp LINENO
  1800. # ----------------------
  1801. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_c_try_cpp ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } > conftest.i && {
  1821. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1822. test ! -s conftest.err
  1823. }; then :
  1824. ac_retval=0
  1825. else
  1826. $as_echo "$as_me: failed program was:" >&5
  1827. sed 's/^/| /' conftest.$ac_ext >&5
  1828. ac_retval=1
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_c_try_cpp
  1833. # ac_fn_c_try_run LINENO
  1834. # ----------------------
  1835. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1836. # that executables *can* be run.
  1837. ac_fn_c_try_run ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_link"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_link") 2>&5
  1848. ac_status=$?
  1849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1850. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1851. { { case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_try") 2>&5
  1858. ac_status=$?
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; }; }; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: program exited with status $ac_status" >&5
  1864. $as_echo "$as_me: failed program was:" >&5
  1865. sed 's/^/| /' conftest.$ac_ext >&5
  1866. ac_retval=$ac_status
  1867. fi
  1868. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_c_try_run
  1872. # ac_fn_c_check_func LINENO FUNC VAR
  1873. # ----------------------------------
  1874. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1875. ac_fn_c_check_func ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1879. $as_echo_n "checking for $2... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1887. #define $2 innocuous_$2
  1888. /* System header to define __stub macros and hopefully few prototypes,
  1889. which can conflict with char $2 (); below.
  1890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1891. <limits.h> exists even on freestanding compilers. */
  1892. #ifdef __STDC__
  1893. # include <limits.h>
  1894. #else
  1895. # include <assert.h>
  1896. #endif
  1897. #undef $2
  1898. /* Override any GCC internal prototype to avoid an error.
  1899. Use char because int might match the return type of a GCC
  1900. builtin and then its argument prototype would still apply. */
  1901. #ifdef __cplusplus
  1902. extern "C"
  1903. #endif
  1904. char $2 ();
  1905. /* The GNU C library defines this for functions which it implements
  1906. to always fail with ENOSYS. Some functions are actually named
  1907. something starting with __ and the normal name is an alias. */
  1908. #if defined __stub_$2 || defined __stub___$2
  1909. choke me
  1910. #endif
  1911. int
  1912. main ()
  1913. {
  1914. return $2 ();
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_c_try_link "$LINENO"; then :
  1920. eval "$3=yes"
  1921. else
  1922. eval "$3=no"
  1923. fi
  1924. rm -f core conftest.err conftest.$ac_objext \
  1925. conftest$ac_exeext conftest.$ac_ext
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1931. } # ac_fn_c_check_func
  1932. # ac_fn_cxx_try_compile LINENO
  1933. # ----------------------------
  1934. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1935. ac_fn_cxx_try_compile ()
  1936. {
  1937. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1938. rm -f conftest.$ac_objext
  1939. if { { ac_try="$ac_compile"
  1940. case "(($ac_try" in
  1941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1942. *) ac_try_echo=$ac_try;;
  1943. esac
  1944. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1945. $as_echo "$ac_try_echo"; } >&5
  1946. (eval "$ac_compile") 2>conftest.err
  1947. ac_status=$?
  1948. if test -s conftest.err; then
  1949. grep -v '^ *+' conftest.err >conftest.er1
  1950. cat conftest.er1 >&5
  1951. mv -f conftest.er1 conftest.err
  1952. fi
  1953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1954. test $ac_status = 0; } && {
  1955. test -z "$ac_cxx_werror_flag" ||
  1956. test ! -s conftest.err
  1957. } && test -s conftest.$ac_objext; then :
  1958. ac_retval=0
  1959. else
  1960. $as_echo "$as_me: failed program was:" >&5
  1961. sed 's/^/| /' conftest.$ac_ext >&5
  1962. ac_retval=1
  1963. fi
  1964. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1965. as_fn_set_status $ac_retval
  1966. } # ac_fn_cxx_try_compile
  1967. # ac_fn_cxx_try_cpp LINENO
  1968. # ------------------------
  1969. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1970. ac_fn_cxx_try_cpp ()
  1971. {
  1972. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1973. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1974. case "(($ac_try" in
  1975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1976. *) ac_try_echo=$ac_try;;
  1977. esac
  1978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1979. $as_echo "$ac_try_echo"; } >&5
  1980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1981. ac_status=$?
  1982. if test -s conftest.err; then
  1983. grep -v '^ *+' conftest.err >conftest.er1
  1984. cat conftest.er1 >&5
  1985. mv -f conftest.er1 conftest.err
  1986. fi
  1987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1988. test $ac_status = 0; } > conftest.i && {
  1989. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1990. test ! -s conftest.err
  1991. }; then :
  1992. ac_retval=0
  1993. else
  1994. $as_echo "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. ac_retval=1
  1997. fi
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. as_fn_set_status $ac_retval
  2000. } # ac_fn_cxx_try_cpp
  2001. # ac_fn_cxx_try_link LINENO
  2002. # -------------------------
  2003. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_cxx_try_link ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. rm -f conftest.$ac_objext conftest$ac_exeext
  2008. if { { ac_try="$ac_link"
  2009. case "(($ac_try" in
  2010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2011. *) ac_try_echo=$ac_try;;
  2012. esac
  2013. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2014. $as_echo "$ac_try_echo"; } >&5
  2015. (eval "$ac_link") 2>conftest.err
  2016. ac_status=$?
  2017. if test -s conftest.err; then
  2018. grep -v '^ *+' conftest.err >conftest.er1
  2019. cat conftest.er1 >&5
  2020. mv -f conftest.er1 conftest.err
  2021. fi
  2022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2023. test $ac_status = 0; } && {
  2024. test -z "$ac_cxx_werror_flag" ||
  2025. test ! -s conftest.err
  2026. } && test -s conftest$ac_exeext && {
  2027. test "$cross_compiling" = yes ||
  2028. test -x conftest$ac_exeext
  2029. }; then :
  2030. ac_retval=0
  2031. else
  2032. $as_echo "$as_me: failed program was:" >&5
  2033. sed 's/^/| /' conftest.$ac_ext >&5
  2034. ac_retval=1
  2035. fi
  2036. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2037. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2038. # interfere with the next link command; also delete a directory that is
  2039. # left behind by Apple's compiler. We do this before executing the actions.
  2040. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2041. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2042. as_fn_set_status $ac_retval
  2043. } # ac_fn_cxx_try_link
  2044. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2045. # -------------------------------------------------------
  2046. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2047. # the include files in INCLUDES and setting the cache variable VAR
  2048. # accordingly.
  2049. ac_fn_c_check_header_mongrel ()
  2050. {
  2051. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2052. if eval \${$3+:} false; then :
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2054. $as_echo_n "checking for $2... " >&6; }
  2055. if eval \${$3+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. fi
  2058. eval ac_res=\$$3
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2060. $as_echo "$ac_res" >&6; }
  2061. else
  2062. # Is the header compilable?
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2064. $as_echo_n "checking $2 usability... " >&6; }
  2065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2066. /* end confdefs.h. */
  2067. $4
  2068. #include <$2>
  2069. _ACEOF
  2070. if ac_fn_c_try_compile "$LINENO"; then :
  2071. ac_header_compiler=yes
  2072. else
  2073. ac_header_compiler=no
  2074. fi
  2075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2077. $as_echo "$ac_header_compiler" >&6; }
  2078. # Is the header present?
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2080. $as_echo_n "checking $2 presence... " >&6; }
  2081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2082. /* end confdefs.h. */
  2083. #include <$2>
  2084. _ACEOF
  2085. if ac_fn_c_try_cpp "$LINENO"; then :
  2086. ac_header_preproc=yes
  2087. else
  2088. ac_header_preproc=no
  2089. fi
  2090. rm -f conftest.err conftest.i conftest.$ac_ext
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2092. $as_echo "$ac_header_preproc" >&6; }
  2093. # So? What about this header?
  2094. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2095. yes:no: )
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2097. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2099. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2100. ;;
  2101. no:yes:* )
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2103. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2105. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2107. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2109. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2111. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2112. ;;
  2113. esac
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2115. $as_echo_n "checking for $2... " >&6; }
  2116. if eval \${$3+:} false; then :
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. eval "$3=\$ac_header_compiler"
  2120. fi
  2121. eval ac_res=\$$3
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2123. $as_echo "$ac_res" >&6; }
  2124. fi
  2125. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2126. } # ac_fn_c_check_header_mongrel
  2127. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2128. # -------------------------------------------
  2129. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2130. # variable VAR accordingly.
  2131. ac_fn_c_check_type ()
  2132. {
  2133. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2135. $as_echo_n "checking for $2... " >&6; }
  2136. if eval \${$3+:} false; then :
  2137. $as_echo_n "(cached) " >&6
  2138. else
  2139. eval "$3=no"
  2140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2141. /* end confdefs.h. */
  2142. $4
  2143. int
  2144. main ()
  2145. {
  2146. if (sizeof ($2))
  2147. return 0;
  2148. ;
  2149. return 0;
  2150. }
  2151. _ACEOF
  2152. if ac_fn_c_try_compile "$LINENO"; then :
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. if (sizeof (($2)))
  2160. return 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_compile "$LINENO"; then :
  2166. else
  2167. eval "$3=yes"
  2168. fi
  2169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. fi
  2171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2172. fi
  2173. eval ac_res=\$$3
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2175. $as_echo "$ac_res" >&6; }
  2176. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2177. } # ac_fn_c_check_type
  2178. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2179. # ----------------------------------------------------
  2180. # Tries to find if the field MEMBER exists in type AGGR, after including
  2181. # INCLUDES, setting cache variable VAR accordingly.
  2182. ac_fn_c_check_member ()
  2183. {
  2184. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2186. $as_echo_n "checking for $2.$3... " >&6; }
  2187. if eval \${$4+:} false; then :
  2188. $as_echo_n "(cached) " >&6
  2189. else
  2190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2191. /* end confdefs.h. */
  2192. $5
  2193. int
  2194. main ()
  2195. {
  2196. static $2 ac_aggr;
  2197. if (ac_aggr.$3)
  2198. return 0;
  2199. ;
  2200. return 0;
  2201. }
  2202. _ACEOF
  2203. if ac_fn_c_try_compile "$LINENO"; then :
  2204. eval "$4=yes"
  2205. else
  2206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2207. /* end confdefs.h. */
  2208. $5
  2209. int
  2210. main ()
  2211. {
  2212. static $2 ac_aggr;
  2213. if (sizeof ac_aggr.$3)
  2214. return 0;
  2215. ;
  2216. return 0;
  2217. }
  2218. _ACEOF
  2219. if ac_fn_c_try_compile "$LINENO"; then :
  2220. eval "$4=yes"
  2221. else
  2222. eval "$4=no"
  2223. fi
  2224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2225. fi
  2226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2227. fi
  2228. eval ac_res=\$$4
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2230. $as_echo "$ac_res" >&6; }
  2231. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2232. } # ac_fn_c_check_member
  2233. cat >config.log <<_ACEOF
  2234. This file contains any messages produced by compilers while
  2235. running configure, to aid debugging if configure makes a mistake.
  2236. It was created by $as_me, which was
  2237. generated by GNU Autoconf 2.69. Invocation command line was
  2238. $ $0 $@
  2239. _ACEOF
  2240. exec 5>>config.log
  2241. {
  2242. cat <<_ASUNAME
  2243. ## --------- ##
  2244. ## Platform. ##
  2245. ## --------- ##
  2246. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2247. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2248. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2249. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2250. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2251. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2252. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2253. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2254. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2255. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2256. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2257. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2258. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2259. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2260. _ASUNAME
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. $as_echo "PATH: $as_dir"
  2267. done
  2268. IFS=$as_save_IFS
  2269. } >&5
  2270. cat >&5 <<_ACEOF
  2271. ## ----------- ##
  2272. ## Core tests. ##
  2273. ## ----------- ##
  2274. _ACEOF
  2275. # Keep a trace of the command line.
  2276. # Strip out --no-create and --no-recursion so they do not pile up.
  2277. # Strip out --silent because we don't want to record it for future runs.
  2278. # Also quote any args containing shell meta-characters.
  2279. # Make two passes to allow for proper duplicate-argument suppression.
  2280. ac_configure_args=
  2281. ac_configure_args0=
  2282. ac_configure_args1=
  2283. ac_must_keep_next=false
  2284. for ac_pass in 1 2
  2285. do
  2286. for ac_arg
  2287. do
  2288. case $ac_arg in
  2289. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2290. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2291. | -silent | --silent | --silen | --sile | --sil)
  2292. continue ;;
  2293. *\'*)
  2294. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2295. esac
  2296. case $ac_pass in
  2297. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2298. 2)
  2299. as_fn_append ac_configure_args1 " '$ac_arg'"
  2300. if test $ac_must_keep_next = true; then
  2301. ac_must_keep_next=false # Got value, back to normal.
  2302. else
  2303. case $ac_arg in
  2304. *=* | --config-cache | -C | -disable-* | --disable-* \
  2305. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2306. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2307. | -with-* | --with-* | -without-* | --without-* | --x)
  2308. case "$ac_configure_args0 " in
  2309. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2310. esac
  2311. ;;
  2312. -* ) ac_must_keep_next=true ;;
  2313. esac
  2314. fi
  2315. as_fn_append ac_configure_args " '$ac_arg'"
  2316. ;;
  2317. esac
  2318. done
  2319. done
  2320. { ac_configure_args0=; unset ac_configure_args0;}
  2321. { ac_configure_args1=; unset ac_configure_args1;}
  2322. # When interrupted or exit'd, cleanup temporary files, and complete
  2323. # config.log. We remove comments because anyway the quotes in there
  2324. # would cause problems or look ugly.
  2325. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2326. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2327. trap 'exit_status=$?
  2328. # Save into config.log some information that might help in debugging.
  2329. {
  2330. echo
  2331. $as_echo "## ---------------- ##
  2332. ## Cache variables. ##
  2333. ## ---------------- ##"
  2334. echo
  2335. # The following way of writing the cache mishandles newlines in values,
  2336. (
  2337. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2338. eval ac_val=\$$ac_var
  2339. case $ac_val in #(
  2340. *${as_nl}*)
  2341. case $ac_var in #(
  2342. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2343. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2344. esac
  2345. case $ac_var in #(
  2346. _ | IFS | as_nl) ;; #(
  2347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2348. *) { eval $ac_var=; unset $ac_var;} ;;
  2349. esac ;;
  2350. esac
  2351. done
  2352. (set) 2>&1 |
  2353. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2354. *${as_nl}ac_space=\ *)
  2355. sed -n \
  2356. "s/'\''/'\''\\\\'\'''\''/g;
  2357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2358. ;; #(
  2359. *)
  2360. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2361. ;;
  2362. esac |
  2363. sort
  2364. )
  2365. echo
  2366. $as_echo "## ----------------- ##
  2367. ## Output variables. ##
  2368. ## ----------------- ##"
  2369. echo
  2370. for ac_var in $ac_subst_vars
  2371. do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in
  2374. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2375. esac
  2376. $as_echo "$ac_var='\''$ac_val'\''"
  2377. done | sort
  2378. echo
  2379. if test -n "$ac_subst_files"; then
  2380. $as_echo "## ------------------- ##
  2381. ## File substitutions. ##
  2382. ## ------------------- ##"
  2383. echo
  2384. for ac_var in $ac_subst_files
  2385. do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in
  2388. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2389. esac
  2390. $as_echo "$ac_var='\''$ac_val'\''"
  2391. done | sort
  2392. echo
  2393. fi
  2394. if test -s confdefs.h; then
  2395. $as_echo "## ----------- ##
  2396. ## confdefs.h. ##
  2397. ## ----------- ##"
  2398. echo
  2399. cat confdefs.h
  2400. echo
  2401. fi
  2402. test "$ac_signal" != 0 &&
  2403. $as_echo "$as_me: caught signal $ac_signal"
  2404. $as_echo "$as_me: exit $exit_status"
  2405. } >&5
  2406. rm -f core *.core core.conftest.* &&
  2407. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2408. exit $exit_status
  2409. ' 0
  2410. for ac_signal in 1 2 13 15; do
  2411. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2412. done
  2413. ac_signal=0
  2414. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2415. rm -f -r conftest* confdefs.h
  2416. $as_echo "/* confdefs.h */" > confdefs.h
  2417. # Predefined preprocessor variables.
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define PACKAGE_NAME "$PACKAGE_NAME"
  2420. _ACEOF
  2421. cat >>confdefs.h <<_ACEOF
  2422. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2423. _ACEOF
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_STRING "$PACKAGE_STRING"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2432. _ACEOF
  2433. cat >>confdefs.h <<_ACEOF
  2434. #define PACKAGE_URL "$PACKAGE_URL"
  2435. _ACEOF
  2436. # Let the site file select an alternate cache file if it wants to.
  2437. # Prefer an explicitly selected file to automatically selected ones.
  2438. ac_site_file1=NONE
  2439. ac_site_file2=NONE
  2440. if test -n "$CONFIG_SITE"; then
  2441. # We do not want a PATH search for config.site.
  2442. case $CONFIG_SITE in #((
  2443. -*) ac_site_file1=./$CONFIG_SITE;;
  2444. */*) ac_site_file1=$CONFIG_SITE;;
  2445. *) ac_site_file1=./$CONFIG_SITE;;
  2446. esac
  2447. elif test "x$prefix" != xNONE; then
  2448. ac_site_file1=$prefix/share/config.site
  2449. ac_site_file2=$prefix/etc/config.site
  2450. else
  2451. ac_site_file1=$ac_default_prefix/share/config.site
  2452. ac_site_file2=$ac_default_prefix/etc/config.site
  2453. fi
  2454. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2455. do
  2456. test "x$ac_site_file" = xNONE && continue
  2457. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2459. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2460. sed 's/^/| /' "$ac_site_file" >&5
  2461. . "$ac_site_file" \
  2462. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2463. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2464. as_fn_error $? "failed to load site script $ac_site_file
  2465. See \`config.log' for more details" "$LINENO" 5; }
  2466. fi
  2467. done
  2468. if test -r "$cache_file"; then
  2469. # Some versions of bash will fail to source /dev/null (special files
  2470. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2471. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2473. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2474. case $cache_file in
  2475. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2476. *) . "./$cache_file";;
  2477. esac
  2478. fi
  2479. else
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2481. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2482. >$cache_file
  2483. fi
  2484. # Check that the precious variables saved in the cache have kept the same
  2485. # value.
  2486. ac_cache_corrupted=false
  2487. for ac_var in $ac_precious_vars; do
  2488. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2489. eval ac_new_set=\$ac_env_${ac_var}_set
  2490. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2491. eval ac_new_val=\$ac_env_${ac_var}_value
  2492. case $ac_old_set,$ac_new_set in
  2493. set,)
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2495. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2496. ac_cache_corrupted=: ;;
  2497. ,set)
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2499. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2500. ac_cache_corrupted=: ;;
  2501. ,);;
  2502. *)
  2503. if test "x$ac_old_val" != "x$ac_new_val"; then
  2504. # differences in whitespace do not lead to failure.
  2505. ac_old_val_w=`echo x $ac_old_val`
  2506. ac_new_val_w=`echo x $ac_new_val`
  2507. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2509. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2510. ac_cache_corrupted=:
  2511. else
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2513. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2514. eval $ac_var=\$ac_old_val
  2515. fi
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2517. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2519. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2520. fi;;
  2521. esac
  2522. # Pass precious variables to config.status.
  2523. if test "$ac_new_set" = set; then
  2524. case $ac_new_val in
  2525. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2526. *) ac_arg=$ac_var=$ac_new_val ;;
  2527. esac
  2528. case " $ac_configure_args " in
  2529. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2530. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2531. esac
  2532. fi
  2533. done
  2534. if $ac_cache_corrupted; then
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2536. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2538. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2539. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2540. fi
  2541. ## -------------------- ##
  2542. ## Main body of script. ##
  2543. ## -------------------- ##
  2544. ac_ext=c
  2545. ac_cpp='$CPP $CPPFLAGS'
  2546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2549. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2550. ac_aux_dir=
  2551. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2552. if test -f "$ac_dir/install-sh"; then
  2553. ac_aux_dir=$ac_dir
  2554. ac_install_sh="$ac_aux_dir/install-sh -c"
  2555. break
  2556. elif test -f "$ac_dir/install.sh"; then
  2557. ac_aux_dir=$ac_dir
  2558. ac_install_sh="$ac_aux_dir/install.sh -c"
  2559. break
  2560. elif test -f "$ac_dir/shtool"; then
  2561. ac_aux_dir=$ac_dir
  2562. ac_install_sh="$ac_aux_dir/shtool install -c"
  2563. break
  2564. fi
  2565. done
  2566. if test -z "$ac_aux_dir"; then
  2567. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2568. fi
  2569. # These three variables are undocumented and unsupported,
  2570. # and are intended to be withdrawn in a future Autoconf release.
  2571. # They can cause serious problems if a builder's source tree is in a directory
  2572. # whose full name contains unusual characters.
  2573. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2574. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2575. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2576. orig_CFLAGS="$CFLAGS"
  2577. #
  2578. # Making releases:
  2579. # Edit include/SDL_version.h and change the version, then:
  2580. # SDL_MICRO_VERSION += 1;
  2581. # SDL_INTERFACE_AGE += 1;
  2582. # SDL_BINARY_AGE += 1;
  2583. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2584. # if backwards compatibility has been broken,
  2585. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2586. #
  2587. SDL_MAJOR_VERSION=2
  2588. SDL_MINOR_VERSION=0
  2589. SDL_MICRO_VERSION=13
  2590. SDL_INTERFACE_AGE=1
  2591. SDL_BINARY_AGE=13
  2592. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2593. # libtool versioning
  2594. case `pwd` in
  2595. *\ * | *\ *)
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2597. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2598. esac
  2599. macro_version='2.4.2'
  2600. macro_revision='1.3337'
  2601. ltmain="$ac_aux_dir/ltmain.sh"
  2602. # Make sure we can run config.sub.
  2603. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2604. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2606. $as_echo_n "checking build system type... " >&6; }
  2607. if ${ac_cv_build+:} false; then :
  2608. $as_echo_n "(cached) " >&6
  2609. else
  2610. ac_build_alias=$build_alias
  2611. test "x$ac_build_alias" = x &&
  2612. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2613. test "x$ac_build_alias" = x &&
  2614. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2615. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2616. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2617. fi
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2619. $as_echo "$ac_cv_build" >&6; }
  2620. case $ac_cv_build in
  2621. *-*-*) ;;
  2622. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2623. esac
  2624. build=$ac_cv_build
  2625. ac_save_IFS=$IFS; IFS='-'
  2626. set x $ac_cv_build
  2627. shift
  2628. build_cpu=$1
  2629. build_vendor=$2
  2630. shift; shift
  2631. # Remember, the first character of IFS is used to create $*,
  2632. # except with old shells:
  2633. build_os=$*
  2634. IFS=$ac_save_IFS
  2635. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2637. $as_echo_n "checking host system type... " >&6; }
  2638. if ${ac_cv_host+:} false; then :
  2639. $as_echo_n "(cached) " >&6
  2640. else
  2641. if test "x$host_alias" = x; then
  2642. ac_cv_host=$ac_cv_build
  2643. else
  2644. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2645. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2646. fi
  2647. fi
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2649. $as_echo "$ac_cv_host" >&6; }
  2650. case $ac_cv_host in
  2651. *-*-*) ;;
  2652. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2653. esac
  2654. host=$ac_cv_host
  2655. ac_save_IFS=$IFS; IFS='-'
  2656. set x $ac_cv_host
  2657. shift
  2658. host_cpu=$1
  2659. host_vendor=$2
  2660. shift; shift
  2661. # Remember, the first character of IFS is used to create $*,
  2662. # except with old shells:
  2663. host_os=$*
  2664. IFS=$ac_save_IFS
  2665. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2666. # Backslashify metacharacters that are still active within
  2667. # double-quoted strings.
  2668. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2669. # Same as above, but do not quote variable references.
  2670. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2671. # Sed substitution to delay expansion of an escaped shell variable in a
  2672. # double_quote_subst'ed string.
  2673. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2674. # Sed substitution to delay expansion of an escaped single quote.
  2675. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2676. # Sed substitution to avoid accidental globbing in evaled expressions
  2677. no_glob_subst='s/\*/\\\*/g'
  2678. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2679. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2680. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2682. $as_echo_n "checking how to print strings... " >&6; }
  2683. # Test print first, because it will be a builtin if present.
  2684. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2685. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2686. ECHO='print -r --'
  2687. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2688. ECHO='printf %s\n'
  2689. else
  2690. # Use this function as a fallback that always works.
  2691. func_fallback_echo ()
  2692. {
  2693. eval 'cat <<_LTECHO_EOF
  2694. $1
  2695. _LTECHO_EOF'
  2696. }
  2697. ECHO='func_fallback_echo'
  2698. fi
  2699. # func_echo_all arg...
  2700. # Invoke $ECHO with all args, space-separated.
  2701. func_echo_all ()
  2702. {
  2703. $ECHO ""
  2704. }
  2705. case "$ECHO" in
  2706. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2707. $as_echo "printf" >&6; } ;;
  2708. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2709. $as_echo "print -r" >&6; } ;;
  2710. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2711. $as_echo "cat" >&6; } ;;
  2712. esac
  2713. ac_ext=c
  2714. ac_cpp='$CPP $CPPFLAGS'
  2715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2718. if test -n "$ac_tool_prefix"; then
  2719. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2720. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2722. $as_echo_n "checking for $ac_word... " >&6; }
  2723. if ${ac_cv_prog_CC+:} false; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test -n "$CC"; then
  2727. ac_cv_prog_CC="$CC" # Let the user override the test.
  2728. else
  2729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2730. for as_dir in $PATH
  2731. do
  2732. IFS=$as_save_IFS
  2733. test -z "$as_dir" && as_dir=.
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2736. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2738. break 2
  2739. fi
  2740. done
  2741. done
  2742. IFS=$as_save_IFS
  2743. fi
  2744. fi
  2745. CC=$ac_cv_prog_CC
  2746. if test -n "$CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2748. $as_echo "$CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. fi
  2754. if test -z "$ac_cv_prog_CC"; then
  2755. ac_ct_CC=$CC
  2756. # Extract the first word of "gcc", so it can be a program name with args.
  2757. set dummy gcc; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$ac_ct_CC"; then
  2764. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_ac_ct_CC="gcc"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2783. if test -n "$ac_ct_CC"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2785. $as_echo "$ac_ct_CC" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. if test "x$ac_ct_CC" = x; then
  2791. CC=""
  2792. else
  2793. case $cross_compiling:$ac_tool_warned in
  2794. yes:)
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2797. ac_tool_warned=yes ;;
  2798. esac
  2799. CC=$ac_ct_CC
  2800. fi
  2801. else
  2802. CC="$ac_cv_prog_CC"
  2803. fi
  2804. if test -z "$CC"; then
  2805. if test -n "$ac_tool_prefix"; then
  2806. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2807. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if ${ac_cv_prog_CC+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2823. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. CC=$ac_cv_prog_CC
  2833. if test -n "$CC"; then
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2835. $as_echo "$CC" >&6; }
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. fi
  2841. fi
  2842. if test -z "$CC"; then
  2843. # Extract the first word of "cc", so it can be a program name with args.
  2844. set dummy cc; ac_word=$2
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if ${ac_cv_prog_CC+:} false; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$CC"; then
  2851. ac_cv_prog_CC="$CC" # Let the user override the test.
  2852. else
  2853. ac_prog_rejected=no
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2861. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2862. ac_prog_rejected=yes
  2863. continue
  2864. fi
  2865. ac_cv_prog_CC="cc"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. if test $ac_prog_rejected = yes; then
  2873. # We found a bogon in the path, so make sure we never use it.
  2874. set dummy $ac_cv_prog_CC
  2875. shift
  2876. if test $# != 0; then
  2877. # We chose a different compiler from the bogus one.
  2878. # However, it has the same basename, so the bogon will be chosen
  2879. # first if we set CC to just the basename; use the full file name.
  2880. shift
  2881. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2882. fi
  2883. fi
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. fi
  2895. if test -z "$CC"; then
  2896. if test -n "$ac_tool_prefix"; then
  2897. for ac_prog in cl.exe
  2898. do
  2899. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2900. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if ${ac_cv_prog_CC+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$CC"; then
  2907. ac_cv_prog_CC="$CC" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2916. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. CC=$ac_cv_prog_CC
  2926. if test -n "$CC"; then
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2928. $as_echo "$CC" >&6; }
  2929. else
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. test -n "$CC" && break
  2934. done
  2935. fi
  2936. if test -z "$CC"; then
  2937. ac_ct_CC=$CC
  2938. for ac_prog in cl.exe
  2939. do
  2940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2941. set dummy $ac_prog; ac_word=$2
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2943. $as_echo_n "checking for $ac_word... " >&6; }
  2944. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2945. $as_echo_n "(cached) " >&6
  2946. else
  2947. if test -n "$ac_ct_CC"; then
  2948. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2949. else
  2950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2951. for as_dir in $PATH
  2952. do
  2953. IFS=$as_save_IFS
  2954. test -z "$as_dir" && as_dir=.
  2955. for ac_exec_ext in '' $ac_executable_extensions; do
  2956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2957. ac_cv_prog_ac_ct_CC="$ac_prog"
  2958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2959. break 2
  2960. fi
  2961. done
  2962. done
  2963. IFS=$as_save_IFS
  2964. fi
  2965. fi
  2966. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2967. if test -n "$ac_ct_CC"; then
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2969. $as_echo "$ac_ct_CC" >&6; }
  2970. else
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2972. $as_echo "no" >&6; }
  2973. fi
  2974. test -n "$ac_ct_CC" && break
  2975. done
  2976. if test "x$ac_ct_CC" = x; then
  2977. CC=""
  2978. else
  2979. case $cross_compiling:$ac_tool_warned in
  2980. yes:)
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2983. ac_tool_warned=yes ;;
  2984. esac
  2985. CC=$ac_ct_CC
  2986. fi
  2987. fi
  2988. fi
  2989. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2991. as_fn_error $? "no acceptable C compiler found in \$PATH
  2992. See \`config.log' for more details" "$LINENO" 5; }
  2993. # Provide some information about the compiler.
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2995. set X $ac_compile
  2996. ac_compiler=$2
  2997. for ac_option in --version -v -V -qversion; do
  2998. { { ac_try="$ac_compiler $ac_option >&5"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3004. $as_echo "$ac_try_echo"; } >&5
  3005. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3006. ac_status=$?
  3007. if test -s conftest.err; then
  3008. sed '10a\
  3009. ... rest of stderr output deleted ...
  3010. 10q' conftest.err >conftest.er1
  3011. cat conftest.er1 >&5
  3012. fi
  3013. rm -f conftest.er1 conftest.err
  3014. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3015. test $ac_status = 0; }
  3016. done
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. int
  3020. main ()
  3021. {
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. ac_clean_files_save=$ac_clean_files
  3027. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3028. # Try to create an executable without -o first, disregard a.out.
  3029. # It will help us diagnose broken compilers, and finding out an intuition
  3030. # of exeext.
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3032. $as_echo_n "checking whether the C compiler works... " >&6; }
  3033. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3034. # The possible output files:
  3035. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3036. ac_rmfiles=
  3037. for ac_file in $ac_files
  3038. do
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3041. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3042. esac
  3043. done
  3044. rm -f $ac_rmfiles
  3045. if { { ac_try="$ac_link_default"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_link_default") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }; then :
  3056. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3057. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3058. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3059. # so that the user can short-circuit this test for compilers unknown to
  3060. # Autoconf.
  3061. for ac_file in $ac_files ''
  3062. do
  3063. test -f "$ac_file" || continue
  3064. case $ac_file in
  3065. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3066. ;;
  3067. [ab].out )
  3068. # We found the default executable, but exeext='' is most
  3069. # certainly right.
  3070. break;;
  3071. *.* )
  3072. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3073. then :; else
  3074. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3075. fi
  3076. # We set ac_cv_exeext here because the later test for it is not
  3077. # safe: cross compilers may not add the suffix if given an `-o'
  3078. # argument, so we may need to know it at that point already.
  3079. # Even if this section looks crufty: it has the advantage of
  3080. # actually working.
  3081. break;;
  3082. * )
  3083. break;;
  3084. esac
  3085. done
  3086. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3087. else
  3088. ac_file=''
  3089. fi
  3090. if test -z "$ac_file"; then :
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3092. $as_echo "no" >&6; }
  3093. $as_echo "$as_me: failed program was:" >&5
  3094. sed 's/^/| /' conftest.$ac_ext >&5
  3095. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3096. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3097. as_fn_error 77 "C compiler cannot create executables
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. else
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3101. $as_echo "yes" >&6; }
  3102. fi
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3104. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3106. $as_echo "$ac_file" >&6; }
  3107. ac_exeext=$ac_cv_exeext
  3108. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3109. ac_clean_files=$ac_clean_files_save
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3111. $as_echo_n "checking for suffix of executables... " >&6; }
  3112. if { { ac_try="$ac_link"
  3113. case "(($ac_try" in
  3114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3115. *) ac_try_echo=$ac_try;;
  3116. esac
  3117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3118. $as_echo "$ac_try_echo"; } >&5
  3119. (eval "$ac_link") 2>&5
  3120. ac_status=$?
  3121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3122. test $ac_status = 0; }; then :
  3123. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3124. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3125. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3126. # `rm'.
  3127. for ac_file in conftest.exe conftest conftest.*; do
  3128. test -f "$ac_file" || continue
  3129. case $ac_file in
  3130. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3131. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3132. break;;
  3133. * ) break;;
  3134. esac
  3135. done
  3136. else
  3137. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3139. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3140. See \`config.log' for more details" "$LINENO" 5; }
  3141. fi
  3142. rm -f conftest conftest$ac_cv_exeext
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3144. $as_echo "$ac_cv_exeext" >&6; }
  3145. rm -f conftest.$ac_ext
  3146. EXEEXT=$ac_cv_exeext
  3147. ac_exeext=$EXEEXT
  3148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3149. /* end confdefs.h. */
  3150. #include <stdio.h>
  3151. int
  3152. main ()
  3153. {
  3154. FILE *f = fopen ("conftest.out", "w");
  3155. return ferror (f) || fclose (f) != 0;
  3156. ;
  3157. return 0;
  3158. }
  3159. _ACEOF
  3160. ac_clean_files="$ac_clean_files conftest.out"
  3161. # Check that the compiler produces executables we can run. If not, either
  3162. # the compiler is broken, or we cross compile.
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3164. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3165. if test "$cross_compiling" != yes; then
  3166. { { ac_try="$ac_link"
  3167. case "(($ac_try" in
  3168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3169. *) ac_try_echo=$ac_try;;
  3170. esac
  3171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3172. $as_echo "$ac_try_echo"; } >&5
  3173. (eval "$ac_link") 2>&5
  3174. ac_status=$?
  3175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3176. test $ac_status = 0; }
  3177. if { ac_try='./conftest$ac_cv_exeext'
  3178. { { case "(($ac_try" in
  3179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3180. *) ac_try_echo=$ac_try;;
  3181. esac
  3182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3183. $as_echo "$ac_try_echo"; } >&5
  3184. (eval "$ac_try") 2>&5
  3185. ac_status=$?
  3186. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3187. test $ac_status = 0; }; }; then
  3188. cross_compiling=no
  3189. else
  3190. if test "$cross_compiling" = maybe; then
  3191. cross_compiling=yes
  3192. else
  3193. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3195. as_fn_error $? "cannot run C compiled programs.
  3196. If you meant to cross compile, use \`--host'.
  3197. See \`config.log' for more details" "$LINENO" 5; }
  3198. fi
  3199. fi
  3200. fi
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3202. $as_echo "$cross_compiling" >&6; }
  3203. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3204. ac_clean_files=$ac_clean_files_save
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3206. $as_echo_n "checking for suffix of object files... " >&6; }
  3207. if ${ac_cv_objext+:} false; then :
  3208. $as_echo_n "(cached) " >&6
  3209. else
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. rm -f conftest.o conftest.obj
  3220. if { { ac_try="$ac_compile"
  3221. case "(($ac_try" in
  3222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3223. *) ac_try_echo=$ac_try;;
  3224. esac
  3225. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3226. $as_echo "$ac_try_echo"; } >&5
  3227. (eval "$ac_compile") 2>&5
  3228. ac_status=$?
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3230. test $ac_status = 0; }; then :
  3231. for ac_file in conftest.o conftest.obj conftest.*; do
  3232. test -f "$ac_file" || continue;
  3233. case $ac_file in
  3234. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3235. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3236. break;;
  3237. esac
  3238. done
  3239. else
  3240. $as_echo "$as_me: failed program was:" >&5
  3241. sed 's/^/| /' conftest.$ac_ext >&5
  3242. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3243. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3244. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3245. See \`config.log' for more details" "$LINENO" 5; }
  3246. fi
  3247. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3248. fi
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3250. $as_echo "$ac_cv_objext" >&6; }
  3251. OBJEXT=$ac_cv_objext
  3252. ac_objext=$OBJEXT
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3254. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3255. if ${ac_cv_c_compiler_gnu+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3259. /* end confdefs.h. */
  3260. int
  3261. main ()
  3262. {
  3263. #ifndef __GNUC__
  3264. choke me
  3265. #endif
  3266. ;
  3267. return 0;
  3268. }
  3269. _ACEOF
  3270. if ac_fn_c_try_compile "$LINENO"; then :
  3271. ac_compiler_gnu=yes
  3272. else
  3273. ac_compiler_gnu=no
  3274. fi
  3275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3276. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3279. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3280. if test $ac_compiler_gnu = yes; then
  3281. GCC=yes
  3282. else
  3283. GCC=
  3284. fi
  3285. ac_test_CFLAGS=${CFLAGS+set}
  3286. ac_save_CFLAGS=$CFLAGS
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3288. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3289. if ${ac_cv_prog_cc_g+:} false; then :
  3290. $as_echo_n "(cached) " >&6
  3291. else
  3292. ac_save_c_werror_flag=$ac_c_werror_flag
  3293. ac_c_werror_flag=yes
  3294. ac_cv_prog_cc_g=no
  3295. CFLAGS="-g"
  3296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3297. /* end confdefs.h. */
  3298. int
  3299. main ()
  3300. {
  3301. ;
  3302. return 0;
  3303. }
  3304. _ACEOF
  3305. if ac_fn_c_try_compile "$LINENO"; then :
  3306. ac_cv_prog_cc_g=yes
  3307. else
  3308. CFLAGS=""
  3309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3310. /* end confdefs.h. */
  3311. int
  3312. main ()
  3313. {
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. if ac_fn_c_try_compile "$LINENO"; then :
  3319. else
  3320. ac_c_werror_flag=$ac_save_c_werror_flag
  3321. CFLAGS="-g"
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. int
  3325. main ()
  3326. {
  3327. ;
  3328. return 0;
  3329. }
  3330. _ACEOF
  3331. if ac_fn_c_try_compile "$LINENO"; then :
  3332. ac_cv_prog_cc_g=yes
  3333. fi
  3334. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3335. fi
  3336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3337. fi
  3338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. ac_c_werror_flag=$ac_save_c_werror_flag
  3340. fi
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3342. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3343. if test "$ac_test_CFLAGS" = set; then
  3344. CFLAGS=$ac_save_CFLAGS
  3345. elif test $ac_cv_prog_cc_g = yes; then
  3346. if test "$GCC" = yes; then
  3347. CFLAGS="-g -O2"
  3348. else
  3349. CFLAGS="-g"
  3350. fi
  3351. else
  3352. if test "$GCC" = yes; then
  3353. CFLAGS="-O2"
  3354. else
  3355. CFLAGS=
  3356. fi
  3357. fi
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3359. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3360. if ${ac_cv_prog_cc_c89+:} false; then :
  3361. $as_echo_n "(cached) " >&6
  3362. else
  3363. ac_cv_prog_cc_c89=no
  3364. ac_save_CC=$CC
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. #include <stdarg.h>
  3368. #include <stdio.h>
  3369. struct stat;
  3370. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3371. struct buf { int x; };
  3372. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3373. static char *e (p, i)
  3374. char **p;
  3375. int i;
  3376. {
  3377. return p[i];
  3378. }
  3379. static char *f (char * (*g) (char **, int), char **p, ...)
  3380. {
  3381. char *s;
  3382. va_list v;
  3383. va_start (v,p);
  3384. s = g (p, va_arg (v,int));
  3385. va_end (v);
  3386. return s;
  3387. }
  3388. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3389. function prototypes and stuff, but not '\xHH' hex character constants.
  3390. These don't provoke an error unfortunately, instead are silently treated
  3391. as 'x'. The following induces an error, until -std is added to get
  3392. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3393. array size at least. It's necessary to write '\x00'==0 to get something
  3394. that's true only with -std. */
  3395. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3396. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3397. inside strings and character constants. */
  3398. #define FOO(x) 'x'
  3399. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3400. int test (int i, double x);
  3401. struct s1 {int (*f) (int a);};
  3402. struct s2 {int (*f) (double a);};
  3403. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3404. int argc;
  3405. char **argv;
  3406. int
  3407. main ()
  3408. {
  3409. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3410. ;
  3411. return 0;
  3412. }
  3413. _ACEOF
  3414. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3415. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3416. do
  3417. CC="$ac_save_CC $ac_arg"
  3418. if ac_fn_c_try_compile "$LINENO"; then :
  3419. ac_cv_prog_cc_c89=$ac_arg
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext
  3422. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3423. done
  3424. rm -f conftest.$ac_ext
  3425. CC=$ac_save_CC
  3426. fi
  3427. # AC_CACHE_VAL
  3428. case "x$ac_cv_prog_cc_c89" in
  3429. x)
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3431. $as_echo "none needed" >&6; } ;;
  3432. xno)
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3434. $as_echo "unsupported" >&6; } ;;
  3435. *)
  3436. CC="$CC $ac_cv_prog_cc_c89"
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3438. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3439. esac
  3440. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3441. fi
  3442. ac_ext=c
  3443. ac_cpp='$CPP $CPPFLAGS'
  3444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3448. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3449. if ${ac_cv_path_SED+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3453. for ac_i in 1 2 3 4 5 6 7; do
  3454. ac_script="$ac_script$as_nl$ac_script"
  3455. done
  3456. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3457. { ac_script=; unset ac_script;}
  3458. if test -z "$SED"; then
  3459. ac_path_SED_found=false
  3460. # Loop through the user's path and test for each of PROGNAME-LIST
  3461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3462. for as_dir in $PATH
  3463. do
  3464. IFS=$as_save_IFS
  3465. test -z "$as_dir" && as_dir=.
  3466. for ac_prog in sed gsed; do
  3467. for ac_exec_ext in '' $ac_executable_extensions; do
  3468. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3469. as_fn_executable_p "$ac_path_SED" || continue
  3470. # Check for GNU ac_path_SED and select it if it is found.
  3471. # Check for GNU $ac_path_SED
  3472. case `"$ac_path_SED" --version 2>&1` in
  3473. *GNU*)
  3474. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3475. *)
  3476. ac_count=0
  3477. $as_echo_n 0123456789 >"conftest.in"
  3478. while :
  3479. do
  3480. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3481. mv "conftest.tmp" "conftest.in"
  3482. cp "conftest.in" "conftest.nl"
  3483. $as_echo '' >> "conftest.nl"
  3484. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3485. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3486. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3487. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3488. # Best one so far, save it but keep looking for a better one
  3489. ac_cv_path_SED="$ac_path_SED"
  3490. ac_path_SED_max=$ac_count
  3491. fi
  3492. # 10*(2^10) chars as input seems more than enough
  3493. test $ac_count -gt 10 && break
  3494. done
  3495. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3496. esac
  3497. $ac_path_SED_found && break 3
  3498. done
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. if test -z "$ac_cv_path_SED"; then
  3503. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3504. fi
  3505. else
  3506. ac_cv_path_SED=$SED
  3507. fi
  3508. fi
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3510. $as_echo "$ac_cv_path_SED" >&6; }
  3511. SED="$ac_cv_path_SED"
  3512. rm -f conftest.sed
  3513. test -z "$SED" && SED=sed
  3514. Xsed="$SED -e 1s/^X//"
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3516. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3517. if ${ac_cv_path_GREP+:} false; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. if test -z "$GREP"; then
  3521. ac_path_GREP_found=false
  3522. # Loop through the user's path and test for each of PROGNAME-LIST
  3523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3524. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3525. do
  3526. IFS=$as_save_IFS
  3527. test -z "$as_dir" && as_dir=.
  3528. for ac_prog in grep ggrep; do
  3529. for ac_exec_ext in '' $ac_executable_extensions; do
  3530. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3531. as_fn_executable_p "$ac_path_GREP" || continue
  3532. # Check for GNU ac_path_GREP and select it if it is found.
  3533. # Check for GNU $ac_path_GREP
  3534. case `"$ac_path_GREP" --version 2>&1` in
  3535. *GNU*)
  3536. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3537. *)
  3538. ac_count=0
  3539. $as_echo_n 0123456789 >"conftest.in"
  3540. while :
  3541. do
  3542. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3543. mv "conftest.tmp" "conftest.in"
  3544. cp "conftest.in" "conftest.nl"
  3545. $as_echo 'GREP' >> "conftest.nl"
  3546. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3547. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3548. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3549. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3550. # Best one so far, save it but keep looking for a better one
  3551. ac_cv_path_GREP="$ac_path_GREP"
  3552. ac_path_GREP_max=$ac_count
  3553. fi
  3554. # 10*(2^10) chars as input seems more than enough
  3555. test $ac_count -gt 10 && break
  3556. done
  3557. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3558. esac
  3559. $ac_path_GREP_found && break 3
  3560. done
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. if test -z "$ac_cv_path_GREP"; then
  3565. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3566. fi
  3567. else
  3568. ac_cv_path_GREP=$GREP
  3569. fi
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3572. $as_echo "$ac_cv_path_GREP" >&6; }
  3573. GREP="$ac_cv_path_GREP"
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3575. $as_echo_n "checking for egrep... " >&6; }
  3576. if ${ac_cv_path_EGREP+:} false; then :
  3577. $as_echo_n "(cached) " >&6
  3578. else
  3579. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3580. then ac_cv_path_EGREP="$GREP -E"
  3581. else
  3582. if test -z "$EGREP"; then
  3583. ac_path_EGREP_found=false
  3584. # Loop through the user's path and test for each of PROGNAME-LIST
  3585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. for ac_prog in egrep; do
  3591. for ac_exec_ext in '' $ac_executable_extensions; do
  3592. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3593. as_fn_executable_p "$ac_path_EGREP" || continue
  3594. # Check for GNU ac_path_EGREP and select it if it is found.
  3595. # Check for GNU $ac_path_EGREP
  3596. case `"$ac_path_EGREP" --version 2>&1` in
  3597. *GNU*)
  3598. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3599. *)
  3600. ac_count=0
  3601. $as_echo_n 0123456789 >"conftest.in"
  3602. while :
  3603. do
  3604. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3605. mv "conftest.tmp" "conftest.in"
  3606. cp "conftest.in" "conftest.nl"
  3607. $as_echo 'EGREP' >> "conftest.nl"
  3608. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3609. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3610. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3611. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3612. # Best one so far, save it but keep looking for a better one
  3613. ac_cv_path_EGREP="$ac_path_EGREP"
  3614. ac_path_EGREP_max=$ac_count
  3615. fi
  3616. # 10*(2^10) chars as input seems more than enough
  3617. test $ac_count -gt 10 && break
  3618. done
  3619. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3620. esac
  3621. $ac_path_EGREP_found && break 3
  3622. done
  3623. done
  3624. done
  3625. IFS=$as_save_IFS
  3626. if test -z "$ac_cv_path_EGREP"; then
  3627. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3628. fi
  3629. else
  3630. ac_cv_path_EGREP=$EGREP
  3631. fi
  3632. fi
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3635. $as_echo "$ac_cv_path_EGREP" >&6; }
  3636. EGREP="$ac_cv_path_EGREP"
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3638. $as_echo_n "checking for fgrep... " >&6; }
  3639. if ${ac_cv_path_FGREP+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3643. then ac_cv_path_FGREP="$GREP -F"
  3644. else
  3645. if test -z "$FGREP"; then
  3646. ac_path_FGREP_found=false
  3647. # Loop through the user's path and test for each of PROGNAME-LIST
  3648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3649. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3650. do
  3651. IFS=$as_save_IFS
  3652. test -z "$as_dir" && as_dir=.
  3653. for ac_prog in fgrep; do
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3656. as_fn_executable_p "$ac_path_FGREP" || continue
  3657. # Check for GNU ac_path_FGREP and select it if it is found.
  3658. # Check for GNU $ac_path_FGREP
  3659. case `"$ac_path_FGREP" --version 2>&1` in
  3660. *GNU*)
  3661. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3662. *)
  3663. ac_count=0
  3664. $as_echo_n 0123456789 >"conftest.in"
  3665. while :
  3666. do
  3667. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3668. mv "conftest.tmp" "conftest.in"
  3669. cp "conftest.in" "conftest.nl"
  3670. $as_echo 'FGREP' >> "conftest.nl"
  3671. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3672. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3673. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3674. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3675. # Best one so far, save it but keep looking for a better one
  3676. ac_cv_path_FGREP="$ac_path_FGREP"
  3677. ac_path_FGREP_max=$ac_count
  3678. fi
  3679. # 10*(2^10) chars as input seems more than enough
  3680. test $ac_count -gt 10 && break
  3681. done
  3682. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3683. esac
  3684. $ac_path_FGREP_found && break 3
  3685. done
  3686. done
  3687. done
  3688. IFS=$as_save_IFS
  3689. if test -z "$ac_cv_path_FGREP"; then
  3690. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3691. fi
  3692. else
  3693. ac_cv_path_FGREP=$FGREP
  3694. fi
  3695. fi
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3698. $as_echo "$ac_cv_path_FGREP" >&6; }
  3699. FGREP="$ac_cv_path_FGREP"
  3700. test -z "$GREP" && GREP=grep
  3701. # Check whether --with-gnu-ld was given.
  3702. if test "${with_gnu_ld+set}" = set; then :
  3703. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3704. else
  3705. with_gnu_ld=no
  3706. fi
  3707. ac_prog=ld
  3708. if test "$GCC" = yes; then
  3709. # Check if gcc -print-prog-name=ld gives a path.
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3711. $as_echo_n "checking for ld used by $CC... " >&6; }
  3712. case $host in
  3713. *-*-mingw*)
  3714. # gcc leaves a trailing carriage return which upsets mingw
  3715. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3716. *)
  3717. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3718. esac
  3719. case $ac_prog in
  3720. # Accept absolute paths.
  3721. [\\/]* | ?:[\\/]*)
  3722. re_direlt='/[^/][^/]*/\.\./'
  3723. # Canonicalize the pathname of ld
  3724. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3725. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3726. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3727. done
  3728. test -z "$LD" && LD="$ac_prog"
  3729. ;;
  3730. "")
  3731. # If it fails, then pretend we aren't using GCC.
  3732. ac_prog=ld
  3733. ;;
  3734. *)
  3735. # If it is relative, then search for the first ld in PATH.
  3736. with_gnu_ld=unknown
  3737. ;;
  3738. esac
  3739. elif test "$with_gnu_ld" = yes; then
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3741. $as_echo_n "checking for GNU ld... " >&6; }
  3742. else
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3744. $as_echo_n "checking for non-GNU ld... " >&6; }
  3745. fi
  3746. if ${lt_cv_path_LD+:} false; then :
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. if test -z "$LD"; then
  3750. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3751. for ac_dir in $PATH; do
  3752. IFS="$lt_save_ifs"
  3753. test -z "$ac_dir" && ac_dir=.
  3754. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3755. lt_cv_path_LD="$ac_dir/$ac_prog"
  3756. # Check to see if the program is GNU ld. I'd rather use --version,
  3757. # but apparently some variants of GNU ld only accept -v.
  3758. # Break only if it was the GNU/non-GNU ld that we prefer.
  3759. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3760. *GNU* | *'with BFD'*)
  3761. test "$with_gnu_ld" != no && break
  3762. ;;
  3763. *)
  3764. test "$with_gnu_ld" != yes && break
  3765. ;;
  3766. esac
  3767. fi
  3768. done
  3769. IFS="$lt_save_ifs"
  3770. else
  3771. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3772. fi
  3773. fi
  3774. LD="$lt_cv_path_LD"
  3775. if test -n "$LD"; then
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3777. $as_echo "$LD" >&6; }
  3778. else
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3780. $as_echo "no" >&6; }
  3781. fi
  3782. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3784. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3785. if ${lt_cv_prog_gnu_ld+:} false; then :
  3786. $as_echo_n "(cached) " >&6
  3787. else
  3788. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3789. case `$LD -v 2>&1 </dev/null` in
  3790. *GNU* | *'with BFD'*)
  3791. lt_cv_prog_gnu_ld=yes
  3792. ;;
  3793. *)
  3794. lt_cv_prog_gnu_ld=no
  3795. ;;
  3796. esac
  3797. fi
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3799. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3800. with_gnu_ld=$lt_cv_prog_gnu_ld
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3802. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3803. if ${lt_cv_path_NM+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$NM"; then
  3807. # Let the user override the test.
  3808. lt_cv_path_NM="$NM"
  3809. else
  3810. lt_nm_to_check="${ac_tool_prefix}nm"
  3811. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3812. lt_nm_to_check="$lt_nm_to_check nm"
  3813. fi
  3814. for lt_tmp_nm in $lt_nm_to_check; do
  3815. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3816. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3817. IFS="$lt_save_ifs"
  3818. test -z "$ac_dir" && ac_dir=.
  3819. tmp_nm="$ac_dir/$lt_tmp_nm"
  3820. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3821. # Check to see if the nm accepts a BSD-compat flag.
  3822. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3823. # nm: unknown option "B" ignored
  3824. # Tru64's nm complains that /dev/null is an invalid object file
  3825. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3826. */dev/null* | *'Invalid file or object type'*)
  3827. lt_cv_path_NM="$tmp_nm -B"
  3828. break
  3829. ;;
  3830. *)
  3831. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3832. */dev/null*)
  3833. lt_cv_path_NM="$tmp_nm -p"
  3834. break
  3835. ;;
  3836. *)
  3837. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3838. continue # so that we can try to find one that supports BSD flags
  3839. ;;
  3840. esac
  3841. ;;
  3842. esac
  3843. fi
  3844. done
  3845. IFS="$lt_save_ifs"
  3846. done
  3847. : ${lt_cv_path_NM=no}
  3848. fi
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3851. $as_echo "$lt_cv_path_NM" >&6; }
  3852. if test "$lt_cv_path_NM" != "no"; then
  3853. NM="$lt_cv_path_NM"
  3854. else
  3855. # Didn't find any BSD compatible name lister, look for dumpbin.
  3856. if test -n "$DUMPBIN"; then :
  3857. # Let the user override the test.
  3858. else
  3859. if test -n "$ac_tool_prefix"; then
  3860. for ac_prog in dumpbin "link -dump"
  3861. do
  3862. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3863. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3865. $as_echo_n "checking for $ac_word... " >&6; }
  3866. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. if test -n "$DUMPBIN"; then
  3870. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3871. else
  3872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3873. for as_dir in $PATH
  3874. do
  3875. IFS=$as_save_IFS
  3876. test -z "$as_dir" && as_dir=.
  3877. for ac_exec_ext in '' $ac_executable_extensions; do
  3878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3879. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3881. break 2
  3882. fi
  3883. done
  3884. done
  3885. IFS=$as_save_IFS
  3886. fi
  3887. fi
  3888. DUMPBIN=$ac_cv_prog_DUMPBIN
  3889. if test -n "$DUMPBIN"; then
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3891. $as_echo "$DUMPBIN" >&6; }
  3892. else
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3894. $as_echo "no" >&6; }
  3895. fi
  3896. test -n "$DUMPBIN" && break
  3897. done
  3898. fi
  3899. if test -z "$DUMPBIN"; then
  3900. ac_ct_DUMPBIN=$DUMPBIN
  3901. for ac_prog in dumpbin "link -dump"
  3902. do
  3903. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3904. set dummy $ac_prog; ac_word=$2
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3906. $as_echo_n "checking for $ac_word... " >&6; }
  3907. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. if test -n "$ac_ct_DUMPBIN"; then
  3911. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3912. else
  3913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3914. for as_dir in $PATH
  3915. do
  3916. IFS=$as_save_IFS
  3917. test -z "$as_dir" && as_dir=.
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3920. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3922. break 2
  3923. fi
  3924. done
  3925. done
  3926. IFS=$as_save_IFS
  3927. fi
  3928. fi
  3929. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3930. if test -n "$ac_ct_DUMPBIN"; then
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3932. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3933. else
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3935. $as_echo "no" >&6; }
  3936. fi
  3937. test -n "$ac_ct_DUMPBIN" && break
  3938. done
  3939. if test "x$ac_ct_DUMPBIN" = x; then
  3940. DUMPBIN=":"
  3941. else
  3942. case $cross_compiling:$ac_tool_warned in
  3943. yes:)
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3945. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3946. ac_tool_warned=yes ;;
  3947. esac
  3948. DUMPBIN=$ac_ct_DUMPBIN
  3949. fi
  3950. fi
  3951. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3952. *COFF*)
  3953. DUMPBIN="$DUMPBIN -symbols"
  3954. ;;
  3955. *)
  3956. DUMPBIN=:
  3957. ;;
  3958. esac
  3959. fi
  3960. if test "$DUMPBIN" != ":"; then
  3961. NM="$DUMPBIN"
  3962. fi
  3963. fi
  3964. test -z "$NM" && NM=nm
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3966. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3967. if ${lt_cv_nm_interface+:} false; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. lt_cv_nm_interface="BSD nm"
  3971. echo "int some_variable = 0;" > conftest.$ac_ext
  3972. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3973. (eval "$ac_compile" 2>conftest.err)
  3974. cat conftest.err >&5
  3975. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3976. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3977. cat conftest.err >&5
  3978. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3979. cat conftest.out >&5
  3980. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3981. lt_cv_nm_interface="MS dumpbin"
  3982. fi
  3983. rm -f conftest*
  3984. fi
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3986. $as_echo "$lt_cv_nm_interface" >&6; }
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3988. $as_echo_n "checking whether ln -s works... " >&6; }
  3989. LN_S=$as_ln_s
  3990. if test "$LN_S" = "ln -s"; then
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3992. $as_echo "yes" >&6; }
  3993. else
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3995. $as_echo "no, using $LN_S" >&6; }
  3996. fi
  3997. # find the maximum length of command line arguments
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3999. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4000. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. i=0
  4004. teststring="ABCD"
  4005. case $build_os in
  4006. msdosdjgpp*)
  4007. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4008. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4009. # during glob expansion). Even if it were fixed, the result of this
  4010. # check would be larger than it should be.
  4011. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4012. ;;
  4013. gnu*)
  4014. # Under GNU Hurd, this test is not required because there is
  4015. # no limit to the length of command line arguments.
  4016. # Libtool will interpret -1 as no limit whatsoever
  4017. lt_cv_sys_max_cmd_len=-1;
  4018. ;;
  4019. cygwin* | mingw* | cegcc*)
  4020. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4021. # about 5 minutes as the teststring grows exponentially.
  4022. # Worse, since 9x/ME are not pre-emptively multitasking,
  4023. # you end up with a "frozen" computer, even though with patience
  4024. # the test eventually succeeds (with a max line length of 256k).
  4025. # Instead, let's just punt: use the minimum linelength reported by
  4026. # all of the supported platforms: 8192 (on NT/2K/XP).
  4027. lt_cv_sys_max_cmd_len=8192;
  4028. ;;
  4029. mint*)
  4030. # On MiNT this can take a long time and run out of memory.
  4031. lt_cv_sys_max_cmd_len=8192;
  4032. ;;
  4033. amigaos*)
  4034. # On AmigaOS with pdksh, this test takes hours, literally.
  4035. # So we just punt and use a minimum line length of 8192.
  4036. lt_cv_sys_max_cmd_len=8192;
  4037. ;;
  4038. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4039. # This has been around since 386BSD, at least. Likely further.
  4040. if test -x /sbin/sysctl; then
  4041. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4042. elif test -x /usr/sbin/sysctl; then
  4043. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4044. else
  4045. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4046. fi
  4047. # And add a safety zone
  4048. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4049. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4050. ;;
  4051. interix*)
  4052. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4053. lt_cv_sys_max_cmd_len=196608
  4054. ;;
  4055. os2*)
  4056. # The test takes a long time on OS/2.
  4057. lt_cv_sys_max_cmd_len=8192
  4058. ;;
  4059. osf*)
  4060. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4061. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4062. # nice to cause kernel panics so lets avoid the loop below.
  4063. # First set a reasonable default.
  4064. lt_cv_sys_max_cmd_len=16384
  4065. #
  4066. if test -x /sbin/sysconfig; then
  4067. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4068. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4069. esac
  4070. fi
  4071. ;;
  4072. sco3.2v5*)
  4073. lt_cv_sys_max_cmd_len=102400
  4074. ;;
  4075. sysv5* | sco5v6* | sysv4.2uw2*)
  4076. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4077. if test -n "$kargmax"; then
  4078. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4079. else
  4080. lt_cv_sys_max_cmd_len=32768
  4081. fi
  4082. ;;
  4083. *)
  4084. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4085. if test -n "$lt_cv_sys_max_cmd_len"; then
  4086. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4087. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4088. else
  4089. # Make teststring a little bigger before we do anything with it.
  4090. # a 1K string should be a reasonable start.
  4091. for i in 1 2 3 4 5 6 7 8 ; do
  4092. teststring=$teststring$teststring
  4093. done
  4094. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4095. # If test is not a shell built-in, we'll probably end up computing a
  4096. # maximum length that is only half of the actual maximum length, but
  4097. # we can't tell.
  4098. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4099. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4100. test $i != 17 # 1/2 MB should be enough
  4101. do
  4102. i=`expr $i + 1`
  4103. teststring=$teststring$teststring
  4104. done
  4105. # Only check the string length outside the loop.
  4106. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4107. teststring=
  4108. # Add a significant safety factor because C++ compilers can tack on
  4109. # massive amounts of additional arguments before passing them to the
  4110. # linker. It appears as though 1/2 is a usable value.
  4111. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4112. fi
  4113. ;;
  4114. esac
  4115. fi
  4116. if test -n $lt_cv_sys_max_cmd_len ; then
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4118. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4119. else
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4121. $as_echo "none" >&6; }
  4122. fi
  4123. max_cmd_len=$lt_cv_sys_max_cmd_len
  4124. : ${CP="cp -f"}
  4125. : ${MV="mv -f"}
  4126. : ${RM="rm -f"}
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4128. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4129. # Try some XSI features
  4130. xsi_shell=no
  4131. ( _lt_dummy="a/b/c"
  4132. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4133. = c,a/b,b/c, \
  4134. && eval 'test $(( 1 + 1 )) -eq 2 \
  4135. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4136. && xsi_shell=yes
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4138. $as_echo "$xsi_shell" >&6; }
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4140. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4141. lt_shell_append=no
  4142. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4143. >/dev/null 2>&1 \
  4144. && lt_shell_append=yes
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4146. $as_echo "$lt_shell_append" >&6; }
  4147. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4148. lt_unset=unset
  4149. else
  4150. lt_unset=false
  4151. fi
  4152. # test EBCDIC or ASCII
  4153. case `echo X|tr X '\101'` in
  4154. A) # ASCII based system
  4155. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4156. lt_SP2NL='tr \040 \012'
  4157. lt_NL2SP='tr \015\012 \040\040'
  4158. ;;
  4159. *) # EBCDIC based system
  4160. lt_SP2NL='tr \100 \n'
  4161. lt_NL2SP='tr \r\n \100\100'
  4162. ;;
  4163. esac
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4165. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4166. if ${lt_cv_to_host_file_cmd+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. case $host in
  4170. *-*-mingw* )
  4171. case $build in
  4172. *-*-mingw* ) # actually msys
  4173. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4174. ;;
  4175. *-*-cygwin* )
  4176. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4177. ;;
  4178. * ) # otherwise, assume *nix
  4179. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4180. ;;
  4181. esac
  4182. ;;
  4183. *-*-cygwin* )
  4184. case $build in
  4185. *-*-mingw* ) # actually msys
  4186. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4187. ;;
  4188. *-*-cygwin* )
  4189. lt_cv_to_host_file_cmd=func_convert_file_noop
  4190. ;;
  4191. * ) # otherwise, assume *nix
  4192. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4193. ;;
  4194. esac
  4195. ;;
  4196. * ) # unhandled hosts (and "normal" native builds)
  4197. lt_cv_to_host_file_cmd=func_convert_file_noop
  4198. ;;
  4199. esac
  4200. fi
  4201. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4203. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4205. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4206. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. #assume ordinary cross tools, or native build.
  4210. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4211. case $host in
  4212. *-*-mingw* )
  4213. case $build in
  4214. *-*-mingw* ) # actually msys
  4215. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4216. ;;
  4217. esac
  4218. ;;
  4219. esac
  4220. fi
  4221. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4223. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4225. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4226. if ${lt_cv_ld_reload_flag+:} false; then :
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. lt_cv_ld_reload_flag='-r'
  4230. fi
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4232. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4233. reload_flag=$lt_cv_ld_reload_flag
  4234. case $reload_flag in
  4235. "" | " "*) ;;
  4236. *) reload_flag=" $reload_flag" ;;
  4237. esac
  4238. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4239. case $host_os in
  4240. cygwin* | mingw* | pw32* | cegcc*)
  4241. if test "$GCC" != yes; then
  4242. reload_cmds=false
  4243. fi
  4244. ;;
  4245. darwin*)
  4246. if test "$GCC" = yes; then
  4247. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4248. else
  4249. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4250. fi
  4251. ;;
  4252. esac
  4253. if test -n "$ac_tool_prefix"; then
  4254. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4255. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4257. $as_echo_n "checking for $ac_word... " >&6; }
  4258. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -n "$OBJDUMP"; then
  4262. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4263. else
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4271. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. fi
  4279. fi
  4280. OBJDUMP=$ac_cv_prog_OBJDUMP
  4281. if test -n "$OBJDUMP"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4283. $as_echo "$OBJDUMP" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$ac_cv_prog_OBJDUMP"; then
  4290. ac_ct_OBJDUMP=$OBJDUMP
  4291. # Extract the first word of "objdump", so it can be a program name with args.
  4292. set dummy objdump; ac_word=$2
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. $as_echo_n "checking for $ac_word... " >&6; }
  4295. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. if test -n "$ac_ct_OBJDUMP"; then
  4299. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4300. else
  4301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4308. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4310. break 2
  4311. fi
  4312. done
  4313. done
  4314. IFS=$as_save_IFS
  4315. fi
  4316. fi
  4317. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4318. if test -n "$ac_ct_OBJDUMP"; then
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4320. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4321. else
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4323. $as_echo "no" >&6; }
  4324. fi
  4325. if test "x$ac_ct_OBJDUMP" = x; then
  4326. OBJDUMP="false"
  4327. else
  4328. case $cross_compiling:$ac_tool_warned in
  4329. yes:)
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4332. ac_tool_warned=yes ;;
  4333. esac
  4334. OBJDUMP=$ac_ct_OBJDUMP
  4335. fi
  4336. else
  4337. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4338. fi
  4339. test -z "$OBJDUMP" && OBJDUMP=objdump
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4341. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4342. if ${lt_cv_deplibs_check_method+:} false; then :
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4346. lt_cv_file_magic_test_file=
  4347. lt_cv_deplibs_check_method='unknown'
  4348. # Need to set the preceding variable on all platforms that support
  4349. # interlibrary dependencies.
  4350. # 'none' -- dependencies not supported.
  4351. # `unknown' -- same as none, but documents that we really don't know.
  4352. # 'pass_all' -- all dependencies passed with no checks.
  4353. # 'test_compile' -- check by making test program.
  4354. # 'file_magic [[regex]]' -- check by looking for files in library path
  4355. # which responds to the $file_magic_cmd with a given extended regex.
  4356. # If you have `file' or equivalent on your system and you're not sure
  4357. # whether `pass_all' will *always* work, you probably want this one.
  4358. case $host_os in
  4359. aix[4-9]*)
  4360. lt_cv_deplibs_check_method=pass_all
  4361. ;;
  4362. beos*)
  4363. lt_cv_deplibs_check_method=pass_all
  4364. ;;
  4365. bsdi[45]*)
  4366. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4367. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4368. lt_cv_file_magic_test_file=/shlib/libc.so
  4369. ;;
  4370. cygwin*)
  4371. # func_win32_libid is a shell function defined in ltmain.sh
  4372. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4373. lt_cv_file_magic_cmd='func_win32_libid'
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. mingw* | pw32*)
  4377. # Base MSYS/MinGW do not provide the 'file' command needed by
  4378. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4379. # unless we find 'file', for example because we are cross-compiling.
  4380. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4381. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4382. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4383. lt_cv_file_magic_cmd='func_win32_libid'
  4384. else
  4385. # Keep this pattern in sync with the one in func_win32_libid.
  4386. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4387. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4388. fi
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. cegcc*)
  4392. # use the weaker test based on 'objdump'. See mingw*.
  4393. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4394. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4395. ;;
  4396. darwin* | rhapsody*)
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. freebsd* | dragonfly*)
  4400. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4401. case $host_cpu in
  4402. i*86 )
  4403. # Not sure whether the presence of OpenBSD here was a mistake.
  4404. # Let's accept both of them until this is cleared up.
  4405. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4406. lt_cv_file_magic_cmd=/usr/bin/file
  4407. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4408. ;;
  4409. esac
  4410. else
  4411. lt_cv_deplibs_check_method=pass_all
  4412. fi
  4413. ;;
  4414. gnu*)
  4415. lt_cv_deplibs_check_method=pass_all
  4416. ;;
  4417. haiku*)
  4418. lt_cv_deplibs_check_method=pass_all
  4419. ;;
  4420. hpux10.20* | hpux11*)
  4421. lt_cv_file_magic_cmd=/usr/bin/file
  4422. case $host_cpu in
  4423. ia64*)
  4424. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4425. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4426. ;;
  4427. hppa*64*)
  4428. 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]'
  4429. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4430. ;;
  4431. *)
  4432. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4433. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4434. ;;
  4435. esac
  4436. ;;
  4437. interix[3-9]*)
  4438. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4439. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4440. ;;
  4441. irix5* | irix6* | nonstopux*)
  4442. case $LD in
  4443. *-32|*"-32 ") libmagic=32-bit;;
  4444. *-n32|*"-n32 ") libmagic=N32;;
  4445. *-64|*"-64 ") libmagic=64-bit;;
  4446. *) libmagic=never-match;;
  4447. esac
  4448. lt_cv_deplibs_check_method=pass_all
  4449. ;;
  4450. # This must be glibc/ELF.
  4451. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4452. lt_cv_deplibs_check_method=pass_all
  4453. ;;
  4454. netbsd*)
  4455. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4456. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4457. else
  4458. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4459. fi
  4460. ;;
  4461. newos6*)
  4462. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4463. lt_cv_file_magic_cmd=/usr/bin/file
  4464. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4465. ;;
  4466. *nto* | *qnx*)
  4467. lt_cv_deplibs_check_method=pass_all
  4468. ;;
  4469. openbsd*)
  4470. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4471. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4472. else
  4473. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4474. fi
  4475. ;;
  4476. osf3* | osf4* | osf5*)
  4477. lt_cv_deplibs_check_method=pass_all
  4478. ;;
  4479. rdos*)
  4480. lt_cv_deplibs_check_method=pass_all
  4481. ;;
  4482. solaris*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. sysv4 | sysv4.3*)
  4489. case $host_vendor in
  4490. motorola)
  4491. 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]'
  4492. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4493. ;;
  4494. ncr)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. sequent)
  4498. lt_cv_file_magic_cmd='/bin/file'
  4499. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4500. ;;
  4501. sni)
  4502. lt_cv_file_magic_cmd='/bin/file'
  4503. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4504. lt_cv_file_magic_test_file=/lib/libc.so
  4505. ;;
  4506. siemens)
  4507. lt_cv_deplibs_check_method=pass_all
  4508. ;;
  4509. pc)
  4510. lt_cv_deplibs_check_method=pass_all
  4511. ;;
  4512. esac
  4513. ;;
  4514. tpf*)
  4515. lt_cv_deplibs_check_method=pass_all
  4516. ;;
  4517. esac
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4520. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4521. file_magic_glob=
  4522. want_nocaseglob=no
  4523. if test "$build" = "$host"; then
  4524. case $host_os in
  4525. mingw* | pw32*)
  4526. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4527. want_nocaseglob=yes
  4528. else
  4529. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4530. fi
  4531. ;;
  4532. esac
  4533. fi
  4534. file_magic_cmd=$lt_cv_file_magic_cmd
  4535. deplibs_check_method=$lt_cv_deplibs_check_method
  4536. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4537. if test -n "$ac_tool_prefix"; then
  4538. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4539. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4541. $as_echo_n "checking for $ac_word... " >&6; }
  4542. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if test -n "$DLLTOOL"; then
  4546. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4547. else
  4548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4549. for as_dir in $PATH
  4550. do
  4551. IFS=$as_save_IFS
  4552. test -z "$as_dir" && as_dir=.
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4555. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4557. break 2
  4558. fi
  4559. done
  4560. done
  4561. IFS=$as_save_IFS
  4562. fi
  4563. fi
  4564. DLLTOOL=$ac_cv_prog_DLLTOOL
  4565. if test -n "$DLLTOOL"; then
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4567. $as_echo "$DLLTOOL" >&6; }
  4568. else
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4570. $as_echo "no" >&6; }
  4571. fi
  4572. fi
  4573. if test -z "$ac_cv_prog_DLLTOOL"; then
  4574. ac_ct_DLLTOOL=$DLLTOOL
  4575. # Extract the first word of "dlltool", so it can be a program name with args.
  4576. set dummy dlltool; ac_word=$2
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4578. $as_echo_n "checking for $ac_word... " >&6; }
  4579. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4580. $as_echo_n "(cached) " >&6
  4581. else
  4582. if test -n "$ac_ct_DLLTOOL"; then
  4583. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4584. else
  4585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4586. for as_dir in $PATH
  4587. do
  4588. IFS=$as_save_IFS
  4589. test -z "$as_dir" && as_dir=.
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4592. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4594. break 2
  4595. fi
  4596. done
  4597. done
  4598. IFS=$as_save_IFS
  4599. fi
  4600. fi
  4601. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4602. if test -n "$ac_ct_DLLTOOL"; then
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4604. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4605. else
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4607. $as_echo "no" >&6; }
  4608. fi
  4609. if test "x$ac_ct_DLLTOOL" = x; then
  4610. DLLTOOL="false"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. DLLTOOL=$ac_ct_DLLTOOL
  4619. fi
  4620. else
  4621. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4622. fi
  4623. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4625. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4626. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4630. case $host_os in
  4631. cygwin* | mingw* | pw32* | cegcc*)
  4632. # two different shell functions defined in ltmain.sh
  4633. # decide which to use based on capabilities of $DLLTOOL
  4634. case `$DLLTOOL --help 2>&1` in
  4635. *--identify-strict*)
  4636. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4637. ;;
  4638. *)
  4639. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4640. ;;
  4641. esac
  4642. ;;
  4643. *)
  4644. # fallback: assume linklib IS sharedlib
  4645. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4646. ;;
  4647. esac
  4648. fi
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4650. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4651. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4652. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4653. if test -n "$ac_tool_prefix"; then
  4654. for ac_prog in ar
  4655. do
  4656. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4657. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4659. $as_echo_n "checking for $ac_word... " >&6; }
  4660. if ${ac_cv_prog_AR+:} false; then :
  4661. $as_echo_n "(cached) " >&6
  4662. else
  4663. if test -n "$AR"; then
  4664. ac_cv_prog_AR="$AR" # Let the user override the test.
  4665. else
  4666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4667. for as_dir in $PATH
  4668. do
  4669. IFS=$as_save_IFS
  4670. test -z "$as_dir" && as_dir=.
  4671. for ac_exec_ext in '' $ac_executable_extensions; do
  4672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4673. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4675. break 2
  4676. fi
  4677. done
  4678. done
  4679. IFS=$as_save_IFS
  4680. fi
  4681. fi
  4682. AR=$ac_cv_prog_AR
  4683. if test -n "$AR"; then
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4685. $as_echo "$AR" >&6; }
  4686. else
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4688. $as_echo "no" >&6; }
  4689. fi
  4690. test -n "$AR" && break
  4691. done
  4692. fi
  4693. if test -z "$AR"; then
  4694. ac_ct_AR=$AR
  4695. for ac_prog in ar
  4696. do
  4697. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4698. set dummy $ac_prog; ac_word=$2
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4700. $as_echo_n "checking for $ac_word... " >&6; }
  4701. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4702. $as_echo_n "(cached) " >&6
  4703. else
  4704. if test -n "$ac_ct_AR"; then
  4705. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4706. else
  4707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4708. for as_dir in $PATH
  4709. do
  4710. IFS=$as_save_IFS
  4711. test -z "$as_dir" && as_dir=.
  4712. for ac_exec_ext in '' $ac_executable_extensions; do
  4713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4714. ac_cv_prog_ac_ct_AR="$ac_prog"
  4715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4716. break 2
  4717. fi
  4718. done
  4719. done
  4720. IFS=$as_save_IFS
  4721. fi
  4722. fi
  4723. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4724. if test -n "$ac_ct_AR"; then
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4726. $as_echo "$ac_ct_AR" >&6; }
  4727. else
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4729. $as_echo "no" >&6; }
  4730. fi
  4731. test -n "$ac_ct_AR" && break
  4732. done
  4733. if test "x$ac_ct_AR" = x; then
  4734. AR="false"
  4735. else
  4736. case $cross_compiling:$ac_tool_warned in
  4737. yes:)
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4739. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4740. ac_tool_warned=yes ;;
  4741. esac
  4742. AR=$ac_ct_AR
  4743. fi
  4744. fi
  4745. : ${AR=ar}
  4746. : ${AR_FLAGS=cru}
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4748. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4749. if ${lt_cv_ar_at_file+:} false; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. lt_cv_ar_at_file=no
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. int
  4756. main ()
  4757. {
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_c_try_compile "$LINENO"; then :
  4763. echo conftest.$ac_objext > conftest.lst
  4764. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4765. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4766. (eval $lt_ar_try) 2>&5
  4767. ac_status=$?
  4768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4769. test $ac_status = 0; }
  4770. if test "$ac_status" -eq 0; then
  4771. # Ensure the archiver fails upon bogus file names.
  4772. rm -f conftest.$ac_objext libconftest.a
  4773. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4774. (eval $lt_ar_try) 2>&5
  4775. ac_status=$?
  4776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4777. test $ac_status = 0; }
  4778. if test "$ac_status" -ne 0; then
  4779. lt_cv_ar_at_file=@
  4780. fi
  4781. fi
  4782. rm -f conftest.* libconftest.a
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4787. $as_echo "$lt_cv_ar_at_file" >&6; }
  4788. if test "x$lt_cv_ar_at_file" = xno; then
  4789. archiver_list_spec=
  4790. else
  4791. archiver_list_spec=$lt_cv_ar_at_file
  4792. fi
  4793. if test -n "$ac_tool_prefix"; then
  4794. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4795. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4797. $as_echo_n "checking for $ac_word... " >&6; }
  4798. if ${ac_cv_prog_STRIP+:} false; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if test -n "$STRIP"; then
  4802. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4803. else
  4804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4805. for as_dir in $PATH
  4806. do
  4807. IFS=$as_save_IFS
  4808. test -z "$as_dir" && as_dir=.
  4809. for ac_exec_ext in '' $ac_executable_extensions; do
  4810. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4811. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4813. break 2
  4814. fi
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. fi
  4819. fi
  4820. STRIP=$ac_cv_prog_STRIP
  4821. if test -n "$STRIP"; then
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4823. $as_echo "$STRIP" >&6; }
  4824. else
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4826. $as_echo "no" >&6; }
  4827. fi
  4828. fi
  4829. if test -z "$ac_cv_prog_STRIP"; then
  4830. ac_ct_STRIP=$STRIP
  4831. # Extract the first word of "strip", so it can be a program name with args.
  4832. set dummy strip; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$ac_ct_STRIP"; then
  4839. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4848. ac_cv_prog_ac_ct_STRIP="strip"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4858. if test -n "$ac_ct_STRIP"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4860. $as_echo "$ac_ct_STRIP" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. if test "x$ac_ct_STRIP" = x; then
  4866. STRIP=":"
  4867. else
  4868. case $cross_compiling:$ac_tool_warned in
  4869. yes:)
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4872. ac_tool_warned=yes ;;
  4873. esac
  4874. STRIP=$ac_ct_STRIP
  4875. fi
  4876. else
  4877. STRIP="$ac_cv_prog_STRIP"
  4878. fi
  4879. test -z "$STRIP" && STRIP=:
  4880. if test -n "$ac_tool_prefix"; then
  4881. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4882. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4884. $as_echo_n "checking for $ac_word... " >&6; }
  4885. if ${ac_cv_prog_RANLIB+:} false; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. if test -n "$RANLIB"; then
  4889. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4890. else
  4891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4892. for as_dir in $PATH
  4893. do
  4894. IFS=$as_save_IFS
  4895. test -z "$as_dir" && as_dir=.
  4896. for ac_exec_ext in '' $ac_executable_extensions; do
  4897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4898. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4900. break 2
  4901. fi
  4902. done
  4903. done
  4904. IFS=$as_save_IFS
  4905. fi
  4906. fi
  4907. RANLIB=$ac_cv_prog_RANLIB
  4908. if test -n "$RANLIB"; then
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4910. $as_echo "$RANLIB" >&6; }
  4911. else
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4913. $as_echo "no" >&6; }
  4914. fi
  4915. fi
  4916. if test -z "$ac_cv_prog_RANLIB"; then
  4917. ac_ct_RANLIB=$RANLIB
  4918. # Extract the first word of "ranlib", so it can be a program name with args.
  4919. set dummy ranlib; ac_word=$2
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4921. $as_echo_n "checking for $ac_word... " >&6; }
  4922. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4923. $as_echo_n "(cached) " >&6
  4924. else
  4925. if test -n "$ac_ct_RANLIB"; then
  4926. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4927. else
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931. IFS=$as_save_IFS
  4932. test -z "$as_dir" && as_dir=.
  4933. for ac_exec_ext in '' $ac_executable_extensions; do
  4934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4935. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937. break 2
  4938. fi
  4939. done
  4940. done
  4941. IFS=$as_save_IFS
  4942. fi
  4943. fi
  4944. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4945. if test -n "$ac_ct_RANLIB"; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4947. $as_echo "$ac_ct_RANLIB" >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. $as_echo "no" >&6; }
  4951. fi
  4952. if test "x$ac_ct_RANLIB" = x; then
  4953. RANLIB=":"
  4954. else
  4955. case $cross_compiling:$ac_tool_warned in
  4956. yes:)
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4959. ac_tool_warned=yes ;;
  4960. esac
  4961. RANLIB=$ac_ct_RANLIB
  4962. fi
  4963. else
  4964. RANLIB="$ac_cv_prog_RANLIB"
  4965. fi
  4966. test -z "$RANLIB" && RANLIB=:
  4967. # Determine commands to create old-style static archives.
  4968. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4969. old_postinstall_cmds='chmod 644 $oldlib'
  4970. old_postuninstall_cmds=
  4971. if test -n "$RANLIB"; then
  4972. case $host_os in
  4973. openbsd*)
  4974. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4975. ;;
  4976. *)
  4977. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4978. ;;
  4979. esac
  4980. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4981. fi
  4982. case $host_os in
  4983. darwin*)
  4984. lock_old_archive_extraction=yes ;;
  4985. *)
  4986. lock_old_archive_extraction=no ;;
  4987. esac
  4988. for ac_prog in gawk mawk nawk awk
  4989. do
  4990. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4991. set dummy $ac_prog; ac_word=$2
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4993. $as_echo_n "checking for $ac_word... " >&6; }
  4994. if ${ac_cv_prog_AWK+:} false; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. if test -n "$AWK"; then
  4998. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4999. else
  5000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5001. for as_dir in $PATH
  5002. do
  5003. IFS=$as_save_IFS
  5004. test -z "$as_dir" && as_dir=.
  5005. for ac_exec_ext in '' $ac_executable_extensions; do
  5006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5007. ac_cv_prog_AWK="$ac_prog"
  5008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5009. break 2
  5010. fi
  5011. done
  5012. done
  5013. IFS=$as_save_IFS
  5014. fi
  5015. fi
  5016. AWK=$ac_cv_prog_AWK
  5017. if test -n "$AWK"; then
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5019. $as_echo "$AWK" >&6; }
  5020. else
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5022. $as_echo "no" >&6; }
  5023. fi
  5024. test -n "$AWK" && break
  5025. done
  5026. # If no C compiler was specified, use CC.
  5027. LTCC=${LTCC-"$CC"}
  5028. # If no C compiler flags were specified, use CFLAGS.
  5029. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5030. # Allow CC to be a program name with arguments.
  5031. compiler=$CC
  5032. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5034. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5035. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5036. $as_echo_n "(cached) " >&6
  5037. else
  5038. # These are sane defaults that work on at least a few old systems.
  5039. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5040. # Character class describing NM global symbol codes.
  5041. symcode='[BCDEGRST]'
  5042. # Regexp to match symbols that can be accessed directly from C.
  5043. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5044. # Define system-specific variables.
  5045. case $host_os in
  5046. aix*)
  5047. symcode='[BCDT]'
  5048. ;;
  5049. cygwin* | mingw* | pw32* | cegcc*)
  5050. symcode='[ABCDGISTW]'
  5051. ;;
  5052. hpux*)
  5053. if test "$host_cpu" = ia64; then
  5054. symcode='[ABCDEGRST]'
  5055. fi
  5056. ;;
  5057. irix* | nonstopux*)
  5058. symcode='[BCDEGRST]'
  5059. ;;
  5060. osf*)
  5061. symcode='[BCDEGQRST]'
  5062. ;;
  5063. solaris*)
  5064. symcode='[BDRT]'
  5065. ;;
  5066. sco3.2v5*)
  5067. symcode='[DT]'
  5068. ;;
  5069. sysv4.2uw2*)
  5070. symcode='[DT]'
  5071. ;;
  5072. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5073. symcode='[ABDT]'
  5074. ;;
  5075. sysv4)
  5076. symcode='[DFNSTU]'
  5077. ;;
  5078. esac
  5079. # If we're using GNU nm, then use its standard symbol codes.
  5080. case `$NM -V 2>&1` in
  5081. *GNU* | *'with BFD'*)
  5082. symcode='[ABCDGIRSTW]' ;;
  5083. esac
  5084. # Transform an extracted symbol line into a proper C declaration.
  5085. # Some systems (esp. on ia64) link data and code symbols differently,
  5086. # so use this general approach.
  5087. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5088. # Transform an extracted symbol line into symbol name and symbol address
  5089. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5090. 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'"
  5091. # Handle CRLF in mingw tool chain
  5092. opt_cr=
  5093. case $build_os in
  5094. mingw*)
  5095. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5096. ;;
  5097. esac
  5098. # Try without a prefix underscore, then with it.
  5099. for ac_symprfx in "" "_"; do
  5100. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5101. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5102. # Write the raw and C identifiers.
  5103. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5104. # Fake it for dumpbin and say T for any non-static function
  5105. # and D for any global variable.
  5106. # Also find C++ and __fastcall symbols from MSVC++,
  5107. # which start with @ or ?.
  5108. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5109. " {last_section=section; section=\$ 3};"\
  5110. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5111. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5112. " \$ 0!~/External *\|/{next};"\
  5113. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5114. " {if(hide[section]) next};"\
  5115. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5116. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5117. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5118. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5119. " ' prfx=^$ac_symprfx"
  5120. else
  5121. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5122. fi
  5123. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5124. # Check to see that the pipe works correctly.
  5125. pipe_works=no
  5126. rm -f conftest*
  5127. cat > conftest.$ac_ext <<_LT_EOF
  5128. #ifdef __cplusplus
  5129. extern "C" {
  5130. #endif
  5131. char nm_test_var;
  5132. void nm_test_func(void);
  5133. void nm_test_func(void){}
  5134. #ifdef __cplusplus
  5135. }
  5136. #endif
  5137. int main(){nm_test_var='a';nm_test_func();return(0);}
  5138. _LT_EOF
  5139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5140. (eval $ac_compile) 2>&5
  5141. ac_status=$?
  5142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5143. test $ac_status = 0; }; then
  5144. # Now try to grab the symbols.
  5145. nlist=conftest.nm
  5146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5147. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5148. ac_status=$?
  5149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5150. test $ac_status = 0; } && test -s "$nlist"; then
  5151. # Try sorting and uniquifying the output.
  5152. if sort "$nlist" | uniq > "$nlist"T; then
  5153. mv -f "$nlist"T "$nlist"
  5154. else
  5155. rm -f "$nlist"T
  5156. fi
  5157. # Make sure that we snagged all the symbols we need.
  5158. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5159. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5160. cat <<_LT_EOF > conftest.$ac_ext
  5161. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5162. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5163. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5164. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5165. # define LT_DLSYM_CONST
  5166. #elif defined(__osf__)
  5167. /* This system does not cope well with relocations in const data. */
  5168. # define LT_DLSYM_CONST
  5169. #else
  5170. # define LT_DLSYM_CONST const
  5171. #endif
  5172. #ifdef __cplusplus
  5173. extern "C" {
  5174. #endif
  5175. _LT_EOF
  5176. # Now generate the symbol file.
  5177. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5178. cat <<_LT_EOF >> conftest.$ac_ext
  5179. /* The mapping between symbol names and symbols. */
  5180. LT_DLSYM_CONST struct {
  5181. const char *name;
  5182. void *address;
  5183. }
  5184. lt__PROGRAM__LTX_preloaded_symbols[] =
  5185. {
  5186. { "@PROGRAM@", (void *) 0 },
  5187. _LT_EOF
  5188. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5189. cat <<\_LT_EOF >> conftest.$ac_ext
  5190. {0, (void *) 0}
  5191. };
  5192. /* This works around a problem in FreeBSD linker */
  5193. #ifdef FREEBSD_WORKAROUND
  5194. static const void *lt_preloaded_setup() {
  5195. return lt__PROGRAM__LTX_preloaded_symbols;
  5196. }
  5197. #endif
  5198. #ifdef __cplusplus
  5199. }
  5200. #endif
  5201. _LT_EOF
  5202. # Now try linking the two files.
  5203. mv conftest.$ac_objext conftstm.$ac_objext
  5204. lt_globsym_save_LIBS=$LIBS
  5205. lt_globsym_save_CFLAGS=$CFLAGS
  5206. LIBS="conftstm.$ac_objext"
  5207. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5209. (eval $ac_link) 2>&5
  5210. ac_status=$?
  5211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5212. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5213. pipe_works=yes
  5214. fi
  5215. LIBS=$lt_globsym_save_LIBS
  5216. CFLAGS=$lt_globsym_save_CFLAGS
  5217. else
  5218. echo "cannot find nm_test_func in $nlist" >&5
  5219. fi
  5220. else
  5221. echo "cannot find nm_test_var in $nlist" >&5
  5222. fi
  5223. else
  5224. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5225. fi
  5226. else
  5227. echo "$progname: failed program was:" >&5
  5228. cat conftest.$ac_ext >&5
  5229. fi
  5230. rm -rf conftest* conftst*
  5231. # Do not use the global_symbol_pipe unless it works.
  5232. if test "$pipe_works" = yes; then
  5233. break
  5234. else
  5235. lt_cv_sys_global_symbol_pipe=
  5236. fi
  5237. done
  5238. fi
  5239. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5240. lt_cv_sys_global_symbol_to_cdecl=
  5241. fi
  5242. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5244. $as_echo "failed" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5247. $as_echo "ok" >&6; }
  5248. fi
  5249. # Response file support.
  5250. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5251. nm_file_list_spec='@'
  5252. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5253. nm_file_list_spec='@'
  5254. fi
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5256. $as_echo_n "checking for sysroot... " >&6; }
  5257. # Check whether --with-sysroot was given.
  5258. if test "${with_sysroot+set}" = set; then :
  5259. withval=$with_sysroot;
  5260. else
  5261. with_sysroot=no
  5262. fi
  5263. lt_sysroot=
  5264. case ${with_sysroot} in #(
  5265. yes)
  5266. if test "$GCC" = yes; then
  5267. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5268. fi
  5269. ;; #(
  5270. /*)
  5271. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5272. ;; #(
  5273. no|'')
  5274. ;; #(
  5275. *)
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5277. $as_echo "${with_sysroot}" >&6; }
  5278. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5279. ;;
  5280. esac
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5282. $as_echo "${lt_sysroot:-no}" >&6; }
  5283. # Check whether --enable-libtool-lock was given.
  5284. if test "${enable_libtool_lock+set}" = set; then :
  5285. enableval=$enable_libtool_lock;
  5286. fi
  5287. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5288. # Some flags need to be propagated to the compiler or linker for good
  5289. # libtool support.
  5290. case $host in
  5291. ia64-*-hpux*)
  5292. # Find out which ABI we are using.
  5293. echo 'int i;' > conftest.$ac_ext
  5294. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5295. (eval $ac_compile) 2>&5
  5296. ac_status=$?
  5297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5298. test $ac_status = 0; }; then
  5299. case `/usr/bin/file conftest.$ac_objext` in
  5300. *ELF-32*)
  5301. HPUX_IA64_MODE="32"
  5302. ;;
  5303. *ELF-64*)
  5304. HPUX_IA64_MODE="64"
  5305. ;;
  5306. esac
  5307. fi
  5308. rm -rf conftest*
  5309. ;;
  5310. *-*-irix6*)
  5311. # Find out which ABI we are using.
  5312. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5314. (eval $ac_compile) 2>&5
  5315. ac_status=$?
  5316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5317. test $ac_status = 0; }; then
  5318. if test "$lt_cv_prog_gnu_ld" = yes; then
  5319. case `/usr/bin/file conftest.$ac_objext` in
  5320. *32-bit*)
  5321. LD="${LD-ld} -melf32bsmip"
  5322. ;;
  5323. *N32*)
  5324. LD="${LD-ld} -melf32bmipn32"
  5325. ;;
  5326. *64-bit*)
  5327. LD="${LD-ld} -melf64bmip"
  5328. ;;
  5329. esac
  5330. else
  5331. case `/usr/bin/file conftest.$ac_objext` in
  5332. *32-bit*)
  5333. LD="${LD-ld} -32"
  5334. ;;
  5335. *N32*)
  5336. LD="${LD-ld} -n32"
  5337. ;;
  5338. *64-bit*)
  5339. LD="${LD-ld} -64"
  5340. ;;
  5341. esac
  5342. fi
  5343. fi
  5344. rm -rf conftest*
  5345. ;;
  5346. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5347. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5348. # Find out which ABI we are using.
  5349. echo 'int i;' > conftest.$ac_ext
  5350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5351. (eval $ac_compile) 2>&5
  5352. ac_status=$?
  5353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5354. test $ac_status = 0; }; then
  5355. case `/usr/bin/file conftest.o` in
  5356. *32-bit*)
  5357. case $host in
  5358. x86_64-*kfreebsd*-gnu)
  5359. LD="${LD-ld} -m elf_i386_fbsd"
  5360. ;;
  5361. x86_64-*linux*)
  5362. LD="${LD-ld} -m elf_i386"
  5363. ;;
  5364. ppc64-*linux*|powerpc64-*linux*)
  5365. LD="${LD-ld} -m elf32ppclinux"
  5366. ;;
  5367. s390x-*linux*)
  5368. LD="${LD-ld} -m elf_s390"
  5369. ;;
  5370. sparc64-*linux*)
  5371. LD="${LD-ld} -m elf32_sparc"
  5372. ;;
  5373. esac
  5374. ;;
  5375. *64-bit*)
  5376. case $host in
  5377. x86_64-*kfreebsd*-gnu)
  5378. LD="${LD-ld} -m elf_x86_64_fbsd"
  5379. ;;
  5380. x86_64-*linux*)
  5381. LD="${LD-ld} -m elf_x86_64"
  5382. ;;
  5383. powerpc64le-*linux*)
  5384. LD="${LD-ld} -m elf64lppc"
  5385. ;;
  5386. powerpc64-*linux*)
  5387. LD="${LD-ld} -m elf64ppc"
  5388. ;;
  5389. s390*-*linux*|s390*-*tpf*)
  5390. LD="${LD-ld} -m elf64_s390"
  5391. ;;
  5392. sparc*-*linux*)
  5393. LD="${LD-ld} -m elf64_sparc"
  5394. ;;
  5395. esac
  5396. ;;
  5397. esac
  5398. fi
  5399. rm -rf conftest*
  5400. ;;
  5401. *-*-sco3.2v5*)
  5402. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5403. SAVE_CFLAGS="$CFLAGS"
  5404. CFLAGS="$CFLAGS -belf"
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5406. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5407. if ${lt_cv_cc_needs_belf+:} false; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. ac_ext=c
  5411. ac_cpp='$CPP $CPPFLAGS'
  5412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5416. /* end confdefs.h. */
  5417. int
  5418. main ()
  5419. {
  5420. ;
  5421. return 0;
  5422. }
  5423. _ACEOF
  5424. if ac_fn_c_try_link "$LINENO"; then :
  5425. lt_cv_cc_needs_belf=yes
  5426. else
  5427. lt_cv_cc_needs_belf=no
  5428. fi
  5429. rm -f core conftest.err conftest.$ac_objext \
  5430. conftest$ac_exeext conftest.$ac_ext
  5431. ac_ext=c
  5432. ac_cpp='$CPP $CPPFLAGS'
  5433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5438. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5439. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5440. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5441. CFLAGS="$SAVE_CFLAGS"
  5442. fi
  5443. ;;
  5444. *-*solaris*)
  5445. # Find out which ABI we are using.
  5446. echo 'int i;' > conftest.$ac_ext
  5447. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5448. (eval $ac_compile) 2>&5
  5449. ac_status=$?
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5451. test $ac_status = 0; }; then
  5452. case `/usr/bin/file conftest.o` in
  5453. *64-bit*)
  5454. case $lt_cv_prog_gnu_ld in
  5455. yes*)
  5456. case $host in
  5457. i?86-*-solaris*)
  5458. LD="${LD-ld} -m elf_x86_64"
  5459. ;;
  5460. sparc*-*-solaris*)
  5461. LD="${LD-ld} -m elf64_sparc"
  5462. ;;
  5463. esac
  5464. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5465. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5466. LD="${LD-ld}_sol2"
  5467. fi
  5468. ;;
  5469. *)
  5470. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5471. LD="${LD-ld} -64"
  5472. fi
  5473. ;;
  5474. esac
  5475. ;;
  5476. esac
  5477. fi
  5478. rm -rf conftest*
  5479. ;;
  5480. esac
  5481. need_locks="$enable_libtool_lock"
  5482. if test -n "$ac_tool_prefix"; then
  5483. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5484. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5486. $as_echo_n "checking for $ac_word... " >&6; }
  5487. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. if test -n "$MANIFEST_TOOL"; then
  5491. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5492. else
  5493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5494. for as_dir in $PATH
  5495. do
  5496. IFS=$as_save_IFS
  5497. test -z "$as_dir" && as_dir=.
  5498. for ac_exec_ext in '' $ac_executable_extensions; do
  5499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5500. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5502. break 2
  5503. fi
  5504. done
  5505. done
  5506. IFS=$as_save_IFS
  5507. fi
  5508. fi
  5509. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5510. if test -n "$MANIFEST_TOOL"; then
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5512. $as_echo "$MANIFEST_TOOL" >&6; }
  5513. else
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5515. $as_echo "no" >&6; }
  5516. fi
  5517. fi
  5518. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5519. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5520. # Extract the first word of "mt", so it can be a program name with args.
  5521. set dummy mt; ac_word=$2
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. $as_echo_n "checking for $ac_word... " >&6; }
  5524. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5528. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5529. else
  5530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5531. for as_dir in $PATH
  5532. do
  5533. IFS=$as_save_IFS
  5534. test -z "$as_dir" && as_dir=.
  5535. for ac_exec_ext in '' $ac_executable_extensions; do
  5536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5537. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5539. break 2
  5540. fi
  5541. done
  5542. done
  5543. IFS=$as_save_IFS
  5544. fi
  5545. fi
  5546. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5547. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5549. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5550. else
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. $as_echo "no" >&6; }
  5553. fi
  5554. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5555. MANIFEST_TOOL=":"
  5556. else
  5557. case $cross_compiling:$ac_tool_warned in
  5558. yes:)
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5561. ac_tool_warned=yes ;;
  5562. esac
  5563. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5564. fi
  5565. else
  5566. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5567. fi
  5568. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5570. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5571. if ${lt_cv_path_mainfest_tool+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. lt_cv_path_mainfest_tool=no
  5575. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5576. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5577. cat conftest.err >&5
  5578. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5579. lt_cv_path_mainfest_tool=yes
  5580. fi
  5581. rm -f conftest*
  5582. fi
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5584. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5585. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5586. MANIFEST_TOOL=:
  5587. fi
  5588. case $host_os in
  5589. rhapsody* | darwin*)
  5590. if test -n "$ac_tool_prefix"; then
  5591. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5592. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5594. $as_echo_n "checking for $ac_word... " >&6; }
  5595. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. if test -n "$DSYMUTIL"; then
  5599. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5600. else
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. test -z "$as_dir" && as_dir=.
  5606. for ac_exec_ext in '' $ac_executable_extensions; do
  5607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5608. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5610. break 2
  5611. fi
  5612. done
  5613. done
  5614. IFS=$as_save_IFS
  5615. fi
  5616. fi
  5617. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5618. if test -n "$DSYMUTIL"; then
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5620. $as_echo "$DSYMUTIL" >&6; }
  5621. else
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5623. $as_echo "no" >&6; }
  5624. fi
  5625. fi
  5626. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5627. ac_ct_DSYMUTIL=$DSYMUTIL
  5628. # Extract the first word of "dsymutil", so it can be a program name with args.
  5629. set dummy dsymutil; ac_word=$2
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5631. $as_echo_n "checking for $ac_word... " >&6; }
  5632. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5633. $as_echo_n "(cached) " >&6
  5634. else
  5635. if test -n "$ac_ct_DSYMUTIL"; then
  5636. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5637. else
  5638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5639. for as_dir in $PATH
  5640. do
  5641. IFS=$as_save_IFS
  5642. test -z "$as_dir" && as_dir=.
  5643. for ac_exec_ext in '' $ac_executable_extensions; do
  5644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5645. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5647. break 2
  5648. fi
  5649. done
  5650. done
  5651. IFS=$as_save_IFS
  5652. fi
  5653. fi
  5654. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5655. if test -n "$ac_ct_DSYMUTIL"; then
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5657. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5658. else
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5660. $as_echo "no" >&6; }
  5661. fi
  5662. if test "x$ac_ct_DSYMUTIL" = x; then
  5663. DSYMUTIL=":"
  5664. else
  5665. case $cross_compiling:$ac_tool_warned in
  5666. yes:)
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5669. ac_tool_warned=yes ;;
  5670. esac
  5671. DSYMUTIL=$ac_ct_DSYMUTIL
  5672. fi
  5673. else
  5674. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5675. fi
  5676. if test -n "$ac_tool_prefix"; then
  5677. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5678. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5680. $as_echo_n "checking for $ac_word... " >&6; }
  5681. if ${ac_cv_prog_NMEDIT+:} false; then :
  5682. $as_echo_n "(cached) " >&6
  5683. else
  5684. if test -n "$NMEDIT"; then
  5685. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5686. else
  5687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5688. for as_dir in $PATH
  5689. do
  5690. IFS=$as_save_IFS
  5691. test -z "$as_dir" && as_dir=.
  5692. for ac_exec_ext in '' $ac_executable_extensions; do
  5693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5694. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5696. break 2
  5697. fi
  5698. done
  5699. done
  5700. IFS=$as_save_IFS
  5701. fi
  5702. fi
  5703. NMEDIT=$ac_cv_prog_NMEDIT
  5704. if test -n "$NMEDIT"; then
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5706. $as_echo "$NMEDIT" >&6; }
  5707. else
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5709. $as_echo "no" >&6; }
  5710. fi
  5711. fi
  5712. if test -z "$ac_cv_prog_NMEDIT"; then
  5713. ac_ct_NMEDIT=$NMEDIT
  5714. # Extract the first word of "nmedit", so it can be a program name with args.
  5715. set dummy nmedit; ac_word=$2
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5717. $as_echo_n "checking for $ac_word... " >&6; }
  5718. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. if test -n "$ac_ct_NMEDIT"; then
  5722. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5723. else
  5724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5725. for as_dir in $PATH
  5726. do
  5727. IFS=$as_save_IFS
  5728. test -z "$as_dir" && as_dir=.
  5729. for ac_exec_ext in '' $ac_executable_extensions; do
  5730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5731. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5733. break 2
  5734. fi
  5735. done
  5736. done
  5737. IFS=$as_save_IFS
  5738. fi
  5739. fi
  5740. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5741. if test -n "$ac_ct_NMEDIT"; then
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5743. $as_echo "$ac_ct_NMEDIT" >&6; }
  5744. else
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5746. $as_echo "no" >&6; }
  5747. fi
  5748. if test "x$ac_ct_NMEDIT" = x; then
  5749. NMEDIT=":"
  5750. else
  5751. case $cross_compiling:$ac_tool_warned in
  5752. yes:)
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5754. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5755. ac_tool_warned=yes ;;
  5756. esac
  5757. NMEDIT=$ac_ct_NMEDIT
  5758. fi
  5759. else
  5760. NMEDIT="$ac_cv_prog_NMEDIT"
  5761. fi
  5762. if test -n "$ac_tool_prefix"; then
  5763. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5764. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5766. $as_echo_n "checking for $ac_word... " >&6; }
  5767. if ${ac_cv_prog_LIPO+:} false; then :
  5768. $as_echo_n "(cached) " >&6
  5769. else
  5770. if test -n "$LIPO"; then
  5771. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5772. else
  5773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5774. for as_dir in $PATH
  5775. do
  5776. IFS=$as_save_IFS
  5777. test -z "$as_dir" && as_dir=.
  5778. for ac_exec_ext in '' $ac_executable_extensions; do
  5779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5780. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5782. break 2
  5783. fi
  5784. done
  5785. done
  5786. IFS=$as_save_IFS
  5787. fi
  5788. fi
  5789. LIPO=$ac_cv_prog_LIPO
  5790. if test -n "$LIPO"; then
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5792. $as_echo "$LIPO" >&6; }
  5793. else
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5795. $as_echo "no" >&6; }
  5796. fi
  5797. fi
  5798. if test -z "$ac_cv_prog_LIPO"; then
  5799. ac_ct_LIPO=$LIPO
  5800. # Extract the first word of "lipo", so it can be a program name with args.
  5801. set dummy lipo; ac_word=$2
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5803. $as_echo_n "checking for $ac_word... " >&6; }
  5804. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5805. $as_echo_n "(cached) " >&6
  5806. else
  5807. if test -n "$ac_ct_LIPO"; then
  5808. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5809. else
  5810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5811. for as_dir in $PATH
  5812. do
  5813. IFS=$as_save_IFS
  5814. test -z "$as_dir" && as_dir=.
  5815. for ac_exec_ext in '' $ac_executable_extensions; do
  5816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5817. ac_cv_prog_ac_ct_LIPO="lipo"
  5818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5819. break 2
  5820. fi
  5821. done
  5822. done
  5823. IFS=$as_save_IFS
  5824. fi
  5825. fi
  5826. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5827. if test -n "$ac_ct_LIPO"; then
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5829. $as_echo "$ac_ct_LIPO" >&6; }
  5830. else
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5832. $as_echo "no" >&6; }
  5833. fi
  5834. if test "x$ac_ct_LIPO" = x; then
  5835. LIPO=":"
  5836. else
  5837. case $cross_compiling:$ac_tool_warned in
  5838. yes:)
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5840. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5841. ac_tool_warned=yes ;;
  5842. esac
  5843. LIPO=$ac_ct_LIPO
  5844. fi
  5845. else
  5846. LIPO="$ac_cv_prog_LIPO"
  5847. fi
  5848. if test -n "$ac_tool_prefix"; then
  5849. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5850. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5852. $as_echo_n "checking for $ac_word... " >&6; }
  5853. if ${ac_cv_prog_OTOOL+:} false; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. if test -n "$OTOOL"; then
  5857. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5858. else
  5859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5860. for as_dir in $PATH
  5861. do
  5862. IFS=$as_save_IFS
  5863. test -z "$as_dir" && as_dir=.
  5864. for ac_exec_ext in '' $ac_executable_extensions; do
  5865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5866. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5868. break 2
  5869. fi
  5870. done
  5871. done
  5872. IFS=$as_save_IFS
  5873. fi
  5874. fi
  5875. OTOOL=$ac_cv_prog_OTOOL
  5876. if test -n "$OTOOL"; then
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5878. $as_echo "$OTOOL" >&6; }
  5879. else
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5881. $as_echo "no" >&6; }
  5882. fi
  5883. fi
  5884. if test -z "$ac_cv_prog_OTOOL"; then
  5885. ac_ct_OTOOL=$OTOOL
  5886. # Extract the first word of "otool", so it can be a program name with args.
  5887. set dummy otool; ac_word=$2
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5889. $as_echo_n "checking for $ac_word... " >&6; }
  5890. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5891. $as_echo_n "(cached) " >&6
  5892. else
  5893. if test -n "$ac_ct_OTOOL"; then
  5894. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5895. else
  5896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5897. for as_dir in $PATH
  5898. do
  5899. IFS=$as_save_IFS
  5900. test -z "$as_dir" && as_dir=.
  5901. for ac_exec_ext in '' $ac_executable_extensions; do
  5902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5903. ac_cv_prog_ac_ct_OTOOL="otool"
  5904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5905. break 2
  5906. fi
  5907. done
  5908. done
  5909. IFS=$as_save_IFS
  5910. fi
  5911. fi
  5912. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5913. if test -n "$ac_ct_OTOOL"; then
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5915. $as_echo "$ac_ct_OTOOL" >&6; }
  5916. else
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5918. $as_echo "no" >&6; }
  5919. fi
  5920. if test "x$ac_ct_OTOOL" = x; then
  5921. OTOOL=":"
  5922. else
  5923. case $cross_compiling:$ac_tool_warned in
  5924. yes:)
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5927. ac_tool_warned=yes ;;
  5928. esac
  5929. OTOOL=$ac_ct_OTOOL
  5930. fi
  5931. else
  5932. OTOOL="$ac_cv_prog_OTOOL"
  5933. fi
  5934. if test -n "$ac_tool_prefix"; then
  5935. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5936. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5938. $as_echo_n "checking for $ac_word... " >&6; }
  5939. if ${ac_cv_prog_OTOOL64+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. if test -n "$OTOOL64"; then
  5943. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5944. else
  5945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5946. for as_dir in $PATH
  5947. do
  5948. IFS=$as_save_IFS
  5949. test -z "$as_dir" && as_dir=.
  5950. for ac_exec_ext in '' $ac_executable_extensions; do
  5951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5952. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5954. break 2
  5955. fi
  5956. done
  5957. done
  5958. IFS=$as_save_IFS
  5959. fi
  5960. fi
  5961. OTOOL64=$ac_cv_prog_OTOOL64
  5962. if test -n "$OTOOL64"; then
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5964. $as_echo "$OTOOL64" >&6; }
  5965. else
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5967. $as_echo "no" >&6; }
  5968. fi
  5969. fi
  5970. if test -z "$ac_cv_prog_OTOOL64"; then
  5971. ac_ct_OTOOL64=$OTOOL64
  5972. # Extract the first word of "otool64", so it can be a program name with args.
  5973. set dummy otool64; ac_word=$2
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5975. $as_echo_n "checking for $ac_word... " >&6; }
  5976. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5977. $as_echo_n "(cached) " >&6
  5978. else
  5979. if test -n "$ac_ct_OTOOL64"; then
  5980. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5981. else
  5982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5983. for as_dir in $PATH
  5984. do
  5985. IFS=$as_save_IFS
  5986. test -z "$as_dir" && as_dir=.
  5987. for ac_exec_ext in '' $ac_executable_extensions; do
  5988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5989. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5991. break 2
  5992. fi
  5993. done
  5994. done
  5995. IFS=$as_save_IFS
  5996. fi
  5997. fi
  5998. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5999. if test -n "$ac_ct_OTOOL64"; then
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6001. $as_echo "$ac_ct_OTOOL64" >&6; }
  6002. else
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6004. $as_echo "no" >&6; }
  6005. fi
  6006. if test "x$ac_ct_OTOOL64" = x; then
  6007. OTOOL64=":"
  6008. else
  6009. case $cross_compiling:$ac_tool_warned in
  6010. yes:)
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6013. ac_tool_warned=yes ;;
  6014. esac
  6015. OTOOL64=$ac_ct_OTOOL64
  6016. fi
  6017. else
  6018. OTOOL64="$ac_cv_prog_OTOOL64"
  6019. fi
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6021. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6022. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. lt_cv_apple_cc_single_mod=no
  6026. if test -z "${LT_MULTI_MODULE}"; then
  6027. # By default we will add the -single_module flag. You can override
  6028. # by either setting the environment variable LT_MULTI_MODULE
  6029. # non-empty at configure time, or by adding -multi_module to the
  6030. # link flags.
  6031. rm -rf libconftest.dylib*
  6032. echo "int foo(void){return 1;}" > conftest.c
  6033. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6034. -dynamiclib -Wl,-single_module conftest.c" >&5
  6035. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6036. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6037. _lt_result=$?
  6038. # If there is a non-empty error log, and "single_module"
  6039. # appears in it, assume the flag caused a linker warning
  6040. if test -s conftest.err && $GREP single_module conftest.err; then
  6041. cat conftest.err >&5
  6042. # Otherwise, if the output was created with a 0 exit code from
  6043. # the compiler, it worked.
  6044. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6045. lt_cv_apple_cc_single_mod=yes
  6046. else
  6047. cat conftest.err >&5
  6048. fi
  6049. rm -rf libconftest.dylib*
  6050. rm -f conftest.*
  6051. fi
  6052. fi
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6054. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6056. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6057. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. lt_cv_ld_exported_symbols_list=no
  6061. save_LDFLAGS=$LDFLAGS
  6062. echo "_main" > conftest.sym
  6063. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6065. /* end confdefs.h. */
  6066. int
  6067. main ()
  6068. {
  6069. ;
  6070. return 0;
  6071. }
  6072. _ACEOF
  6073. if ac_fn_c_try_link "$LINENO"; then :
  6074. lt_cv_ld_exported_symbols_list=yes
  6075. else
  6076. lt_cv_ld_exported_symbols_list=no
  6077. fi
  6078. rm -f core conftest.err conftest.$ac_objext \
  6079. conftest$ac_exeext conftest.$ac_ext
  6080. LDFLAGS="$save_LDFLAGS"
  6081. fi
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6083. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6085. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6086. if ${lt_cv_ld_force_load+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. lt_cv_ld_force_load=no
  6090. cat > conftest.c << _LT_EOF
  6091. int forced_loaded() { return 2;}
  6092. _LT_EOF
  6093. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6094. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6095. echo "$AR cru libconftest.a conftest.o" >&5
  6096. $AR cru libconftest.a conftest.o 2>&5
  6097. echo "$RANLIB libconftest.a" >&5
  6098. $RANLIB libconftest.a 2>&5
  6099. cat > conftest.c << _LT_EOF
  6100. int main() { return 0;}
  6101. _LT_EOF
  6102. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6103. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6104. _lt_result=$?
  6105. if test -s conftest.err && $GREP force_load conftest.err; then
  6106. cat conftest.err >&5
  6107. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6108. lt_cv_ld_force_load=yes
  6109. else
  6110. cat conftest.err >&5
  6111. fi
  6112. rm -f conftest.err libconftest.a conftest conftest.c
  6113. rm -rf conftest.dSYM
  6114. fi
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6116. $as_echo "$lt_cv_ld_force_load" >&6; }
  6117. case $host_os in
  6118. rhapsody* | darwin1.[012])
  6119. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6120. darwin1.*)
  6121. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6122. darwin*) # darwin 5.x on
  6123. # if running on 10.5 or later, the deployment target defaults
  6124. # to the OS version, if on x86, and 10.4, the deployment
  6125. # target defaults to 10.4. Don't you love it?
  6126. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6127. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6128. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6129. 10.[012]*)
  6130. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6131. 10.*)
  6132. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6133. esac
  6134. ;;
  6135. esac
  6136. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6137. _lt_dar_single_mod='$single_module'
  6138. fi
  6139. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6140. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6141. else
  6142. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6143. fi
  6144. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6145. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6146. else
  6147. _lt_dsymutil=
  6148. fi
  6149. ;;
  6150. esac
  6151. ac_ext=c
  6152. ac_cpp='$CPP $CPPFLAGS'
  6153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6157. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6158. # On Suns, sometimes $CPP names a directory.
  6159. if test -n "$CPP" && test -d "$CPP"; then
  6160. CPP=
  6161. fi
  6162. if test -z "$CPP"; then
  6163. if ${ac_cv_prog_CPP+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. # Double quotes because CPP needs to be expanded
  6167. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6168. do
  6169. ac_preproc_ok=false
  6170. for ac_c_preproc_warn_flag in '' yes
  6171. do
  6172. # Use a header file that comes with gcc, so configuring glibc
  6173. # with a fresh cross-compiler works.
  6174. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6175. # <limits.h> exists even on freestanding compilers.
  6176. # On the NeXT, cc -E runs the code through the compiler's parser,
  6177. # not just through cpp. "Syntax error" is here to catch this case.
  6178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6179. /* end confdefs.h. */
  6180. #ifdef __STDC__
  6181. # include <limits.h>
  6182. #else
  6183. # include <assert.h>
  6184. #endif
  6185. Syntax error
  6186. _ACEOF
  6187. if ac_fn_c_try_cpp "$LINENO"; then :
  6188. else
  6189. # Broken: fails on valid input.
  6190. continue
  6191. fi
  6192. rm -f conftest.err conftest.i conftest.$ac_ext
  6193. # OK, works on sane cases. Now check whether nonexistent headers
  6194. # can be detected and how.
  6195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6196. /* end confdefs.h. */
  6197. #include <ac_nonexistent.h>
  6198. _ACEOF
  6199. if ac_fn_c_try_cpp "$LINENO"; then :
  6200. # Broken: success on invalid input.
  6201. continue
  6202. else
  6203. # Passes both tests.
  6204. ac_preproc_ok=:
  6205. break
  6206. fi
  6207. rm -f conftest.err conftest.i conftest.$ac_ext
  6208. done
  6209. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6210. rm -f conftest.i conftest.err conftest.$ac_ext
  6211. if $ac_preproc_ok; then :
  6212. break
  6213. fi
  6214. done
  6215. ac_cv_prog_CPP=$CPP
  6216. fi
  6217. CPP=$ac_cv_prog_CPP
  6218. else
  6219. ac_cv_prog_CPP=$CPP
  6220. fi
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6222. $as_echo "$CPP" >&6; }
  6223. ac_preproc_ok=false
  6224. for ac_c_preproc_warn_flag in '' yes
  6225. do
  6226. # Use a header file that comes with gcc, so configuring glibc
  6227. # with a fresh cross-compiler works.
  6228. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6229. # <limits.h> exists even on freestanding compilers.
  6230. # On the NeXT, cc -E runs the code through the compiler's parser,
  6231. # not just through cpp. "Syntax error" is here to catch this case.
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. #ifdef __STDC__
  6235. # include <limits.h>
  6236. #else
  6237. # include <assert.h>
  6238. #endif
  6239. Syntax error
  6240. _ACEOF
  6241. if ac_fn_c_try_cpp "$LINENO"; then :
  6242. else
  6243. # Broken: fails on valid input.
  6244. continue
  6245. fi
  6246. rm -f conftest.err conftest.i conftest.$ac_ext
  6247. # OK, works on sane cases. Now check whether nonexistent headers
  6248. # can be detected and how.
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. #include <ac_nonexistent.h>
  6252. _ACEOF
  6253. if ac_fn_c_try_cpp "$LINENO"; then :
  6254. # Broken: success on invalid input.
  6255. continue
  6256. else
  6257. # Passes both tests.
  6258. ac_preproc_ok=:
  6259. break
  6260. fi
  6261. rm -f conftest.err conftest.i conftest.$ac_ext
  6262. done
  6263. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6264. rm -f conftest.i conftest.err conftest.$ac_ext
  6265. if $ac_preproc_ok; then :
  6266. else
  6267. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6268. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6269. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6270. See \`config.log' for more details" "$LINENO" 5; }
  6271. fi
  6272. ac_ext=c
  6273. ac_cpp='$CPP $CPPFLAGS'
  6274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6278. $as_echo_n "checking for ANSI C header files... " >&6; }
  6279. if ${ac_cv_header_stdc+:} false; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6283. /* end confdefs.h. */
  6284. #include <stdlib.h>
  6285. #include <stdarg.h>
  6286. #include <string.h>
  6287. #include <float.h>
  6288. int
  6289. main ()
  6290. {
  6291. ;
  6292. return 0;
  6293. }
  6294. _ACEOF
  6295. if ac_fn_c_try_compile "$LINENO"; then :
  6296. ac_cv_header_stdc=yes
  6297. else
  6298. ac_cv_header_stdc=no
  6299. fi
  6300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6301. if test $ac_cv_header_stdc = yes; then
  6302. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6304. /* end confdefs.h. */
  6305. #include <string.h>
  6306. _ACEOF
  6307. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6308. $EGREP "memchr" >/dev/null 2>&1; then :
  6309. else
  6310. ac_cv_header_stdc=no
  6311. fi
  6312. rm -f conftest*
  6313. fi
  6314. if test $ac_cv_header_stdc = yes; then
  6315. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6317. /* end confdefs.h. */
  6318. #include <stdlib.h>
  6319. _ACEOF
  6320. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6321. $EGREP "free" >/dev/null 2>&1; then :
  6322. else
  6323. ac_cv_header_stdc=no
  6324. fi
  6325. rm -f conftest*
  6326. fi
  6327. if test $ac_cv_header_stdc = yes; then
  6328. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6329. if test "$cross_compiling" = yes; then :
  6330. :
  6331. else
  6332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6333. /* end confdefs.h. */
  6334. #include <ctype.h>
  6335. #include <stdlib.h>
  6336. #if ((' ' & 0x0FF) == 0x020)
  6337. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6338. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6339. #else
  6340. # define ISLOWER(c) \
  6341. (('a' <= (c) && (c) <= 'i') \
  6342. || ('j' <= (c) && (c) <= 'r') \
  6343. || ('s' <= (c) && (c) <= 'z'))
  6344. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6345. #endif
  6346. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6347. int
  6348. main ()
  6349. {
  6350. int i;
  6351. for (i = 0; i < 256; i++)
  6352. if (XOR (islower (i), ISLOWER (i))
  6353. || toupper (i) != TOUPPER (i))
  6354. return 2;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. if ac_fn_c_try_run "$LINENO"; then :
  6359. else
  6360. ac_cv_header_stdc=no
  6361. fi
  6362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6363. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6364. fi
  6365. fi
  6366. fi
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6368. $as_echo "$ac_cv_header_stdc" >&6; }
  6369. if test $ac_cv_header_stdc = yes; then
  6370. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6371. fi
  6372. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6373. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6374. inttypes.h stdint.h unistd.h
  6375. do :
  6376. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6377. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6378. "
  6379. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6380. cat >>confdefs.h <<_ACEOF
  6381. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6382. _ACEOF
  6383. fi
  6384. done
  6385. for ac_header in dlfcn.h
  6386. do :
  6387. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6388. "
  6389. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6390. cat >>confdefs.h <<_ACEOF
  6391. #define HAVE_DLFCN_H 1
  6392. _ACEOF
  6393. fi
  6394. done
  6395. # Set options
  6396. enable_win32_dll=yes
  6397. case $host in
  6398. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6399. if test -n "$ac_tool_prefix"; then
  6400. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6401. set dummy ${ac_tool_prefix}as; ac_word=$2
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6403. $as_echo_n "checking for $ac_word... " >&6; }
  6404. if ${ac_cv_prog_AS+:} false; then :
  6405. $as_echo_n "(cached) " >&6
  6406. else
  6407. if test -n "$AS"; then
  6408. ac_cv_prog_AS="$AS" # Let the user override the test.
  6409. else
  6410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6411. for as_dir in $PATH
  6412. do
  6413. IFS=$as_save_IFS
  6414. test -z "$as_dir" && as_dir=.
  6415. for ac_exec_ext in '' $ac_executable_extensions; do
  6416. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6417. ac_cv_prog_AS="${ac_tool_prefix}as"
  6418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6419. break 2
  6420. fi
  6421. done
  6422. done
  6423. IFS=$as_save_IFS
  6424. fi
  6425. fi
  6426. AS=$ac_cv_prog_AS
  6427. if test -n "$AS"; then
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6429. $as_echo "$AS" >&6; }
  6430. else
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6432. $as_echo "no" >&6; }
  6433. fi
  6434. fi
  6435. if test -z "$ac_cv_prog_AS"; then
  6436. ac_ct_AS=$AS
  6437. # Extract the first word of "as", so it can be a program name with args.
  6438. set dummy as; ac_word=$2
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6440. $as_echo_n "checking for $ac_word... " >&6; }
  6441. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6442. $as_echo_n "(cached) " >&6
  6443. else
  6444. if test -n "$ac_ct_AS"; then
  6445. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6446. else
  6447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6448. for as_dir in $PATH
  6449. do
  6450. IFS=$as_save_IFS
  6451. test -z "$as_dir" && as_dir=.
  6452. for ac_exec_ext in '' $ac_executable_extensions; do
  6453. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6454. ac_cv_prog_ac_ct_AS="as"
  6455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6456. break 2
  6457. fi
  6458. done
  6459. done
  6460. IFS=$as_save_IFS
  6461. fi
  6462. fi
  6463. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6464. if test -n "$ac_ct_AS"; then
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6466. $as_echo "$ac_ct_AS" >&6; }
  6467. else
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6469. $as_echo "no" >&6; }
  6470. fi
  6471. if test "x$ac_ct_AS" = x; then
  6472. AS="false"
  6473. else
  6474. case $cross_compiling:$ac_tool_warned in
  6475. yes:)
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6478. ac_tool_warned=yes ;;
  6479. esac
  6480. AS=$ac_ct_AS
  6481. fi
  6482. else
  6483. AS="$ac_cv_prog_AS"
  6484. fi
  6485. if test -n "$ac_tool_prefix"; then
  6486. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6487. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6489. $as_echo_n "checking for $ac_word... " >&6; }
  6490. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. if test -n "$DLLTOOL"; then
  6494. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6495. else
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. test -z "$as_dir" && as_dir=.
  6501. for ac_exec_ext in '' $ac_executable_extensions; do
  6502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6503. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6505. break 2
  6506. fi
  6507. done
  6508. done
  6509. IFS=$as_save_IFS
  6510. fi
  6511. fi
  6512. DLLTOOL=$ac_cv_prog_DLLTOOL
  6513. if test -n "$DLLTOOL"; then
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6515. $as_echo "$DLLTOOL" >&6; }
  6516. else
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6518. $as_echo "no" >&6; }
  6519. fi
  6520. fi
  6521. if test -z "$ac_cv_prog_DLLTOOL"; then
  6522. ac_ct_DLLTOOL=$DLLTOOL
  6523. # Extract the first word of "dlltool", so it can be a program name with args.
  6524. set dummy dlltool; ac_word=$2
  6525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6526. $as_echo_n "checking for $ac_word... " >&6; }
  6527. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6528. $as_echo_n "(cached) " >&6
  6529. else
  6530. if test -n "$ac_ct_DLLTOOL"; then
  6531. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6532. else
  6533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6534. for as_dir in $PATH
  6535. do
  6536. IFS=$as_save_IFS
  6537. test -z "$as_dir" && as_dir=.
  6538. for ac_exec_ext in '' $ac_executable_extensions; do
  6539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6540. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6542. break 2
  6543. fi
  6544. done
  6545. done
  6546. IFS=$as_save_IFS
  6547. fi
  6548. fi
  6549. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6550. if test -n "$ac_ct_DLLTOOL"; then
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6552. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6553. else
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6555. $as_echo "no" >&6; }
  6556. fi
  6557. if test "x$ac_ct_DLLTOOL" = x; then
  6558. DLLTOOL="false"
  6559. else
  6560. case $cross_compiling:$ac_tool_warned in
  6561. yes:)
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6564. ac_tool_warned=yes ;;
  6565. esac
  6566. DLLTOOL=$ac_ct_DLLTOOL
  6567. fi
  6568. else
  6569. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6570. fi
  6571. if test -n "$ac_tool_prefix"; then
  6572. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6573. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6575. $as_echo_n "checking for $ac_word... " >&6; }
  6576. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6577. $as_echo_n "(cached) " >&6
  6578. else
  6579. if test -n "$OBJDUMP"; then
  6580. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6581. else
  6582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6583. for as_dir in $PATH
  6584. do
  6585. IFS=$as_save_IFS
  6586. test -z "$as_dir" && as_dir=.
  6587. for ac_exec_ext in '' $ac_executable_extensions; do
  6588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6589. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6591. break 2
  6592. fi
  6593. done
  6594. done
  6595. IFS=$as_save_IFS
  6596. fi
  6597. fi
  6598. OBJDUMP=$ac_cv_prog_OBJDUMP
  6599. if test -n "$OBJDUMP"; then
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6601. $as_echo "$OBJDUMP" >&6; }
  6602. else
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6604. $as_echo "no" >&6; }
  6605. fi
  6606. fi
  6607. if test -z "$ac_cv_prog_OBJDUMP"; then
  6608. ac_ct_OBJDUMP=$OBJDUMP
  6609. # Extract the first word of "objdump", so it can be a program name with args.
  6610. set dummy objdump; ac_word=$2
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6612. $as_echo_n "checking for $ac_word... " >&6; }
  6613. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6614. $as_echo_n "(cached) " >&6
  6615. else
  6616. if test -n "$ac_ct_OBJDUMP"; then
  6617. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6618. else
  6619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6620. for as_dir in $PATH
  6621. do
  6622. IFS=$as_save_IFS
  6623. test -z "$as_dir" && as_dir=.
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6636. if test -n "$ac_ct_OBJDUMP"; then
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6638. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6639. else
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. $as_echo "no" >&6; }
  6642. fi
  6643. if test "x$ac_ct_OBJDUMP" = x; then
  6644. OBJDUMP="false"
  6645. else
  6646. case $cross_compiling:$ac_tool_warned in
  6647. yes:)
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6650. ac_tool_warned=yes ;;
  6651. esac
  6652. OBJDUMP=$ac_ct_OBJDUMP
  6653. fi
  6654. else
  6655. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6656. fi
  6657. ;;
  6658. esac
  6659. test -z "$AS" && AS=as
  6660. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6661. test -z "$OBJDUMP" && OBJDUMP=objdump
  6662. enable_dlopen=no
  6663. # Check whether --enable-shared was given.
  6664. if test "${enable_shared+set}" = set; then :
  6665. enableval=$enable_shared; p=${PACKAGE-default}
  6666. case $enableval in
  6667. yes) enable_shared=yes ;;
  6668. no) enable_shared=no ;;
  6669. *)
  6670. enable_shared=no
  6671. # Look at the argument we got. We use all the common list separators.
  6672. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6673. for pkg in $enableval; do
  6674. IFS="$lt_save_ifs"
  6675. if test "X$pkg" = "X$p"; then
  6676. enable_shared=yes
  6677. fi
  6678. done
  6679. IFS="$lt_save_ifs"
  6680. ;;
  6681. esac
  6682. else
  6683. enable_shared=yes
  6684. fi
  6685. # Check whether --enable-static was given.
  6686. if test "${enable_static+set}" = set; then :
  6687. enableval=$enable_static; p=${PACKAGE-default}
  6688. case $enableval in
  6689. yes) enable_static=yes ;;
  6690. no) enable_static=no ;;
  6691. *)
  6692. enable_static=no
  6693. # Look at the argument we got. We use all the common list separators.
  6694. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6695. for pkg in $enableval; do
  6696. IFS="$lt_save_ifs"
  6697. if test "X$pkg" = "X$p"; then
  6698. enable_static=yes
  6699. fi
  6700. done
  6701. IFS="$lt_save_ifs"
  6702. ;;
  6703. esac
  6704. else
  6705. enable_static=yes
  6706. fi
  6707. # Check whether --with-pic was given.
  6708. if test "${with_pic+set}" = set; then :
  6709. withval=$with_pic; lt_p=${PACKAGE-default}
  6710. case $withval in
  6711. yes|no) pic_mode=$withval ;;
  6712. *)
  6713. pic_mode=default
  6714. # Look at the argument we got. We use all the common list separators.
  6715. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6716. for lt_pkg in $withval; do
  6717. IFS="$lt_save_ifs"
  6718. if test "X$lt_pkg" = "X$lt_p"; then
  6719. pic_mode=yes
  6720. fi
  6721. done
  6722. IFS="$lt_save_ifs"
  6723. ;;
  6724. esac
  6725. else
  6726. pic_mode=default
  6727. fi
  6728. test -z "$pic_mode" && pic_mode=default
  6729. # Check whether --enable-fast-install was given.
  6730. if test "${enable_fast_install+set}" = set; then :
  6731. enableval=$enable_fast_install; p=${PACKAGE-default}
  6732. case $enableval in
  6733. yes) enable_fast_install=yes ;;
  6734. no) enable_fast_install=no ;;
  6735. *)
  6736. enable_fast_install=no
  6737. # Look at the argument we got. We use all the common list separators.
  6738. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6739. for pkg in $enableval; do
  6740. IFS="$lt_save_ifs"
  6741. if test "X$pkg" = "X$p"; then
  6742. enable_fast_install=yes
  6743. fi
  6744. done
  6745. IFS="$lt_save_ifs"
  6746. ;;
  6747. esac
  6748. else
  6749. enable_fast_install=yes
  6750. fi
  6751. # This can be used to rebuild libtool when needed
  6752. LIBTOOL_DEPS="$ltmain"
  6753. # Always use our own libtool.
  6754. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6755. test -z "$LN_S" && LN_S="ln -s"
  6756. if test -n "${ZSH_VERSION+set}" ; then
  6757. setopt NO_GLOB_SUBST
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6760. $as_echo_n "checking for objdir... " >&6; }
  6761. if ${lt_cv_objdir+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. rm -f .libs 2>/dev/null
  6765. mkdir .libs 2>/dev/null
  6766. if test -d .libs; then
  6767. lt_cv_objdir=.libs
  6768. else
  6769. # MS-DOS does not allow filenames that begin with a dot.
  6770. lt_cv_objdir=_libs
  6771. fi
  6772. rmdir .libs 2>/dev/null
  6773. fi
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6775. $as_echo "$lt_cv_objdir" >&6; }
  6776. objdir=$lt_cv_objdir
  6777. cat >>confdefs.h <<_ACEOF
  6778. #define LT_OBJDIR "$lt_cv_objdir/"
  6779. _ACEOF
  6780. case $host_os in
  6781. aix3*)
  6782. # AIX sometimes has problems with the GCC collect2 program. For some
  6783. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6784. # vanish in a puff of smoke.
  6785. if test "X${COLLECT_NAMES+set}" != Xset; then
  6786. COLLECT_NAMES=
  6787. export COLLECT_NAMES
  6788. fi
  6789. ;;
  6790. esac
  6791. # Global variables:
  6792. ofile=libtool
  6793. can_build_shared=yes
  6794. # All known linkers require a `.a' archive for static linking (except MSVC,
  6795. # which needs '.lib').
  6796. libext=a
  6797. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6798. old_CC="$CC"
  6799. old_CFLAGS="$CFLAGS"
  6800. # Set sane defaults for various variables
  6801. test -z "$CC" && CC=cc
  6802. test -z "$LTCC" && LTCC=$CC
  6803. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6804. test -z "$LD" && LD=ld
  6805. test -z "$ac_objext" && ac_objext=o
  6806. for cc_temp in $compiler""; do
  6807. case $cc_temp in
  6808. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6809. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6810. \-*) ;;
  6811. *) break;;
  6812. esac
  6813. done
  6814. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6815. # Only perform the check for file, if the check method requires it
  6816. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6817. case $deplibs_check_method in
  6818. file_magic*)
  6819. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6821. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6822. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6823. $as_echo_n "(cached) " >&6
  6824. else
  6825. case $MAGIC_CMD in
  6826. [\\/*] | ?:[\\/]*)
  6827. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6828. ;;
  6829. *)
  6830. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6831. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6832. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6833. for ac_dir in $ac_dummy; do
  6834. IFS="$lt_save_ifs"
  6835. test -z "$ac_dir" && ac_dir=.
  6836. if test -f $ac_dir/${ac_tool_prefix}file; then
  6837. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6838. if test -n "$file_magic_test_file"; then
  6839. case $deplibs_check_method in
  6840. "file_magic "*)
  6841. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6842. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6843. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6844. $EGREP "$file_magic_regex" > /dev/null; then
  6845. :
  6846. else
  6847. cat <<_LT_EOF 1>&2
  6848. *** Warning: the command libtool uses to detect shared libraries,
  6849. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6850. *** The result is that libtool may fail to recognize shared libraries
  6851. *** as such. This will affect the creation of libtool libraries that
  6852. *** depend on shared libraries, but programs linked with such libtool
  6853. *** libraries will work regardless of this problem. Nevertheless, you
  6854. *** may want to report the problem to your system manager and/or to
  6855. *** bug-libtool@gnu.org
  6856. _LT_EOF
  6857. fi ;;
  6858. esac
  6859. fi
  6860. break
  6861. fi
  6862. done
  6863. IFS="$lt_save_ifs"
  6864. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6865. ;;
  6866. esac
  6867. fi
  6868. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6869. if test -n "$MAGIC_CMD"; then
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6871. $as_echo "$MAGIC_CMD" >&6; }
  6872. else
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. $as_echo "no" >&6; }
  6875. fi
  6876. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6877. if test -n "$ac_tool_prefix"; then
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6879. $as_echo_n "checking for file... " >&6; }
  6880. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. case $MAGIC_CMD in
  6884. [\\/*] | ?:[\\/]*)
  6885. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6886. ;;
  6887. *)
  6888. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6889. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6890. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6891. for ac_dir in $ac_dummy; do
  6892. IFS="$lt_save_ifs"
  6893. test -z "$ac_dir" && ac_dir=.
  6894. if test -f $ac_dir/file; then
  6895. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6896. if test -n "$file_magic_test_file"; then
  6897. case $deplibs_check_method in
  6898. "file_magic "*)
  6899. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6900. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6901. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6902. $EGREP "$file_magic_regex" > /dev/null; then
  6903. :
  6904. else
  6905. cat <<_LT_EOF 1>&2
  6906. *** Warning: the command libtool uses to detect shared libraries,
  6907. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6908. *** The result is that libtool may fail to recognize shared libraries
  6909. *** as such. This will affect the creation of libtool libraries that
  6910. *** depend on shared libraries, but programs linked with such libtool
  6911. *** libraries will work regardless of this problem. Nevertheless, you
  6912. *** may want to report the problem to your system manager and/or to
  6913. *** bug-libtool@gnu.org
  6914. _LT_EOF
  6915. fi ;;
  6916. esac
  6917. fi
  6918. break
  6919. fi
  6920. done
  6921. IFS="$lt_save_ifs"
  6922. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6923. ;;
  6924. esac
  6925. fi
  6926. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6927. if test -n "$MAGIC_CMD"; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6929. $as_echo "$MAGIC_CMD" >&6; }
  6930. else
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. fi
  6934. else
  6935. MAGIC_CMD=:
  6936. fi
  6937. fi
  6938. fi
  6939. ;;
  6940. esac
  6941. # Use C for the default configuration in the libtool script
  6942. lt_save_CC="$CC"
  6943. ac_ext=c
  6944. ac_cpp='$CPP $CPPFLAGS'
  6945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6948. # Source file extension for C test sources.
  6949. ac_ext=c
  6950. # Object file extension for compiled C test sources.
  6951. objext=o
  6952. objext=$objext
  6953. # Code to be used in simple compile tests
  6954. lt_simple_compile_test_code="int some_variable = 0;"
  6955. # Code to be used in simple link tests
  6956. lt_simple_link_test_code='int main(){return(0);}'
  6957. # If no C compiler was specified, use CC.
  6958. LTCC=${LTCC-"$CC"}
  6959. # If no C compiler flags were specified, use CFLAGS.
  6960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6961. # Allow CC to be a program name with arguments.
  6962. compiler=$CC
  6963. # Save the default compiler, since it gets overwritten when the other
  6964. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6965. compiler_DEFAULT=$CC
  6966. # save warnings/boilerplate of simple test code
  6967. ac_outfile=conftest.$ac_objext
  6968. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6969. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6970. _lt_compiler_boilerplate=`cat conftest.err`
  6971. $RM conftest*
  6972. ac_outfile=conftest.$ac_objext
  6973. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6974. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6975. _lt_linker_boilerplate=`cat conftest.err`
  6976. $RM -r conftest*
  6977. ## CAVEAT EMPTOR:
  6978. ## There is no encapsulation within the following macros, do not change
  6979. ## the running order or otherwise move them around unless you know exactly
  6980. ## what you are doing...
  6981. if test -n "$compiler"; then
  6982. lt_prog_compiler_no_builtin_flag=
  6983. if test "$GCC" = yes; then
  6984. case $cc_basename in
  6985. nvcc*)
  6986. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6987. *)
  6988. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6989. esac
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6991. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6992. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. lt_cv_prog_compiler_rtti_exceptions=no
  6996. ac_outfile=conftest.$ac_objext
  6997. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6998. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6999. # Insert the option either (1) after the last *FLAGS variable, or
  7000. # (2) before a word containing "conftest.", or (3) at the end.
  7001. # Note that $ac_compile itself does not contain backslashes and begins
  7002. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7003. # The option is referenced via a variable to avoid confusing sed.
  7004. lt_compile=`echo "$ac_compile" | $SED \
  7005. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7006. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7007. -e 's:$: $lt_compiler_flag:'`
  7008. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7009. (eval "$lt_compile" 2>conftest.err)
  7010. ac_status=$?
  7011. cat conftest.err >&5
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. if (exit $ac_status) && test -s "$ac_outfile"; then
  7014. # The compiler can only warn and ignore the option if not recognized
  7015. # So say no if there are warnings other than the usual output.
  7016. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7017. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7018. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7019. lt_cv_prog_compiler_rtti_exceptions=yes
  7020. fi
  7021. fi
  7022. $RM conftest*
  7023. fi
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7025. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7026. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7027. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7028. else
  7029. :
  7030. fi
  7031. fi
  7032. lt_prog_compiler_wl=
  7033. lt_prog_compiler_pic=
  7034. lt_prog_compiler_static=
  7035. if test "$GCC" = yes; then
  7036. lt_prog_compiler_wl='-Wl,'
  7037. lt_prog_compiler_static='-static'
  7038. case $host_os in
  7039. aix*)
  7040. # All AIX code is PIC.
  7041. if test "$host_cpu" = ia64; then
  7042. # AIX 5 now supports IA64 processor
  7043. lt_prog_compiler_static='-Bstatic'
  7044. fi
  7045. ;;
  7046. amigaos*)
  7047. case $host_cpu in
  7048. powerpc)
  7049. # see comment about AmigaOS4 .so support
  7050. lt_prog_compiler_pic='-fPIC'
  7051. ;;
  7052. m68k)
  7053. # FIXME: we need at least 68020 code to build shared libraries, but
  7054. # adding the `-m68020' flag to GCC prevents building anything better,
  7055. # like `-m68040'.
  7056. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7057. ;;
  7058. esac
  7059. ;;
  7060. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7061. # PIC is the default for these OSes.
  7062. ;;
  7063. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7064. # This hack is so that the source file can tell whether it is being
  7065. # built for inclusion in a dll (and should export symbols for example).
  7066. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7067. # (--disable-auto-import) libraries
  7068. lt_prog_compiler_pic='-DDLL_EXPORT'
  7069. ;;
  7070. darwin* | rhapsody*)
  7071. # PIC is the default on this platform
  7072. # Common symbols not allowed in MH_DYLIB files
  7073. lt_prog_compiler_pic='-fno-common'
  7074. ;;
  7075. haiku*)
  7076. # PIC is the default for Haiku.
  7077. # The "-static" flag exists, but is broken.
  7078. lt_prog_compiler_static=
  7079. ;;
  7080. hpux*)
  7081. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7082. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7083. # sets the default TLS model and affects inlining.
  7084. case $host_cpu in
  7085. hppa*64*)
  7086. # +Z the default
  7087. ;;
  7088. *)
  7089. lt_prog_compiler_pic='-fPIC'
  7090. ;;
  7091. esac
  7092. ;;
  7093. interix[3-9]*)
  7094. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7095. # Instead, we relocate shared libraries at runtime.
  7096. ;;
  7097. msdosdjgpp*)
  7098. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7099. # on systems that don't support them.
  7100. lt_prog_compiler_can_build_shared=no
  7101. enable_shared=no
  7102. ;;
  7103. *nto* | *qnx*)
  7104. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7105. # it will coredump.
  7106. lt_prog_compiler_pic='-fPIC -shared'
  7107. ;;
  7108. sysv4*MP*)
  7109. if test -d /usr/nec; then
  7110. lt_prog_compiler_pic=-Kconform_pic
  7111. fi
  7112. ;;
  7113. *)
  7114. lt_prog_compiler_pic='-fPIC'
  7115. ;;
  7116. esac
  7117. case $cc_basename in
  7118. nvcc*) # Cuda Compiler Driver 2.2
  7119. lt_prog_compiler_wl='-Xlinker '
  7120. if test -n "$lt_prog_compiler_pic"; then
  7121. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7122. fi
  7123. ;;
  7124. esac
  7125. else
  7126. # PORTME Check for flag to pass linker flags through the system compiler.
  7127. case $host_os in
  7128. aix*)
  7129. lt_prog_compiler_wl='-Wl,'
  7130. if test "$host_cpu" = ia64; then
  7131. # AIX 5 now supports IA64 processor
  7132. lt_prog_compiler_static='-Bstatic'
  7133. else
  7134. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7135. fi
  7136. ;;
  7137. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7138. # This hack is so that the source file can tell whether it is being
  7139. # built for inclusion in a dll (and should export symbols for example).
  7140. lt_prog_compiler_pic='-DDLL_EXPORT'
  7141. ;;
  7142. hpux9* | hpux10* | hpux11*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7145. # not for PA HP-UX.
  7146. case $host_cpu in
  7147. hppa*64*|ia64*)
  7148. # +Z the default
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_pic='+Z'
  7152. ;;
  7153. esac
  7154. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7155. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7156. ;;
  7157. irix5* | irix6* | nonstopux*)
  7158. lt_prog_compiler_wl='-Wl,'
  7159. # PIC (with -KPIC) is the default.
  7160. lt_prog_compiler_static='-non_shared'
  7161. ;;
  7162. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7163. case $cc_basename in
  7164. # old Intel for x86_64 which still supported -KPIC.
  7165. ecc*)
  7166. lt_prog_compiler_wl='-Wl,'
  7167. lt_prog_compiler_pic='-KPIC'
  7168. lt_prog_compiler_static='-static'
  7169. ;;
  7170. # icc used to be incompatible with GCC.
  7171. # ICC 10 doesn't accept -KPIC any more.
  7172. icc* | ifort*)
  7173. lt_prog_compiler_wl='-Wl,'
  7174. lt_prog_compiler_pic='-fPIC'
  7175. lt_prog_compiler_static='-static'
  7176. ;;
  7177. # Lahey Fortran 8.1.
  7178. lf95*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='--shared'
  7181. lt_prog_compiler_static='--static'
  7182. ;;
  7183. nagfor*)
  7184. # NAG Fortran compiler
  7185. lt_prog_compiler_wl='-Wl,-Wl,,'
  7186. lt_prog_compiler_pic='-PIC'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. ;;
  7189. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7190. # Portland Group compilers (*not* the Pentium gcc compiler,
  7191. # which looks to be a dead project)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_pic='-fpic'
  7194. lt_prog_compiler_static='-Bstatic'
  7195. ;;
  7196. ccc*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. # All Alpha code is PIC.
  7199. lt_prog_compiler_static='-non_shared'
  7200. ;;
  7201. xl* | bgxl* | bgf* | mpixl*)
  7202. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7203. lt_prog_compiler_wl='-Wl,'
  7204. lt_prog_compiler_pic='-qpic'
  7205. lt_prog_compiler_static='-qstaticlink'
  7206. ;;
  7207. *)
  7208. case `$CC -V 2>&1 | sed 5q` in
  7209. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7210. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7211. lt_prog_compiler_pic='-KPIC'
  7212. lt_prog_compiler_static='-Bstatic'
  7213. lt_prog_compiler_wl=''
  7214. ;;
  7215. *Sun\ F* | *Sun*Fortran*)
  7216. lt_prog_compiler_pic='-KPIC'
  7217. lt_prog_compiler_static='-Bstatic'
  7218. lt_prog_compiler_wl='-Qoption ld '
  7219. ;;
  7220. *Sun\ C*)
  7221. # Sun C 5.9
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl='-Wl,'
  7225. ;;
  7226. *Intel*\ [CF]*Compiler*)
  7227. lt_prog_compiler_wl='-Wl,'
  7228. lt_prog_compiler_pic='-fPIC'
  7229. lt_prog_compiler_static='-static'
  7230. ;;
  7231. *Portland\ Group*)
  7232. lt_prog_compiler_wl='-Wl,'
  7233. lt_prog_compiler_pic='-fpic'
  7234. lt_prog_compiler_static='-Bstatic'
  7235. ;;
  7236. esac
  7237. ;;
  7238. esac
  7239. ;;
  7240. newsos6)
  7241. lt_prog_compiler_pic='-KPIC'
  7242. lt_prog_compiler_static='-Bstatic'
  7243. ;;
  7244. *nto* | *qnx*)
  7245. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7246. # it will coredump.
  7247. lt_prog_compiler_pic='-fPIC -shared'
  7248. ;;
  7249. osf3* | osf4* | osf5*)
  7250. lt_prog_compiler_wl='-Wl,'
  7251. # All OSF/1 code is PIC.
  7252. lt_prog_compiler_static='-non_shared'
  7253. ;;
  7254. rdos*)
  7255. lt_prog_compiler_static='-non_shared'
  7256. ;;
  7257. solaris*)
  7258. lt_prog_compiler_pic='-KPIC'
  7259. lt_prog_compiler_static='-Bstatic'
  7260. case $cc_basename in
  7261. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7262. lt_prog_compiler_wl='-Qoption ld ';;
  7263. *)
  7264. lt_prog_compiler_wl='-Wl,';;
  7265. esac
  7266. ;;
  7267. sunos4*)
  7268. lt_prog_compiler_wl='-Qoption ld '
  7269. lt_prog_compiler_pic='-PIC'
  7270. lt_prog_compiler_static='-Bstatic'
  7271. ;;
  7272. sysv4 | sysv4.2uw2* | sysv4.3*)
  7273. lt_prog_compiler_wl='-Wl,'
  7274. lt_prog_compiler_pic='-KPIC'
  7275. lt_prog_compiler_static='-Bstatic'
  7276. ;;
  7277. sysv4*MP*)
  7278. if test -d /usr/nec ;then
  7279. lt_prog_compiler_pic='-Kconform_pic'
  7280. lt_prog_compiler_static='-Bstatic'
  7281. fi
  7282. ;;
  7283. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-KPIC'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. ;;
  7288. unicos*)
  7289. lt_prog_compiler_wl='-Wl,'
  7290. lt_prog_compiler_can_build_shared=no
  7291. ;;
  7292. uts4*)
  7293. lt_prog_compiler_pic='-pic'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. ;;
  7296. *)
  7297. lt_prog_compiler_can_build_shared=no
  7298. ;;
  7299. esac
  7300. fi
  7301. case $host_os in
  7302. # For platforms which do not support PIC, -DPIC is meaningless:
  7303. *djgpp*)
  7304. lt_prog_compiler_pic=
  7305. ;;
  7306. *)
  7307. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7308. ;;
  7309. esac
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7311. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7312. if ${lt_cv_prog_compiler_pic+:} false; then :
  7313. $as_echo_n "(cached) " >&6
  7314. else
  7315. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7318. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7319. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7320. #
  7321. # Check to make sure the PIC flag actually works.
  7322. #
  7323. if test -n "$lt_prog_compiler_pic"; then
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7325. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7326. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_prog_compiler_pic_works=no
  7330. ac_outfile=conftest.$ac_objext
  7331. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7332. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7333. # Insert the option either (1) after the last *FLAGS variable, or
  7334. # (2) before a word containing "conftest.", or (3) at the end.
  7335. # Note that $ac_compile itself does not contain backslashes and begins
  7336. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7337. # The option is referenced via a variable to avoid confusing sed.
  7338. lt_compile=`echo "$ac_compile" | $SED \
  7339. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7340. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7341. -e 's:$: $lt_compiler_flag:'`
  7342. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7343. (eval "$lt_compile" 2>conftest.err)
  7344. ac_status=$?
  7345. cat conftest.err >&5
  7346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7347. if (exit $ac_status) && test -s "$ac_outfile"; then
  7348. # The compiler can only warn and ignore the option if not recognized
  7349. # So say no if there are warnings other than the usual output.
  7350. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7351. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7352. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7353. lt_cv_prog_compiler_pic_works=yes
  7354. fi
  7355. fi
  7356. $RM conftest*
  7357. fi
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7359. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7360. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7361. case $lt_prog_compiler_pic in
  7362. "" | " "*) ;;
  7363. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7364. esac
  7365. else
  7366. lt_prog_compiler_pic=
  7367. lt_prog_compiler_can_build_shared=no
  7368. fi
  7369. fi
  7370. #
  7371. # Check to make sure the static flag actually works.
  7372. #
  7373. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7375. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7376. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7377. $as_echo_n "(cached) " >&6
  7378. else
  7379. lt_cv_prog_compiler_static_works=no
  7380. save_LDFLAGS="$LDFLAGS"
  7381. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7382. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7383. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7384. # The linker can only warn and ignore the option if not recognized
  7385. # So say no if there are warnings
  7386. if test -s conftest.err; then
  7387. # Append any errors to the config.log.
  7388. cat conftest.err 1>&5
  7389. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7390. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7391. if diff conftest.exp conftest.er2 >/dev/null; then
  7392. lt_cv_prog_compiler_static_works=yes
  7393. fi
  7394. else
  7395. lt_cv_prog_compiler_static_works=yes
  7396. fi
  7397. fi
  7398. $RM -r conftest*
  7399. LDFLAGS="$save_LDFLAGS"
  7400. fi
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7402. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7403. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7404. :
  7405. else
  7406. lt_prog_compiler_static=
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7409. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7410. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7411. $as_echo_n "(cached) " >&6
  7412. else
  7413. lt_cv_prog_compiler_c_o=no
  7414. $RM -r conftest 2>/dev/null
  7415. mkdir conftest
  7416. cd conftest
  7417. mkdir out
  7418. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7419. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7420. # Insert the option either (1) after the last *FLAGS variable, or
  7421. # (2) before a word containing "conftest.", or (3) at the end.
  7422. # Note that $ac_compile itself does not contain backslashes and begins
  7423. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7424. lt_compile=`echo "$ac_compile" | $SED \
  7425. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7426. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7427. -e 's:$: $lt_compiler_flag:'`
  7428. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7429. (eval "$lt_compile" 2>out/conftest.err)
  7430. ac_status=$?
  7431. cat out/conftest.err >&5
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7434. then
  7435. # The compiler can only warn and ignore the option if not recognized
  7436. # So say no if there are warnings
  7437. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7438. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7439. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7440. lt_cv_prog_compiler_c_o=yes
  7441. fi
  7442. fi
  7443. chmod u+w . 2>&5
  7444. $RM conftest*
  7445. # SGI C++ compiler will create directory out/ii_files/ for
  7446. # template instantiation
  7447. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7448. $RM out/* && rmdir out
  7449. cd ..
  7450. $RM -r conftest
  7451. $RM conftest*
  7452. fi
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7454. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7456. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7457. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7458. $as_echo_n "(cached) " >&6
  7459. else
  7460. lt_cv_prog_compiler_c_o=no
  7461. $RM -r conftest 2>/dev/null
  7462. mkdir conftest
  7463. cd conftest
  7464. mkdir out
  7465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7466. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7467. # Insert the option either (1) after the last *FLAGS variable, or
  7468. # (2) before a word containing "conftest.", or (3) at the end.
  7469. # Note that $ac_compile itself does not contain backslashes and begins
  7470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7471. lt_compile=`echo "$ac_compile" | $SED \
  7472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7474. -e 's:$: $lt_compiler_flag:'`
  7475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7476. (eval "$lt_compile" 2>out/conftest.err)
  7477. ac_status=$?
  7478. cat out/conftest.err >&5
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7481. then
  7482. # The compiler can only warn and ignore the option if not recognized
  7483. # So say no if there are warnings
  7484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7485. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7486. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7487. lt_cv_prog_compiler_c_o=yes
  7488. fi
  7489. fi
  7490. chmod u+w . 2>&5
  7491. $RM conftest*
  7492. # SGI C++ compiler will create directory out/ii_files/ for
  7493. # template instantiation
  7494. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7495. $RM out/* && rmdir out
  7496. cd ..
  7497. $RM -r conftest
  7498. $RM conftest*
  7499. fi
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7501. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7502. hard_links="nottested"
  7503. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7504. # do not overwrite the value of need_locks provided by the user
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7506. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7507. hard_links=yes
  7508. $RM conftest*
  7509. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7510. touch conftest.a
  7511. ln conftest.a conftest.b 2>&5 || hard_links=no
  7512. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7514. $as_echo "$hard_links" >&6; }
  7515. if test "$hard_links" = no; then
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7517. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7518. need_locks=warn
  7519. fi
  7520. else
  7521. need_locks=no
  7522. fi
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7524. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7525. runpath_var=
  7526. allow_undefined_flag=
  7527. always_export_symbols=no
  7528. archive_cmds=
  7529. archive_expsym_cmds=
  7530. compiler_needs_object=no
  7531. enable_shared_with_static_runtimes=no
  7532. export_dynamic_flag_spec=
  7533. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7534. hardcode_automatic=no
  7535. hardcode_direct=no
  7536. hardcode_direct_absolute=no
  7537. hardcode_libdir_flag_spec=
  7538. hardcode_libdir_separator=
  7539. hardcode_minus_L=no
  7540. hardcode_shlibpath_var=unsupported
  7541. inherit_rpath=no
  7542. link_all_deplibs=unknown
  7543. module_cmds=
  7544. module_expsym_cmds=
  7545. old_archive_from_new_cmds=
  7546. old_archive_from_expsyms_cmds=
  7547. thread_safe_flag_spec=
  7548. whole_archive_flag_spec=
  7549. # include_expsyms should be a list of space-separated symbols to be *always*
  7550. # included in the symbol list
  7551. include_expsyms=
  7552. # exclude_expsyms can be an extended regexp of symbols to exclude
  7553. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7554. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7555. # as well as any symbol that contains `d'.
  7556. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7557. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7558. # platforms (ab)use it in PIC code, but their linkers get confused if
  7559. # the symbol is explicitly referenced. Since portable code cannot
  7560. # rely on this symbol name, it's probably fine to never include it in
  7561. # preloaded symbol tables.
  7562. # Exclude shared library initialization/finalization symbols.
  7563. extract_expsyms_cmds=
  7564. case $host_os in
  7565. cygwin* | mingw* | pw32* | cegcc*)
  7566. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7567. # When not using gcc, we currently assume that we are using
  7568. # Microsoft Visual C++.
  7569. if test "$GCC" != yes; then
  7570. with_gnu_ld=no
  7571. fi
  7572. ;;
  7573. interix*)
  7574. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7575. with_gnu_ld=yes
  7576. ;;
  7577. openbsd*)
  7578. with_gnu_ld=no
  7579. ;;
  7580. esac
  7581. ld_shlibs=yes
  7582. # On some targets, GNU ld is compatible enough with the native linker
  7583. # that we're better off using the native interface for both.
  7584. lt_use_gnu_ld_interface=no
  7585. if test "$with_gnu_ld" = yes; then
  7586. case $host_os in
  7587. aix*)
  7588. # The AIX port of GNU ld has always aspired to compatibility
  7589. # with the native linker. However, as the warning in the GNU ld
  7590. # block says, versions before 2.19.5* couldn't really create working
  7591. # shared libraries, regardless of the interface used.
  7592. case `$LD -v 2>&1` in
  7593. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7594. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7595. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7596. *)
  7597. lt_use_gnu_ld_interface=yes
  7598. ;;
  7599. esac
  7600. ;;
  7601. *)
  7602. lt_use_gnu_ld_interface=yes
  7603. ;;
  7604. esac
  7605. fi
  7606. if test "$lt_use_gnu_ld_interface" = yes; then
  7607. # If archive_cmds runs LD, not CC, wlarc should be empty
  7608. wlarc='${wl}'
  7609. # Set some defaults for GNU ld with shared library support. These
  7610. # are reset later if shared libraries are not supported. Putting them
  7611. # here allows them to be overridden if necessary.
  7612. runpath_var=LD_RUN_PATH
  7613. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7614. export_dynamic_flag_spec='${wl}--export-dynamic'
  7615. # ancient GNU ld didn't support --whole-archive et. al.
  7616. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7617. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7618. else
  7619. whole_archive_flag_spec=
  7620. fi
  7621. supports_anon_versioning=no
  7622. case `$LD -v 2>&1` in
  7623. *GNU\ gold*) supports_anon_versioning=yes ;;
  7624. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7625. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7626. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7627. *\ 2.11.*) ;; # other 2.11 versions
  7628. *) supports_anon_versioning=yes ;;
  7629. esac
  7630. # See if GNU ld supports shared libraries.
  7631. case $host_os in
  7632. aix[3-9]*)
  7633. # On AIX/PPC, the GNU linker is very broken
  7634. if test "$host_cpu" != ia64; then
  7635. ld_shlibs=no
  7636. cat <<_LT_EOF 1>&2
  7637. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7638. *** to be unable to reliably create shared libraries on AIX.
  7639. *** Therefore, libtool is disabling shared libraries support. If you
  7640. *** really care for shared libraries, you may want to install binutils
  7641. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7642. *** You will then need to restart the configuration process.
  7643. _LT_EOF
  7644. fi
  7645. ;;
  7646. amigaos*)
  7647. case $host_cpu in
  7648. powerpc)
  7649. # see comment about AmigaOS4 .so support
  7650. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7651. archive_expsym_cmds=''
  7652. ;;
  7653. m68k)
  7654. 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)'
  7655. hardcode_libdir_flag_spec='-L$libdir'
  7656. hardcode_minus_L=yes
  7657. ;;
  7658. esac
  7659. ;;
  7660. beos*)
  7661. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7662. allow_undefined_flag=unsupported
  7663. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7664. # support --undefined. This deserves some investigation. FIXME
  7665. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7666. else
  7667. ld_shlibs=no
  7668. fi
  7669. ;;
  7670. cygwin* | mingw* | pw32* | cegcc*)
  7671. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7672. # as there is no search path for DLLs.
  7673. hardcode_libdir_flag_spec='-L$libdir'
  7674. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7675. allow_undefined_flag=unsupported
  7676. always_export_symbols=no
  7677. enable_shared_with_static_runtimes=yes
  7678. 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'
  7679. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7680. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7681. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7682. # If the export-symbols file already is a .def file (1st line
  7683. # is EXPORTS), use it as is; otherwise, prepend...
  7684. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7685. cp $export_symbols $output_objdir/$soname.def;
  7686. else
  7687. echo EXPORTS > $output_objdir/$soname.def;
  7688. cat $export_symbols >> $output_objdir/$soname.def;
  7689. fi~
  7690. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7691. else
  7692. ld_shlibs=no
  7693. fi
  7694. ;;
  7695. haiku*)
  7696. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. link_all_deplibs=yes
  7698. ;;
  7699. interix[3-9]*)
  7700. hardcode_direct=no
  7701. hardcode_shlibpath_var=no
  7702. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7703. export_dynamic_flag_spec='${wl}-E'
  7704. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7705. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7706. # default) and relocated if they conflict, which is a slow very memory
  7707. # consuming and fragmenting process. To avoid this, we pick a random,
  7708. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7709. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7710. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7711. 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'
  7712. ;;
  7713. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7714. tmp_diet=no
  7715. if test "$host_os" = linux-dietlibc; then
  7716. case $cc_basename in
  7717. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7718. esac
  7719. fi
  7720. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7721. && test "$tmp_diet" = no
  7722. then
  7723. tmp_addflag=' $pic_flag'
  7724. tmp_sharedflag='-shared'
  7725. case $cc_basename,$host_cpu in
  7726. pgcc*) # Portland Group C compiler
  7727. 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'
  7728. tmp_addflag=' $pic_flag'
  7729. ;;
  7730. pgf77* | pgf90* | pgf95* | pgfortran*)
  7731. # Portland Group f77 and f90 compilers
  7732. 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'
  7733. tmp_addflag=' $pic_flag -Mnomain' ;;
  7734. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7735. tmp_addflag=' -i_dynamic' ;;
  7736. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7737. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7738. ifc* | ifort*) # Intel Fortran compiler
  7739. tmp_addflag=' -nofor_main' ;;
  7740. lf95*) # Lahey Fortran 8.1
  7741. whole_archive_flag_spec=
  7742. tmp_sharedflag='--shared' ;;
  7743. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7744. tmp_sharedflag='-qmkshrobj'
  7745. tmp_addflag= ;;
  7746. nvcc*) # Cuda Compiler Driver 2.2
  7747. 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'
  7748. compiler_needs_object=yes
  7749. ;;
  7750. esac
  7751. case `$CC -V 2>&1 | sed 5q` in
  7752. *Sun\ C*) # Sun C 5.9
  7753. 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'
  7754. compiler_needs_object=yes
  7755. tmp_sharedflag='-G' ;;
  7756. *Sun\ F*) # Sun Fortran 8.3
  7757. tmp_sharedflag='-G' ;;
  7758. esac
  7759. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7760. if test "x$supports_anon_versioning" = xyes; then
  7761. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7762. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7763. echo "local: *; };" >> $output_objdir/$libname.ver~
  7764. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7765. fi
  7766. case $cc_basename in
  7767. xlf* | bgf* | bgxlf* | mpixlf*)
  7768. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7769. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7770. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7771. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7772. if test "x$supports_anon_versioning" = xyes; then
  7773. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7774. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7775. echo "local: *; };" >> $output_objdir/$libname.ver~
  7776. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7777. fi
  7778. ;;
  7779. esac
  7780. else
  7781. ld_shlibs=no
  7782. fi
  7783. ;;
  7784. netbsd*)
  7785. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7786. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7787. wlarc=
  7788. else
  7789. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7790. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7791. fi
  7792. ;;
  7793. solaris*)
  7794. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7795. ld_shlibs=no
  7796. cat <<_LT_EOF 1>&2
  7797. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7798. *** create shared libraries on Solaris systems. Therefore, libtool
  7799. *** is disabling shared libraries support. We urge you to upgrade GNU
  7800. *** binutils to release 2.9.1 or newer. Another option is to modify
  7801. *** your PATH or compiler configuration so that the native linker is
  7802. *** used, and then restart.
  7803. _LT_EOF
  7804. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7805. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7806. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7807. else
  7808. ld_shlibs=no
  7809. fi
  7810. ;;
  7811. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7812. case `$LD -v 2>&1` in
  7813. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7814. ld_shlibs=no
  7815. cat <<_LT_EOF 1>&2
  7816. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7817. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7818. *** is disabling shared libraries support. We urge you to upgrade GNU
  7819. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7820. *** your PATH or compiler configuration so that the native linker is
  7821. *** used, and then restart.
  7822. _LT_EOF
  7823. ;;
  7824. *)
  7825. # For security reasons, it is highly recommended that you always
  7826. # use absolute paths for naming shared libraries, and exclude the
  7827. # DT_RUNPATH tag from executables and libraries. But doing so
  7828. # requires that you compile everything twice, which is a pain.
  7829. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7830. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7831. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7832. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7833. else
  7834. ld_shlibs=no
  7835. fi
  7836. ;;
  7837. esac
  7838. ;;
  7839. sunos4*)
  7840. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7841. wlarc=
  7842. hardcode_direct=yes
  7843. hardcode_shlibpath_var=no
  7844. ;;
  7845. *)
  7846. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7847. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7848. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7849. else
  7850. ld_shlibs=no
  7851. fi
  7852. ;;
  7853. esac
  7854. if test "$ld_shlibs" = no; then
  7855. runpath_var=
  7856. hardcode_libdir_flag_spec=
  7857. export_dynamic_flag_spec=
  7858. whole_archive_flag_spec=
  7859. fi
  7860. else
  7861. # PORTME fill in a description of your system's linker (not GNU ld)
  7862. case $host_os in
  7863. aix3*)
  7864. allow_undefined_flag=unsupported
  7865. always_export_symbols=yes
  7866. 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'
  7867. # Note: this linker hardcodes the directories in LIBPATH if there
  7868. # are no directories specified by -L.
  7869. hardcode_minus_L=yes
  7870. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7871. # Neither direct hardcoding nor static linking is supported with a
  7872. # broken collect2.
  7873. hardcode_direct=unsupported
  7874. fi
  7875. ;;
  7876. aix[4-9]*)
  7877. if test "$host_cpu" = ia64; then
  7878. # On IA64, the linker does run time linking by default, so we don't
  7879. # have to do anything special.
  7880. aix_use_runtimelinking=no
  7881. exp_sym_flag='-Bexport'
  7882. no_entry_flag=""
  7883. else
  7884. # If we're using GNU nm, then we don't want the "-C" option.
  7885. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7886. # Also, AIX nm treats weak defined symbols like other global
  7887. # defined symbols, whereas GNU nm marks them as "W".
  7888. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7889. 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'
  7890. else
  7891. 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'
  7892. fi
  7893. aix_use_runtimelinking=no
  7894. # Test if we are trying to use run time linking or normal
  7895. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7896. # need to do runtime linking.
  7897. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7898. for ld_flag in $LDFLAGS; do
  7899. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7900. aix_use_runtimelinking=yes
  7901. break
  7902. fi
  7903. done
  7904. ;;
  7905. esac
  7906. exp_sym_flag='-bexport'
  7907. no_entry_flag='-bnoentry'
  7908. fi
  7909. # When large executables or shared objects are built, AIX ld can
  7910. # have problems creating the table of contents. If linking a library
  7911. # or program results in "error TOC overflow" add -mminimal-toc to
  7912. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7913. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7914. archive_cmds=''
  7915. hardcode_direct=yes
  7916. hardcode_direct_absolute=yes
  7917. hardcode_libdir_separator=':'
  7918. link_all_deplibs=yes
  7919. file_list_spec='${wl}-f,'
  7920. if test "$GCC" = yes; then
  7921. case $host_os in aix4.[012]|aix4.[012].*)
  7922. # We only want to do this on AIX 4.2 and lower, the check
  7923. # below for broken collect2 doesn't work under 4.3+
  7924. collect2name=`${CC} -print-prog-name=collect2`
  7925. if test -f "$collect2name" &&
  7926. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7927. then
  7928. # We have reworked collect2
  7929. :
  7930. else
  7931. # We have old collect2
  7932. hardcode_direct=unsupported
  7933. # It fails to find uninstalled libraries when the uninstalled
  7934. # path is not listed in the libpath. Setting hardcode_minus_L
  7935. # to unsupported forces relinking
  7936. hardcode_minus_L=yes
  7937. hardcode_libdir_flag_spec='-L$libdir'
  7938. hardcode_libdir_separator=
  7939. fi
  7940. ;;
  7941. esac
  7942. shared_flag='-shared'
  7943. if test "$aix_use_runtimelinking" = yes; then
  7944. shared_flag="$shared_flag "'${wl}-G'
  7945. fi
  7946. else
  7947. # not using gcc
  7948. if test "$host_cpu" = ia64; then
  7949. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7950. # chokes on -Wl,-G. The following line is correct:
  7951. shared_flag='-G'
  7952. else
  7953. if test "$aix_use_runtimelinking" = yes; then
  7954. shared_flag='${wl}-G'
  7955. else
  7956. shared_flag='${wl}-bM:SRE'
  7957. fi
  7958. fi
  7959. fi
  7960. export_dynamic_flag_spec='${wl}-bexpall'
  7961. # It seems that -bexpall does not export symbols beginning with
  7962. # underscore (_), so it is better to generate a list of symbols to export.
  7963. always_export_symbols=yes
  7964. if test "$aix_use_runtimelinking" = yes; then
  7965. # Warning - without using the other runtime loading flags (-brtl),
  7966. # -berok will link without error, but may produce a broken library.
  7967. allow_undefined_flag='-berok'
  7968. # Determine the default libpath from the value encoded in an
  7969. # empty executable.
  7970. if test "${lt_cv_aix_libpath+set}" = set; then
  7971. aix_libpath=$lt_cv_aix_libpath
  7972. else
  7973. if ${lt_cv_aix_libpath_+:} false; then :
  7974. $as_echo_n "(cached) " >&6
  7975. else
  7976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7977. /* end confdefs.h. */
  7978. int
  7979. main ()
  7980. {
  7981. ;
  7982. return 0;
  7983. }
  7984. _ACEOF
  7985. if ac_fn_c_try_link "$LINENO"; then :
  7986. lt_aix_libpath_sed='
  7987. /Import File Strings/,/^$/ {
  7988. /^0/ {
  7989. s/^0 *\([^ ]*\) *$/\1/
  7990. p
  7991. }
  7992. }'
  7993. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7994. # Check for a 64-bit object if we didn't find anything.
  7995. if test -z "$lt_cv_aix_libpath_"; then
  7996. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7997. fi
  7998. fi
  7999. rm -f core conftest.err conftest.$ac_objext \
  8000. conftest$ac_exeext conftest.$ac_ext
  8001. if test -z "$lt_cv_aix_libpath_"; then
  8002. lt_cv_aix_libpath_="/usr/lib:/lib"
  8003. fi
  8004. fi
  8005. aix_libpath=$lt_cv_aix_libpath_
  8006. fi
  8007. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8008. 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"
  8009. else
  8010. if test "$host_cpu" = ia64; then
  8011. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8012. allow_undefined_flag="-z nodefs"
  8013. 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"
  8014. else
  8015. # Determine the default libpath from the value encoded in an
  8016. # empty executable.
  8017. if test "${lt_cv_aix_libpath+set}" = set; then
  8018. aix_libpath=$lt_cv_aix_libpath
  8019. else
  8020. if ${lt_cv_aix_libpath_+:} false; then :
  8021. $as_echo_n "(cached) " >&6
  8022. else
  8023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8024. /* end confdefs.h. */
  8025. int
  8026. main ()
  8027. {
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. if ac_fn_c_try_link "$LINENO"; then :
  8033. lt_aix_libpath_sed='
  8034. /Import File Strings/,/^$/ {
  8035. /^0/ {
  8036. s/^0 *\([^ ]*\) *$/\1/
  8037. p
  8038. }
  8039. }'
  8040. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8041. # Check for a 64-bit object if we didn't find anything.
  8042. if test -z "$lt_cv_aix_libpath_"; then
  8043. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8044. fi
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext \
  8047. conftest$ac_exeext conftest.$ac_ext
  8048. if test -z "$lt_cv_aix_libpath_"; then
  8049. lt_cv_aix_libpath_="/usr/lib:/lib"
  8050. fi
  8051. fi
  8052. aix_libpath=$lt_cv_aix_libpath_
  8053. fi
  8054. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8055. # Warning - without using the other run time loading flags,
  8056. # -berok will link without error, but may produce a broken library.
  8057. no_undefined_flag=' ${wl}-bernotok'
  8058. allow_undefined_flag=' ${wl}-berok'
  8059. if test "$with_gnu_ld" = yes; then
  8060. # We only use this code for GNU lds that support --whole-archive.
  8061. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8062. else
  8063. # Exported symbols can be pulled into shared objects from archives
  8064. whole_archive_flag_spec='$convenience'
  8065. fi
  8066. archive_cmds_need_lc=yes
  8067. # This is similar to how AIX traditionally builds its shared libraries.
  8068. 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'
  8069. fi
  8070. fi
  8071. ;;
  8072. amigaos*)
  8073. case $host_cpu in
  8074. powerpc)
  8075. # see comment about AmigaOS4 .so support
  8076. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8077. archive_expsym_cmds=''
  8078. ;;
  8079. m68k)
  8080. 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)'
  8081. hardcode_libdir_flag_spec='-L$libdir'
  8082. hardcode_minus_L=yes
  8083. ;;
  8084. esac
  8085. ;;
  8086. bsdi[45]*)
  8087. export_dynamic_flag_spec=-rdynamic
  8088. ;;
  8089. cygwin* | mingw* | pw32* | cegcc*)
  8090. # When not using gcc, we currently assume that we are using
  8091. # Microsoft Visual C++.
  8092. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8093. # no search path for DLLs.
  8094. case $cc_basename in
  8095. cl*)
  8096. # Native MSVC
  8097. hardcode_libdir_flag_spec=' '
  8098. allow_undefined_flag=unsupported
  8099. always_export_symbols=yes
  8100. file_list_spec='@'
  8101. # Tell ltmain to make .lib files, not .a files.
  8102. libext=lib
  8103. # Tell ltmain to make .dll files, not .so files.
  8104. shrext_cmds=".dll"
  8105. # FIXME: Setting linknames here is a bad hack.
  8106. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8107. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8108. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8109. else
  8110. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8111. fi~
  8112. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8113. linknames='
  8114. # The linker will not automatically build a static lib if we build a DLL.
  8115. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8116. enable_shared_with_static_runtimes=yes
  8117. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8118. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8119. # Don't use ranlib
  8120. old_postinstall_cmds='chmod 644 $oldlib'
  8121. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8122. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8123. case $lt_outputfile in
  8124. *.exe|*.EXE) ;;
  8125. *)
  8126. lt_outputfile="$lt_outputfile.exe"
  8127. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8128. ;;
  8129. esac~
  8130. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8131. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8132. $RM "$lt_outputfile.manifest";
  8133. fi'
  8134. ;;
  8135. *)
  8136. # Assume MSVC wrapper
  8137. hardcode_libdir_flag_spec=' '
  8138. allow_undefined_flag=unsupported
  8139. # Tell ltmain to make .lib files, not .a files.
  8140. libext=lib
  8141. # Tell ltmain to make .dll files, not .so files.
  8142. shrext_cmds=".dll"
  8143. # FIXME: Setting linknames here is a bad hack.
  8144. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8145. # The linker will automatically build a .lib file if we build a DLL.
  8146. old_archive_from_new_cmds='true'
  8147. # FIXME: Should let the user specify the lib program.
  8148. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8149. enable_shared_with_static_runtimes=yes
  8150. ;;
  8151. esac
  8152. ;;
  8153. darwin* | rhapsody*)
  8154. archive_cmds_need_lc=no
  8155. hardcode_direct=no
  8156. hardcode_automatic=yes
  8157. hardcode_shlibpath_var=unsupported
  8158. if test "$lt_cv_ld_force_load" = "yes"; then
  8159. 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\"`'
  8160. else
  8161. whole_archive_flag_spec=''
  8162. fi
  8163. link_all_deplibs=yes
  8164. allow_undefined_flag="$_lt_dar_allow_undefined"
  8165. case $cc_basename in
  8166. ifort*) _lt_dar_can_shared=yes ;;
  8167. *) _lt_dar_can_shared=$GCC ;;
  8168. esac
  8169. if test "$_lt_dar_can_shared" = "yes"; then
  8170. output_verbose_link_cmd=func_echo_all
  8171. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8172. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8173. 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}"
  8174. 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}"
  8175. else
  8176. ld_shlibs=no
  8177. fi
  8178. ;;
  8179. dgux*)
  8180. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8181. hardcode_libdir_flag_spec='-L$libdir'
  8182. hardcode_shlibpath_var=no
  8183. ;;
  8184. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8185. # support. Future versions do this automatically, but an explicit c++rt0.o
  8186. # does not break anything, and helps significantly (at the cost of a little
  8187. # extra space).
  8188. freebsd2.2*)
  8189. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8190. hardcode_libdir_flag_spec='-R$libdir'
  8191. hardcode_direct=yes
  8192. hardcode_shlibpath_var=no
  8193. ;;
  8194. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8195. freebsd2.*)
  8196. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8197. hardcode_direct=yes
  8198. hardcode_minus_L=yes
  8199. hardcode_shlibpath_var=no
  8200. ;;
  8201. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8202. freebsd* | dragonfly*)
  8203. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8204. hardcode_libdir_flag_spec='-R$libdir'
  8205. hardcode_direct=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. hpux9*)
  8209. if test "$GCC" = yes; then
  8210. 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'
  8211. else
  8212. 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'
  8213. fi
  8214. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8215. hardcode_libdir_separator=:
  8216. hardcode_direct=yes
  8217. # hardcode_minus_L: Not really in the search PATH,
  8218. # but as the default location of the library.
  8219. hardcode_minus_L=yes
  8220. export_dynamic_flag_spec='${wl}-E'
  8221. ;;
  8222. hpux10*)
  8223. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8224. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8225. else
  8226. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8227. fi
  8228. if test "$with_gnu_ld" = no; then
  8229. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8230. hardcode_libdir_separator=:
  8231. hardcode_direct=yes
  8232. hardcode_direct_absolute=yes
  8233. export_dynamic_flag_spec='${wl}-E'
  8234. # hardcode_minus_L: Not really in the search PATH,
  8235. # but as the default location of the library.
  8236. hardcode_minus_L=yes
  8237. fi
  8238. ;;
  8239. hpux11*)
  8240. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8241. case $host_cpu in
  8242. hppa*64*)
  8243. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. ia64*)
  8246. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8247. ;;
  8248. *)
  8249. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. esac
  8252. else
  8253. case $host_cpu in
  8254. hppa*64*)
  8255. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. ia64*)
  8258. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. *)
  8261. # Older versions of the 11.00 compiler do not understand -b yet
  8262. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8264. $as_echo_n "checking if $CC understands -b... " >&6; }
  8265. if ${lt_cv_prog_compiler__b+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. lt_cv_prog_compiler__b=no
  8269. save_LDFLAGS="$LDFLAGS"
  8270. LDFLAGS="$LDFLAGS -b"
  8271. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8272. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8273. # The linker can only warn and ignore the option if not recognized
  8274. # So say no if there are warnings
  8275. if test -s conftest.err; then
  8276. # Append any errors to the config.log.
  8277. cat conftest.err 1>&5
  8278. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8279. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8280. if diff conftest.exp conftest.er2 >/dev/null; then
  8281. lt_cv_prog_compiler__b=yes
  8282. fi
  8283. else
  8284. lt_cv_prog_compiler__b=yes
  8285. fi
  8286. fi
  8287. $RM -r conftest*
  8288. LDFLAGS="$save_LDFLAGS"
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8291. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8292. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8293. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8294. else
  8295. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8296. fi
  8297. ;;
  8298. esac
  8299. fi
  8300. if test "$with_gnu_ld" = no; then
  8301. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8302. hardcode_libdir_separator=:
  8303. case $host_cpu in
  8304. hppa*64*|ia64*)
  8305. hardcode_direct=no
  8306. hardcode_shlibpath_var=no
  8307. ;;
  8308. *)
  8309. hardcode_direct=yes
  8310. hardcode_direct_absolute=yes
  8311. export_dynamic_flag_spec='${wl}-E'
  8312. # hardcode_minus_L: Not really in the search PATH,
  8313. # but as the default location of the library.
  8314. hardcode_minus_L=yes
  8315. ;;
  8316. esac
  8317. fi
  8318. ;;
  8319. irix5* | irix6* | nonstopux*)
  8320. if test "$GCC" = yes; then
  8321. 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'
  8322. # Try to use the -exported_symbol ld option, if it does not
  8323. # work, assume that -exports_file does not work either and
  8324. # implicitly export all symbols.
  8325. # This should be the same for all languages, so no per-tag cache variable.
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8327. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8328. if ${lt_cv_irix_exported_symbol+:} false; then :
  8329. $as_echo_n "(cached) " >&6
  8330. else
  8331. save_LDFLAGS="$LDFLAGS"
  8332. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8334. /* end confdefs.h. */
  8335. int foo (void) { return 0; }
  8336. _ACEOF
  8337. if ac_fn_c_try_link "$LINENO"; then :
  8338. lt_cv_irix_exported_symbol=yes
  8339. else
  8340. lt_cv_irix_exported_symbol=no
  8341. fi
  8342. rm -f core conftest.err conftest.$ac_objext \
  8343. conftest$ac_exeext conftest.$ac_ext
  8344. LDFLAGS="$save_LDFLAGS"
  8345. fi
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8347. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8348. if test "$lt_cv_irix_exported_symbol" = yes; then
  8349. 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'
  8350. fi
  8351. else
  8352. 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'
  8353. 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'
  8354. fi
  8355. archive_cmds_need_lc='no'
  8356. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8357. hardcode_libdir_separator=:
  8358. inherit_rpath=yes
  8359. link_all_deplibs=yes
  8360. ;;
  8361. netbsd*)
  8362. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8363. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8364. else
  8365. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8366. fi
  8367. hardcode_libdir_flag_spec='-R$libdir'
  8368. hardcode_direct=yes
  8369. hardcode_shlibpath_var=no
  8370. ;;
  8371. newsos6)
  8372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8373. hardcode_direct=yes
  8374. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8375. hardcode_libdir_separator=:
  8376. hardcode_shlibpath_var=no
  8377. ;;
  8378. *nto* | *qnx*)
  8379. ;;
  8380. openbsd*)
  8381. if test -f /usr/libexec/ld.so; then
  8382. hardcode_direct=yes
  8383. hardcode_shlibpath_var=no
  8384. hardcode_direct_absolute=yes
  8385. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8386. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8387. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8388. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8389. export_dynamic_flag_spec='${wl}-E'
  8390. else
  8391. case $host_os in
  8392. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8393. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8394. hardcode_libdir_flag_spec='-R$libdir'
  8395. ;;
  8396. *)
  8397. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8398. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8399. ;;
  8400. esac
  8401. fi
  8402. else
  8403. ld_shlibs=no
  8404. fi
  8405. ;;
  8406. os2*)
  8407. hardcode_libdir_flag_spec='-L$libdir'
  8408. hardcode_minus_L=yes
  8409. allow_undefined_flag=unsupported
  8410. 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'
  8411. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8412. ;;
  8413. osf3*)
  8414. if test "$GCC" = yes; then
  8415. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8416. 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'
  8417. else
  8418. allow_undefined_flag=' -expect_unresolved \*'
  8419. 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'
  8420. fi
  8421. archive_cmds_need_lc='no'
  8422. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8423. hardcode_libdir_separator=:
  8424. ;;
  8425. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8426. if test "$GCC" = yes; then
  8427. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8428. 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'
  8429. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8430. else
  8431. allow_undefined_flag=' -expect_unresolved \*'
  8432. 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'
  8433. 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~
  8434. $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'
  8435. # Both c and cxx compiler support -rpath directly
  8436. hardcode_libdir_flag_spec='-rpath $libdir'
  8437. fi
  8438. archive_cmds_need_lc='no'
  8439. hardcode_libdir_separator=:
  8440. ;;
  8441. solaris*)
  8442. no_undefined_flag=' -z defs'
  8443. if test "$GCC" = yes; then
  8444. wlarc='${wl}'
  8445. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8447. $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'
  8448. else
  8449. case `$CC -V 2>&1` in
  8450. *"Compilers 5.0"*)
  8451. wlarc=''
  8452. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8453. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8454. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8455. ;;
  8456. *)
  8457. wlarc='${wl}'
  8458. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8461. ;;
  8462. esac
  8463. fi
  8464. hardcode_libdir_flag_spec='-R$libdir'
  8465. hardcode_shlibpath_var=no
  8466. case $host_os in
  8467. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8468. *)
  8469. # The compiler driver will combine and reorder linker options,
  8470. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8471. # but is careful enough not to reorder.
  8472. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8473. if test "$GCC" = yes; then
  8474. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8475. else
  8476. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8477. fi
  8478. ;;
  8479. esac
  8480. link_all_deplibs=yes
  8481. ;;
  8482. sunos4*)
  8483. if test "x$host_vendor" = xsequent; then
  8484. # Use $CC to link under sequent, because it throws in some extra .o
  8485. # files that make .init and .fini sections work.
  8486. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8487. else
  8488. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8489. fi
  8490. hardcode_libdir_flag_spec='-L$libdir'
  8491. hardcode_direct=yes
  8492. hardcode_minus_L=yes
  8493. hardcode_shlibpath_var=no
  8494. ;;
  8495. sysv4)
  8496. case $host_vendor in
  8497. sni)
  8498. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8499. hardcode_direct=yes # is this really true???
  8500. ;;
  8501. siemens)
  8502. ## LD is ld it makes a PLAMLIB
  8503. ## CC just makes a GrossModule.
  8504. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8505. reload_cmds='$CC -r -o $output$reload_objs'
  8506. hardcode_direct=no
  8507. ;;
  8508. motorola)
  8509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8510. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8511. ;;
  8512. esac
  8513. runpath_var='LD_RUN_PATH'
  8514. hardcode_shlibpath_var=no
  8515. ;;
  8516. sysv4.3*)
  8517. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8518. hardcode_shlibpath_var=no
  8519. export_dynamic_flag_spec='-Bexport'
  8520. ;;
  8521. sysv4*MP*)
  8522. if test -d /usr/nec; then
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_shlibpath_var=no
  8525. runpath_var=LD_RUN_PATH
  8526. hardcode_runpath_var=yes
  8527. ld_shlibs=yes
  8528. fi
  8529. ;;
  8530. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8531. no_undefined_flag='${wl}-z,text'
  8532. archive_cmds_need_lc=no
  8533. hardcode_shlibpath_var=no
  8534. runpath_var='LD_RUN_PATH'
  8535. if test "$GCC" = yes; then
  8536. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. else
  8539. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. fi
  8542. ;;
  8543. sysv5* | sco3.2v5* | sco5v6*)
  8544. # Note: We can NOT use -z defs as we might desire, because we do not
  8545. # link with -lc, and that would cause any symbols used from libc to
  8546. # always be unresolved, which means just about no library would
  8547. # ever link correctly. If we're not using GNU ld we use -z text
  8548. # though, which does catch some bad symbols but isn't as heavy-handed
  8549. # as -z defs.
  8550. no_undefined_flag='${wl}-z,text'
  8551. allow_undefined_flag='${wl}-z,nodefs'
  8552. archive_cmds_need_lc=no
  8553. hardcode_shlibpath_var=no
  8554. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8555. hardcode_libdir_separator=':'
  8556. link_all_deplibs=yes
  8557. export_dynamic_flag_spec='${wl}-Bexport'
  8558. runpath_var='LD_RUN_PATH'
  8559. if test "$GCC" = yes; then
  8560. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8561. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8562. else
  8563. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8564. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8565. fi
  8566. ;;
  8567. uts4*)
  8568. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8569. hardcode_libdir_flag_spec='-L$libdir'
  8570. hardcode_shlibpath_var=no
  8571. ;;
  8572. *)
  8573. ld_shlibs=no
  8574. ;;
  8575. esac
  8576. if test x$host_vendor = xsni; then
  8577. case $host in
  8578. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8579. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8580. ;;
  8581. esac
  8582. fi
  8583. fi
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8585. $as_echo "$ld_shlibs" >&6; }
  8586. test "$ld_shlibs" = no && can_build_shared=no
  8587. with_gnu_ld=$with_gnu_ld
  8588. #
  8589. # Do we need to explicitly link libc?
  8590. #
  8591. case "x$archive_cmds_need_lc" in
  8592. x|xyes)
  8593. # Assume -lc should be added
  8594. archive_cmds_need_lc=yes
  8595. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8596. case $archive_cmds in
  8597. *'~'*)
  8598. # FIXME: we may have to deal with multi-command sequences.
  8599. ;;
  8600. '$CC '*)
  8601. # Test whether the compiler implicitly links with -lc since on some
  8602. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8603. # to ld, don't add -lc before -lgcc.
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8605. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8606. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8607. $as_echo_n "(cached) " >&6
  8608. else
  8609. $RM conftest*
  8610. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8611. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8612. (eval $ac_compile) 2>&5
  8613. ac_status=$?
  8614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8615. test $ac_status = 0; } 2>conftest.err; then
  8616. soname=conftest
  8617. lib=conftest
  8618. libobjs=conftest.$ac_objext
  8619. deplibs=
  8620. wl=$lt_prog_compiler_wl
  8621. pic_flag=$lt_prog_compiler_pic
  8622. compiler_flags=-v
  8623. linker_flags=-v
  8624. verstring=
  8625. output_objdir=.
  8626. libname=conftest
  8627. lt_save_allow_undefined_flag=$allow_undefined_flag
  8628. allow_undefined_flag=
  8629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8630. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8631. ac_status=$?
  8632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8633. test $ac_status = 0; }
  8634. then
  8635. lt_cv_archive_cmds_need_lc=no
  8636. else
  8637. lt_cv_archive_cmds_need_lc=yes
  8638. fi
  8639. allow_undefined_flag=$lt_save_allow_undefined_flag
  8640. else
  8641. cat conftest.err 1>&5
  8642. fi
  8643. $RM conftest*
  8644. fi
  8645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8646. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8647. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8648. ;;
  8649. esac
  8650. fi
  8651. ;;
  8652. esac
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8654. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8655. if test "$GCC" = yes; then
  8656. case $host_os in
  8657. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8658. *) lt_awk_arg="/^libraries:/" ;;
  8659. esac
  8660. case $host_os in
  8661. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8662. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8663. esac
  8664. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8665. case $lt_search_path_spec in
  8666. *\;*)
  8667. # if the path contains ";" then we assume it to be the separator
  8668. # otherwise default to the standard path separator (i.e. ":") - it is
  8669. # assumed that no part of a normal pathname contains ";" but that should
  8670. # okay in the real world where ";" in dirpaths is itself problematic.
  8671. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8672. ;;
  8673. *)
  8674. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8675. ;;
  8676. esac
  8677. # Ok, now we have the path, separated by spaces, we can step through it
  8678. # and add multilib dir if necessary...
  8679. lt_tmp_lt_search_path_spec=
  8680. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8681. # ...but if some path already ends with the multilib dir we assume
  8682. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8683. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8684. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8685. lt_multi_os_dir=
  8686. ;;
  8687. esac
  8688. for lt_sys_path in $lt_search_path_spec; do
  8689. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8690. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8691. elif test -n "$lt_multi_os_dir"; then
  8692. test -d "$lt_sys_path" && \
  8693. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8694. fi
  8695. done
  8696. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8697. BEGIN {RS=" "; FS="/|\n";} {
  8698. lt_foo="";
  8699. lt_count=0;
  8700. for (lt_i = NF; lt_i > 0; lt_i--) {
  8701. if ($lt_i != "" && $lt_i != ".") {
  8702. if ($lt_i == "..") {
  8703. lt_count++;
  8704. } else {
  8705. if (lt_count == 0) {
  8706. lt_foo="/" $lt_i lt_foo;
  8707. } else {
  8708. lt_count--;
  8709. }
  8710. }
  8711. }
  8712. }
  8713. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8714. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8715. }'`
  8716. # AWK program above erroneously prepends '/' to C:/dos/paths
  8717. # for these hosts.
  8718. case $host_os in
  8719. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8720. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8721. esac
  8722. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8723. else
  8724. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8725. fi
  8726. library_names_spec=
  8727. libname_spec='lib$name'
  8728. soname_spec=
  8729. shrext_cmds=".so"
  8730. postinstall_cmds=
  8731. postuninstall_cmds=
  8732. finish_cmds=
  8733. finish_eval=
  8734. shlibpath_var=
  8735. shlibpath_overrides_runpath=unknown
  8736. version_type=none
  8737. dynamic_linker="$host_os ld.so"
  8738. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8739. need_lib_prefix=unknown
  8740. hardcode_into_libs=no
  8741. # when you set need_version to no, make sure it does not cause -set_version
  8742. # flags to be left without arguments
  8743. need_version=unknown
  8744. case $host_os in
  8745. aix3*)
  8746. version_type=linux # correct to gnu/linux during the next big refactor
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8748. shlibpath_var=LIBPATH
  8749. # AIX 3 has no versioning support, so we append a major version to the name.
  8750. soname_spec='${libname}${release}${shared_ext}$major'
  8751. ;;
  8752. aix[4-9]*)
  8753. version_type=linux # correct to gnu/linux during the next big refactor
  8754. need_lib_prefix=no
  8755. need_version=no
  8756. hardcode_into_libs=yes
  8757. if test "$host_cpu" = ia64; then
  8758. # AIX 5 supports IA64
  8759. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8760. shlibpath_var=LD_LIBRARY_PATH
  8761. else
  8762. # With GCC up to 2.95.x, collect2 would create an import file
  8763. # for dependence libraries. The import file would start with
  8764. # the line `#! .'. This would cause the generated library to
  8765. # depend on `.', always an invalid library. This was fixed in
  8766. # development snapshots of GCC prior to 3.0.
  8767. case $host_os in
  8768. aix4 | aix4.[01] | aix4.[01].*)
  8769. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8770. echo ' yes '
  8771. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8772. :
  8773. else
  8774. can_build_shared=no
  8775. fi
  8776. ;;
  8777. esac
  8778. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8779. # soname into executable. Probably we can add versioning support to
  8780. # collect2, so additional links can be useful in future.
  8781. if test "$aix_use_runtimelinking" = yes; then
  8782. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8783. # instead of lib<name>.a to let people know that these are not
  8784. # typical AIX shared libraries.
  8785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8786. else
  8787. # We preserve .a as extension for shared libraries through AIX4.2
  8788. # and later when we are not doing run time linking.
  8789. library_names_spec='${libname}${release}.a $libname.a'
  8790. soname_spec='${libname}${release}${shared_ext}$major'
  8791. fi
  8792. shlibpath_var=LIBPATH
  8793. fi
  8794. ;;
  8795. amigaos*)
  8796. case $host_cpu in
  8797. powerpc)
  8798. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8799. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8801. ;;
  8802. m68k)
  8803. library_names_spec='$libname.ixlibrary $libname.a'
  8804. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8805. 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'
  8806. ;;
  8807. esac
  8808. ;;
  8809. beos*)
  8810. library_names_spec='${libname}${shared_ext}'
  8811. dynamic_linker="$host_os ld.so"
  8812. shlibpath_var=LIBRARY_PATH
  8813. ;;
  8814. bsdi[45]*)
  8815. version_type=linux # correct to gnu/linux during the next big refactor
  8816. need_version=no
  8817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8822. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8823. # the default ld.so.conf also contains /usr/contrib/lib and
  8824. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8825. # libtool to hard-code these into programs
  8826. ;;
  8827. cygwin* | mingw* | pw32* | cegcc*)
  8828. version_type=windows
  8829. shrext_cmds=".dll"
  8830. need_version=no
  8831. need_lib_prefix=no
  8832. case $GCC,$cc_basename in
  8833. yes,*)
  8834. # gcc
  8835. library_names_spec='$libname.dll.a'
  8836. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8837. postinstall_cmds='base_file=`basename \${file}`~
  8838. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8839. dldir=$destdir/`dirname \$dlpath`~
  8840. test -d \$dldir || mkdir -p \$dldir~
  8841. $install_prog $dir/$dlname \$dldir/$dlname~
  8842. chmod a+x \$dldir/$dlname~
  8843. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8844. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8845. fi'
  8846. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8847. dlpath=$dir/\$dldll~
  8848. $RM \$dlpath'
  8849. shlibpath_overrides_runpath=yes
  8850. case $host_os in
  8851. cygwin*)
  8852. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8853. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8854. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8855. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8856. ;;
  8857. mingw* | cegcc*)
  8858. # MinGW DLLs use traditional 'lib' prefix
  8859. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8860. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8861. ;;
  8862. pw32*)
  8863. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8864. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8865. ;;
  8866. esac
  8867. dynamic_linker='Win32 ld.exe'
  8868. ;;
  8869. *,cl*)
  8870. # Native MSVC
  8871. libname_spec='$name'
  8872. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8873. library_names_spec='${libname}.dll.lib'
  8874. case $build_os in
  8875. mingw*)
  8876. sys_lib_search_path_spec=
  8877. lt_save_ifs=$IFS
  8878. IFS=';'
  8879. for lt_path in $LIB
  8880. do
  8881. IFS=$lt_save_ifs
  8882. # Let DOS variable expansion print the short 8.3 style file name.
  8883. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8884. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8885. done
  8886. IFS=$lt_save_ifs
  8887. # Convert to MSYS style.
  8888. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8889. ;;
  8890. cygwin*)
  8891. # Convert to unix form, then to dos form, then back to unix form
  8892. # but this time dos style (no spaces!) so that the unix form looks
  8893. # like /cygdrive/c/PROGRA~1:/cygdr...
  8894. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8895. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8896. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8897. ;;
  8898. *)
  8899. sys_lib_search_path_spec="$LIB"
  8900. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8901. # It is most probably a Windows format PATH.
  8902. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8903. else
  8904. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8905. fi
  8906. # FIXME: find the short name or the path components, as spaces are
  8907. # common. (e.g. "Program Files" -> "PROGRA~1")
  8908. ;;
  8909. esac
  8910. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8911. postinstall_cmds='base_file=`basename \${file}`~
  8912. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8913. dldir=$destdir/`dirname \$dlpath`~
  8914. test -d \$dldir || mkdir -p \$dldir~
  8915. $install_prog $dir/$dlname \$dldir/$dlname'
  8916. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8917. dlpath=$dir/\$dldll~
  8918. $RM \$dlpath'
  8919. shlibpath_overrides_runpath=yes
  8920. dynamic_linker='Win32 link.exe'
  8921. ;;
  8922. *)
  8923. # Assume MSVC wrapper
  8924. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8925. dynamic_linker='Win32 ld.exe'
  8926. ;;
  8927. esac
  8928. # FIXME: first we should search . and the directory the executable is in
  8929. shlibpath_var=PATH
  8930. ;;
  8931. darwin* | rhapsody*)
  8932. dynamic_linker="$host_os dyld"
  8933. version_type=darwin
  8934. need_lib_prefix=no
  8935. need_version=no
  8936. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8937. soname_spec='${libname}${release}${major}$shared_ext'
  8938. shlibpath_overrides_runpath=yes
  8939. shlibpath_var=DYLD_LIBRARY_PATH
  8940. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8941. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8942. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8943. ;;
  8944. dgux*)
  8945. version_type=linux # correct to gnu/linux during the next big refactor
  8946. need_lib_prefix=no
  8947. need_version=no
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8949. soname_spec='${libname}${release}${shared_ext}$major'
  8950. shlibpath_var=LD_LIBRARY_PATH
  8951. ;;
  8952. freebsd* | dragonfly*)
  8953. # DragonFly does not have aout. When/if they implement a new
  8954. # versioning mechanism, adjust this.
  8955. if test -x /usr/bin/objformat; then
  8956. objformat=`/usr/bin/objformat`
  8957. else
  8958. case $host_os in
  8959. freebsd[23].*) objformat=aout ;;
  8960. *) objformat=elf ;;
  8961. esac
  8962. fi
  8963. version_type=freebsd-$objformat
  8964. case $version_type in
  8965. freebsd-elf*)
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8967. need_version=no
  8968. need_lib_prefix=no
  8969. ;;
  8970. freebsd-*)
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8972. need_version=yes
  8973. ;;
  8974. esac
  8975. shlibpath_var=LD_LIBRARY_PATH
  8976. case $host_os in
  8977. freebsd2.*)
  8978. shlibpath_overrides_runpath=yes
  8979. ;;
  8980. freebsd3.[01]* | freebsdelf3.[01]*)
  8981. shlibpath_overrides_runpath=yes
  8982. hardcode_into_libs=yes
  8983. ;;
  8984. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8985. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8986. shlibpath_overrides_runpath=no
  8987. hardcode_into_libs=yes
  8988. ;;
  8989. *) # from 4.6 on, and DragonFly
  8990. shlibpath_overrides_runpath=yes
  8991. hardcode_into_libs=yes
  8992. ;;
  8993. esac
  8994. ;;
  8995. gnu*)
  8996. version_type=linux # correct to gnu/linux during the next big refactor
  8997. need_lib_prefix=no
  8998. need_version=no
  8999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9000. soname_spec='${libname}${release}${shared_ext}$major'
  9001. shlibpath_var=LD_LIBRARY_PATH
  9002. shlibpath_overrides_runpath=no
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. haiku*)
  9006. version_type=linux # correct to gnu/linux during the next big refactor
  9007. need_lib_prefix=no
  9008. need_version=no
  9009. dynamic_linker="$host_os runtime_loader"
  9010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9011. soname_spec='${libname}${release}${shared_ext}$major'
  9012. shlibpath_var=LIBRARY_PATH
  9013. shlibpath_overrides_runpath=yes
  9014. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9015. hardcode_into_libs=yes
  9016. ;;
  9017. hpux9* | hpux10* | hpux11*)
  9018. # Give a soname corresponding to the major version so that dld.sl refuses to
  9019. # link against other versions.
  9020. version_type=sunos
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. case $host_cpu in
  9024. ia64*)
  9025. shrext_cmds='.so'
  9026. hardcode_into_libs=yes
  9027. dynamic_linker="$host_os dld.so"
  9028. shlibpath_var=LD_LIBRARY_PATH
  9029. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9031. soname_spec='${libname}${release}${shared_ext}$major'
  9032. if test "X$HPUX_IA64_MODE" = X32; then
  9033. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9034. else
  9035. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9036. fi
  9037. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9038. ;;
  9039. hppa*64*)
  9040. shrext_cmds='.sl'
  9041. hardcode_into_libs=yes
  9042. dynamic_linker="$host_os dld.sl"
  9043. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9044. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9046. soname_spec='${libname}${release}${shared_ext}$major'
  9047. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9048. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9049. ;;
  9050. *)
  9051. shrext_cmds='.sl'
  9052. dynamic_linker="$host_os dld.sl"
  9053. shlibpath_var=SHLIB_PATH
  9054. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. ;;
  9058. esac
  9059. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9060. postinstall_cmds='chmod 555 $lib'
  9061. # or fails outright, so override atomically:
  9062. install_override_mode=555
  9063. ;;
  9064. interix[3-9]*)
  9065. version_type=linux # correct to gnu/linux during the next big refactor
  9066. need_lib_prefix=no
  9067. need_version=no
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9071. shlibpath_var=LD_LIBRARY_PATH
  9072. shlibpath_overrides_runpath=no
  9073. hardcode_into_libs=yes
  9074. ;;
  9075. irix5* | irix6* | nonstopux*)
  9076. case $host_os in
  9077. nonstopux*) version_type=nonstopux ;;
  9078. *)
  9079. if test "$lt_cv_prog_gnu_ld" = yes; then
  9080. version_type=linux # correct to gnu/linux during the next big refactor
  9081. else
  9082. version_type=irix
  9083. fi ;;
  9084. esac
  9085. need_lib_prefix=no
  9086. need_version=no
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9089. case $host_os in
  9090. irix5* | nonstopux*)
  9091. libsuff= shlibsuff=
  9092. ;;
  9093. *)
  9094. case $LD in # libtool.m4 will add one of these switches to LD
  9095. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9096. libsuff= shlibsuff= libmagic=32-bit;;
  9097. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9098. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9099. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9100. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9101. *) libsuff= shlibsuff= libmagic=never-match;;
  9102. esac
  9103. ;;
  9104. esac
  9105. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9106. shlibpath_overrides_runpath=no
  9107. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9108. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. # No shared lib support for Linux oldld, aout, or coff.
  9112. linux*oldld* | linux*aout* | linux*coff*)
  9113. dynamic_linker=no
  9114. ;;
  9115. # This must be glibc/ELF.
  9116. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9117. version_type=linux # correct to gnu/linux during the next big refactor
  9118. need_lib_prefix=no
  9119. need_version=no
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9121. soname_spec='${libname}${release}${shared_ext}$major'
  9122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. shlibpath_overrides_runpath=no
  9125. # Some binutils ld are patched to set DT_RUNPATH
  9126. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9127. $as_echo_n "(cached) " >&6
  9128. else
  9129. lt_cv_shlibpath_overrides_runpath=no
  9130. save_LDFLAGS=$LDFLAGS
  9131. save_libdir=$libdir
  9132. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9133. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9135. /* end confdefs.h. */
  9136. int
  9137. main ()
  9138. {
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. if ac_fn_c_try_link "$LINENO"; then :
  9144. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9145. lt_cv_shlibpath_overrides_runpath=yes
  9146. fi
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. LDFLAGS=$save_LDFLAGS
  9151. libdir=$save_libdir
  9152. fi
  9153. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9154. # This implies no fast_install, which is unacceptable.
  9155. # Some rework will be needed to allow for fast_install
  9156. # before this can be enabled.
  9157. hardcode_into_libs=yes
  9158. # Append ld.so.conf contents to the search path
  9159. if test -f /etc/ld.so.conf; then
  9160. 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' ' '`
  9161. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9162. fi
  9163. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9164. # powerpc, because MkLinux only supported shared libraries with the
  9165. # GNU dynamic linker. Since this was broken with cross compilers,
  9166. # most powerpc-linux boxes support dynamic linking these days and
  9167. # people can always --disable-shared, the test was removed, and we
  9168. # assume the GNU/Linux dynamic linker is in use.
  9169. dynamic_linker='GNU/Linux ld.so'
  9170. ;;
  9171. netbsd*)
  9172. version_type=sunos
  9173. need_lib_prefix=no
  9174. need_version=no
  9175. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9177. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9178. dynamic_linker='NetBSD (a.out) ld.so'
  9179. else
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9181. soname_spec='${libname}${release}${shared_ext}$major'
  9182. dynamic_linker='NetBSD ld.elf_so'
  9183. fi
  9184. shlibpath_var=LD_LIBRARY_PATH
  9185. shlibpath_overrides_runpath=yes
  9186. hardcode_into_libs=yes
  9187. ;;
  9188. newsos6)
  9189. version_type=linux # correct to gnu/linux during the next big refactor
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9191. shlibpath_var=LD_LIBRARY_PATH
  9192. shlibpath_overrides_runpath=yes
  9193. ;;
  9194. *nto* | *qnx*)
  9195. version_type=qnx
  9196. need_lib_prefix=no
  9197. need_version=no
  9198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9199. soname_spec='${libname}${release}${shared_ext}$major'
  9200. shlibpath_var=LD_LIBRARY_PATH
  9201. shlibpath_overrides_runpath=no
  9202. hardcode_into_libs=yes
  9203. dynamic_linker='ldqnx.so'
  9204. ;;
  9205. openbsd*)
  9206. version_type=sunos
  9207. sys_lib_dlsearch_path_spec="/usr/lib"
  9208. need_lib_prefix=no
  9209. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9210. case $host_os in
  9211. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9212. *) need_version=no ;;
  9213. esac
  9214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9215. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9216. shlibpath_var=LD_LIBRARY_PATH
  9217. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9218. case $host_os in
  9219. openbsd2.[89] | openbsd2.[89].*)
  9220. shlibpath_overrides_runpath=no
  9221. ;;
  9222. *)
  9223. shlibpath_overrides_runpath=yes
  9224. ;;
  9225. esac
  9226. else
  9227. shlibpath_overrides_runpath=yes
  9228. fi
  9229. ;;
  9230. os2*)
  9231. libname_spec='$name'
  9232. shrext_cmds=".dll"
  9233. need_lib_prefix=no
  9234. library_names_spec='$libname${shared_ext} $libname.a'
  9235. dynamic_linker='OS/2 ld.exe'
  9236. shlibpath_var=LIBPATH
  9237. ;;
  9238. osf3* | osf4* | osf5*)
  9239. version_type=osf
  9240. need_lib_prefix=no
  9241. need_version=no
  9242. soname_spec='${libname}${release}${shared_ext}$major'
  9243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9244. shlibpath_var=LD_LIBRARY_PATH
  9245. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9246. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9247. ;;
  9248. rdos*)
  9249. dynamic_linker=no
  9250. ;;
  9251. solaris*)
  9252. version_type=linux # correct to gnu/linux during the next big refactor
  9253. need_lib_prefix=no
  9254. need_version=no
  9255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. shlibpath_overrides_runpath=yes
  9259. hardcode_into_libs=yes
  9260. # ldd complains unless libraries are executable
  9261. postinstall_cmds='chmod +x $lib'
  9262. ;;
  9263. sunos4*)
  9264. version_type=sunos
  9265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9266. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9267. shlibpath_var=LD_LIBRARY_PATH
  9268. shlibpath_overrides_runpath=yes
  9269. if test "$with_gnu_ld" = yes; then
  9270. need_lib_prefix=no
  9271. fi
  9272. need_version=yes
  9273. ;;
  9274. sysv4 | sysv4.3*)
  9275. version_type=linux # correct to gnu/linux during the next big refactor
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. case $host_vendor in
  9280. sni)
  9281. shlibpath_overrides_runpath=no
  9282. need_lib_prefix=no
  9283. runpath_var=LD_RUN_PATH
  9284. ;;
  9285. siemens)
  9286. need_lib_prefix=no
  9287. ;;
  9288. motorola)
  9289. need_lib_prefix=no
  9290. need_version=no
  9291. shlibpath_overrides_runpath=no
  9292. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9293. ;;
  9294. esac
  9295. ;;
  9296. sysv4*MP*)
  9297. if test -d /usr/nec ;then
  9298. version_type=linux # correct to gnu/linux during the next big refactor
  9299. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9300. soname_spec='$libname${shared_ext}.$major'
  9301. shlibpath_var=LD_LIBRARY_PATH
  9302. fi
  9303. ;;
  9304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9305. version_type=freebsd-elf
  9306. need_lib_prefix=no
  9307. need_version=no
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9309. soname_spec='${libname}${release}${shared_ext}$major'
  9310. shlibpath_var=LD_LIBRARY_PATH
  9311. shlibpath_overrides_runpath=yes
  9312. hardcode_into_libs=yes
  9313. if test "$with_gnu_ld" = yes; then
  9314. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9315. else
  9316. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9317. case $host_os in
  9318. sco3.2v5*)
  9319. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9320. ;;
  9321. esac
  9322. fi
  9323. sys_lib_dlsearch_path_spec='/usr/lib'
  9324. ;;
  9325. tpf*)
  9326. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9327. version_type=linux # correct to gnu/linux during the next big refactor
  9328. need_lib_prefix=no
  9329. need_version=no
  9330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9331. shlibpath_var=LD_LIBRARY_PATH
  9332. shlibpath_overrides_runpath=no
  9333. hardcode_into_libs=yes
  9334. ;;
  9335. uts4*)
  9336. version_type=linux # correct to gnu/linux during the next big refactor
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9338. soname_spec='${libname}${release}${shared_ext}$major'
  9339. shlibpath_var=LD_LIBRARY_PATH
  9340. ;;
  9341. *)
  9342. dynamic_linker=no
  9343. ;;
  9344. esac
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9346. $as_echo "$dynamic_linker" >&6; }
  9347. test "$dynamic_linker" = no && can_build_shared=no
  9348. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9349. if test "$GCC" = yes; then
  9350. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9351. fi
  9352. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9353. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9354. fi
  9355. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9356. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9357. fi
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9359. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9360. hardcode_action=
  9361. if test -n "$hardcode_libdir_flag_spec" ||
  9362. test -n "$runpath_var" ||
  9363. test "X$hardcode_automatic" = "Xyes" ; then
  9364. # We can hardcode non-existent directories.
  9365. if test "$hardcode_direct" != no &&
  9366. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9367. # have to relink, otherwise we might link with an installed library
  9368. # when we should be linking with a yet-to-be-installed one
  9369. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9370. test "$hardcode_minus_L" != no; then
  9371. # Linking always hardcodes the temporary library directory.
  9372. hardcode_action=relink
  9373. else
  9374. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9375. hardcode_action=immediate
  9376. fi
  9377. else
  9378. # We cannot hardcode anything, or else we can only hardcode existing
  9379. # directories.
  9380. hardcode_action=unsupported
  9381. fi
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9383. $as_echo "$hardcode_action" >&6; }
  9384. if test "$hardcode_action" = relink ||
  9385. test "$inherit_rpath" = yes; then
  9386. # Fast installation is not supported
  9387. enable_fast_install=no
  9388. elif test "$shlibpath_overrides_runpath" = yes ||
  9389. test "$enable_shared" = no; then
  9390. # Fast installation is not necessary
  9391. enable_fast_install=needless
  9392. fi
  9393. if test "x$enable_dlopen" != xyes; then
  9394. enable_dlopen=unknown
  9395. enable_dlopen_self=unknown
  9396. enable_dlopen_self_static=unknown
  9397. else
  9398. lt_cv_dlopen=no
  9399. lt_cv_dlopen_libs=
  9400. case $host_os in
  9401. beos*)
  9402. lt_cv_dlopen="load_add_on"
  9403. lt_cv_dlopen_libs=
  9404. lt_cv_dlopen_self=yes
  9405. ;;
  9406. mingw* | pw32* | cegcc*)
  9407. lt_cv_dlopen="LoadLibrary"
  9408. lt_cv_dlopen_libs=
  9409. ;;
  9410. cygwin*)
  9411. lt_cv_dlopen="dlopen"
  9412. lt_cv_dlopen_libs=
  9413. ;;
  9414. darwin*)
  9415. # if libdl is installed we need to link against it
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9417. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9418. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9419. $as_echo_n "(cached) " >&6
  9420. else
  9421. ac_check_lib_save_LIBS=$LIBS
  9422. LIBS="-ldl $LIBS"
  9423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9424. /* end confdefs.h. */
  9425. /* Override any GCC internal prototype to avoid an error.
  9426. Use char because int might match the return type of a GCC
  9427. builtin and then its argument prototype would still apply. */
  9428. #ifdef __cplusplus
  9429. extern "C"
  9430. #endif
  9431. char dlopen ();
  9432. int
  9433. main ()
  9434. {
  9435. return dlopen ();
  9436. ;
  9437. return 0;
  9438. }
  9439. _ACEOF
  9440. if ac_fn_c_try_link "$LINENO"; then :
  9441. ac_cv_lib_dl_dlopen=yes
  9442. else
  9443. ac_cv_lib_dl_dlopen=no
  9444. fi
  9445. rm -f core conftest.err conftest.$ac_objext \
  9446. conftest$ac_exeext conftest.$ac_ext
  9447. LIBS=$ac_check_lib_save_LIBS
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9450. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9451. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9452. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9453. else
  9454. lt_cv_dlopen="dyld"
  9455. lt_cv_dlopen_libs=
  9456. lt_cv_dlopen_self=yes
  9457. fi
  9458. ;;
  9459. *)
  9460. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9461. if test "x$ac_cv_func_shl_load" = xyes; then :
  9462. lt_cv_dlopen="shl_load"
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9465. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9466. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9467. $as_echo_n "(cached) " >&6
  9468. else
  9469. ac_check_lib_save_LIBS=$LIBS
  9470. LIBS="-ldld $LIBS"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. /* Override any GCC internal prototype to avoid an error.
  9474. Use char because int might match the return type of a GCC
  9475. builtin and then its argument prototype would still apply. */
  9476. #ifdef __cplusplus
  9477. extern "C"
  9478. #endif
  9479. char shl_load ();
  9480. int
  9481. main ()
  9482. {
  9483. return shl_load ();
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. if ac_fn_c_try_link "$LINENO"; then :
  9489. ac_cv_lib_dld_shl_load=yes
  9490. else
  9491. ac_cv_lib_dld_shl_load=no
  9492. fi
  9493. rm -f core conftest.err conftest.$ac_objext \
  9494. conftest$ac_exeext conftest.$ac_ext
  9495. LIBS=$ac_check_lib_save_LIBS
  9496. fi
  9497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9498. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9499. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9500. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9501. else
  9502. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9503. if test "x$ac_cv_func_dlopen" = xyes; then :
  9504. lt_cv_dlopen="dlopen"
  9505. else
  9506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9507. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9508. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9509. $as_echo_n "(cached) " >&6
  9510. else
  9511. ac_check_lib_save_LIBS=$LIBS
  9512. LIBS="-ldl $LIBS"
  9513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9514. /* end confdefs.h. */
  9515. /* Override any GCC internal prototype to avoid an error.
  9516. Use char because int might match the return type of a GCC
  9517. builtin and then its argument prototype would still apply. */
  9518. #ifdef __cplusplus
  9519. extern "C"
  9520. #endif
  9521. char dlopen ();
  9522. int
  9523. main ()
  9524. {
  9525. return dlopen ();
  9526. ;
  9527. return 0;
  9528. }
  9529. _ACEOF
  9530. if ac_fn_c_try_link "$LINENO"; then :
  9531. ac_cv_lib_dl_dlopen=yes
  9532. else
  9533. ac_cv_lib_dl_dlopen=no
  9534. fi
  9535. rm -f core conftest.err conftest.$ac_objext \
  9536. conftest$ac_exeext conftest.$ac_ext
  9537. LIBS=$ac_check_lib_save_LIBS
  9538. fi
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9540. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9541. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9542. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9543. else
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9545. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9546. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9547. $as_echo_n "(cached) " >&6
  9548. else
  9549. ac_check_lib_save_LIBS=$LIBS
  9550. LIBS="-lsvld $LIBS"
  9551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9552. /* end confdefs.h. */
  9553. /* Override any GCC internal prototype to avoid an error.
  9554. Use char because int might match the return type of a GCC
  9555. builtin and then its argument prototype would still apply. */
  9556. #ifdef __cplusplus
  9557. extern "C"
  9558. #endif
  9559. char dlopen ();
  9560. int
  9561. main ()
  9562. {
  9563. return dlopen ();
  9564. ;
  9565. return 0;
  9566. }
  9567. _ACEOF
  9568. if ac_fn_c_try_link "$LINENO"; then :
  9569. ac_cv_lib_svld_dlopen=yes
  9570. else
  9571. ac_cv_lib_svld_dlopen=no
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext \
  9574. conftest$ac_exeext conftest.$ac_ext
  9575. LIBS=$ac_check_lib_save_LIBS
  9576. fi
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9578. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9579. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9580. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9581. else
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9583. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9584. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9585. $as_echo_n "(cached) " >&6
  9586. else
  9587. ac_check_lib_save_LIBS=$LIBS
  9588. LIBS="-ldld $LIBS"
  9589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9590. /* end confdefs.h. */
  9591. /* Override any GCC internal prototype to avoid an error.
  9592. Use char because int might match the return type of a GCC
  9593. builtin and then its argument prototype would still apply. */
  9594. #ifdef __cplusplus
  9595. extern "C"
  9596. #endif
  9597. char dld_link ();
  9598. int
  9599. main ()
  9600. {
  9601. return dld_link ();
  9602. ;
  9603. return 0;
  9604. }
  9605. _ACEOF
  9606. if ac_fn_c_try_link "$LINENO"; then :
  9607. ac_cv_lib_dld_dld_link=yes
  9608. else
  9609. ac_cv_lib_dld_dld_link=no
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext \
  9612. conftest$ac_exeext conftest.$ac_ext
  9613. LIBS=$ac_check_lib_save_LIBS
  9614. fi
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9616. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9617. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9618. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9619. fi
  9620. fi
  9621. fi
  9622. fi
  9623. fi
  9624. fi
  9625. ;;
  9626. esac
  9627. if test "x$lt_cv_dlopen" != xno; then
  9628. enable_dlopen=yes
  9629. else
  9630. enable_dlopen=no
  9631. fi
  9632. case $lt_cv_dlopen in
  9633. dlopen)
  9634. save_CPPFLAGS="$CPPFLAGS"
  9635. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9636. save_LDFLAGS="$LDFLAGS"
  9637. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9638. save_LIBS="$LIBS"
  9639. LIBS="$lt_cv_dlopen_libs $LIBS"
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9641. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9642. if ${lt_cv_dlopen_self+:} false; then :
  9643. $as_echo_n "(cached) " >&6
  9644. else
  9645. if test "$cross_compiling" = yes; then :
  9646. lt_cv_dlopen_self=cross
  9647. else
  9648. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9649. lt_status=$lt_dlunknown
  9650. cat > conftest.$ac_ext <<_LT_EOF
  9651. #line $LINENO "configure"
  9652. #include "confdefs.h"
  9653. #if HAVE_DLFCN_H
  9654. #include <dlfcn.h>
  9655. #endif
  9656. #include <stdio.h>
  9657. #ifdef RTLD_GLOBAL
  9658. # define LT_DLGLOBAL RTLD_GLOBAL
  9659. #else
  9660. # ifdef DL_GLOBAL
  9661. # define LT_DLGLOBAL DL_GLOBAL
  9662. # else
  9663. # define LT_DLGLOBAL 0
  9664. # endif
  9665. #endif
  9666. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9667. find out it does not work in some platform. */
  9668. #ifndef LT_DLLAZY_OR_NOW
  9669. # ifdef RTLD_LAZY
  9670. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9671. # else
  9672. # ifdef DL_LAZY
  9673. # define LT_DLLAZY_OR_NOW DL_LAZY
  9674. # else
  9675. # ifdef RTLD_NOW
  9676. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9677. # else
  9678. # ifdef DL_NOW
  9679. # define LT_DLLAZY_OR_NOW DL_NOW
  9680. # else
  9681. # define LT_DLLAZY_OR_NOW 0
  9682. # endif
  9683. # endif
  9684. # endif
  9685. # endif
  9686. #endif
  9687. /* When -fvisbility=hidden is used, assume the code has been annotated
  9688. correspondingly for the symbols needed. */
  9689. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9690. int fnord () __attribute__((visibility("default")));
  9691. #endif
  9692. int fnord () { return 42; }
  9693. int main ()
  9694. {
  9695. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9696. int status = $lt_dlunknown;
  9697. if (self)
  9698. {
  9699. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9700. else
  9701. {
  9702. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9703. else puts (dlerror ());
  9704. }
  9705. /* dlclose (self); */
  9706. }
  9707. else
  9708. puts (dlerror ());
  9709. return status;
  9710. }
  9711. _LT_EOF
  9712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9713. (eval $ac_link) 2>&5
  9714. ac_status=$?
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9716. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9717. (./conftest; exit; ) >&5 2>/dev/null
  9718. lt_status=$?
  9719. case x$lt_status in
  9720. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9721. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9722. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9723. esac
  9724. else :
  9725. # compilation failed
  9726. lt_cv_dlopen_self=no
  9727. fi
  9728. fi
  9729. rm -fr conftest*
  9730. fi
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9732. $as_echo "$lt_cv_dlopen_self" >&6; }
  9733. if test "x$lt_cv_dlopen_self" = xyes; then
  9734. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9736. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9737. if ${lt_cv_dlopen_self_static+:} false; then :
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. if test "$cross_compiling" = yes; then :
  9741. lt_cv_dlopen_self_static=cross
  9742. else
  9743. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9744. lt_status=$lt_dlunknown
  9745. cat > conftest.$ac_ext <<_LT_EOF
  9746. #line $LINENO "configure"
  9747. #include "confdefs.h"
  9748. #if HAVE_DLFCN_H
  9749. #include <dlfcn.h>
  9750. #endif
  9751. #include <stdio.h>
  9752. #ifdef RTLD_GLOBAL
  9753. # define LT_DLGLOBAL RTLD_GLOBAL
  9754. #else
  9755. # ifdef DL_GLOBAL
  9756. # define LT_DLGLOBAL DL_GLOBAL
  9757. # else
  9758. # define LT_DLGLOBAL 0
  9759. # endif
  9760. #endif
  9761. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9762. find out it does not work in some platform. */
  9763. #ifndef LT_DLLAZY_OR_NOW
  9764. # ifdef RTLD_LAZY
  9765. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9766. # else
  9767. # ifdef DL_LAZY
  9768. # define LT_DLLAZY_OR_NOW DL_LAZY
  9769. # else
  9770. # ifdef RTLD_NOW
  9771. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9772. # else
  9773. # ifdef DL_NOW
  9774. # define LT_DLLAZY_OR_NOW DL_NOW
  9775. # else
  9776. # define LT_DLLAZY_OR_NOW 0
  9777. # endif
  9778. # endif
  9779. # endif
  9780. # endif
  9781. #endif
  9782. /* When -fvisbility=hidden is used, assume the code has been annotated
  9783. correspondingly for the symbols needed. */
  9784. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9785. int fnord () __attribute__((visibility("default")));
  9786. #endif
  9787. int fnord () { return 42; }
  9788. int main ()
  9789. {
  9790. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9791. int status = $lt_dlunknown;
  9792. if (self)
  9793. {
  9794. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9795. else
  9796. {
  9797. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9798. else puts (dlerror ());
  9799. }
  9800. /* dlclose (self); */
  9801. }
  9802. else
  9803. puts (dlerror ());
  9804. return status;
  9805. }
  9806. _LT_EOF
  9807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9808. (eval $ac_link) 2>&5
  9809. ac_status=$?
  9810. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9811. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9812. (./conftest; exit; ) >&5 2>/dev/null
  9813. lt_status=$?
  9814. case x$lt_status in
  9815. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9816. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9817. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9818. esac
  9819. else :
  9820. # compilation failed
  9821. lt_cv_dlopen_self_static=no
  9822. fi
  9823. fi
  9824. rm -fr conftest*
  9825. fi
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9827. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9828. fi
  9829. CPPFLAGS="$save_CPPFLAGS"
  9830. LDFLAGS="$save_LDFLAGS"
  9831. LIBS="$save_LIBS"
  9832. ;;
  9833. esac
  9834. case $lt_cv_dlopen_self in
  9835. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9836. *) enable_dlopen_self=unknown ;;
  9837. esac
  9838. case $lt_cv_dlopen_self_static in
  9839. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9840. *) enable_dlopen_self_static=unknown ;;
  9841. esac
  9842. fi
  9843. striplib=
  9844. old_striplib=
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9846. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9847. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9848. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9849. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9851. $as_echo "yes" >&6; }
  9852. else
  9853. # FIXME - insert some real tests, host_os isn't really good enough
  9854. case $host_os in
  9855. darwin*)
  9856. if test -n "$STRIP" ; then
  9857. striplib="$STRIP -x"
  9858. old_striplib="$STRIP -S"
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9860. $as_echo "yes" >&6; }
  9861. else
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9863. $as_echo "no" >&6; }
  9864. fi
  9865. ;;
  9866. *)
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9868. $as_echo "no" >&6; }
  9869. ;;
  9870. esac
  9871. fi
  9872. # Report which library types will actually be built
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9874. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9876. $as_echo "$can_build_shared" >&6; }
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9878. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9879. test "$can_build_shared" = "no" && enable_shared=no
  9880. # On AIX, shared libraries and static libraries use the same namespace, and
  9881. # are all built from PIC.
  9882. case $host_os in
  9883. aix3*)
  9884. test "$enable_shared" = yes && enable_static=no
  9885. if test -n "$RANLIB"; then
  9886. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9887. postinstall_cmds='$RANLIB $lib'
  9888. fi
  9889. ;;
  9890. aix[4-9]*)
  9891. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9892. test "$enable_shared" = yes && enable_static=no
  9893. fi
  9894. ;;
  9895. esac
  9896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9897. $as_echo "$enable_shared" >&6; }
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9899. $as_echo_n "checking whether to build static libraries... " >&6; }
  9900. # Make sure either enable_shared or enable_static is yes.
  9901. test "$enable_shared" = yes || enable_static=yes
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9903. $as_echo "$enable_static" >&6; }
  9904. fi
  9905. ac_ext=c
  9906. ac_cpp='$CPP $CPPFLAGS'
  9907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9910. CC="$lt_save_CC"
  9911. ac_config_commands="$ac_config_commands libtool"
  9912. # Only expand once:
  9913. if test -n "$ac_tool_prefix"; then
  9914. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9915. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9917. $as_echo_n "checking for $ac_word... " >&6; }
  9918. if ${ac_cv_prog_RC+:} false; then :
  9919. $as_echo_n "(cached) " >&6
  9920. else
  9921. if test -n "$RC"; then
  9922. ac_cv_prog_RC="$RC" # Let the user override the test.
  9923. else
  9924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9925. for as_dir in $PATH
  9926. do
  9927. IFS=$as_save_IFS
  9928. test -z "$as_dir" && as_dir=.
  9929. for ac_exec_ext in '' $ac_executable_extensions; do
  9930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9931. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9933. break 2
  9934. fi
  9935. done
  9936. done
  9937. IFS=$as_save_IFS
  9938. fi
  9939. fi
  9940. RC=$ac_cv_prog_RC
  9941. if test -n "$RC"; then
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9943. $as_echo "$RC" >&6; }
  9944. else
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9946. $as_echo "no" >&6; }
  9947. fi
  9948. fi
  9949. if test -z "$ac_cv_prog_RC"; then
  9950. ac_ct_RC=$RC
  9951. # Extract the first word of "windres", so it can be a program name with args.
  9952. set dummy windres; ac_word=$2
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9954. $as_echo_n "checking for $ac_word... " >&6; }
  9955. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9956. $as_echo_n "(cached) " >&6
  9957. else
  9958. if test -n "$ac_ct_RC"; then
  9959. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9960. else
  9961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9962. for as_dir in $PATH
  9963. do
  9964. IFS=$as_save_IFS
  9965. test -z "$as_dir" && as_dir=.
  9966. for ac_exec_ext in '' $ac_executable_extensions; do
  9967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9968. ac_cv_prog_ac_ct_RC="windres"
  9969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9970. break 2
  9971. fi
  9972. done
  9973. done
  9974. IFS=$as_save_IFS
  9975. fi
  9976. fi
  9977. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9978. if test -n "$ac_ct_RC"; then
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9980. $as_echo "$ac_ct_RC" >&6; }
  9981. else
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9983. $as_echo "no" >&6; }
  9984. fi
  9985. if test "x$ac_ct_RC" = x; then
  9986. RC=""
  9987. else
  9988. case $cross_compiling:$ac_tool_warned in
  9989. yes:)
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9992. ac_tool_warned=yes ;;
  9993. esac
  9994. RC=$ac_ct_RC
  9995. fi
  9996. else
  9997. RC="$ac_cv_prog_RC"
  9998. fi
  9999. # Source file extension for RC test sources.
  10000. ac_ext=rc
  10001. # Object file extension for compiled RC test sources.
  10002. objext=o
  10003. objext_RC=$objext
  10004. # Code to be used in simple compile tests
  10005. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10006. # Code to be used in simple link tests
  10007. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10008. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10009. # If no C compiler was specified, use CC.
  10010. LTCC=${LTCC-"$CC"}
  10011. # If no C compiler flags were specified, use CFLAGS.
  10012. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10013. # Allow CC to be a program name with arguments.
  10014. compiler=$CC
  10015. # save warnings/boilerplate of simple test code
  10016. ac_outfile=conftest.$ac_objext
  10017. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10018. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10019. _lt_compiler_boilerplate=`cat conftest.err`
  10020. $RM conftest*
  10021. ac_outfile=conftest.$ac_objext
  10022. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10023. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10024. _lt_linker_boilerplate=`cat conftest.err`
  10025. $RM -r conftest*
  10026. # Allow CC to be a program name with arguments.
  10027. lt_save_CC="$CC"
  10028. lt_save_CFLAGS=$CFLAGS
  10029. lt_save_GCC=$GCC
  10030. GCC=
  10031. CC=${RC-"windres"}
  10032. CFLAGS=
  10033. compiler=$CC
  10034. compiler_RC=$CC
  10035. for cc_temp in $compiler""; do
  10036. case $cc_temp in
  10037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10039. \-*) ;;
  10040. *) break;;
  10041. esac
  10042. done
  10043. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10044. lt_cv_prog_compiler_c_o_RC=yes
  10045. if test -n "$compiler"; then
  10046. :
  10047. fi
  10048. GCC=$lt_save_GCC
  10049. ac_ext=c
  10050. ac_cpp='$CPP $CPPFLAGS'
  10051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10054. CC=$lt_save_CC
  10055. CFLAGS=$lt_save_CFLAGS
  10056. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10057. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10058. LT_REVISION=$SDL_INTERFACE_AGE
  10059. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10060. ac_ext=c
  10061. ac_cpp='$CPP $CPPFLAGS'
  10062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10065. if test -n "$ac_tool_prefix"; then
  10066. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10067. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10069. $as_echo_n "checking for $ac_word... " >&6; }
  10070. if ${ac_cv_prog_CC+:} false; then :
  10071. $as_echo_n "(cached) " >&6
  10072. else
  10073. if test -n "$CC"; then
  10074. ac_cv_prog_CC="$CC" # Let the user override the test.
  10075. else
  10076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH
  10078. do
  10079. IFS=$as_save_IFS
  10080. test -z "$as_dir" && as_dir=.
  10081. for ac_exec_ext in '' $ac_executable_extensions; do
  10082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10083. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10085. break 2
  10086. fi
  10087. done
  10088. done
  10089. IFS=$as_save_IFS
  10090. fi
  10091. fi
  10092. CC=$ac_cv_prog_CC
  10093. if test -n "$CC"; then
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10095. $as_echo "$CC" >&6; }
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10098. $as_echo "no" >&6; }
  10099. fi
  10100. fi
  10101. if test -z "$ac_cv_prog_CC"; then
  10102. ac_ct_CC=$CC
  10103. # Extract the first word of "gcc", so it can be a program name with args.
  10104. set dummy gcc; ac_word=$2
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10106. $as_echo_n "checking for $ac_word... " >&6; }
  10107. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10108. $as_echo_n "(cached) " >&6
  10109. else
  10110. if test -n "$ac_ct_CC"; then
  10111. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10112. else
  10113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10114. for as_dir in $PATH
  10115. do
  10116. IFS=$as_save_IFS
  10117. test -z "$as_dir" && as_dir=.
  10118. for ac_exec_ext in '' $ac_executable_extensions; do
  10119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10120. ac_cv_prog_ac_ct_CC="gcc"
  10121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10122. break 2
  10123. fi
  10124. done
  10125. done
  10126. IFS=$as_save_IFS
  10127. fi
  10128. fi
  10129. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10130. if test -n "$ac_ct_CC"; then
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10132. $as_echo "$ac_ct_CC" >&6; }
  10133. else
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10135. $as_echo "no" >&6; }
  10136. fi
  10137. if test "x$ac_ct_CC" = x; then
  10138. CC=""
  10139. else
  10140. case $cross_compiling:$ac_tool_warned in
  10141. yes:)
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10143. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10144. ac_tool_warned=yes ;;
  10145. esac
  10146. CC=$ac_ct_CC
  10147. fi
  10148. else
  10149. CC="$ac_cv_prog_CC"
  10150. fi
  10151. if test -z "$CC"; then
  10152. if test -n "$ac_tool_prefix"; then
  10153. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10154. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10156. $as_echo_n "checking for $ac_word... " >&6; }
  10157. if ${ac_cv_prog_CC+:} false; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. if test -n "$CC"; then
  10161. ac_cv_prog_CC="$CC" # Let the user override the test.
  10162. else
  10163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10164. for as_dir in $PATH
  10165. do
  10166. IFS=$as_save_IFS
  10167. test -z "$as_dir" && as_dir=.
  10168. for ac_exec_ext in '' $ac_executable_extensions; do
  10169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10170. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10172. break 2
  10173. fi
  10174. done
  10175. done
  10176. IFS=$as_save_IFS
  10177. fi
  10178. fi
  10179. CC=$ac_cv_prog_CC
  10180. if test -n "$CC"; then
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10182. $as_echo "$CC" >&6; }
  10183. else
  10184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10185. $as_echo "no" >&6; }
  10186. fi
  10187. fi
  10188. fi
  10189. if test -z "$CC"; then
  10190. # Extract the first word of "cc", so it can be a program name with args.
  10191. set dummy cc; ac_word=$2
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10193. $as_echo_n "checking for $ac_word... " >&6; }
  10194. if ${ac_cv_prog_CC+:} false; then :
  10195. $as_echo_n "(cached) " >&6
  10196. else
  10197. if test -n "$CC"; then
  10198. ac_cv_prog_CC="$CC" # Let the user override the test.
  10199. else
  10200. ac_prog_rejected=no
  10201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10202. for as_dir in $PATH
  10203. do
  10204. IFS=$as_save_IFS
  10205. test -z "$as_dir" && as_dir=.
  10206. for ac_exec_ext in '' $ac_executable_extensions; do
  10207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10208. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10209. ac_prog_rejected=yes
  10210. continue
  10211. fi
  10212. ac_cv_prog_CC="cc"
  10213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10214. break 2
  10215. fi
  10216. done
  10217. done
  10218. IFS=$as_save_IFS
  10219. if test $ac_prog_rejected = yes; then
  10220. # We found a bogon in the path, so make sure we never use it.
  10221. set dummy $ac_cv_prog_CC
  10222. shift
  10223. if test $# != 0; then
  10224. # We chose a different compiler from the bogus one.
  10225. # However, it has the same basename, so the bogon will be chosen
  10226. # first if we set CC to just the basename; use the full file name.
  10227. shift
  10228. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10229. fi
  10230. fi
  10231. fi
  10232. fi
  10233. CC=$ac_cv_prog_CC
  10234. if test -n "$CC"; then
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10236. $as_echo "$CC" >&6; }
  10237. else
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10239. $as_echo "no" >&6; }
  10240. fi
  10241. fi
  10242. if test -z "$CC"; then
  10243. if test -n "$ac_tool_prefix"; then
  10244. for ac_prog in cl.exe
  10245. do
  10246. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10247. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10249. $as_echo_n "checking for $ac_word... " >&6; }
  10250. if ${ac_cv_prog_CC+:} false; then :
  10251. $as_echo_n "(cached) " >&6
  10252. else
  10253. if test -n "$CC"; then
  10254. ac_cv_prog_CC="$CC" # Let the user override the test.
  10255. else
  10256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10257. for as_dir in $PATH
  10258. do
  10259. IFS=$as_save_IFS
  10260. test -z "$as_dir" && as_dir=.
  10261. for ac_exec_ext in '' $ac_executable_extensions; do
  10262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10263. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10265. break 2
  10266. fi
  10267. done
  10268. done
  10269. IFS=$as_save_IFS
  10270. fi
  10271. fi
  10272. CC=$ac_cv_prog_CC
  10273. if test -n "$CC"; then
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10275. $as_echo "$CC" >&6; }
  10276. else
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10278. $as_echo "no" >&6; }
  10279. fi
  10280. test -n "$CC" && break
  10281. done
  10282. fi
  10283. if test -z "$CC"; then
  10284. ac_ct_CC=$CC
  10285. for ac_prog in cl.exe
  10286. do
  10287. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10288. set dummy $ac_prog; ac_word=$2
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10290. $as_echo_n "checking for $ac_word... " >&6; }
  10291. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. if test -n "$ac_ct_CC"; then
  10295. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10296. else
  10297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10298. for as_dir in $PATH
  10299. do
  10300. IFS=$as_save_IFS
  10301. test -z "$as_dir" && as_dir=.
  10302. for ac_exec_ext in '' $ac_executable_extensions; do
  10303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10304. ac_cv_prog_ac_ct_CC="$ac_prog"
  10305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10306. break 2
  10307. fi
  10308. done
  10309. done
  10310. IFS=$as_save_IFS
  10311. fi
  10312. fi
  10313. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10314. if test -n "$ac_ct_CC"; then
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10316. $as_echo "$ac_ct_CC" >&6; }
  10317. else
  10318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10319. $as_echo "no" >&6; }
  10320. fi
  10321. test -n "$ac_ct_CC" && break
  10322. done
  10323. if test "x$ac_ct_CC" = x; then
  10324. CC=""
  10325. else
  10326. case $cross_compiling:$ac_tool_warned in
  10327. yes:)
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10330. ac_tool_warned=yes ;;
  10331. esac
  10332. CC=$ac_ct_CC
  10333. fi
  10334. fi
  10335. fi
  10336. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10338. as_fn_error $? "no acceptable C compiler found in \$PATH
  10339. See \`config.log' for more details" "$LINENO" 5; }
  10340. # Provide some information about the compiler.
  10341. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10342. set X $ac_compile
  10343. ac_compiler=$2
  10344. for ac_option in --version -v -V -qversion; do
  10345. { { ac_try="$ac_compiler $ac_option >&5"
  10346. case "(($ac_try" in
  10347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10348. *) ac_try_echo=$ac_try;;
  10349. esac
  10350. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10351. $as_echo "$ac_try_echo"; } >&5
  10352. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10353. ac_status=$?
  10354. if test -s conftest.err; then
  10355. sed '10a\
  10356. ... rest of stderr output deleted ...
  10357. 10q' conftest.err >conftest.er1
  10358. cat conftest.er1 >&5
  10359. fi
  10360. rm -f conftest.er1 conftest.err
  10361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10362. test $ac_status = 0; }
  10363. done
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10365. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10366. if ${ac_cv_c_compiler_gnu+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. int
  10372. main ()
  10373. {
  10374. #ifndef __GNUC__
  10375. choke me
  10376. #endif
  10377. ;
  10378. return 0;
  10379. }
  10380. _ACEOF
  10381. if ac_fn_c_try_compile "$LINENO"; then :
  10382. ac_compiler_gnu=yes
  10383. else
  10384. ac_compiler_gnu=no
  10385. fi
  10386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10387. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10388. fi
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10390. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10391. if test $ac_compiler_gnu = yes; then
  10392. GCC=yes
  10393. else
  10394. GCC=
  10395. fi
  10396. ac_test_CFLAGS=${CFLAGS+set}
  10397. ac_save_CFLAGS=$CFLAGS
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10399. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10400. if ${ac_cv_prog_cc_g+:} false; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. ac_save_c_werror_flag=$ac_c_werror_flag
  10404. ac_c_werror_flag=yes
  10405. ac_cv_prog_cc_g=no
  10406. CFLAGS="-g"
  10407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10408. /* end confdefs.h. */
  10409. int
  10410. main ()
  10411. {
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. if ac_fn_c_try_compile "$LINENO"; then :
  10417. ac_cv_prog_cc_g=yes
  10418. else
  10419. CFLAGS=""
  10420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10421. /* end confdefs.h. */
  10422. int
  10423. main ()
  10424. {
  10425. ;
  10426. return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_c_try_compile "$LINENO"; then :
  10430. else
  10431. ac_c_werror_flag=$ac_save_c_werror_flag
  10432. CFLAGS="-g"
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. int
  10436. main ()
  10437. {
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. if ac_fn_c_try_compile "$LINENO"; then :
  10443. ac_cv_prog_cc_g=yes
  10444. fi
  10445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10446. fi
  10447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10448. fi
  10449. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10450. ac_c_werror_flag=$ac_save_c_werror_flag
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10453. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10454. if test "$ac_test_CFLAGS" = set; then
  10455. CFLAGS=$ac_save_CFLAGS
  10456. elif test $ac_cv_prog_cc_g = yes; then
  10457. if test "$GCC" = yes; then
  10458. CFLAGS="-g -O2"
  10459. else
  10460. CFLAGS="-g"
  10461. fi
  10462. else
  10463. if test "$GCC" = yes; then
  10464. CFLAGS="-O2"
  10465. else
  10466. CFLAGS=
  10467. fi
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10470. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10471. if ${ac_cv_prog_cc_c89+:} false; then :
  10472. $as_echo_n "(cached) " >&6
  10473. else
  10474. ac_cv_prog_cc_c89=no
  10475. ac_save_CC=$CC
  10476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10477. /* end confdefs.h. */
  10478. #include <stdarg.h>
  10479. #include <stdio.h>
  10480. struct stat;
  10481. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10482. struct buf { int x; };
  10483. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10484. static char *e (p, i)
  10485. char **p;
  10486. int i;
  10487. {
  10488. return p[i];
  10489. }
  10490. static char *f (char * (*g) (char **, int), char **p, ...)
  10491. {
  10492. char *s;
  10493. va_list v;
  10494. va_start (v,p);
  10495. s = g (p, va_arg (v,int));
  10496. va_end (v);
  10497. return s;
  10498. }
  10499. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10500. function prototypes and stuff, but not '\xHH' hex character constants.
  10501. These don't provoke an error unfortunately, instead are silently treated
  10502. as 'x'. The following induces an error, until -std is added to get
  10503. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10504. array size at least. It's necessary to write '\x00'==0 to get something
  10505. that's true only with -std. */
  10506. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10507. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10508. inside strings and character constants. */
  10509. #define FOO(x) 'x'
  10510. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10511. int test (int i, double x);
  10512. struct s1 {int (*f) (int a);};
  10513. struct s2 {int (*f) (double a);};
  10514. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10515. int argc;
  10516. char **argv;
  10517. int
  10518. main ()
  10519. {
  10520. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10521. ;
  10522. return 0;
  10523. }
  10524. _ACEOF
  10525. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10526. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10527. do
  10528. CC="$ac_save_CC $ac_arg"
  10529. if ac_fn_c_try_compile "$LINENO"; then :
  10530. ac_cv_prog_cc_c89=$ac_arg
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext
  10533. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10534. done
  10535. rm -f conftest.$ac_ext
  10536. CC=$ac_save_CC
  10537. fi
  10538. # AC_CACHE_VAL
  10539. case "x$ac_cv_prog_cc_c89" in
  10540. x)
  10541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10542. $as_echo "none needed" >&6; } ;;
  10543. xno)
  10544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10545. $as_echo "unsupported" >&6; } ;;
  10546. *)
  10547. CC="$CC $ac_cv_prog_cc_c89"
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10549. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10550. esac
  10551. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10552. fi
  10553. ac_ext=c
  10554. ac_cpp='$CPP $CPPFLAGS'
  10555. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10556. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10557. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10558. ac_ext=cpp
  10559. ac_cpp='$CXXCPP $CPPFLAGS'
  10560. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10561. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10562. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10563. if test -z "$CXX"; then
  10564. if test -n "$CCC"; then
  10565. CXX=$CCC
  10566. else
  10567. if test -n "$ac_tool_prefix"; then
  10568. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10569. do
  10570. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10571. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10573. $as_echo_n "checking for $ac_word... " >&6; }
  10574. if ${ac_cv_prog_CXX+:} false; then :
  10575. $as_echo_n "(cached) " >&6
  10576. else
  10577. if test -n "$CXX"; then
  10578. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10579. else
  10580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10581. for as_dir in $PATH
  10582. do
  10583. IFS=$as_save_IFS
  10584. test -z "$as_dir" && as_dir=.
  10585. for ac_exec_ext in '' $ac_executable_extensions; do
  10586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10587. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10589. break 2
  10590. fi
  10591. done
  10592. done
  10593. IFS=$as_save_IFS
  10594. fi
  10595. fi
  10596. CXX=$ac_cv_prog_CXX
  10597. if test -n "$CXX"; then
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10599. $as_echo "$CXX" >&6; }
  10600. else
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10602. $as_echo "no" >&6; }
  10603. fi
  10604. test -n "$CXX" && break
  10605. done
  10606. fi
  10607. if test -z "$CXX"; then
  10608. ac_ct_CXX=$CXX
  10609. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10610. do
  10611. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10612. set dummy $ac_prog; ac_word=$2
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10614. $as_echo_n "checking for $ac_word... " >&6; }
  10615. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10616. $as_echo_n "(cached) " >&6
  10617. else
  10618. if test -n "$ac_ct_CXX"; then
  10619. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10620. else
  10621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10622. for as_dir in $PATH
  10623. do
  10624. IFS=$as_save_IFS
  10625. test -z "$as_dir" && as_dir=.
  10626. for ac_exec_ext in '' $ac_executable_extensions; do
  10627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10628. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10630. break 2
  10631. fi
  10632. done
  10633. done
  10634. IFS=$as_save_IFS
  10635. fi
  10636. fi
  10637. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10638. if test -n "$ac_ct_CXX"; then
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10640. $as_echo "$ac_ct_CXX" >&6; }
  10641. else
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10643. $as_echo "no" >&6; }
  10644. fi
  10645. test -n "$ac_ct_CXX" && break
  10646. done
  10647. if test "x$ac_ct_CXX" = x; then
  10648. CXX="g++"
  10649. else
  10650. case $cross_compiling:$ac_tool_warned in
  10651. yes:)
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10654. ac_tool_warned=yes ;;
  10655. esac
  10656. CXX=$ac_ct_CXX
  10657. fi
  10658. fi
  10659. fi
  10660. fi
  10661. # Provide some information about the compiler.
  10662. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10663. set X $ac_compile
  10664. ac_compiler=$2
  10665. for ac_option in --version -v -V -qversion; do
  10666. { { ac_try="$ac_compiler $ac_option >&5"
  10667. case "(($ac_try" in
  10668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10669. *) ac_try_echo=$ac_try;;
  10670. esac
  10671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10672. $as_echo "$ac_try_echo"; } >&5
  10673. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10674. ac_status=$?
  10675. if test -s conftest.err; then
  10676. sed '10a\
  10677. ... rest of stderr output deleted ...
  10678. 10q' conftest.err >conftest.er1
  10679. cat conftest.er1 >&5
  10680. fi
  10681. rm -f conftest.er1 conftest.err
  10682. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10683. test $ac_status = 0; }
  10684. done
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10686. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10687. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10688. $as_echo_n "(cached) " >&6
  10689. else
  10690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10691. /* end confdefs.h. */
  10692. int
  10693. main ()
  10694. {
  10695. #ifndef __GNUC__
  10696. choke me
  10697. #endif
  10698. ;
  10699. return 0;
  10700. }
  10701. _ACEOF
  10702. if ac_fn_cxx_try_compile "$LINENO"; then :
  10703. ac_compiler_gnu=yes
  10704. else
  10705. ac_compiler_gnu=no
  10706. fi
  10707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10708. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10709. fi
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10711. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10712. if test $ac_compiler_gnu = yes; then
  10713. GXX=yes
  10714. else
  10715. GXX=
  10716. fi
  10717. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10718. ac_save_CXXFLAGS=$CXXFLAGS
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10720. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10721. if ${ac_cv_prog_cxx_g+:} false; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10725. ac_cxx_werror_flag=yes
  10726. ac_cv_prog_cxx_g=no
  10727. CXXFLAGS="-g"
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. int
  10731. main ()
  10732. {
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. if ac_fn_cxx_try_compile "$LINENO"; then :
  10738. ac_cv_prog_cxx_g=yes
  10739. else
  10740. CXXFLAGS=""
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. int
  10744. main ()
  10745. {
  10746. ;
  10747. return 0;
  10748. }
  10749. _ACEOF
  10750. if ac_fn_cxx_try_compile "$LINENO"; then :
  10751. else
  10752. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10753. CXXFLAGS="-g"
  10754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10755. /* end confdefs.h. */
  10756. int
  10757. main ()
  10758. {
  10759. ;
  10760. return 0;
  10761. }
  10762. _ACEOF
  10763. if ac_fn_cxx_try_compile "$LINENO"; then :
  10764. ac_cv_prog_cxx_g=yes
  10765. fi
  10766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10767. fi
  10768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10769. fi
  10770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10771. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10772. fi
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10774. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10775. if test "$ac_test_CXXFLAGS" = set; then
  10776. CXXFLAGS=$ac_save_CXXFLAGS
  10777. elif test $ac_cv_prog_cxx_g = yes; then
  10778. if test "$GXX" = yes; then
  10779. CXXFLAGS="-g -O2"
  10780. else
  10781. CXXFLAGS="-g"
  10782. fi
  10783. else
  10784. if test "$GXX" = yes; then
  10785. CXXFLAGS="-O2"
  10786. else
  10787. CXXFLAGS=
  10788. fi
  10789. fi
  10790. ac_ext=c
  10791. ac_cpp='$CPP $CPPFLAGS'
  10792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10795. func_stripname_cnf ()
  10796. {
  10797. case ${2} in
  10798. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10799. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10800. esac
  10801. } # func_stripname_cnf
  10802. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10803. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10804. (test "X$CXX" != "Xg++"))) ; then
  10805. ac_ext=cpp
  10806. ac_cpp='$CXXCPP $CPPFLAGS'
  10807. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10808. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10809. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10811. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10812. if test -z "$CXXCPP"; then
  10813. if ${ac_cv_prog_CXXCPP+:} false; then :
  10814. $as_echo_n "(cached) " >&6
  10815. else
  10816. # Double quotes because CXXCPP needs to be expanded
  10817. for CXXCPP in "$CXX -E" "/lib/cpp"
  10818. do
  10819. ac_preproc_ok=false
  10820. for ac_cxx_preproc_warn_flag in '' yes
  10821. do
  10822. # Use a header file that comes with gcc, so configuring glibc
  10823. # with a fresh cross-compiler works.
  10824. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10825. # <limits.h> exists even on freestanding compilers.
  10826. # On the NeXT, cc -E runs the code through the compiler's parser,
  10827. # not just through cpp. "Syntax error" is here to catch this case.
  10828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10829. /* end confdefs.h. */
  10830. #ifdef __STDC__
  10831. # include <limits.h>
  10832. #else
  10833. # include <assert.h>
  10834. #endif
  10835. Syntax error
  10836. _ACEOF
  10837. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10838. else
  10839. # Broken: fails on valid input.
  10840. continue
  10841. fi
  10842. rm -f conftest.err conftest.i conftest.$ac_ext
  10843. # OK, works on sane cases. Now check whether nonexistent headers
  10844. # can be detected and how.
  10845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10846. /* end confdefs.h. */
  10847. #include <ac_nonexistent.h>
  10848. _ACEOF
  10849. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10850. # Broken: success on invalid input.
  10851. continue
  10852. else
  10853. # Passes both tests.
  10854. ac_preproc_ok=:
  10855. break
  10856. fi
  10857. rm -f conftest.err conftest.i conftest.$ac_ext
  10858. done
  10859. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10860. rm -f conftest.i conftest.err conftest.$ac_ext
  10861. if $ac_preproc_ok; then :
  10862. break
  10863. fi
  10864. done
  10865. ac_cv_prog_CXXCPP=$CXXCPP
  10866. fi
  10867. CXXCPP=$ac_cv_prog_CXXCPP
  10868. else
  10869. ac_cv_prog_CXXCPP=$CXXCPP
  10870. fi
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10872. $as_echo "$CXXCPP" >&6; }
  10873. ac_preproc_ok=false
  10874. for ac_cxx_preproc_warn_flag in '' yes
  10875. do
  10876. # Use a header file that comes with gcc, so configuring glibc
  10877. # with a fresh cross-compiler works.
  10878. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10879. # <limits.h> exists even on freestanding compilers.
  10880. # On the NeXT, cc -E runs the code through the compiler's parser,
  10881. # not just through cpp. "Syntax error" is here to catch this case.
  10882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10883. /* end confdefs.h. */
  10884. #ifdef __STDC__
  10885. # include <limits.h>
  10886. #else
  10887. # include <assert.h>
  10888. #endif
  10889. Syntax error
  10890. _ACEOF
  10891. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10892. else
  10893. # Broken: fails on valid input.
  10894. continue
  10895. fi
  10896. rm -f conftest.err conftest.i conftest.$ac_ext
  10897. # OK, works on sane cases. Now check whether nonexistent headers
  10898. # can be detected and how.
  10899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10900. /* end confdefs.h. */
  10901. #include <ac_nonexistent.h>
  10902. _ACEOF
  10903. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10904. # Broken: success on invalid input.
  10905. continue
  10906. else
  10907. # Passes both tests.
  10908. ac_preproc_ok=:
  10909. break
  10910. fi
  10911. rm -f conftest.err conftest.i conftest.$ac_ext
  10912. done
  10913. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10914. rm -f conftest.i conftest.err conftest.$ac_ext
  10915. if $ac_preproc_ok; then :
  10916. else
  10917. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10918. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10919. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10920. See \`config.log' for more details" "$LINENO" 5; }
  10921. fi
  10922. ac_ext=c
  10923. ac_cpp='$CPP $CPPFLAGS'
  10924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10927. else
  10928. _lt_caught_CXX_error=yes
  10929. fi
  10930. ac_ext=cpp
  10931. ac_cpp='$CXXCPP $CPPFLAGS'
  10932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10935. archive_cmds_need_lc_CXX=no
  10936. allow_undefined_flag_CXX=
  10937. always_export_symbols_CXX=no
  10938. archive_expsym_cmds_CXX=
  10939. compiler_needs_object_CXX=no
  10940. export_dynamic_flag_spec_CXX=
  10941. hardcode_direct_CXX=no
  10942. hardcode_direct_absolute_CXX=no
  10943. hardcode_libdir_flag_spec_CXX=
  10944. hardcode_libdir_separator_CXX=
  10945. hardcode_minus_L_CXX=no
  10946. hardcode_shlibpath_var_CXX=unsupported
  10947. hardcode_automatic_CXX=no
  10948. inherit_rpath_CXX=no
  10949. module_cmds_CXX=
  10950. module_expsym_cmds_CXX=
  10951. link_all_deplibs_CXX=unknown
  10952. old_archive_cmds_CXX=$old_archive_cmds
  10953. reload_flag_CXX=$reload_flag
  10954. reload_cmds_CXX=$reload_cmds
  10955. no_undefined_flag_CXX=
  10956. whole_archive_flag_spec_CXX=
  10957. enable_shared_with_static_runtimes_CXX=no
  10958. # Source file extension for C++ test sources.
  10959. ac_ext=cpp
  10960. # Object file extension for compiled C++ test sources.
  10961. objext=o
  10962. objext_CXX=$objext
  10963. # No sense in running all these tests if we already determined that
  10964. # the CXX compiler isn't working. Some variables (like enable_shared)
  10965. # are currently assumed to apply to all compilers on this platform,
  10966. # and will be corrupted by setting them based on a non-working compiler.
  10967. if test "$_lt_caught_CXX_error" != yes; then
  10968. # Code to be used in simple compile tests
  10969. lt_simple_compile_test_code="int some_variable = 0;"
  10970. # Code to be used in simple link tests
  10971. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10972. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10973. # If no C compiler was specified, use CC.
  10974. LTCC=${LTCC-"$CC"}
  10975. # If no C compiler flags were specified, use CFLAGS.
  10976. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10977. # Allow CC to be a program name with arguments.
  10978. compiler=$CC
  10979. # save warnings/boilerplate of simple test code
  10980. ac_outfile=conftest.$ac_objext
  10981. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10982. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10983. _lt_compiler_boilerplate=`cat conftest.err`
  10984. $RM conftest*
  10985. ac_outfile=conftest.$ac_objext
  10986. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10987. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10988. _lt_linker_boilerplate=`cat conftest.err`
  10989. $RM -r conftest*
  10990. # Allow CC to be a program name with arguments.
  10991. lt_save_CC=$CC
  10992. lt_save_CFLAGS=$CFLAGS
  10993. lt_save_LD=$LD
  10994. lt_save_GCC=$GCC
  10995. GCC=$GXX
  10996. lt_save_with_gnu_ld=$with_gnu_ld
  10997. lt_save_path_LD=$lt_cv_path_LD
  10998. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10999. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11000. else
  11001. $as_unset lt_cv_prog_gnu_ld
  11002. fi
  11003. if test -n "${lt_cv_path_LDCXX+set}"; then
  11004. lt_cv_path_LD=$lt_cv_path_LDCXX
  11005. else
  11006. $as_unset lt_cv_path_LD
  11007. fi
  11008. test -z "${LDCXX+set}" || LD=$LDCXX
  11009. CC=${CXX-"c++"}
  11010. CFLAGS=$CXXFLAGS
  11011. compiler=$CC
  11012. compiler_CXX=$CC
  11013. for cc_temp in $compiler""; do
  11014. case $cc_temp in
  11015. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11016. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11017. \-*) ;;
  11018. *) break;;
  11019. esac
  11020. done
  11021. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11022. if test -n "$compiler"; then
  11023. # We don't want -fno-exception when compiling C++ code, so set the
  11024. # no_builtin_flag separately
  11025. if test "$GXX" = yes; then
  11026. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11027. else
  11028. lt_prog_compiler_no_builtin_flag_CXX=
  11029. fi
  11030. if test "$GXX" = yes; then
  11031. # Set up default GNU C++ configuration
  11032. # Check whether --with-gnu-ld was given.
  11033. if test "${with_gnu_ld+set}" = set; then :
  11034. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11035. else
  11036. with_gnu_ld=no
  11037. fi
  11038. ac_prog=ld
  11039. if test "$GCC" = yes; then
  11040. # Check if gcc -print-prog-name=ld gives a path.
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11042. $as_echo_n "checking for ld used by $CC... " >&6; }
  11043. case $host in
  11044. *-*-mingw*)
  11045. # gcc leaves a trailing carriage return which upsets mingw
  11046. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11047. *)
  11048. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11049. esac
  11050. case $ac_prog in
  11051. # Accept absolute paths.
  11052. [\\/]* | ?:[\\/]*)
  11053. re_direlt='/[^/][^/]*/\.\./'
  11054. # Canonicalize the pathname of ld
  11055. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11056. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11057. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11058. done
  11059. test -z "$LD" && LD="$ac_prog"
  11060. ;;
  11061. "")
  11062. # If it fails, then pretend we aren't using GCC.
  11063. ac_prog=ld
  11064. ;;
  11065. *)
  11066. # If it is relative, then search for the first ld in PATH.
  11067. with_gnu_ld=unknown
  11068. ;;
  11069. esac
  11070. elif test "$with_gnu_ld" = yes; then
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11072. $as_echo_n "checking for GNU ld... " >&6; }
  11073. else
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11075. $as_echo_n "checking for non-GNU ld... " >&6; }
  11076. fi
  11077. if ${lt_cv_path_LD+:} false; then :
  11078. $as_echo_n "(cached) " >&6
  11079. else
  11080. if test -z "$LD"; then
  11081. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11082. for ac_dir in $PATH; do
  11083. IFS="$lt_save_ifs"
  11084. test -z "$ac_dir" && ac_dir=.
  11085. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11086. lt_cv_path_LD="$ac_dir/$ac_prog"
  11087. # Check to see if the program is GNU ld. I'd rather use --version,
  11088. # but apparently some variants of GNU ld only accept -v.
  11089. # Break only if it was the GNU/non-GNU ld that we prefer.
  11090. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11091. *GNU* | *'with BFD'*)
  11092. test "$with_gnu_ld" != no && break
  11093. ;;
  11094. *)
  11095. test "$with_gnu_ld" != yes && break
  11096. ;;
  11097. esac
  11098. fi
  11099. done
  11100. IFS="$lt_save_ifs"
  11101. else
  11102. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11103. fi
  11104. fi
  11105. LD="$lt_cv_path_LD"
  11106. if test -n "$LD"; then
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11108. $as_echo "$LD" >&6; }
  11109. else
  11110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11111. $as_echo "no" >&6; }
  11112. fi
  11113. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11115. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11116. if ${lt_cv_prog_gnu_ld+:} false; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11120. case `$LD -v 2>&1 </dev/null` in
  11121. *GNU* | *'with BFD'*)
  11122. lt_cv_prog_gnu_ld=yes
  11123. ;;
  11124. *)
  11125. lt_cv_prog_gnu_ld=no
  11126. ;;
  11127. esac
  11128. fi
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11130. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11131. with_gnu_ld=$lt_cv_prog_gnu_ld
  11132. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11133. # archiving commands below assume that GNU ld is being used.
  11134. if test "$with_gnu_ld" = yes; then
  11135. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11136. 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'
  11137. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11138. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11139. # If archive_cmds runs LD, not CC, wlarc should be empty
  11140. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11141. # investigate it a little bit more. (MM)
  11142. wlarc='${wl}'
  11143. # ancient GNU ld didn't support --whole-archive et. al.
  11144. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11145. $GREP 'no-whole-archive' > /dev/null; then
  11146. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11147. else
  11148. whole_archive_flag_spec_CXX=
  11149. fi
  11150. else
  11151. with_gnu_ld=no
  11152. wlarc=
  11153. # A generic and very simple default shared library creation
  11154. # command for GNU C++ for the case where it uses the native
  11155. # linker, instead of GNU ld. If possible, this setting should
  11156. # overridden to take advantage of the native linker features on
  11157. # the platform it is being used on.
  11158. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11159. fi
  11160. # Commands to make compiler produce verbose output that lists
  11161. # what "hidden" libraries, object files and flags are used when
  11162. # linking a shared library.
  11163. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11164. else
  11165. GXX=no
  11166. with_gnu_ld=no
  11167. wlarc=
  11168. fi
  11169. # PORTME: fill in a description of your system's C++ link characteristics
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11171. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11172. ld_shlibs_CXX=yes
  11173. case $host_os in
  11174. aix3*)
  11175. # FIXME: insert proper C++ library support
  11176. ld_shlibs_CXX=no
  11177. ;;
  11178. aix[4-9]*)
  11179. if test "$host_cpu" = ia64; then
  11180. # On IA64, the linker does run time linking by default, so we don't
  11181. # have to do anything special.
  11182. aix_use_runtimelinking=no
  11183. exp_sym_flag='-Bexport'
  11184. no_entry_flag=""
  11185. else
  11186. aix_use_runtimelinking=no
  11187. # Test if we are trying to use run time linking or normal
  11188. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11189. # need to do runtime linking.
  11190. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11191. for ld_flag in $LDFLAGS; do
  11192. case $ld_flag in
  11193. *-brtl*)
  11194. aix_use_runtimelinking=yes
  11195. break
  11196. ;;
  11197. esac
  11198. done
  11199. ;;
  11200. esac
  11201. exp_sym_flag='-bexport'
  11202. no_entry_flag='-bnoentry'
  11203. fi
  11204. # When large executables or shared objects are built, AIX ld can
  11205. # have problems creating the table of contents. If linking a library
  11206. # or program results in "error TOC overflow" add -mminimal-toc to
  11207. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11208. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11209. archive_cmds_CXX=''
  11210. hardcode_direct_CXX=yes
  11211. hardcode_direct_absolute_CXX=yes
  11212. hardcode_libdir_separator_CXX=':'
  11213. link_all_deplibs_CXX=yes
  11214. file_list_spec_CXX='${wl}-f,'
  11215. if test "$GXX" = yes; then
  11216. case $host_os in aix4.[012]|aix4.[012].*)
  11217. # We only want to do this on AIX 4.2 and lower, the check
  11218. # below for broken collect2 doesn't work under 4.3+
  11219. collect2name=`${CC} -print-prog-name=collect2`
  11220. if test -f "$collect2name" &&
  11221. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11222. then
  11223. # We have reworked collect2
  11224. :
  11225. else
  11226. # We have old collect2
  11227. hardcode_direct_CXX=unsupported
  11228. # It fails to find uninstalled libraries when the uninstalled
  11229. # path is not listed in the libpath. Setting hardcode_minus_L
  11230. # to unsupported forces relinking
  11231. hardcode_minus_L_CXX=yes
  11232. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11233. hardcode_libdir_separator_CXX=
  11234. fi
  11235. esac
  11236. shared_flag='-shared'
  11237. if test "$aix_use_runtimelinking" = yes; then
  11238. shared_flag="$shared_flag "'${wl}-G'
  11239. fi
  11240. else
  11241. # not using gcc
  11242. if test "$host_cpu" = ia64; then
  11243. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11244. # chokes on -Wl,-G. The following line is correct:
  11245. shared_flag='-G'
  11246. else
  11247. if test "$aix_use_runtimelinking" = yes; then
  11248. shared_flag='${wl}-G'
  11249. else
  11250. shared_flag='${wl}-bM:SRE'
  11251. fi
  11252. fi
  11253. fi
  11254. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11255. # It seems that -bexpall does not export symbols beginning with
  11256. # underscore (_), so it is better to generate a list of symbols to
  11257. # export.
  11258. always_export_symbols_CXX=yes
  11259. if test "$aix_use_runtimelinking" = yes; then
  11260. # Warning - without using the other runtime loading flags (-brtl),
  11261. # -berok will link without error, but may produce a broken library.
  11262. allow_undefined_flag_CXX='-berok'
  11263. # Determine the default libpath from the value encoded in an empty
  11264. # executable.
  11265. if test "${lt_cv_aix_libpath+set}" = set; then
  11266. aix_libpath=$lt_cv_aix_libpath
  11267. else
  11268. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11269. $as_echo_n "(cached) " >&6
  11270. else
  11271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11272. /* end confdefs.h. */
  11273. int
  11274. main ()
  11275. {
  11276. ;
  11277. return 0;
  11278. }
  11279. _ACEOF
  11280. if ac_fn_cxx_try_link "$LINENO"; then :
  11281. lt_aix_libpath_sed='
  11282. /Import File Strings/,/^$/ {
  11283. /^0/ {
  11284. s/^0 *\([^ ]*\) *$/\1/
  11285. p
  11286. }
  11287. }'
  11288. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11289. # Check for a 64-bit object if we didn't find anything.
  11290. if test -z "$lt_cv_aix_libpath__CXX"; then
  11291. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11292. fi
  11293. fi
  11294. rm -f core conftest.err conftest.$ac_objext \
  11295. conftest$ac_exeext conftest.$ac_ext
  11296. if test -z "$lt_cv_aix_libpath__CXX"; then
  11297. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11298. fi
  11299. fi
  11300. aix_libpath=$lt_cv_aix_libpath__CXX
  11301. fi
  11302. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11303. 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"
  11304. else
  11305. if test "$host_cpu" = ia64; then
  11306. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11307. allow_undefined_flag_CXX="-z nodefs"
  11308. 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"
  11309. else
  11310. # Determine the default libpath from the value encoded in an
  11311. # empty executable.
  11312. if test "${lt_cv_aix_libpath+set}" = set; then
  11313. aix_libpath=$lt_cv_aix_libpath
  11314. else
  11315. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11316. $as_echo_n "(cached) " >&6
  11317. else
  11318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11319. /* end confdefs.h. */
  11320. int
  11321. main ()
  11322. {
  11323. ;
  11324. return 0;
  11325. }
  11326. _ACEOF
  11327. if ac_fn_cxx_try_link "$LINENO"; then :
  11328. lt_aix_libpath_sed='
  11329. /Import File Strings/,/^$/ {
  11330. /^0/ {
  11331. s/^0 *\([^ ]*\) *$/\1/
  11332. p
  11333. }
  11334. }'
  11335. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11336. # Check for a 64-bit object if we didn't find anything.
  11337. if test -z "$lt_cv_aix_libpath__CXX"; then
  11338. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11339. fi
  11340. fi
  11341. rm -f core conftest.err conftest.$ac_objext \
  11342. conftest$ac_exeext conftest.$ac_ext
  11343. if test -z "$lt_cv_aix_libpath__CXX"; then
  11344. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11345. fi
  11346. fi
  11347. aix_libpath=$lt_cv_aix_libpath__CXX
  11348. fi
  11349. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11350. # Warning - without using the other run time loading flags,
  11351. # -berok will link without error, but may produce a broken library.
  11352. no_undefined_flag_CXX=' ${wl}-bernotok'
  11353. allow_undefined_flag_CXX=' ${wl}-berok'
  11354. if test "$with_gnu_ld" = yes; then
  11355. # We only use this code for GNU lds that support --whole-archive.
  11356. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11357. else
  11358. # Exported symbols can be pulled into shared objects from archives
  11359. whole_archive_flag_spec_CXX='$convenience'
  11360. fi
  11361. archive_cmds_need_lc_CXX=yes
  11362. # This is similar to how AIX traditionally builds its shared
  11363. # libraries.
  11364. 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'
  11365. fi
  11366. fi
  11367. ;;
  11368. beos*)
  11369. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11370. allow_undefined_flag_CXX=unsupported
  11371. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11372. # support --undefined. This deserves some investigation. FIXME
  11373. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11374. else
  11375. ld_shlibs_CXX=no
  11376. fi
  11377. ;;
  11378. chorus*)
  11379. case $cc_basename in
  11380. *)
  11381. # FIXME: insert proper C++ library support
  11382. ld_shlibs_CXX=no
  11383. ;;
  11384. esac
  11385. ;;
  11386. cygwin* | mingw* | pw32* | cegcc*)
  11387. case $GXX,$cc_basename in
  11388. ,cl* | no,cl*)
  11389. # Native MSVC
  11390. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11391. # no search path for DLLs.
  11392. hardcode_libdir_flag_spec_CXX=' '
  11393. allow_undefined_flag_CXX=unsupported
  11394. always_export_symbols_CXX=yes
  11395. file_list_spec_CXX='@'
  11396. # Tell ltmain to make .lib files, not .a files.
  11397. libext=lib
  11398. # Tell ltmain to make .dll files, not .so files.
  11399. shrext_cmds=".dll"
  11400. # FIXME: Setting linknames here is a bad hack.
  11401. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11402. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11403. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11404. else
  11405. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11406. fi~
  11407. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11408. linknames='
  11409. # The linker will not automatically build a static lib if we build a DLL.
  11410. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11411. enable_shared_with_static_runtimes_CXX=yes
  11412. # Don't use ranlib
  11413. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11414. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11415. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11416. case $lt_outputfile in
  11417. *.exe|*.EXE) ;;
  11418. *)
  11419. lt_outputfile="$lt_outputfile.exe"
  11420. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11421. ;;
  11422. esac~
  11423. func_to_tool_file "$lt_outputfile"~
  11424. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11425. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11426. $RM "$lt_outputfile.manifest";
  11427. fi'
  11428. ;;
  11429. *)
  11430. # g++
  11431. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11432. # as there is no search path for DLLs.
  11433. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11434. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11435. allow_undefined_flag_CXX=unsupported
  11436. always_export_symbols_CXX=no
  11437. enable_shared_with_static_runtimes_CXX=yes
  11438. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11439. 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'
  11440. # If the export-symbols file already is a .def file (1st line
  11441. # is EXPORTS), use it as is; otherwise, prepend...
  11442. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11443. cp $export_symbols $output_objdir/$soname.def;
  11444. else
  11445. echo EXPORTS > $output_objdir/$soname.def;
  11446. cat $export_symbols >> $output_objdir/$soname.def;
  11447. fi~
  11448. $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'
  11449. else
  11450. ld_shlibs_CXX=no
  11451. fi
  11452. ;;
  11453. esac
  11454. ;;
  11455. darwin* | rhapsody*)
  11456. archive_cmds_need_lc_CXX=no
  11457. hardcode_direct_CXX=no
  11458. hardcode_automatic_CXX=yes
  11459. hardcode_shlibpath_var_CXX=unsupported
  11460. if test "$lt_cv_ld_force_load" = "yes"; then
  11461. 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\"`'
  11462. else
  11463. whole_archive_flag_spec_CXX=''
  11464. fi
  11465. link_all_deplibs_CXX=yes
  11466. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11467. case $cc_basename in
  11468. ifort*) _lt_dar_can_shared=yes ;;
  11469. *) _lt_dar_can_shared=$GCC ;;
  11470. esac
  11471. if test "$_lt_dar_can_shared" = "yes"; then
  11472. output_verbose_link_cmd=func_echo_all
  11473. 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}"
  11474. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11475. 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}"
  11476. 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}"
  11477. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11478. 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}"
  11479. 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}"
  11480. fi
  11481. else
  11482. ld_shlibs_CXX=no
  11483. fi
  11484. ;;
  11485. dgux*)
  11486. case $cc_basename in
  11487. ec++*)
  11488. # FIXME: insert proper C++ library support
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. ghcx*)
  11492. # Green Hills C++ Compiler
  11493. # FIXME: insert proper C++ library support
  11494. ld_shlibs_CXX=no
  11495. ;;
  11496. *)
  11497. # FIXME: insert proper C++ library support
  11498. ld_shlibs_CXX=no
  11499. ;;
  11500. esac
  11501. ;;
  11502. freebsd2.*)
  11503. # C++ shared libraries reported to be fairly broken before
  11504. # switch to ELF
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. freebsd-elf*)
  11508. archive_cmds_need_lc_CXX=no
  11509. ;;
  11510. freebsd* | dragonfly*)
  11511. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11512. # conventions
  11513. ld_shlibs_CXX=yes
  11514. ;;
  11515. gnu*)
  11516. ;;
  11517. haiku*)
  11518. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11519. link_all_deplibs_CXX=yes
  11520. ;;
  11521. hpux9*)
  11522. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11523. hardcode_libdir_separator_CXX=:
  11524. export_dynamic_flag_spec_CXX='${wl}-E'
  11525. hardcode_direct_CXX=yes
  11526. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11527. # but as the default
  11528. # location of the library.
  11529. case $cc_basename in
  11530. CC*)
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. ;;
  11534. aCC*)
  11535. 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'
  11536. # Commands to make compiler produce verbose output that lists
  11537. # what "hidden" libraries, object files and flags are used when
  11538. # linking a shared library.
  11539. #
  11540. # There doesn't appear to be a way to prevent this compiler from
  11541. # explicitly linking system object files so we need to strip them
  11542. # from the output so that they don't get included in the library
  11543. # dependencies.
  11544. 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"'
  11545. ;;
  11546. *)
  11547. if test "$GXX" = yes; then
  11548. 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'
  11549. else
  11550. # FIXME: insert proper C++ library support
  11551. ld_shlibs_CXX=no
  11552. fi
  11553. ;;
  11554. esac
  11555. ;;
  11556. hpux10*|hpux11*)
  11557. if test $with_gnu_ld = no; then
  11558. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11559. hardcode_libdir_separator_CXX=:
  11560. case $host_cpu in
  11561. hppa*64*|ia64*)
  11562. ;;
  11563. *)
  11564. export_dynamic_flag_spec_CXX='${wl}-E'
  11565. ;;
  11566. esac
  11567. fi
  11568. case $host_cpu in
  11569. hppa*64*|ia64*)
  11570. hardcode_direct_CXX=no
  11571. hardcode_shlibpath_var_CXX=no
  11572. ;;
  11573. *)
  11574. hardcode_direct_CXX=yes
  11575. hardcode_direct_absolute_CXX=yes
  11576. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11577. # but as the default
  11578. # location of the library.
  11579. ;;
  11580. esac
  11581. case $cc_basename in
  11582. CC*)
  11583. # FIXME: insert proper C++ library support
  11584. ld_shlibs_CXX=no
  11585. ;;
  11586. aCC*)
  11587. case $host_cpu in
  11588. hppa*64*)
  11589. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11590. ;;
  11591. ia64*)
  11592. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11593. ;;
  11594. *)
  11595. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11596. ;;
  11597. esac
  11598. # Commands to make compiler produce verbose output that lists
  11599. # what "hidden" libraries, object files and flags are used when
  11600. # linking a shared library.
  11601. #
  11602. # There doesn't appear to be a way to prevent this compiler from
  11603. # explicitly linking system object files so we need to strip them
  11604. # from the output so that they don't get included in the library
  11605. # dependencies.
  11606. 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"'
  11607. ;;
  11608. *)
  11609. if test "$GXX" = yes; then
  11610. if test $with_gnu_ld = no; then
  11611. case $host_cpu in
  11612. hppa*64*)
  11613. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. ia64*)
  11616. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11617. ;;
  11618. *)
  11619. 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'
  11620. ;;
  11621. esac
  11622. fi
  11623. else
  11624. # FIXME: insert proper C++ library support
  11625. ld_shlibs_CXX=no
  11626. fi
  11627. ;;
  11628. esac
  11629. ;;
  11630. interix[3-9]*)
  11631. hardcode_direct_CXX=no
  11632. hardcode_shlibpath_var_CXX=no
  11633. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11634. export_dynamic_flag_spec_CXX='${wl}-E'
  11635. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11636. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11637. # default) and relocated if they conflict, which is a slow very memory
  11638. # consuming and fragmenting process. To avoid this, we pick a random,
  11639. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11640. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11641. 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'
  11642. 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'
  11643. ;;
  11644. irix5* | irix6*)
  11645. case $cc_basename in
  11646. CC*)
  11647. # SGI C++
  11648. 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'
  11649. # Archives containing C++ object files must be created using
  11650. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11651. # necessary to make sure instantiated templates are included
  11652. # in the archive.
  11653. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11654. ;;
  11655. *)
  11656. if test "$GXX" = yes; then
  11657. if test "$with_gnu_ld" = no; then
  11658. 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'
  11659. else
  11660. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11661. fi
  11662. fi
  11663. link_all_deplibs_CXX=yes
  11664. ;;
  11665. esac
  11666. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11667. hardcode_libdir_separator_CXX=:
  11668. inherit_rpath_CXX=yes
  11669. ;;
  11670. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11671. case $cc_basename in
  11672. KCC*)
  11673. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11674. # KCC will only create a shared library if the output file
  11675. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11676. # to its proper name (with version) after linking.
  11677. 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'
  11678. 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'
  11679. # Commands to make compiler produce verbose output that lists
  11680. # what "hidden" libraries, object files and flags are used when
  11681. # linking a shared library.
  11682. #
  11683. # There doesn't appear to be a way to prevent this compiler from
  11684. # explicitly linking system object files so we need to strip them
  11685. # from the output so that they don't get included in the library
  11686. # dependencies.
  11687. 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"'
  11688. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11689. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11690. # Archives containing C++ object files must be created using
  11691. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11692. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11693. ;;
  11694. icpc* | ecpc* )
  11695. # Intel C++
  11696. with_gnu_ld=yes
  11697. # version 8.0 and above of icpc choke on multiply defined symbols
  11698. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11699. # earlier do not add the objects themselves.
  11700. case `$CC -V 2>&1` in
  11701. *"Version 7."*)
  11702. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11703. 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'
  11704. ;;
  11705. *) # Version 8.0 or newer
  11706. tmp_idyn=
  11707. case $host_cpu in
  11708. ia64*) tmp_idyn=' -i_dynamic';;
  11709. esac
  11710. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11711. 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'
  11712. ;;
  11713. esac
  11714. archive_cmds_need_lc_CXX=no
  11715. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11716. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11717. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11718. ;;
  11719. pgCC* | pgcpp*)
  11720. # Portland Group C++ compiler
  11721. case `$CC -V` in
  11722. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11723. prelink_cmds_CXX='tpldir=Template.dir~
  11724. rm -rf $tpldir~
  11725. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11726. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11727. old_archive_cmds_CXX='tpldir=Template.dir~
  11728. rm -rf $tpldir~
  11729. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11730. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11731. $RANLIB $oldlib'
  11732. archive_cmds_CXX='tpldir=Template.dir~
  11733. rm -rf $tpldir~
  11734. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11735. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11736. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11737. rm -rf $tpldir~
  11738. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11739. $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'
  11740. ;;
  11741. *) # Version 6 and above use weak symbols
  11742. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11743. 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'
  11744. ;;
  11745. esac
  11746. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11747. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11748. 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'
  11749. ;;
  11750. cxx*)
  11751. # Compaq C++
  11752. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11753. 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'
  11754. runpath_var=LD_RUN_PATH
  11755. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11756. hardcode_libdir_separator_CXX=:
  11757. # Commands to make compiler produce verbose output that lists
  11758. # what "hidden" libraries, object files and flags are used when
  11759. # linking a shared library.
  11760. #
  11761. # There doesn't appear to be a way to prevent this compiler from
  11762. # explicitly linking system object files so we need to strip them
  11763. # from the output so that they don't get included in the library
  11764. # dependencies.
  11765. 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'
  11766. ;;
  11767. xl* | mpixl* | bgxl*)
  11768. # IBM XL 8.0 on PPC, with GNU ld
  11769. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11770. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11771. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11772. if test "x$supports_anon_versioning" = xyes; then
  11773. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11774. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11775. echo "local: *; };" >> $output_objdir/$libname.ver~
  11776. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11777. fi
  11778. ;;
  11779. *)
  11780. case `$CC -V 2>&1 | sed 5q` in
  11781. *Sun\ C*)
  11782. # Sun C++ 5.9
  11783. no_undefined_flag_CXX=' -zdefs'
  11784. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11785. 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'
  11786. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11787. 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'
  11788. compiler_needs_object_CXX=yes
  11789. # Not sure whether something based on
  11790. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11791. # would be better.
  11792. output_verbose_link_cmd='func_echo_all'
  11793. # Archives containing C++ object files must be created using
  11794. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11795. # necessary to make sure instantiated templates are included
  11796. # in the archive.
  11797. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11798. ;;
  11799. esac
  11800. ;;
  11801. esac
  11802. ;;
  11803. lynxos*)
  11804. # FIXME: insert proper C++ library support
  11805. ld_shlibs_CXX=no
  11806. ;;
  11807. m88k*)
  11808. # FIXME: insert proper C++ library support
  11809. ld_shlibs_CXX=no
  11810. ;;
  11811. mvs*)
  11812. case $cc_basename in
  11813. cxx*)
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. ;;
  11817. *)
  11818. # FIXME: insert proper C++ library support
  11819. ld_shlibs_CXX=no
  11820. ;;
  11821. esac
  11822. ;;
  11823. netbsd*)
  11824. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11825. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11826. wlarc=
  11827. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11828. hardcode_direct_CXX=yes
  11829. hardcode_shlibpath_var_CXX=no
  11830. fi
  11831. # Workaround some broken pre-1.5 toolchains
  11832. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11833. ;;
  11834. *nto* | *qnx*)
  11835. ld_shlibs_CXX=yes
  11836. ;;
  11837. openbsd2*)
  11838. # C++ shared libraries are fairly broken
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. openbsd*)
  11842. if test -f /usr/libexec/ld.so; then
  11843. hardcode_direct_CXX=yes
  11844. hardcode_shlibpath_var_CXX=no
  11845. hardcode_direct_absolute_CXX=yes
  11846. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11847. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11848. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11849. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11850. export_dynamic_flag_spec_CXX='${wl}-E'
  11851. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11852. fi
  11853. output_verbose_link_cmd=func_echo_all
  11854. else
  11855. ld_shlibs_CXX=no
  11856. fi
  11857. ;;
  11858. osf3* | osf4* | osf5*)
  11859. case $cc_basename in
  11860. KCC*)
  11861. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11862. # KCC will only create a shared library if the output file
  11863. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11864. # to its proper name (with version) after linking.
  11865. 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'
  11866. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11867. hardcode_libdir_separator_CXX=:
  11868. # Archives containing C++ object files must be created using
  11869. # the KAI C++ compiler.
  11870. case $host in
  11871. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11872. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11873. esac
  11874. ;;
  11875. RCC*)
  11876. # Rational C++ 2.4.1
  11877. # FIXME: insert proper C++ library support
  11878. ld_shlibs_CXX=no
  11879. ;;
  11880. cxx*)
  11881. case $host in
  11882. osf3*)
  11883. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11884. 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'
  11885. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11886. ;;
  11887. *)
  11888. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11889. 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'
  11890. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11891. echo "-hidden">> $lib.exp~
  11892. $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~
  11893. $RM $lib.exp'
  11894. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11895. ;;
  11896. esac
  11897. hardcode_libdir_separator_CXX=:
  11898. # Commands to make compiler produce verbose output that lists
  11899. # what "hidden" libraries, object files and flags are used when
  11900. # linking a shared library.
  11901. #
  11902. # There doesn't appear to be a way to prevent this compiler from
  11903. # explicitly linking system object files so we need to strip them
  11904. # from the output so that they don't get included in the library
  11905. # dependencies.
  11906. 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"'
  11907. ;;
  11908. *)
  11909. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11910. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11911. case $host in
  11912. osf3*)
  11913. 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'
  11914. ;;
  11915. *)
  11916. 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'
  11917. ;;
  11918. esac
  11919. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11920. hardcode_libdir_separator_CXX=:
  11921. # Commands to make compiler produce verbose output that lists
  11922. # what "hidden" libraries, object files and flags are used when
  11923. # linking a shared library.
  11924. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11925. else
  11926. # FIXME: insert proper C++ library support
  11927. ld_shlibs_CXX=no
  11928. fi
  11929. ;;
  11930. esac
  11931. ;;
  11932. psos*)
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. sunos4*)
  11937. case $cc_basename in
  11938. CC*)
  11939. # Sun C++ 4.x
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. ;;
  11943. lcc*)
  11944. # Lucid
  11945. # FIXME: insert proper C++ library support
  11946. ld_shlibs_CXX=no
  11947. ;;
  11948. *)
  11949. # FIXME: insert proper C++ library support
  11950. ld_shlibs_CXX=no
  11951. ;;
  11952. esac
  11953. ;;
  11954. solaris*)
  11955. case $cc_basename in
  11956. CC* | sunCC*)
  11957. # Sun C++ 4.2, 5.x and Centerline C++
  11958. archive_cmds_need_lc_CXX=yes
  11959. no_undefined_flag_CXX=' -zdefs'
  11960. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11961. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11962. $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'
  11963. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11964. hardcode_shlibpath_var_CXX=no
  11965. case $host_os in
  11966. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11967. *)
  11968. # The compiler driver will combine and reorder linker options,
  11969. # but understands `-z linker_flag'.
  11970. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11971. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11972. ;;
  11973. esac
  11974. link_all_deplibs_CXX=yes
  11975. output_verbose_link_cmd='func_echo_all'
  11976. # Archives containing C++ object files must be created using
  11977. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11978. # necessary to make sure instantiated templates are included
  11979. # in the archive.
  11980. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11981. ;;
  11982. gcx*)
  11983. # Green Hills C++ Compiler
  11984. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11985. # The C++ compiler must be used to create the archive.
  11986. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11987. ;;
  11988. *)
  11989. # GNU C++ compiler with Solaris linker
  11990. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11991. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11992. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11993. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11994. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11995. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11996. # Commands to make compiler produce verbose output that lists
  11997. # what "hidden" libraries, object files and flags are used when
  11998. # linking a shared library.
  11999. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12000. else
  12001. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12002. # platform.
  12003. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12004. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12005. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12006. # Commands to make compiler produce verbose output that lists
  12007. # what "hidden" libraries, object files and flags are used when
  12008. # linking a shared library.
  12009. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12010. fi
  12011. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12012. case $host_os in
  12013. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12014. *)
  12015. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12016. ;;
  12017. esac
  12018. fi
  12019. ;;
  12020. esac
  12021. ;;
  12022. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12023. no_undefined_flag_CXX='${wl}-z,text'
  12024. archive_cmds_need_lc_CXX=no
  12025. hardcode_shlibpath_var_CXX=no
  12026. runpath_var='LD_RUN_PATH'
  12027. case $cc_basename in
  12028. CC*)
  12029. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12030. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12031. ;;
  12032. *)
  12033. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12034. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12035. ;;
  12036. esac
  12037. ;;
  12038. sysv5* | sco3.2v5* | sco5v6*)
  12039. # Note: We can NOT use -z defs as we might desire, because we do not
  12040. # link with -lc, and that would cause any symbols used from libc to
  12041. # always be unresolved, which means just about no library would
  12042. # ever link correctly. If we're not using GNU ld we use -z text
  12043. # though, which does catch some bad symbols but isn't as heavy-handed
  12044. # as -z defs.
  12045. no_undefined_flag_CXX='${wl}-z,text'
  12046. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12047. archive_cmds_need_lc_CXX=no
  12048. hardcode_shlibpath_var_CXX=no
  12049. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12050. hardcode_libdir_separator_CXX=':'
  12051. link_all_deplibs_CXX=yes
  12052. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12053. runpath_var='LD_RUN_PATH'
  12054. case $cc_basename in
  12055. CC*)
  12056. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12057. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12058. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12059. '"$old_archive_cmds_CXX"
  12060. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12061. '"$reload_cmds_CXX"
  12062. ;;
  12063. *)
  12064. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12065. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12066. ;;
  12067. esac
  12068. ;;
  12069. tandem*)
  12070. case $cc_basename in
  12071. NCC*)
  12072. # NonStop-UX NCC 3.20
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. *)
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. ;;
  12080. esac
  12081. ;;
  12082. vxworks*)
  12083. # FIXME: insert proper C++ library support
  12084. ld_shlibs_CXX=no
  12085. ;;
  12086. *)
  12087. # FIXME: insert proper C++ library support
  12088. ld_shlibs_CXX=no
  12089. ;;
  12090. esac
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12092. $as_echo "$ld_shlibs_CXX" >&6; }
  12093. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12094. GCC_CXX="$GXX"
  12095. LD_CXX="$LD"
  12096. ## CAVEAT EMPTOR:
  12097. ## There is no encapsulation within the following macros, do not change
  12098. ## the running order or otherwise move them around unless you know exactly
  12099. ## what you are doing...
  12100. # Dependencies to place before and after the object being linked:
  12101. predep_objects_CXX=
  12102. postdep_objects_CXX=
  12103. predeps_CXX=
  12104. postdeps_CXX=
  12105. compiler_lib_search_path_CXX=
  12106. cat > conftest.$ac_ext <<_LT_EOF
  12107. class Foo
  12108. {
  12109. public:
  12110. Foo (void) { a = 0; }
  12111. private:
  12112. int a;
  12113. };
  12114. _LT_EOF
  12115. _lt_libdeps_save_CFLAGS=$CFLAGS
  12116. case "$CC $CFLAGS " in #(
  12117. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12118. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12119. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12120. esac
  12121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12122. (eval $ac_compile) 2>&5
  12123. ac_status=$?
  12124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12125. test $ac_status = 0; }; then
  12126. # Parse the compiler output and extract the necessary
  12127. # objects, libraries and library flags.
  12128. # Sentinel used to keep track of whether or not we are before
  12129. # the conftest object file.
  12130. pre_test_object_deps_done=no
  12131. for p in `eval "$output_verbose_link_cmd"`; do
  12132. case ${prev}${p} in
  12133. -L* | -R* | -l*)
  12134. # Some compilers place space between "-{L,R}" and the path.
  12135. # Remove the space.
  12136. if test $p = "-L" ||
  12137. test $p = "-R"; then
  12138. prev=$p
  12139. continue
  12140. fi
  12141. # Expand the sysroot to ease extracting the directories later.
  12142. if test -z "$prev"; then
  12143. case $p in
  12144. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12145. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12146. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12147. esac
  12148. fi
  12149. case $p in
  12150. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12151. esac
  12152. if test "$pre_test_object_deps_done" = no; then
  12153. case ${prev} in
  12154. -L | -R)
  12155. # Internal compiler library paths should come after those
  12156. # provided the user. The postdeps already come after the
  12157. # user supplied libs so there is no need to process them.
  12158. if test -z "$compiler_lib_search_path_CXX"; then
  12159. compiler_lib_search_path_CXX="${prev}${p}"
  12160. else
  12161. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12162. fi
  12163. ;;
  12164. # The "-l" case would never come before the object being
  12165. # linked, so don't bother handling this case.
  12166. esac
  12167. else
  12168. if test -z "$postdeps_CXX"; then
  12169. postdeps_CXX="${prev}${p}"
  12170. else
  12171. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12172. fi
  12173. fi
  12174. prev=
  12175. ;;
  12176. *.lto.$objext) ;; # Ignore GCC LTO objects
  12177. *.$objext)
  12178. # This assumes that the test object file only shows up
  12179. # once in the compiler output.
  12180. if test "$p" = "conftest.$objext"; then
  12181. pre_test_object_deps_done=yes
  12182. continue
  12183. fi
  12184. if test "$pre_test_object_deps_done" = no; then
  12185. if test -z "$predep_objects_CXX"; then
  12186. predep_objects_CXX="$p"
  12187. else
  12188. predep_objects_CXX="$predep_objects_CXX $p"
  12189. fi
  12190. else
  12191. if test -z "$postdep_objects_CXX"; then
  12192. postdep_objects_CXX="$p"
  12193. else
  12194. postdep_objects_CXX="$postdep_objects_CXX $p"
  12195. fi
  12196. fi
  12197. ;;
  12198. *) ;; # Ignore the rest.
  12199. esac
  12200. done
  12201. # Clean up.
  12202. rm -f a.out a.exe
  12203. else
  12204. echo "libtool.m4: error: problem compiling CXX test program"
  12205. fi
  12206. $RM -f confest.$objext
  12207. CFLAGS=$_lt_libdeps_save_CFLAGS
  12208. # PORTME: override above test on systems where it is broken
  12209. case $host_os in
  12210. interix[3-9]*)
  12211. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12212. # hack all around it, let's just trust "g++" to DTRT.
  12213. predep_objects_CXX=
  12214. postdep_objects_CXX=
  12215. postdeps_CXX=
  12216. ;;
  12217. linux*)
  12218. case `$CC -V 2>&1 | sed 5q` in
  12219. *Sun\ C*)
  12220. # Sun C++ 5.9
  12221. # The more standards-conforming stlport4 library is
  12222. # incompatible with the Cstd library. Avoid specifying
  12223. # it if it's in CXXFLAGS. Ignore libCrun as
  12224. # -library=stlport4 depends on it.
  12225. case " $CXX $CXXFLAGS " in
  12226. *" -library=stlport4 "*)
  12227. solaris_use_stlport4=yes
  12228. ;;
  12229. esac
  12230. if test "$solaris_use_stlport4" != yes; then
  12231. postdeps_CXX='-library=Cstd -library=Crun'
  12232. fi
  12233. ;;
  12234. esac
  12235. ;;
  12236. solaris*)
  12237. case $cc_basename in
  12238. CC* | sunCC*)
  12239. # The more standards-conforming stlport4 library is
  12240. # incompatible with the Cstd library. Avoid specifying
  12241. # it if it's in CXXFLAGS. Ignore libCrun as
  12242. # -library=stlport4 depends on it.
  12243. case " $CXX $CXXFLAGS " in
  12244. *" -library=stlport4 "*)
  12245. solaris_use_stlport4=yes
  12246. ;;
  12247. esac
  12248. # Adding this requires a known-good setup of shared libraries for
  12249. # Sun compiler versions before 5.6, else PIC objects from an old
  12250. # archive will be linked into the output, leading to subtle bugs.
  12251. if test "$solaris_use_stlport4" != yes; then
  12252. postdeps_CXX='-library=Cstd -library=Crun'
  12253. fi
  12254. ;;
  12255. esac
  12256. ;;
  12257. esac
  12258. case " $postdeps_CXX " in
  12259. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12260. esac
  12261. compiler_lib_search_dirs_CXX=
  12262. if test -n "${compiler_lib_search_path_CXX}"; then
  12263. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12264. fi
  12265. lt_prog_compiler_wl_CXX=
  12266. lt_prog_compiler_pic_CXX=
  12267. lt_prog_compiler_static_CXX=
  12268. # C++ specific cases for pic, static, wl, etc.
  12269. if test "$GXX" = yes; then
  12270. lt_prog_compiler_wl_CXX='-Wl,'
  12271. lt_prog_compiler_static_CXX='-static'
  12272. case $host_os in
  12273. aix*)
  12274. # All AIX code is PIC.
  12275. if test "$host_cpu" = ia64; then
  12276. # AIX 5 now supports IA64 processor
  12277. lt_prog_compiler_static_CXX='-Bstatic'
  12278. fi
  12279. ;;
  12280. amigaos*)
  12281. case $host_cpu in
  12282. powerpc)
  12283. # see comment about AmigaOS4 .so support
  12284. lt_prog_compiler_pic_CXX='-fPIC'
  12285. ;;
  12286. m68k)
  12287. # FIXME: we need at least 68020 code to build shared libraries, but
  12288. # adding the `-m68020' flag to GCC prevents building anything better,
  12289. # like `-m68040'.
  12290. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12291. ;;
  12292. esac
  12293. ;;
  12294. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12295. # PIC is the default for these OSes.
  12296. ;;
  12297. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12298. # This hack is so that the source file can tell whether it is being
  12299. # built for inclusion in a dll (and should export symbols for example).
  12300. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12301. # (--disable-auto-import) libraries
  12302. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12303. ;;
  12304. darwin* | rhapsody*)
  12305. # PIC is the default on this platform
  12306. # Common symbols not allowed in MH_DYLIB files
  12307. lt_prog_compiler_pic_CXX='-fno-common'
  12308. ;;
  12309. *djgpp*)
  12310. # DJGPP does not support shared libraries at all
  12311. lt_prog_compiler_pic_CXX=
  12312. ;;
  12313. haiku*)
  12314. # PIC is the default for Haiku.
  12315. # The "-static" flag exists, but is broken.
  12316. lt_prog_compiler_static_CXX=
  12317. ;;
  12318. interix[3-9]*)
  12319. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12320. # Instead, we relocate shared libraries at runtime.
  12321. ;;
  12322. sysv4*MP*)
  12323. if test -d /usr/nec; then
  12324. lt_prog_compiler_pic_CXX=-Kconform_pic
  12325. fi
  12326. ;;
  12327. hpux*)
  12328. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12329. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12330. # sets the default TLS model and affects inlining.
  12331. case $host_cpu in
  12332. hppa*64*)
  12333. ;;
  12334. *)
  12335. lt_prog_compiler_pic_CXX='-fPIC'
  12336. ;;
  12337. esac
  12338. ;;
  12339. *qnx* | *nto*)
  12340. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12341. # it will coredump.
  12342. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12343. ;;
  12344. *)
  12345. lt_prog_compiler_pic_CXX='-fPIC'
  12346. ;;
  12347. esac
  12348. else
  12349. case $host_os in
  12350. aix[4-9]*)
  12351. # All AIX code is PIC.
  12352. if test "$host_cpu" = ia64; then
  12353. # AIX 5 now supports IA64 processor
  12354. lt_prog_compiler_static_CXX='-Bstatic'
  12355. else
  12356. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12357. fi
  12358. ;;
  12359. chorus*)
  12360. case $cc_basename in
  12361. cxch68*)
  12362. # Green Hills C++ Compiler
  12363. # _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"
  12364. ;;
  12365. esac
  12366. ;;
  12367. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12368. # This hack is so that the source file can tell whether it is being
  12369. # built for inclusion in a dll (and should export symbols for example).
  12370. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12371. ;;
  12372. dgux*)
  12373. case $cc_basename in
  12374. ec++*)
  12375. lt_prog_compiler_pic_CXX='-KPIC'
  12376. ;;
  12377. ghcx*)
  12378. # Green Hills C++ Compiler
  12379. lt_prog_compiler_pic_CXX='-pic'
  12380. ;;
  12381. *)
  12382. ;;
  12383. esac
  12384. ;;
  12385. freebsd* | dragonfly*)
  12386. # FreeBSD uses GNU C++
  12387. ;;
  12388. hpux9* | hpux10* | hpux11*)
  12389. case $cc_basename in
  12390. CC*)
  12391. lt_prog_compiler_wl_CXX='-Wl,'
  12392. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12393. if test "$host_cpu" != ia64; then
  12394. lt_prog_compiler_pic_CXX='+Z'
  12395. fi
  12396. ;;
  12397. aCC*)
  12398. lt_prog_compiler_wl_CXX='-Wl,'
  12399. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12400. case $host_cpu in
  12401. hppa*64*|ia64*)
  12402. # +Z the default
  12403. ;;
  12404. *)
  12405. lt_prog_compiler_pic_CXX='+Z'
  12406. ;;
  12407. esac
  12408. ;;
  12409. *)
  12410. ;;
  12411. esac
  12412. ;;
  12413. interix*)
  12414. # This is c89, which is MS Visual C++ (no shared libs)
  12415. # Anyone wants to do a port?
  12416. ;;
  12417. irix5* | irix6* | nonstopux*)
  12418. case $cc_basename in
  12419. CC*)
  12420. lt_prog_compiler_wl_CXX='-Wl,'
  12421. lt_prog_compiler_static_CXX='-non_shared'
  12422. # CC pic flag -KPIC is the default.
  12423. ;;
  12424. *)
  12425. ;;
  12426. esac
  12427. ;;
  12428. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12429. case $cc_basename in
  12430. KCC*)
  12431. # KAI C++ Compiler
  12432. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12433. lt_prog_compiler_pic_CXX='-fPIC'
  12434. ;;
  12435. ecpc* )
  12436. # old Intel C++ for x86_64 which still supported -KPIC.
  12437. lt_prog_compiler_wl_CXX='-Wl,'
  12438. lt_prog_compiler_pic_CXX='-KPIC'
  12439. lt_prog_compiler_static_CXX='-static'
  12440. ;;
  12441. icpc* )
  12442. # Intel C++, used to be incompatible with GCC.
  12443. # ICC 10 doesn't accept -KPIC any more.
  12444. lt_prog_compiler_wl_CXX='-Wl,'
  12445. lt_prog_compiler_pic_CXX='-fPIC'
  12446. lt_prog_compiler_static_CXX='-static'
  12447. ;;
  12448. pgCC* | pgcpp*)
  12449. # Portland Group C++ compiler
  12450. lt_prog_compiler_wl_CXX='-Wl,'
  12451. lt_prog_compiler_pic_CXX='-fpic'
  12452. lt_prog_compiler_static_CXX='-Bstatic'
  12453. ;;
  12454. cxx*)
  12455. # Compaq C++
  12456. # Make sure the PIC flag is empty. It appears that all Alpha
  12457. # Linux and Compaq Tru64 Unix objects are PIC.
  12458. lt_prog_compiler_pic_CXX=
  12459. lt_prog_compiler_static_CXX='-non_shared'
  12460. ;;
  12461. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12462. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12463. lt_prog_compiler_wl_CXX='-Wl,'
  12464. lt_prog_compiler_pic_CXX='-qpic'
  12465. lt_prog_compiler_static_CXX='-qstaticlink'
  12466. ;;
  12467. *)
  12468. case `$CC -V 2>&1 | sed 5q` in
  12469. *Sun\ C*)
  12470. # Sun C++ 5.9
  12471. lt_prog_compiler_pic_CXX='-KPIC'
  12472. lt_prog_compiler_static_CXX='-Bstatic'
  12473. lt_prog_compiler_wl_CXX='-Qoption ld '
  12474. ;;
  12475. esac
  12476. ;;
  12477. esac
  12478. ;;
  12479. lynxos*)
  12480. ;;
  12481. m88k*)
  12482. ;;
  12483. mvs*)
  12484. case $cc_basename in
  12485. cxx*)
  12486. lt_prog_compiler_pic_CXX='-W c,exportall'
  12487. ;;
  12488. *)
  12489. ;;
  12490. esac
  12491. ;;
  12492. netbsd*)
  12493. ;;
  12494. *qnx* | *nto*)
  12495. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12496. # it will coredump.
  12497. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12498. ;;
  12499. osf3* | osf4* | osf5*)
  12500. case $cc_basename in
  12501. KCC*)
  12502. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12503. ;;
  12504. RCC*)
  12505. # Rational C++ 2.4.1
  12506. lt_prog_compiler_pic_CXX='-pic'
  12507. ;;
  12508. cxx*)
  12509. # Digital/Compaq C++
  12510. lt_prog_compiler_wl_CXX='-Wl,'
  12511. # Make sure the PIC flag is empty. It appears that all Alpha
  12512. # Linux and Compaq Tru64 Unix objects are PIC.
  12513. lt_prog_compiler_pic_CXX=
  12514. lt_prog_compiler_static_CXX='-non_shared'
  12515. ;;
  12516. *)
  12517. ;;
  12518. esac
  12519. ;;
  12520. psos*)
  12521. ;;
  12522. solaris*)
  12523. case $cc_basename in
  12524. CC* | sunCC*)
  12525. # Sun C++ 4.2, 5.x and Centerline C++
  12526. lt_prog_compiler_pic_CXX='-KPIC'
  12527. lt_prog_compiler_static_CXX='-Bstatic'
  12528. lt_prog_compiler_wl_CXX='-Qoption ld '
  12529. ;;
  12530. gcx*)
  12531. # Green Hills C++ Compiler
  12532. lt_prog_compiler_pic_CXX='-PIC'
  12533. ;;
  12534. *)
  12535. ;;
  12536. esac
  12537. ;;
  12538. sunos4*)
  12539. case $cc_basename in
  12540. CC*)
  12541. # Sun C++ 4.x
  12542. lt_prog_compiler_pic_CXX='-pic'
  12543. lt_prog_compiler_static_CXX='-Bstatic'
  12544. ;;
  12545. lcc*)
  12546. # Lucid
  12547. lt_prog_compiler_pic_CXX='-pic'
  12548. ;;
  12549. *)
  12550. ;;
  12551. esac
  12552. ;;
  12553. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12554. case $cc_basename in
  12555. CC*)
  12556. lt_prog_compiler_wl_CXX='-Wl,'
  12557. lt_prog_compiler_pic_CXX='-KPIC'
  12558. lt_prog_compiler_static_CXX='-Bstatic'
  12559. ;;
  12560. esac
  12561. ;;
  12562. tandem*)
  12563. case $cc_basename in
  12564. NCC*)
  12565. # NonStop-UX NCC 3.20
  12566. lt_prog_compiler_pic_CXX='-KPIC'
  12567. ;;
  12568. *)
  12569. ;;
  12570. esac
  12571. ;;
  12572. vxworks*)
  12573. ;;
  12574. *)
  12575. lt_prog_compiler_can_build_shared_CXX=no
  12576. ;;
  12577. esac
  12578. fi
  12579. case $host_os in
  12580. # For platforms which do not support PIC, -DPIC is meaningless:
  12581. *djgpp*)
  12582. lt_prog_compiler_pic_CXX=
  12583. ;;
  12584. *)
  12585. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12586. ;;
  12587. esac
  12588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12589. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12590. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12591. $as_echo_n "(cached) " >&6
  12592. else
  12593. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12594. fi
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12596. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12597. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12598. #
  12599. # Check to make sure the PIC flag actually works.
  12600. #
  12601. if test -n "$lt_prog_compiler_pic_CXX"; then
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12603. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12604. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12605. $as_echo_n "(cached) " >&6
  12606. else
  12607. lt_cv_prog_compiler_pic_works_CXX=no
  12608. ac_outfile=conftest.$ac_objext
  12609. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12610. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12611. # Insert the option either (1) after the last *FLAGS variable, or
  12612. # (2) before a word containing "conftest.", or (3) at the end.
  12613. # Note that $ac_compile itself does not contain backslashes and begins
  12614. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12615. # The option is referenced via a variable to avoid confusing sed.
  12616. lt_compile=`echo "$ac_compile" | $SED \
  12617. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12618. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12619. -e 's:$: $lt_compiler_flag:'`
  12620. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12621. (eval "$lt_compile" 2>conftest.err)
  12622. ac_status=$?
  12623. cat conftest.err >&5
  12624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12625. if (exit $ac_status) && test -s "$ac_outfile"; then
  12626. # The compiler can only warn and ignore the option if not recognized
  12627. # So say no if there are warnings other than the usual output.
  12628. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12629. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12630. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12631. lt_cv_prog_compiler_pic_works_CXX=yes
  12632. fi
  12633. fi
  12634. $RM conftest*
  12635. fi
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12637. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12638. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12639. case $lt_prog_compiler_pic_CXX in
  12640. "" | " "*) ;;
  12641. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12642. esac
  12643. else
  12644. lt_prog_compiler_pic_CXX=
  12645. lt_prog_compiler_can_build_shared_CXX=no
  12646. fi
  12647. fi
  12648. #
  12649. # Check to make sure the static flag actually works.
  12650. #
  12651. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12653. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12654. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. lt_cv_prog_compiler_static_works_CXX=no
  12658. save_LDFLAGS="$LDFLAGS"
  12659. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12660. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12661. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12662. # The linker can only warn and ignore the option if not recognized
  12663. # So say no if there are warnings
  12664. if test -s conftest.err; then
  12665. # Append any errors to the config.log.
  12666. cat conftest.err 1>&5
  12667. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12668. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12669. if diff conftest.exp conftest.er2 >/dev/null; then
  12670. lt_cv_prog_compiler_static_works_CXX=yes
  12671. fi
  12672. else
  12673. lt_cv_prog_compiler_static_works_CXX=yes
  12674. fi
  12675. fi
  12676. $RM -r conftest*
  12677. LDFLAGS="$save_LDFLAGS"
  12678. fi
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12680. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12681. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12682. :
  12683. else
  12684. lt_prog_compiler_static_CXX=
  12685. fi
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12687. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12688. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12689. $as_echo_n "(cached) " >&6
  12690. else
  12691. lt_cv_prog_compiler_c_o_CXX=no
  12692. $RM -r conftest 2>/dev/null
  12693. mkdir conftest
  12694. cd conftest
  12695. mkdir out
  12696. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12697. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12698. # Insert the option either (1) after the last *FLAGS variable, or
  12699. # (2) before a word containing "conftest.", or (3) at the end.
  12700. # Note that $ac_compile itself does not contain backslashes and begins
  12701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12702. lt_compile=`echo "$ac_compile" | $SED \
  12703. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12704. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12705. -e 's:$: $lt_compiler_flag:'`
  12706. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12707. (eval "$lt_compile" 2>out/conftest.err)
  12708. ac_status=$?
  12709. cat out/conftest.err >&5
  12710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12711. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12712. then
  12713. # The compiler can only warn and ignore the option if not recognized
  12714. # So say no if there are warnings
  12715. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12716. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12717. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12718. lt_cv_prog_compiler_c_o_CXX=yes
  12719. fi
  12720. fi
  12721. chmod u+w . 2>&5
  12722. $RM conftest*
  12723. # SGI C++ compiler will create directory out/ii_files/ for
  12724. # template instantiation
  12725. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12726. $RM out/* && rmdir out
  12727. cd ..
  12728. $RM -r conftest
  12729. $RM conftest*
  12730. fi
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12732. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12734. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12735. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12736. $as_echo_n "(cached) " >&6
  12737. else
  12738. lt_cv_prog_compiler_c_o_CXX=no
  12739. $RM -r conftest 2>/dev/null
  12740. mkdir conftest
  12741. cd conftest
  12742. mkdir out
  12743. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12744. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12745. # Insert the option either (1) after the last *FLAGS variable, or
  12746. # (2) before a word containing "conftest.", or (3) at the end.
  12747. # Note that $ac_compile itself does not contain backslashes and begins
  12748. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12749. lt_compile=`echo "$ac_compile" | $SED \
  12750. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12751. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12752. -e 's:$: $lt_compiler_flag:'`
  12753. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12754. (eval "$lt_compile" 2>out/conftest.err)
  12755. ac_status=$?
  12756. cat out/conftest.err >&5
  12757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12758. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12759. then
  12760. # The compiler can only warn and ignore the option if not recognized
  12761. # So say no if there are warnings
  12762. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12763. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12764. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12765. lt_cv_prog_compiler_c_o_CXX=yes
  12766. fi
  12767. fi
  12768. chmod u+w . 2>&5
  12769. $RM conftest*
  12770. # SGI C++ compiler will create directory out/ii_files/ for
  12771. # template instantiation
  12772. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12773. $RM out/* && rmdir out
  12774. cd ..
  12775. $RM -r conftest
  12776. $RM conftest*
  12777. fi
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12779. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12780. hard_links="nottested"
  12781. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12782. # do not overwrite the value of need_locks provided by the user
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12784. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12785. hard_links=yes
  12786. $RM conftest*
  12787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12788. touch conftest.a
  12789. ln conftest.a conftest.b 2>&5 || hard_links=no
  12790. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12792. $as_echo "$hard_links" >&6; }
  12793. if test "$hard_links" = no; then
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12795. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12796. need_locks=warn
  12797. fi
  12798. else
  12799. need_locks=no
  12800. fi
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12802. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12803. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12804. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12805. case $host_os in
  12806. aix[4-9]*)
  12807. # If we're using GNU nm, then we don't want the "-C" option.
  12808. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12809. # Also, AIX nm treats weak defined symbols like other global defined
  12810. # symbols, whereas GNU nm marks them as "W".
  12811. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12812. 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'
  12813. else
  12814. 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'
  12815. fi
  12816. ;;
  12817. pw32*)
  12818. export_symbols_cmds_CXX="$ltdll_cmds"
  12819. ;;
  12820. cygwin* | mingw* | cegcc*)
  12821. case $cc_basename in
  12822. cl*)
  12823. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12824. ;;
  12825. *)
  12826. 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'
  12827. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12828. ;;
  12829. esac
  12830. ;;
  12831. *)
  12832. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12833. ;;
  12834. esac
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12836. $as_echo "$ld_shlibs_CXX" >&6; }
  12837. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12838. with_gnu_ld_CXX=$with_gnu_ld
  12839. #
  12840. # Do we need to explicitly link libc?
  12841. #
  12842. case "x$archive_cmds_need_lc_CXX" in
  12843. x|xyes)
  12844. # Assume -lc should be added
  12845. archive_cmds_need_lc_CXX=yes
  12846. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12847. case $archive_cmds_CXX in
  12848. *'~'*)
  12849. # FIXME: we may have to deal with multi-command sequences.
  12850. ;;
  12851. '$CC '*)
  12852. # Test whether the compiler implicitly links with -lc since on some
  12853. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12854. # to ld, don't add -lc before -lgcc.
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12856. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12857. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12858. $as_echo_n "(cached) " >&6
  12859. else
  12860. $RM conftest*
  12861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12863. (eval $ac_compile) 2>&5
  12864. ac_status=$?
  12865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12866. test $ac_status = 0; } 2>conftest.err; then
  12867. soname=conftest
  12868. lib=conftest
  12869. libobjs=conftest.$ac_objext
  12870. deplibs=
  12871. wl=$lt_prog_compiler_wl_CXX
  12872. pic_flag=$lt_prog_compiler_pic_CXX
  12873. compiler_flags=-v
  12874. linker_flags=-v
  12875. verstring=
  12876. output_objdir=.
  12877. libname=conftest
  12878. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12879. allow_undefined_flag_CXX=
  12880. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12881. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12882. ac_status=$?
  12883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12884. test $ac_status = 0; }
  12885. then
  12886. lt_cv_archive_cmds_need_lc_CXX=no
  12887. else
  12888. lt_cv_archive_cmds_need_lc_CXX=yes
  12889. fi
  12890. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12891. else
  12892. cat conftest.err 1>&5
  12893. fi
  12894. $RM conftest*
  12895. fi
  12896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12897. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12898. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12899. ;;
  12900. esac
  12901. fi
  12902. ;;
  12903. esac
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12905. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12906. library_names_spec=
  12907. libname_spec='lib$name'
  12908. soname_spec=
  12909. shrext_cmds=".so"
  12910. postinstall_cmds=
  12911. postuninstall_cmds=
  12912. finish_cmds=
  12913. finish_eval=
  12914. shlibpath_var=
  12915. shlibpath_overrides_runpath=unknown
  12916. version_type=none
  12917. dynamic_linker="$host_os ld.so"
  12918. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12919. need_lib_prefix=unknown
  12920. hardcode_into_libs=no
  12921. # when you set need_version to no, make sure it does not cause -set_version
  12922. # flags to be left without arguments
  12923. need_version=unknown
  12924. case $host_os in
  12925. aix3*)
  12926. version_type=linux # correct to gnu/linux during the next big refactor
  12927. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12928. shlibpath_var=LIBPATH
  12929. # AIX 3 has no versioning support, so we append a major version to the name.
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. ;;
  12932. aix[4-9]*)
  12933. version_type=linux # correct to gnu/linux during the next big refactor
  12934. need_lib_prefix=no
  12935. need_version=no
  12936. hardcode_into_libs=yes
  12937. if test "$host_cpu" = ia64; then
  12938. # AIX 5 supports IA64
  12939. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12940. shlibpath_var=LD_LIBRARY_PATH
  12941. else
  12942. # With GCC up to 2.95.x, collect2 would create an import file
  12943. # for dependence libraries. The import file would start with
  12944. # the line `#! .'. This would cause the generated library to
  12945. # depend on `.', always an invalid library. This was fixed in
  12946. # development snapshots of GCC prior to 3.0.
  12947. case $host_os in
  12948. aix4 | aix4.[01] | aix4.[01].*)
  12949. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12950. echo ' yes '
  12951. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12952. :
  12953. else
  12954. can_build_shared=no
  12955. fi
  12956. ;;
  12957. esac
  12958. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12959. # soname into executable. Probably we can add versioning support to
  12960. # collect2, so additional links can be useful in future.
  12961. if test "$aix_use_runtimelinking" = yes; then
  12962. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12963. # instead of lib<name>.a to let people know that these are not
  12964. # typical AIX shared libraries.
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12966. else
  12967. # We preserve .a as extension for shared libraries through AIX4.2
  12968. # and later when we are not doing run time linking.
  12969. library_names_spec='${libname}${release}.a $libname.a'
  12970. soname_spec='${libname}${release}${shared_ext}$major'
  12971. fi
  12972. shlibpath_var=LIBPATH
  12973. fi
  12974. ;;
  12975. amigaos*)
  12976. case $host_cpu in
  12977. powerpc)
  12978. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12979. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12981. ;;
  12982. m68k)
  12983. library_names_spec='$libname.ixlibrary $libname.a'
  12984. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12985. 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'
  12986. ;;
  12987. esac
  12988. ;;
  12989. beos*)
  12990. library_names_spec='${libname}${shared_ext}'
  12991. dynamic_linker="$host_os ld.so"
  12992. shlibpath_var=LIBRARY_PATH
  12993. ;;
  12994. bsdi[45]*)
  12995. version_type=linux # correct to gnu/linux during the next big refactor
  12996. need_version=no
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13000. shlibpath_var=LD_LIBRARY_PATH
  13001. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13002. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13003. # the default ld.so.conf also contains /usr/contrib/lib and
  13004. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13005. # libtool to hard-code these into programs
  13006. ;;
  13007. cygwin* | mingw* | pw32* | cegcc*)
  13008. version_type=windows
  13009. shrext_cmds=".dll"
  13010. need_version=no
  13011. need_lib_prefix=no
  13012. case $GCC,$cc_basename in
  13013. yes,*)
  13014. # gcc
  13015. library_names_spec='$libname.dll.a'
  13016. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13017. postinstall_cmds='base_file=`basename \${file}`~
  13018. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13019. dldir=$destdir/`dirname \$dlpath`~
  13020. test -d \$dldir || mkdir -p \$dldir~
  13021. $install_prog $dir/$dlname \$dldir/$dlname~
  13022. chmod a+x \$dldir/$dlname~
  13023. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13024. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13025. fi'
  13026. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13027. dlpath=$dir/\$dldll~
  13028. $RM \$dlpath'
  13029. shlibpath_overrides_runpath=yes
  13030. case $host_os in
  13031. cygwin*)
  13032. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13033. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13034. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13035. ;;
  13036. mingw* | cegcc*)
  13037. # MinGW DLLs use traditional 'lib' prefix
  13038. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13039. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13040. ;;
  13041. pw32*)
  13042. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13043. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13044. ;;
  13045. esac
  13046. dynamic_linker='Win32 ld.exe'
  13047. ;;
  13048. *,cl*)
  13049. # Native MSVC
  13050. libname_spec='$name'
  13051. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13052. library_names_spec='${libname}.dll.lib'
  13053. case $build_os in
  13054. mingw*)
  13055. sys_lib_search_path_spec=
  13056. lt_save_ifs=$IFS
  13057. IFS=';'
  13058. for lt_path in $LIB
  13059. do
  13060. IFS=$lt_save_ifs
  13061. # Let DOS variable expansion print the short 8.3 style file name.
  13062. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13063. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13064. done
  13065. IFS=$lt_save_ifs
  13066. # Convert to MSYS style.
  13067. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13068. ;;
  13069. cygwin*)
  13070. # Convert to unix form, then to dos form, then back to unix form
  13071. # but this time dos style (no spaces!) so that the unix form looks
  13072. # like /cygdrive/c/PROGRA~1:/cygdr...
  13073. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13074. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13075. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13076. ;;
  13077. *)
  13078. sys_lib_search_path_spec="$LIB"
  13079. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13080. # It is most probably a Windows format PATH.
  13081. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13082. else
  13083. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13084. fi
  13085. # FIXME: find the short name or the path components, as spaces are
  13086. # common. (e.g. "Program Files" -> "PROGRA~1")
  13087. ;;
  13088. esac
  13089. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13090. postinstall_cmds='base_file=`basename \${file}`~
  13091. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13092. dldir=$destdir/`dirname \$dlpath`~
  13093. test -d \$dldir || mkdir -p \$dldir~
  13094. $install_prog $dir/$dlname \$dldir/$dlname'
  13095. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13096. dlpath=$dir/\$dldll~
  13097. $RM \$dlpath'
  13098. shlibpath_overrides_runpath=yes
  13099. dynamic_linker='Win32 link.exe'
  13100. ;;
  13101. *)
  13102. # Assume MSVC wrapper
  13103. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13104. dynamic_linker='Win32 ld.exe'
  13105. ;;
  13106. esac
  13107. # FIXME: first we should search . and the directory the executable is in
  13108. shlibpath_var=PATH
  13109. ;;
  13110. darwin* | rhapsody*)
  13111. dynamic_linker="$host_os dyld"
  13112. version_type=darwin
  13113. need_lib_prefix=no
  13114. need_version=no
  13115. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13116. soname_spec='${libname}${release}${major}$shared_ext'
  13117. shlibpath_overrides_runpath=yes
  13118. shlibpath_var=DYLD_LIBRARY_PATH
  13119. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13120. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13121. ;;
  13122. dgux*)
  13123. version_type=linux # correct to gnu/linux during the next big refactor
  13124. need_lib_prefix=no
  13125. need_version=no
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13127. soname_spec='${libname}${release}${shared_ext}$major'
  13128. shlibpath_var=LD_LIBRARY_PATH
  13129. ;;
  13130. freebsd* | dragonfly*)
  13131. # DragonFly does not have aout. When/if they implement a new
  13132. # versioning mechanism, adjust this.
  13133. if test -x /usr/bin/objformat; then
  13134. objformat=`/usr/bin/objformat`
  13135. else
  13136. case $host_os in
  13137. freebsd[23].*) objformat=aout ;;
  13138. *) objformat=elf ;;
  13139. esac
  13140. fi
  13141. version_type=freebsd-$objformat
  13142. case $version_type in
  13143. freebsd-elf*)
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13145. need_version=no
  13146. need_lib_prefix=no
  13147. ;;
  13148. freebsd-*)
  13149. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13150. need_version=yes
  13151. ;;
  13152. esac
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. case $host_os in
  13155. freebsd2.*)
  13156. shlibpath_overrides_runpath=yes
  13157. ;;
  13158. freebsd3.[01]* | freebsdelf3.[01]*)
  13159. shlibpath_overrides_runpath=yes
  13160. hardcode_into_libs=yes
  13161. ;;
  13162. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13163. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13164. shlibpath_overrides_runpath=no
  13165. hardcode_into_libs=yes
  13166. ;;
  13167. *) # from 4.6 on, and DragonFly
  13168. shlibpath_overrides_runpath=yes
  13169. hardcode_into_libs=yes
  13170. ;;
  13171. esac
  13172. ;;
  13173. gnu*)
  13174. version_type=linux # correct to gnu/linux during the next big refactor
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. shlibpath_var=LD_LIBRARY_PATH
  13180. shlibpath_overrides_runpath=no
  13181. hardcode_into_libs=yes
  13182. ;;
  13183. haiku*)
  13184. version_type=linux # correct to gnu/linux during the next big refactor
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. dynamic_linker="$host_os runtime_loader"
  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=LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13193. hardcode_into_libs=yes
  13194. ;;
  13195. hpux9* | hpux10* | hpux11*)
  13196. # Give a soname corresponding to the major version so that dld.sl refuses to
  13197. # link against other versions.
  13198. version_type=sunos
  13199. need_lib_prefix=no
  13200. need_version=no
  13201. case $host_cpu in
  13202. ia64*)
  13203. shrext_cmds='.so'
  13204. hardcode_into_libs=yes
  13205. dynamic_linker="$host_os dld.so"
  13206. shlibpath_var=LD_LIBRARY_PATH
  13207. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13209. soname_spec='${libname}${release}${shared_ext}$major'
  13210. if test "X$HPUX_IA64_MODE" = X32; then
  13211. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13212. else
  13213. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13214. fi
  13215. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13216. ;;
  13217. hppa*64*)
  13218. shrext_cmds='.sl'
  13219. hardcode_into_libs=yes
  13220. dynamic_linker="$host_os dld.sl"
  13221. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13222. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13224. soname_spec='${libname}${release}${shared_ext}$major'
  13225. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13226. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13227. ;;
  13228. *)
  13229. shrext_cmds='.sl'
  13230. dynamic_linker="$host_os dld.sl"
  13231. shlibpath_var=SHLIB_PATH
  13232. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13234. soname_spec='${libname}${release}${shared_ext}$major'
  13235. ;;
  13236. esac
  13237. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13238. postinstall_cmds='chmod 555 $lib'
  13239. # or fails outright, so override atomically:
  13240. install_override_mode=555
  13241. ;;
  13242. interix[3-9]*)
  13243. version_type=linux # correct to gnu/linux during the next big refactor
  13244. need_lib_prefix=no
  13245. need_version=no
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=no
  13251. hardcode_into_libs=yes
  13252. ;;
  13253. irix5* | irix6* | nonstopux*)
  13254. case $host_os in
  13255. nonstopux*) version_type=nonstopux ;;
  13256. *)
  13257. if test "$lt_cv_prog_gnu_ld" = yes; then
  13258. version_type=linux # correct to gnu/linux during the next big refactor
  13259. else
  13260. version_type=irix
  13261. fi ;;
  13262. esac
  13263. need_lib_prefix=no
  13264. need_version=no
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13267. case $host_os in
  13268. irix5* | nonstopux*)
  13269. libsuff= shlibsuff=
  13270. ;;
  13271. *)
  13272. case $LD in # libtool.m4 will add one of these switches to LD
  13273. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13274. libsuff= shlibsuff= libmagic=32-bit;;
  13275. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13276. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13277. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13278. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13279. *) libsuff= shlibsuff= libmagic=never-match;;
  13280. esac
  13281. ;;
  13282. esac
  13283. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13284. shlibpath_overrides_runpath=no
  13285. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13286. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13287. hardcode_into_libs=yes
  13288. ;;
  13289. # No shared lib support for Linux oldld, aout, or coff.
  13290. linux*oldld* | linux*aout* | linux*coff*)
  13291. dynamic_linker=no
  13292. ;;
  13293. # This must be glibc/ELF.
  13294. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13295. version_type=linux # correct to gnu/linux during the next big refactor
  13296. need_lib_prefix=no
  13297. need_version=no
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13299. soname_spec='${libname}${release}${shared_ext}$major'
  13300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=no
  13303. # Some binutils ld are patched to set DT_RUNPATH
  13304. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13305. $as_echo_n "(cached) " >&6
  13306. else
  13307. lt_cv_shlibpath_overrides_runpath=no
  13308. save_LDFLAGS=$LDFLAGS
  13309. save_libdir=$libdir
  13310. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13311. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13313. /* end confdefs.h. */
  13314. int
  13315. main ()
  13316. {
  13317. ;
  13318. return 0;
  13319. }
  13320. _ACEOF
  13321. if ac_fn_cxx_try_link "$LINENO"; then :
  13322. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13323. lt_cv_shlibpath_overrides_runpath=yes
  13324. fi
  13325. fi
  13326. rm -f core conftest.err conftest.$ac_objext \
  13327. conftest$ac_exeext conftest.$ac_ext
  13328. LDFLAGS=$save_LDFLAGS
  13329. libdir=$save_libdir
  13330. fi
  13331. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13332. # This implies no fast_install, which is unacceptable.
  13333. # Some rework will be needed to allow for fast_install
  13334. # before this can be enabled.
  13335. hardcode_into_libs=yes
  13336. # Append ld.so.conf contents to the search path
  13337. if test -f /etc/ld.so.conf; then
  13338. 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' ' '`
  13339. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13340. fi
  13341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13342. # powerpc, because MkLinux only supported shared libraries with the
  13343. # GNU dynamic linker. Since this was broken with cross compilers,
  13344. # most powerpc-linux boxes support dynamic linking these days and
  13345. # people can always --disable-shared, the test was removed, and we
  13346. # assume the GNU/Linux dynamic linker is in use.
  13347. dynamic_linker='GNU/Linux ld.so'
  13348. ;;
  13349. netbsd*)
  13350. version_type=sunos
  13351. need_lib_prefix=no
  13352. need_version=no
  13353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13356. dynamic_linker='NetBSD (a.out) ld.so'
  13357. else
  13358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13359. soname_spec='${libname}${release}${shared_ext}$major'
  13360. dynamic_linker='NetBSD ld.elf_so'
  13361. fi
  13362. shlibpath_var=LD_LIBRARY_PATH
  13363. shlibpath_overrides_runpath=yes
  13364. hardcode_into_libs=yes
  13365. ;;
  13366. newsos6)
  13367. version_type=linux # correct to gnu/linux during the next big refactor
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13369. shlibpath_var=LD_LIBRARY_PATH
  13370. shlibpath_overrides_runpath=yes
  13371. ;;
  13372. *nto* | *qnx*)
  13373. version_type=qnx
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. shlibpath_overrides_runpath=no
  13380. hardcode_into_libs=yes
  13381. dynamic_linker='ldqnx.so'
  13382. ;;
  13383. openbsd*)
  13384. version_type=sunos
  13385. sys_lib_dlsearch_path_spec="/usr/lib"
  13386. need_lib_prefix=no
  13387. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13388. case $host_os in
  13389. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13390. *) need_version=no ;;
  13391. esac
  13392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13394. shlibpath_var=LD_LIBRARY_PATH
  13395. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13396. case $host_os in
  13397. openbsd2.[89] | openbsd2.[89].*)
  13398. shlibpath_overrides_runpath=no
  13399. ;;
  13400. *)
  13401. shlibpath_overrides_runpath=yes
  13402. ;;
  13403. esac
  13404. else
  13405. shlibpath_overrides_runpath=yes
  13406. fi
  13407. ;;
  13408. os2*)
  13409. libname_spec='$name'
  13410. shrext_cmds=".dll"
  13411. need_lib_prefix=no
  13412. library_names_spec='$libname${shared_ext} $libname.a'
  13413. dynamic_linker='OS/2 ld.exe'
  13414. shlibpath_var=LIBPATH
  13415. ;;
  13416. osf3* | osf4* | osf5*)
  13417. version_type=osf
  13418. need_lib_prefix=no
  13419. need_version=no
  13420. soname_spec='${libname}${release}${shared_ext}$major'
  13421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13422. shlibpath_var=LD_LIBRARY_PATH
  13423. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13424. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13425. ;;
  13426. rdos*)
  13427. dynamic_linker=no
  13428. ;;
  13429. solaris*)
  13430. version_type=linux # correct to gnu/linux during the next big refactor
  13431. need_lib_prefix=no
  13432. need_version=no
  13433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. shlibpath_var=LD_LIBRARY_PATH
  13436. shlibpath_overrides_runpath=yes
  13437. hardcode_into_libs=yes
  13438. # ldd complains unless libraries are executable
  13439. postinstall_cmds='chmod +x $lib'
  13440. ;;
  13441. sunos4*)
  13442. version_type=sunos
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13444. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13445. shlibpath_var=LD_LIBRARY_PATH
  13446. shlibpath_overrides_runpath=yes
  13447. if test "$with_gnu_ld" = yes; then
  13448. need_lib_prefix=no
  13449. fi
  13450. need_version=yes
  13451. ;;
  13452. sysv4 | sysv4.3*)
  13453. version_type=linux # correct to gnu/linux during the next big refactor
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13455. soname_spec='${libname}${release}${shared_ext}$major'
  13456. shlibpath_var=LD_LIBRARY_PATH
  13457. case $host_vendor in
  13458. sni)
  13459. shlibpath_overrides_runpath=no
  13460. need_lib_prefix=no
  13461. runpath_var=LD_RUN_PATH
  13462. ;;
  13463. siemens)
  13464. need_lib_prefix=no
  13465. ;;
  13466. motorola)
  13467. need_lib_prefix=no
  13468. need_version=no
  13469. shlibpath_overrides_runpath=no
  13470. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13471. ;;
  13472. esac
  13473. ;;
  13474. sysv4*MP*)
  13475. if test -d /usr/nec ;then
  13476. version_type=linux # correct to gnu/linux during the next big refactor
  13477. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13478. soname_spec='$libname${shared_ext}.$major'
  13479. shlibpath_var=LD_LIBRARY_PATH
  13480. fi
  13481. ;;
  13482. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13483. version_type=freebsd-elf
  13484. need_lib_prefix=no
  13485. need_version=no
  13486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13487. soname_spec='${libname}${release}${shared_ext}$major'
  13488. shlibpath_var=LD_LIBRARY_PATH
  13489. shlibpath_overrides_runpath=yes
  13490. hardcode_into_libs=yes
  13491. if test "$with_gnu_ld" = yes; then
  13492. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13493. else
  13494. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13495. case $host_os in
  13496. sco3.2v5*)
  13497. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13498. ;;
  13499. esac
  13500. fi
  13501. sys_lib_dlsearch_path_spec='/usr/lib'
  13502. ;;
  13503. tpf*)
  13504. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13505. version_type=linux # correct to gnu/linux during the next big refactor
  13506. need_lib_prefix=no
  13507. need_version=no
  13508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13509. shlibpath_var=LD_LIBRARY_PATH
  13510. shlibpath_overrides_runpath=no
  13511. hardcode_into_libs=yes
  13512. ;;
  13513. uts4*)
  13514. version_type=linux # correct to gnu/linux during the next big refactor
  13515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13516. soname_spec='${libname}${release}${shared_ext}$major'
  13517. shlibpath_var=LD_LIBRARY_PATH
  13518. ;;
  13519. *)
  13520. dynamic_linker=no
  13521. ;;
  13522. esac
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13524. $as_echo "$dynamic_linker" >&6; }
  13525. test "$dynamic_linker" = no && can_build_shared=no
  13526. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13527. if test "$GCC" = yes; then
  13528. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13529. fi
  13530. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13531. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13532. fi
  13533. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13534. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13535. fi
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13537. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13538. hardcode_action_CXX=
  13539. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13540. test -n "$runpath_var_CXX" ||
  13541. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13542. # We can hardcode non-existent directories.
  13543. if test "$hardcode_direct_CXX" != no &&
  13544. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13545. # have to relink, otherwise we might link with an installed library
  13546. # when we should be linking with a yet-to-be-installed one
  13547. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13548. test "$hardcode_minus_L_CXX" != no; then
  13549. # Linking always hardcodes the temporary library directory.
  13550. hardcode_action_CXX=relink
  13551. else
  13552. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13553. hardcode_action_CXX=immediate
  13554. fi
  13555. else
  13556. # We cannot hardcode anything, or else we can only hardcode existing
  13557. # directories.
  13558. hardcode_action_CXX=unsupported
  13559. fi
  13560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13561. $as_echo "$hardcode_action_CXX" >&6; }
  13562. if test "$hardcode_action_CXX" = relink ||
  13563. test "$inherit_rpath_CXX" = yes; then
  13564. # Fast installation is not supported
  13565. enable_fast_install=no
  13566. elif test "$shlibpath_overrides_runpath" = yes ||
  13567. test "$enable_shared" = no; then
  13568. # Fast installation is not necessary
  13569. enable_fast_install=needless
  13570. fi
  13571. fi # test -n "$compiler"
  13572. CC=$lt_save_CC
  13573. CFLAGS=$lt_save_CFLAGS
  13574. LDCXX=$LD
  13575. LD=$lt_save_LD
  13576. GCC=$lt_save_GCC
  13577. with_gnu_ld=$lt_save_with_gnu_ld
  13578. lt_cv_path_LDCXX=$lt_cv_path_LD
  13579. lt_cv_path_LD=$lt_save_path_LD
  13580. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13581. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13582. fi # test "$_lt_caught_CXX_error" != yes
  13583. ac_ext=c
  13584. ac_cpp='$CPP $CPPFLAGS'
  13585. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13586. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13587. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13588. # Find a good install program. We prefer a C program (faster),
  13589. # so one script is as good as another. But avoid the broken or
  13590. # incompatible versions:
  13591. # SysV /etc/install, /usr/sbin/install
  13592. # SunOS /usr/etc/install
  13593. # IRIX /sbin/install
  13594. # AIX /bin/install
  13595. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13596. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13597. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13598. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13599. # OS/2's system install, which has a completely different semantic
  13600. # ./install, which can be erroneously created by make from ./install.sh.
  13601. # Reject install programs that cannot install multiple files.
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13603. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13604. if test -z "$INSTALL"; then
  13605. if ${ac_cv_path_install+:} false; then :
  13606. $as_echo_n "(cached) " >&6
  13607. else
  13608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13609. for as_dir in $PATH
  13610. do
  13611. IFS=$as_save_IFS
  13612. test -z "$as_dir" && as_dir=.
  13613. # Account for people who put trailing slashes in PATH elements.
  13614. case $as_dir/ in #((
  13615. ./ | .// | /[cC]/* | \
  13616. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13617. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13618. /usr/ucb/* ) ;;
  13619. *)
  13620. # OSF1 and SCO ODT 3.0 have their own names for install.
  13621. # Don't use installbsd from OSF since it installs stuff as root
  13622. # by default.
  13623. for ac_prog in ginstall scoinst install; do
  13624. for ac_exec_ext in '' $ac_executable_extensions; do
  13625. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13626. if test $ac_prog = install &&
  13627. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13628. # AIX install. It has an incompatible calling convention.
  13629. :
  13630. elif test $ac_prog = install &&
  13631. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13632. # program-specific install script used by HP pwplus--don't use.
  13633. :
  13634. else
  13635. rm -rf conftest.one conftest.two conftest.dir
  13636. echo one > conftest.one
  13637. echo two > conftest.two
  13638. mkdir conftest.dir
  13639. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13640. test -s conftest.one && test -s conftest.two &&
  13641. test -s conftest.dir/conftest.one &&
  13642. test -s conftest.dir/conftest.two
  13643. then
  13644. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13645. break 3
  13646. fi
  13647. fi
  13648. fi
  13649. done
  13650. done
  13651. ;;
  13652. esac
  13653. done
  13654. IFS=$as_save_IFS
  13655. rm -rf conftest.one conftest.two conftest.dir
  13656. fi
  13657. if test "${ac_cv_path_install+set}" = set; then
  13658. INSTALL=$ac_cv_path_install
  13659. else
  13660. # As a last resort, use the slow shell script. Don't cache a
  13661. # value for INSTALL within a source directory, because that will
  13662. # break other packages using the cache if that directory is
  13663. # removed, or if the value is a relative name.
  13664. INSTALL=$ac_install_sh
  13665. fi
  13666. fi
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13668. $as_echo "$INSTALL" >&6; }
  13669. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13670. # It thinks the first close brace ends the variable substitution.
  13671. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13672. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13673. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13675. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13676. set x ${MAKE-make}
  13677. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13678. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13679. $as_echo_n "(cached) " >&6
  13680. else
  13681. cat >conftest.make <<\_ACEOF
  13682. SHELL = /bin/sh
  13683. all:
  13684. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13685. _ACEOF
  13686. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13687. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13688. *@@@%%%=?*=@@@%%%*)
  13689. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13690. *)
  13691. eval ac_cv_prog_make_${ac_make}_set=no;;
  13692. esac
  13693. rm -f conftest.make
  13694. fi
  13695. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13697. $as_echo "yes" >&6; }
  13698. SET_MAKE=
  13699. else
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13701. $as_echo "no" >&6; }
  13702. SET_MAKE="MAKE=${MAKE-make}"
  13703. fi
  13704. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13705. if test -n "$ac_tool_prefix"; then
  13706. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13707. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13709. $as_echo_n "checking for $ac_word... " >&6; }
  13710. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13711. $as_echo_n "(cached) " >&6
  13712. else
  13713. case $PKG_CONFIG in
  13714. [\\/]* | ?:[\\/]*)
  13715. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13716. ;;
  13717. *)
  13718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13719. for as_dir in $PATH
  13720. do
  13721. IFS=$as_save_IFS
  13722. test -z "$as_dir" && as_dir=.
  13723. for ac_exec_ext in '' $ac_executable_extensions; do
  13724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13725. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13727. break 2
  13728. fi
  13729. done
  13730. done
  13731. IFS=$as_save_IFS
  13732. ;;
  13733. esac
  13734. fi
  13735. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13736. if test -n "$PKG_CONFIG"; then
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13738. $as_echo "$PKG_CONFIG" >&6; }
  13739. else
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13741. $as_echo "no" >&6; }
  13742. fi
  13743. fi
  13744. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13745. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13746. # Extract the first word of "pkg-config", so it can be a program name with args.
  13747. set dummy pkg-config; ac_word=$2
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13749. $as_echo_n "checking for $ac_word... " >&6; }
  13750. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13751. $as_echo_n "(cached) " >&6
  13752. else
  13753. case $ac_pt_PKG_CONFIG in
  13754. [\\/]* | ?:[\\/]*)
  13755. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13756. ;;
  13757. *)
  13758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13759. for as_dir in $PATH
  13760. do
  13761. IFS=$as_save_IFS
  13762. test -z "$as_dir" && as_dir=.
  13763. for ac_exec_ext in '' $ac_executable_extensions; do
  13764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13765. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13767. break 2
  13768. fi
  13769. done
  13770. done
  13771. IFS=$as_save_IFS
  13772. ;;
  13773. esac
  13774. fi
  13775. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13776. if test -n "$ac_pt_PKG_CONFIG"; then
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13778. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13779. else
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13781. $as_echo "no" >&6; }
  13782. fi
  13783. if test "x$ac_pt_PKG_CONFIG" = x; then
  13784. PKG_CONFIG=""
  13785. else
  13786. case $cross_compiling:$ac_tool_warned in
  13787. yes:)
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13790. ac_tool_warned=yes ;;
  13791. esac
  13792. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13793. fi
  13794. else
  13795. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13796. fi
  13797. fi
  13798. if test -n "$PKG_CONFIG"; then
  13799. _pkg_min_version=0.9.0
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13801. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13802. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13804. $as_echo "yes" >&6; }
  13805. else
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13807. $as_echo "no" >&6; }
  13808. PKG_CONFIG=""
  13809. fi
  13810. fi
  13811. case "$host" in
  13812. *-*-mingw32*)
  13813. # Except on msys, where make can't handle full pathnames (bug 1972)
  13814. ;;
  13815. *)
  13816. srcdir=`cd $srcdir && pwd`
  13817. ;;
  13818. esac
  13819. INCLUDE="-I$srcdir/include"
  13820. case "$host" in
  13821. *-*-nto-qnx*)
  13822. ;;
  13823. *)
  13824. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13825. ;;
  13826. esac
  13827. if test x$srcdir != x.; then
  13828. INCLUDE="-Iinclude $INCLUDE"
  13829. elif test -d .hg; then
  13830. as_fn_error $? "
  13831. *** When building from Mercurial you should configure and build in a
  13832. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13833. " "$LINENO" 5
  13834. fi
  13835. BASE_CFLAGS=""
  13836. BASE_LDFLAGS=""
  13837. case "$host" in
  13838. *-*-cygwin*)
  13839. # We build SDL on cygwin without the UNIX emulation layer
  13840. save_CFLAGS="$CFLAGS"
  13841. have_no_cygwin=no
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13843. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13844. CFLAGS="$save_CFLAGS -mno-cygwin"
  13845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13846. /* end confdefs.h. */
  13847. int
  13848. main ()
  13849. {
  13850. ;
  13851. return 0;
  13852. }
  13853. _ACEOF
  13854. if ac_fn_c_try_compile "$LINENO"; then :
  13855. have_no_cygwin=yes
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13859. $as_echo "$have_no_cygwin" >&6; }
  13860. CFLAGS="$save_CFLAGS"
  13861. if test x$have_no_cygwin = xyes; then
  13862. BASE_CFLAGS="-mno-cygwin"
  13863. BASE_LDFLAGS="-mno-cygwin"
  13864. fi
  13865. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13866. ;;
  13867. esac
  13868. # Uncomment the following line if you want to force SDL and applications
  13869. # built with it to be compiled for a particular architecture.
  13870. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13871. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13872. # The default optimization for SDL is -O3 (Bug #31)
  13873. if test "x$orig_CFLAGS" = x; then
  13874. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13875. fi
  13876. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13877. BUILD_LDFLAGS="$LDFLAGS"
  13878. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13879. ## These are common directories to find software packages
  13880. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13881. # if test -d $path/include; then
  13882. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13883. # fi
  13884. # if test -d $path/lib; then
  13885. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13886. # fi
  13887. #done
  13888. SDL_CFLAGS="$BASE_CFLAGS"
  13889. SDL_LIBS="-lSDL2"
  13890. if test "x$BASE_LDFLAGS" != x; then
  13891. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13892. fi
  13893. if test "x$EXTRA_CFLAGS" != x; then
  13894. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13895. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13896. fi
  13897. if test "x$EXTRA_LDFLAGS" != x; then
  13898. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13899. fi
  13900. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13901. find_lib()
  13902. {
  13903. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13904. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13905. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13906. if test "$cross_compiling" = yes; then
  13907. host_lib_path=""
  13908. else
  13909. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13910. fi
  13911. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13912. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13913. if test x$lib != x; then
  13914. echo $lib
  13915. return
  13916. fi
  13917. done
  13918. # Try again, this time allowing more than one version digit after the .so
  13919. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13920. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13921. if test x$lib != x; then
  13922. echo $lib
  13923. return
  13924. fi
  13925. done
  13926. }
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13928. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13929. if ${ac_cv_c_const+:} false; then :
  13930. $as_echo_n "(cached) " >&6
  13931. else
  13932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13933. /* end confdefs.h. */
  13934. int
  13935. main ()
  13936. {
  13937. #ifndef __cplusplus
  13938. /* Ultrix mips cc rejects this sort of thing. */
  13939. typedef int charset[2];
  13940. const charset cs = { 0, 0 };
  13941. /* SunOS 4.1.1 cc rejects this. */
  13942. char const *const *pcpcc;
  13943. char **ppc;
  13944. /* NEC SVR4.0.2 mips cc rejects this. */
  13945. struct point {int x, y;};
  13946. static struct point const zero = {0,0};
  13947. /* AIX XL C 1.02.0.0 rejects this.
  13948. It does not let you subtract one const X* pointer from another in
  13949. an arm of an if-expression whose if-part is not a constant
  13950. expression */
  13951. const char *g = "string";
  13952. pcpcc = &g + (g ? g-g : 0);
  13953. /* HPUX 7.0 cc rejects these. */
  13954. ++pcpcc;
  13955. ppc = (char**) pcpcc;
  13956. pcpcc = (char const *const *) ppc;
  13957. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13958. char tx;
  13959. char *t = &tx;
  13960. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13961. *t++ = 0;
  13962. if (s) return 0;
  13963. }
  13964. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13965. int x[] = {25, 17};
  13966. const int *foo = &x[0];
  13967. ++foo;
  13968. }
  13969. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13970. typedef const int *iptr;
  13971. iptr p = 0;
  13972. ++p;
  13973. }
  13974. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13975. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13976. struct s { int j; const int *ap[3]; } bx;
  13977. struct s *b = &bx; b->j = 5;
  13978. }
  13979. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13980. const int foo = 10;
  13981. if (!foo) return 0;
  13982. }
  13983. return !cs[0] && !zero.x;
  13984. #endif
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_c_const=yes
  13991. else
  13992. ac_cv_c_const=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13997. $as_echo "$ac_cv_c_const" >&6; }
  13998. if test $ac_cv_c_const = no; then
  13999. $as_echo "#define const /**/" >>confdefs.h
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14002. $as_echo_n "checking for inline... " >&6; }
  14003. if ${ac_cv_c_inline+:} false; then :
  14004. $as_echo_n "(cached) " >&6
  14005. else
  14006. ac_cv_c_inline=no
  14007. for ac_kw in inline __inline__ __inline; do
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #ifndef __cplusplus
  14011. typedef int foo_t;
  14012. static $ac_kw foo_t static_foo () {return 0; }
  14013. $ac_kw foo_t foo () {return 0; }
  14014. #endif
  14015. _ACEOF
  14016. if ac_fn_c_try_compile "$LINENO"; then :
  14017. ac_cv_c_inline=$ac_kw
  14018. fi
  14019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14020. test "$ac_cv_c_inline" != no && break
  14021. done
  14022. fi
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14024. $as_echo "$ac_cv_c_inline" >&6; }
  14025. case $ac_cv_c_inline in
  14026. inline | yes) ;;
  14027. *)
  14028. case $ac_cv_c_inline in
  14029. no) ac_val=;;
  14030. *) ac_val=$ac_cv_c_inline;;
  14031. esac
  14032. cat >>confdefs.h <<_ACEOF
  14033. #ifndef __cplusplus
  14034. #define inline $ac_val
  14035. #endif
  14036. _ACEOF
  14037. ;;
  14038. esac
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14040. $as_echo_n "checking for working volatile... " >&6; }
  14041. if ${ac_cv_c_volatile+:} false; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14045. /* end confdefs.h. */
  14046. int
  14047. main ()
  14048. {
  14049. volatile int x;
  14050. int * volatile y = (int *) 0;
  14051. return !x && !y;
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_compile "$LINENO"; then :
  14057. ac_cv_c_volatile=yes
  14058. else
  14059. ac_cv_c_volatile=no
  14060. fi
  14061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14064. $as_echo "$ac_cv_c_volatile" >&6; }
  14065. if test $ac_cv_c_volatile = no; then
  14066. $as_echo "#define volatile /**/" >>confdefs.h
  14067. fi
  14068. # Check whether --enable-assertions was given.
  14069. if test "${enable_assertions+set}" = set; then :
  14070. enableval=$enable_assertions;
  14071. else
  14072. enable_assertions=auto
  14073. fi
  14074. case "$enable_assertions" in
  14075. auto) # Use optimization settings to determine assertion level
  14076. ;;
  14077. disabled)
  14078. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14079. ;;
  14080. release)
  14081. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14082. ;;
  14083. enabled)
  14084. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14085. ;;
  14086. paranoid)
  14087. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14088. ;;
  14089. *)
  14090. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14091. ;;
  14092. esac
  14093. # Check whether --enable-dependency-tracking was given.
  14094. if test "${enable_dependency_tracking+set}" = set; then :
  14095. enableval=$enable_dependency_tracking;
  14096. else
  14097. enable_dependency_tracking=yes
  14098. fi
  14099. if test x$enable_dependency_tracking = xyes; then
  14100. have_gcc_mmd_mt=no
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14102. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. #if !defined(__GNUC__) || __GNUC__ < 3
  14106. #error Dependency tracking requires GCC 3.0 or newer
  14107. #endif
  14108. int
  14109. main ()
  14110. {
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. if ac_fn_c_try_compile "$LINENO"; then :
  14116. have_gcc_mmd_mt=yes
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14120. $as_echo "$have_gcc_mmd_mt" >&6; }
  14121. if test x$have_gcc_mmd_mt = xyes; then
  14122. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14123. fi
  14124. fi
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14126. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14127. have_no_undefined=no
  14128. case "$host" in
  14129. *-*-openbsd*)
  14130. ;;
  14131. *)
  14132. save_LDFLAGS="$LDFLAGS"
  14133. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14135. /* end confdefs.h. */
  14136. int
  14137. main ()
  14138. {
  14139. ;
  14140. return 0;
  14141. }
  14142. _ACEOF
  14143. if ac_fn_c_try_link "$LINENO"; then :
  14144. have_no_undefined=yes
  14145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14146. fi
  14147. rm -f core conftest.err conftest.$ac_objext \
  14148. conftest$ac_exeext conftest.$ac_ext
  14149. LDFLAGS="$save_LDFLAGS"
  14150. ;;
  14151. esac
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14153. $as_echo "$have_no_undefined" >&6; }
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14155. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14156. have_dynamicbase=no
  14157. case "$host" in
  14158. *)
  14159. save_LDFLAGS="$LDFLAGS"
  14160. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14162. /* end confdefs.h. */
  14163. int
  14164. main ()
  14165. {
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_c_try_link "$LINENO"; then :
  14171. have_dynamicbase=yes
  14172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14173. fi
  14174. rm -f core conftest.err conftest.$ac_objext \
  14175. conftest$ac_exeext conftest.$ac_ext
  14176. LDFLAGS="$save_LDFLAGS"
  14177. ;;
  14178. esac
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14180. $as_echo "$have_dynamicbase" >&6; }
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14182. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14183. have_nxcompat=no
  14184. case "$host" in
  14185. *)
  14186. save_LDFLAGS="$LDFLAGS"
  14187. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14189. /* end confdefs.h. */
  14190. int
  14191. main ()
  14192. {
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_link "$LINENO"; then :
  14198. have_nxcompat=yes
  14199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext \
  14202. conftest$ac_exeext conftest.$ac_ext
  14203. LDFLAGS="$save_LDFLAGS"
  14204. ;;
  14205. esac
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14207. $as_echo "$have_nxcompat" >&6; }
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14209. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14210. have_high_entropy_va=no
  14211. case "$host" in
  14212. *)
  14213. save_LDFLAGS="$LDFLAGS"
  14214. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. int
  14218. main ()
  14219. {
  14220. ;
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. if ac_fn_c_try_link "$LINENO"; then :
  14225. have_high_entropy_va=yes
  14226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14227. fi
  14228. rm -f core conftest.err conftest.$ac_objext \
  14229. conftest$ac_exeext conftest.$ac_ext
  14230. LDFLAGS="$save_LDFLAGS"
  14231. ;;
  14232. esac
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14234. $as_echo "$have_high_entropy_va" >&6; }
  14235. # Check whether --enable-libc was given.
  14236. if test "${enable_libc+set}" = set; then :
  14237. enableval=$enable_libc;
  14238. else
  14239. enable_libc=yes
  14240. fi
  14241. if test x$enable_libc = xyes; then
  14242. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14244. $as_echo_n "checking for ANSI C header files... " >&6; }
  14245. if ${ac_cv_header_stdc+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <stdlib.h>
  14251. #include <stdarg.h>
  14252. #include <string.h>
  14253. #include <float.h>
  14254. int
  14255. main ()
  14256. {
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_compile "$LINENO"; then :
  14262. ac_cv_header_stdc=yes
  14263. else
  14264. ac_cv_header_stdc=no
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14267. if test $ac_cv_header_stdc = yes; then
  14268. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. #include <string.h>
  14272. _ACEOF
  14273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14274. $EGREP "memchr" >/dev/null 2>&1; then :
  14275. else
  14276. ac_cv_header_stdc=no
  14277. fi
  14278. rm -f conftest*
  14279. fi
  14280. if test $ac_cv_header_stdc = yes; then
  14281. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. #include <stdlib.h>
  14285. _ACEOF
  14286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14287. $EGREP "free" >/dev/null 2>&1; then :
  14288. else
  14289. ac_cv_header_stdc=no
  14290. fi
  14291. rm -f conftest*
  14292. fi
  14293. if test $ac_cv_header_stdc = yes; then
  14294. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14295. if test "$cross_compiling" = yes; then :
  14296. :
  14297. else
  14298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14299. /* end confdefs.h. */
  14300. #include <ctype.h>
  14301. #include <stdlib.h>
  14302. #if ((' ' & 0x0FF) == 0x020)
  14303. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14304. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14305. #else
  14306. # define ISLOWER(c) \
  14307. (('a' <= (c) && (c) <= 'i') \
  14308. || ('j' <= (c) && (c) <= 'r') \
  14309. || ('s' <= (c) && (c) <= 'z'))
  14310. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14311. #endif
  14312. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14313. int
  14314. main ()
  14315. {
  14316. int i;
  14317. for (i = 0; i < 256; i++)
  14318. if (XOR (islower (i), ISLOWER (i))
  14319. || toupper (i) != TOUPPER (i))
  14320. return 2;
  14321. return 0;
  14322. }
  14323. _ACEOF
  14324. if ac_fn_c_try_run "$LINENO"; then :
  14325. else
  14326. ac_cv_header_stdc=no
  14327. fi
  14328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14329. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14330. fi
  14331. fi
  14332. fi
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14334. $as_echo "$ac_cv_header_stdc" >&6; }
  14335. if test $ac_cv_header_stdc = yes; then
  14336. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14337. fi
  14338. 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
  14339. do :
  14340. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14341. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14342. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14343. cat >>confdefs.h <<_ACEOF
  14344. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14345. _ACEOF
  14346. fi
  14347. done
  14348. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14349. if test "x$ac_cv_type_size_t" = xyes; then :
  14350. else
  14351. cat >>confdefs.h <<_ACEOF
  14352. #define size_t unsigned int
  14353. _ACEOF
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14356. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14357. if ${ac_cv_define_M_PI+:} false; then :
  14358. $as_echo_n "(cached) " >&6
  14359. else
  14360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14361. /* end confdefs.h. */
  14362. #include <math.h>
  14363. #ifdef M_PI
  14364. YES_IS_DEFINED
  14365. #endif
  14366. _ACEOF
  14367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14368. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14369. ac_cv_define_M_PI=yes
  14370. else
  14371. ac_cv_define_M_PI=no
  14372. fi
  14373. rm -f conftest*
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14376. $as_echo "$ac_cv_define_M_PI" >&6; }
  14377. if test "$ac_cv_define_M_PI" = "yes" ; then
  14378. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14379. fi
  14380. case "$host" in
  14381. *-*-cygwin* | *-*-mingw32*)
  14382. ;;
  14383. *)
  14384. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14385. # for constant arguments. Useless!
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14387. $as_echo_n "checking for working alloca.h... " >&6; }
  14388. if ${ac_cv_working_alloca_h+:} false; then :
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. #include <alloca.h>
  14394. int
  14395. main ()
  14396. {
  14397. char *p = (char *) alloca (2 * sizeof (int));
  14398. if (p) return 0;
  14399. ;
  14400. return 0;
  14401. }
  14402. _ACEOF
  14403. if ac_fn_c_try_link "$LINENO"; then :
  14404. ac_cv_working_alloca_h=yes
  14405. else
  14406. ac_cv_working_alloca_h=no
  14407. fi
  14408. rm -f core conftest.err conftest.$ac_objext \
  14409. conftest$ac_exeext conftest.$ac_ext
  14410. fi
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14412. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14413. if test $ac_cv_working_alloca_h = yes; then
  14414. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14415. fi
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14417. $as_echo_n "checking for alloca... " >&6; }
  14418. if ${ac_cv_func_alloca_works+:} false; then :
  14419. $as_echo_n "(cached) " >&6
  14420. else
  14421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14422. /* end confdefs.h. */
  14423. #ifdef __GNUC__
  14424. # define alloca __builtin_alloca
  14425. #else
  14426. # ifdef _MSC_VER
  14427. # include <malloc.h>
  14428. # define alloca _alloca
  14429. # else
  14430. # ifdef HAVE_ALLOCA_H
  14431. # include <alloca.h>
  14432. # else
  14433. # ifdef _AIX
  14434. #pragma alloca
  14435. # else
  14436. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14437. void *alloca (size_t);
  14438. # endif
  14439. # endif
  14440. # endif
  14441. # endif
  14442. #endif
  14443. int
  14444. main ()
  14445. {
  14446. char *p = (char *) alloca (1);
  14447. if (p) return 0;
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. if ac_fn_c_try_link "$LINENO"; then :
  14453. ac_cv_func_alloca_works=yes
  14454. else
  14455. ac_cv_func_alloca_works=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14461. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14462. if test $ac_cv_func_alloca_works = yes; then
  14463. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14464. else
  14465. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14466. # that cause trouble. Some versions do not even contain alloca or
  14467. # contain a buggy version. If you still want to use their alloca,
  14468. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14469. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14470. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14472. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14473. if ${ac_cv_os_cray+:} false; then :
  14474. $as_echo_n "(cached) " >&6
  14475. else
  14476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14477. /* end confdefs.h. */
  14478. #if defined CRAY && ! defined CRAY2
  14479. webecray
  14480. #else
  14481. wenotbecray
  14482. #endif
  14483. _ACEOF
  14484. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14485. $EGREP "webecray" >/dev/null 2>&1; then :
  14486. ac_cv_os_cray=yes
  14487. else
  14488. ac_cv_os_cray=no
  14489. fi
  14490. rm -f conftest*
  14491. fi
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14493. $as_echo "$ac_cv_os_cray" >&6; }
  14494. if test $ac_cv_os_cray = yes; then
  14495. for ac_func in _getb67 GETB67 getb67; do
  14496. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14497. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14498. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14499. cat >>confdefs.h <<_ACEOF
  14500. #define CRAY_STACKSEG_END $ac_func
  14501. _ACEOF
  14502. break
  14503. fi
  14504. done
  14505. fi
  14506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14507. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14508. if ${ac_cv_c_stack_direction+:} false; then :
  14509. $as_echo_n "(cached) " >&6
  14510. else
  14511. if test "$cross_compiling" = yes; then :
  14512. ac_cv_c_stack_direction=0
  14513. else
  14514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14515. /* end confdefs.h. */
  14516. $ac_includes_default
  14517. int
  14518. find_stack_direction (int *addr, int depth)
  14519. {
  14520. int dir, dummy = 0;
  14521. if (! addr)
  14522. addr = &dummy;
  14523. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14524. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14525. return dir + dummy;
  14526. }
  14527. int
  14528. main (int argc, char **argv)
  14529. {
  14530. return find_stack_direction (0, argc + !argv + 20) < 0;
  14531. }
  14532. _ACEOF
  14533. if ac_fn_c_try_run "$LINENO"; then :
  14534. ac_cv_c_stack_direction=1
  14535. else
  14536. ac_cv_c_stack_direction=-1
  14537. fi
  14538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14540. fi
  14541. fi
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14543. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14544. cat >>confdefs.h <<_ACEOF
  14545. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14546. _ACEOF
  14547. fi
  14548. ;;
  14549. esac
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14551. $as_echo_n "checking for working memcmp... " >&6; }
  14552. if ${ac_cv_func_memcmp_working+:} false; then :
  14553. $as_echo_n "(cached) " >&6
  14554. else
  14555. if test "$cross_compiling" = yes; then :
  14556. ac_cv_func_memcmp_working=no
  14557. else
  14558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14559. /* end confdefs.h. */
  14560. $ac_includes_default
  14561. int
  14562. main ()
  14563. {
  14564. /* Some versions of memcmp are not 8-bit clean. */
  14565. char c0 = '\100', c1 = '\200', c2 = '\201';
  14566. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14567. return 1;
  14568. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14569. or more and with at least one buffer not starting on a 4-byte boundary.
  14570. William Lewis provided this test program. */
  14571. {
  14572. char foo[21];
  14573. char bar[21];
  14574. int i;
  14575. for (i = 0; i < 4; i++)
  14576. {
  14577. char *a = foo + i;
  14578. char *b = bar + i;
  14579. strcpy (a, "--------01111111");
  14580. strcpy (b, "--------10000000");
  14581. if (memcmp (a, b, 16) >= 0)
  14582. return 1;
  14583. }
  14584. return 0;
  14585. }
  14586. ;
  14587. return 0;
  14588. }
  14589. _ACEOF
  14590. if ac_fn_c_try_run "$LINENO"; then :
  14591. ac_cv_func_memcmp_working=yes
  14592. else
  14593. ac_cv_func_memcmp_working=no
  14594. fi
  14595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14596. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14597. fi
  14598. fi
  14599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14600. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14601. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14602. *" memcmp.$ac_objext "* ) ;;
  14603. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14604. ;;
  14605. esac
  14606. if test x$ac_cv_func_memcmp_working = xyes; then
  14607. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14610. $as_echo_n "checking for working strtod... " >&6; }
  14611. if ${ac_cv_func_strtod+:} false; then :
  14612. $as_echo_n "(cached) " >&6
  14613. else
  14614. if test "$cross_compiling" = yes; then :
  14615. ac_cv_func_strtod=no
  14616. else
  14617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14618. /* end confdefs.h. */
  14619. $ac_includes_default
  14620. #ifndef strtod
  14621. double strtod ();
  14622. #endif
  14623. int
  14624. main()
  14625. {
  14626. {
  14627. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14628. char *string = " +69";
  14629. char *term;
  14630. double value;
  14631. value = strtod (string, &term);
  14632. if (value != 69 || term != (string + 4))
  14633. return 1;
  14634. }
  14635. {
  14636. /* Under Solaris 2.4, strtod returns the wrong value for the
  14637. terminating character under some conditions. */
  14638. char *string = "NaN";
  14639. char *term;
  14640. strtod (string, &term);
  14641. if (term != string && *(term - 1) == 0)
  14642. return 1;
  14643. }
  14644. return 0;
  14645. }
  14646. _ACEOF
  14647. if ac_fn_c_try_run "$LINENO"; then :
  14648. ac_cv_func_strtod=yes
  14649. else
  14650. ac_cv_func_strtod=no
  14651. fi
  14652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14654. fi
  14655. fi
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14657. $as_echo "$ac_cv_func_strtod" >&6; }
  14658. if test $ac_cv_func_strtod = no; then
  14659. case " $LIBOBJS " in
  14660. *" strtod.$ac_objext "* ) ;;
  14661. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14662. ;;
  14663. esac
  14664. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14665. if test "x$ac_cv_func_pow" = xyes; then :
  14666. fi
  14667. if test $ac_cv_func_pow = no; then
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14669. $as_echo_n "checking for pow in -lm... " >&6; }
  14670. if ${ac_cv_lib_m_pow+:} false; then :
  14671. $as_echo_n "(cached) " >&6
  14672. else
  14673. ac_check_lib_save_LIBS=$LIBS
  14674. LIBS="-lm $LIBS"
  14675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. /* end confdefs.h. */
  14677. /* Override any GCC internal prototype to avoid an error.
  14678. Use char because int might match the return type of a GCC
  14679. builtin and then its argument prototype would still apply. */
  14680. #ifdef __cplusplus
  14681. extern "C"
  14682. #endif
  14683. char pow ();
  14684. int
  14685. main ()
  14686. {
  14687. return pow ();
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. if ac_fn_c_try_link "$LINENO"; then :
  14693. ac_cv_lib_m_pow=yes
  14694. else
  14695. ac_cv_lib_m_pow=no
  14696. fi
  14697. rm -f core conftest.err conftest.$ac_objext \
  14698. conftest$ac_exeext conftest.$ac_ext
  14699. LIBS=$ac_check_lib_save_LIBS
  14700. fi
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14702. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14703. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14704. POW_LIB=-lm
  14705. else
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14707. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14708. fi
  14709. fi
  14710. fi
  14711. if test x$ac_cv_func_strtod = xyes; then
  14712. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14713. fi
  14714. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14715. if test "x$ac_cv_func_mprotect" = xyes; then :
  14716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14717. /* end confdefs.h. */
  14718. #include <sys/types.h>
  14719. #include <sys/mman.h>
  14720. int
  14721. main ()
  14722. {
  14723. ;
  14724. return 0;
  14725. }
  14726. _ACEOF
  14727. if ac_fn_c_try_compile "$LINENO"; then :
  14728. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14729. fi
  14730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14731. fi
  14732. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14733. do :
  14734. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14735. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14736. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14737. cat >>confdefs.h <<_ACEOF
  14738. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14739. _ACEOF
  14740. fi
  14741. done
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14743. $as_echo_n "checking for pow in -lm... " >&6; }
  14744. if ${ac_cv_lib_m_pow+:} false; then :
  14745. $as_echo_n "(cached) " >&6
  14746. else
  14747. ac_check_lib_save_LIBS=$LIBS
  14748. LIBS="-lm $LIBS"
  14749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14750. /* end confdefs.h. */
  14751. /* Override any GCC internal prototype to avoid an error.
  14752. Use char because int might match the return type of a GCC
  14753. builtin and then its argument prototype would still apply. */
  14754. #ifdef __cplusplus
  14755. extern "C"
  14756. #endif
  14757. char pow ();
  14758. int
  14759. main ()
  14760. {
  14761. return pow ();
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. if ac_fn_c_try_link "$LINENO"; then :
  14767. ac_cv_lib_m_pow=yes
  14768. else
  14769. ac_cv_lib_m_pow=no
  14770. fi
  14771. rm -f core conftest.err conftest.$ac_objext \
  14772. conftest$ac_exeext conftest.$ac_ext
  14773. LIBS=$ac_check_lib_save_LIBS
  14774. fi
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14776. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14777. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14778. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14779. fi
  14780. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14781. do :
  14782. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14783. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14784. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14785. cat >>confdefs.h <<_ACEOF
  14786. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14787. _ACEOF
  14788. fi
  14789. done
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14791. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14792. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14793. $as_echo_n "(cached) " >&6
  14794. else
  14795. ac_check_lib_save_LIBS=$LIBS
  14796. LIBS="-liconv $LIBS"
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. /* Override any GCC internal prototype to avoid an error.
  14800. Use char because int might match the return type of a GCC
  14801. builtin and then its argument prototype would still apply. */
  14802. #ifdef __cplusplus
  14803. extern "C"
  14804. #endif
  14805. char iconv_open ();
  14806. int
  14807. main ()
  14808. {
  14809. return iconv_open ();
  14810. ;
  14811. return 0;
  14812. }
  14813. _ACEOF
  14814. if ac_fn_c_try_link "$LINENO"; then :
  14815. ac_cv_lib_iconv_iconv_open=yes
  14816. else
  14817. ac_cv_lib_iconv_iconv_open=no
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext \
  14820. conftest$ac_exeext conftest.$ac_ext
  14821. LIBS=$ac_check_lib_save_LIBS
  14822. fi
  14823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14824. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14825. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14826. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14827. fi
  14828. for ac_func in iconv
  14829. do :
  14830. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14831. if test "x$ac_cv_func_iconv" = xyes; then :
  14832. cat >>confdefs.h <<_ACEOF
  14833. #define HAVE_ICONV 1
  14834. _ACEOF
  14835. fi
  14836. done
  14837. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14838. "
  14839. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14840. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14841. fi
  14842. for ac_header in libunwind.h
  14843. do :
  14844. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14845. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14846. cat >>confdefs.h <<_ACEOF
  14847. #define HAVE_LIBUNWIND_H 1
  14848. _ACEOF
  14849. fi
  14850. done
  14851. fi
  14852. # Check whether --enable-gcc-atomics was given.
  14853. if test "${enable_gcc_atomics+set}" = set; then :
  14854. enableval=$enable_gcc_atomics;
  14855. else
  14856. enable_gcc_atomics=yes
  14857. fi
  14858. if test x$enable_gcc_atomics = xyes; then
  14859. have_gcc_atomics=no
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14861. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14863. /* end confdefs.h. */
  14864. int
  14865. main ()
  14866. {
  14867. int a;
  14868. void *x, *y, *z;
  14869. __sync_lock_test_and_set(&a, 4);
  14870. __sync_lock_test_and_set(&x, y);
  14871. __sync_fetch_and_add(&a, 1);
  14872. __sync_bool_compare_and_swap(&a, 5, 10);
  14873. __sync_bool_compare_and_swap(&x, y, z);
  14874. ;
  14875. return 0;
  14876. }
  14877. _ACEOF
  14878. if ac_fn_c_try_link "$LINENO"; then :
  14879. have_gcc_atomics=yes
  14880. fi
  14881. rm -f core conftest.err conftest.$ac_objext \
  14882. conftest$ac_exeext conftest.$ac_ext
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14884. $as_echo "$have_gcc_atomics" >&6; }
  14885. if test x$have_gcc_atomics = xyes; then
  14886. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14887. else
  14888. # See if we have the minimum operation needed for GCC atomics
  14889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14890. /* end confdefs.h. */
  14891. int
  14892. main ()
  14893. {
  14894. int a;
  14895. __sync_lock_test_and_set(&a, 1);
  14896. __sync_lock_release(&a);
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_link "$LINENO"; then :
  14902. have_gcc_sync_lock_test_and_set=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext \
  14905. conftest$ac_exeext conftest.$ac_ext
  14906. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14907. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14908. fi
  14909. fi
  14910. fi
  14911. # Standard C sources
  14912. SOURCES="$SOURCES $srcdir/src/*.c"
  14913. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14914. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14921. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14922. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14924. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14932. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14933. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14934. # Check whether --enable-atomic was given.
  14935. if test "${enable_atomic+set}" = set; then :
  14936. enableval=$enable_atomic;
  14937. else
  14938. enable_atomic=yes
  14939. fi
  14940. if test x$enable_atomic != xyes; then
  14941. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14942. else
  14943. SUMMARY_modules="${SUMMARY_modules} atomic"
  14944. fi
  14945. # Check whether --enable-audio was given.
  14946. if test "${enable_audio+set}" = set; then :
  14947. enableval=$enable_audio;
  14948. else
  14949. enable_audio=yes
  14950. fi
  14951. if test x$enable_audio != xyes; then
  14952. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14953. else
  14954. SUMMARY_modules="${SUMMARY_modules} audio"
  14955. fi
  14956. # Check whether --enable-video was given.
  14957. if test "${enable_video+set}" = set; then :
  14958. enableval=$enable_video;
  14959. else
  14960. enable_video=yes
  14961. fi
  14962. if test x$enable_video != xyes; then
  14963. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14964. else
  14965. SUMMARY_modules="${SUMMARY_modules} video"
  14966. fi
  14967. # Check whether --enable-render was given.
  14968. if test "${enable_render+set}" = set; then :
  14969. enableval=$enable_render;
  14970. else
  14971. enable_render=yes
  14972. fi
  14973. if test x$enable_render != xyes; then
  14974. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14975. else
  14976. SUMMARY_modules="${SUMMARY_modules} render"
  14977. fi
  14978. # Check whether --enable-events was given.
  14979. if test "${enable_events+set}" = set; then :
  14980. enableval=$enable_events;
  14981. else
  14982. enable_events=yes
  14983. fi
  14984. if test x$enable_events != xyes; then
  14985. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14986. else
  14987. SUMMARY_modules="${SUMMARY_modules} events"
  14988. fi
  14989. # Check whether --enable-joystick was given.
  14990. if test "${enable_joystick+set}" = set; then :
  14991. enableval=$enable_joystick;
  14992. else
  14993. enable_joystick=yes
  14994. fi
  14995. if test x$enable_joystick != xyes; then
  14996. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14997. else
  14998. SUMMARY_modules="${SUMMARY_modules} joystick"
  14999. fi
  15000. # Check whether --enable-haptic was given.
  15001. if test "${enable_haptic+set}" = set; then :
  15002. enableval=$enable_haptic;
  15003. else
  15004. enable_haptic=yes
  15005. fi
  15006. if test x$enable_haptic != xyes; then
  15007. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15008. else
  15009. SUMMARY_modules="${SUMMARY_modules} haptic"
  15010. fi
  15011. # Check whether --enable-sensor was given.
  15012. if test "${enable_sensor+set}" = set; then :
  15013. enableval=$enable_sensor;
  15014. else
  15015. enable_sensor=yes
  15016. fi
  15017. if test x$enable_sensor != xyes; then
  15018. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15019. else
  15020. SUMMARY_modules="${SUMMARY_modules} sensor"
  15021. fi
  15022. # Check whether --enable-power was given.
  15023. if test "${enable_power+set}" = set; then :
  15024. enableval=$enable_power;
  15025. else
  15026. enable_power=yes
  15027. fi
  15028. if test x$enable_power != xyes; then
  15029. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15030. else
  15031. SUMMARY_modules="${SUMMARY_modules} power"
  15032. fi
  15033. # Check whether --enable-filesystem was given.
  15034. if test "${enable_filesystem+set}" = set; then :
  15035. enableval=$enable_filesystem;
  15036. else
  15037. enable_filesystem=yes
  15038. fi
  15039. if test x$enable_filesystem != xyes; then
  15040. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15041. else
  15042. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15043. fi
  15044. # Check whether --enable-threads was given.
  15045. if test "${enable_threads+set}" = set; then :
  15046. enableval=$enable_threads;
  15047. else
  15048. enable_threads=yes
  15049. fi
  15050. if test x$enable_threads != xyes; then
  15051. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15052. else
  15053. SUMMARY_modules="${SUMMARY_modules} threads"
  15054. fi
  15055. # Check whether --enable-timers was given.
  15056. if test "${enable_timers+set}" = set; then :
  15057. enableval=$enable_timers;
  15058. else
  15059. enable_timers=yes
  15060. fi
  15061. if test x$enable_timers != xyes; then
  15062. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15063. else
  15064. SUMMARY_modules="${SUMMARY_modules} timers"
  15065. fi
  15066. # Check whether --enable-file was given.
  15067. if test "${enable_file+set}" = set; then :
  15068. enableval=$enable_file;
  15069. else
  15070. enable_file=yes
  15071. fi
  15072. if test x$enable_file != xyes; then
  15073. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15074. else
  15075. SUMMARY_modules="${SUMMARY_modules} file"
  15076. fi
  15077. # Check whether --enable-loadso was given.
  15078. if test "${enable_loadso+set}" = set; then :
  15079. enableval=$enable_loadso;
  15080. else
  15081. enable_loadso=yes
  15082. fi
  15083. if test x$enable_loadso != xyes; then
  15084. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15085. else
  15086. SUMMARY_modules="${SUMMARY_modules} loadso"
  15087. fi
  15088. # Check whether --enable-cpuinfo was given.
  15089. if test "${enable_cpuinfo+set}" = set; then :
  15090. enableval=$enable_cpuinfo;
  15091. else
  15092. enable_cpuinfo=yes
  15093. fi
  15094. if test x$enable_cpuinfo != xyes; then
  15095. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15096. else
  15097. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15098. fi
  15099. # Check whether --enable-assembly was given.
  15100. if test "${enable_assembly+set}" = set; then :
  15101. enableval=$enable_assembly;
  15102. else
  15103. enable_assembly=yes
  15104. fi
  15105. if test x$enable_assembly = xyes; then
  15106. SUMMARY_modules="${SUMMARY_modules} assembly"
  15107. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15108. # Make sure that we don't generate floating point code that would
  15109. # cause illegal instruction exceptions on older processors
  15110. case "$host" in
  15111. *-*-darwin*)
  15112. # Don't need to worry about Apple hardware, it's all SSE capable
  15113. default_ssemath=yes
  15114. ;;
  15115. *64-*-*)
  15116. # x86 64-bit architectures all have SSE instructions
  15117. default_ssemath=yes
  15118. ;;
  15119. *)
  15120. default_ssemath=no
  15121. ;;
  15122. esac
  15123. # Check whether --enable-ssemath was given.
  15124. if test "${enable_ssemath+set}" = set; then :
  15125. enableval=$enable_ssemath;
  15126. else
  15127. enable_ssemath=$default_ssemath
  15128. fi
  15129. if test x$enable_ssemath = xno; then
  15130. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15131. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15132. fi
  15133. fi
  15134. # Check whether --enable-mmx was given.
  15135. if test "${enable_mmx+set}" = set; then :
  15136. enableval=$enable_mmx;
  15137. else
  15138. enable_mmx=yes
  15139. fi
  15140. if test x$enable_mmx = xyes; then
  15141. save_CFLAGS="$CFLAGS"
  15142. have_gcc_mmx=no
  15143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15144. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15145. mmx_CFLAGS="-mmmx"
  15146. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15148. /* end confdefs.h. */
  15149. #ifdef __MINGW32__
  15150. #include <_mingw.h>
  15151. #ifdef __MINGW64_VERSION_MAJOR
  15152. #include <intrin.h>
  15153. #else
  15154. #include <mmintrin.h>
  15155. #endif
  15156. #else
  15157. #include <mmintrin.h>
  15158. #endif
  15159. #ifndef __MMX__
  15160. #error Assembler CPP flag not enabled
  15161. #endif
  15162. int
  15163. main ()
  15164. {
  15165. ;
  15166. return 0;
  15167. }
  15168. _ACEOF
  15169. if ac_fn_c_try_compile "$LINENO"; then :
  15170. have_gcc_mmx=yes
  15171. fi
  15172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15174. $as_echo "$have_gcc_mmx" >&6; }
  15175. CFLAGS="$save_CFLAGS"
  15176. if test x$have_gcc_mmx = xyes; then
  15177. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15178. SUMMARY_math="${SUMMARY_math} mmx"
  15179. fi
  15180. fi
  15181. # Check whether --enable-3dnow was given.
  15182. if test "${enable_3dnow+set}" = set; then :
  15183. enableval=$enable_3dnow;
  15184. else
  15185. enable_3dnow=yes
  15186. fi
  15187. if test x$enable_3dnow = xyes; then
  15188. save_CFLAGS="$CFLAGS"
  15189. have_gcc_3dnow=no
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15191. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15192. amd3dnow_CFLAGS="-m3dnow"
  15193. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15195. /* end confdefs.h. */
  15196. #include <mm3dnow.h>
  15197. #ifndef __3dNOW__
  15198. #error Assembler CPP flag not enabled
  15199. #endif
  15200. int
  15201. main ()
  15202. {
  15203. void *p = 0;
  15204. _m_prefetch(p);
  15205. ;
  15206. return 0;
  15207. }
  15208. _ACEOF
  15209. if ac_fn_c_try_link "$LINENO"; then :
  15210. have_gcc_3dnow=yes
  15211. fi
  15212. rm -f core conftest.err conftest.$ac_objext \
  15213. conftest$ac_exeext conftest.$ac_ext
  15214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15215. $as_echo "$have_gcc_3dnow" >&6; }
  15216. CFLAGS="$save_CFLAGS"
  15217. if test x$have_gcc_3dnow = xyes; then
  15218. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15219. SUMMARY_math="${SUMMARY_math} 3dnow"
  15220. fi
  15221. fi
  15222. # Check whether --enable-sse was given.
  15223. if test "${enable_sse+set}" = set; then :
  15224. enableval=$enable_sse;
  15225. else
  15226. enable_sse=yes
  15227. fi
  15228. if test x$enable_sse = xyes; then
  15229. save_CFLAGS="$CFLAGS"
  15230. have_gcc_sse=no
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15232. $as_echo_n "checking for GCC -msse option... " >&6; }
  15233. sse_CFLAGS="-msse"
  15234. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15236. /* end confdefs.h. */
  15237. #ifdef __MINGW32__
  15238. #include <_mingw.h>
  15239. #ifdef __MINGW64_VERSION_MAJOR
  15240. #include <intrin.h>
  15241. #else
  15242. #include <xmmintrin.h>
  15243. #endif
  15244. #else
  15245. #include <xmmintrin.h>
  15246. #endif
  15247. #ifndef __SSE__
  15248. #error Assembler CPP flag not enabled
  15249. #endif
  15250. int
  15251. main ()
  15252. {
  15253. ;
  15254. return 0;
  15255. }
  15256. _ACEOF
  15257. if ac_fn_c_try_compile "$LINENO"; then :
  15258. have_gcc_sse=yes
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15262. $as_echo "$have_gcc_sse" >&6; }
  15263. CFLAGS="$save_CFLAGS"
  15264. if test x$have_gcc_sse = xyes; then
  15265. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15266. SUMMARY_math="${SUMMARY_math} sse"
  15267. fi
  15268. fi
  15269. # Check whether --enable-sse2 was given.
  15270. if test "${enable_sse2+set}" = set; then :
  15271. enableval=$enable_sse2;
  15272. else
  15273. enable_sse2=$default_ssemath
  15274. fi
  15275. if test x$enable_sse2 = xyes; then
  15276. save_CFLAGS="$CFLAGS"
  15277. have_gcc_sse2=no
  15278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15279. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15280. sse2_CFLAGS="-msse2"
  15281. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15283. /* end confdefs.h. */
  15284. #ifdef __MINGW32__
  15285. #include <_mingw.h>
  15286. #ifdef __MINGW64_VERSION_MAJOR
  15287. #include <intrin.h>
  15288. #else
  15289. #include <emmintrin.h>
  15290. #endif
  15291. #else
  15292. #include <emmintrin.h>
  15293. #endif
  15294. #ifndef __SSE2__
  15295. #error Assembler CPP flag not enabled
  15296. #endif
  15297. int
  15298. main ()
  15299. {
  15300. ;
  15301. return 0;
  15302. }
  15303. _ACEOF
  15304. if ac_fn_c_try_compile "$LINENO"; then :
  15305. have_gcc_sse2=yes
  15306. fi
  15307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15309. $as_echo "$have_gcc_sse2" >&6; }
  15310. CFLAGS="$save_CFLAGS"
  15311. if test x$have_gcc_sse2 = xyes; then
  15312. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15313. SUMMARY_math="${SUMMARY_math} sse2"
  15314. fi
  15315. fi
  15316. # Check whether --enable-sse3 was given.
  15317. if test "${enable_sse3+set}" = set; then :
  15318. enableval=$enable_sse3;
  15319. else
  15320. enable_sse3=$default_ssemath
  15321. fi
  15322. if test x$enable_sse3 = xyes; then
  15323. save_CFLAGS="$CFLAGS"
  15324. have_gcc_sse3=no
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15326. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15327. sse3_CFLAGS="-msse3"
  15328. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15330. /* end confdefs.h. */
  15331. #ifdef __MINGW32__
  15332. #include <_mingw.h>
  15333. #ifdef __MINGW64_VERSION_MAJOR
  15334. #include <intrin.h>
  15335. #else
  15336. #include <pmmintrin.h>
  15337. #endif
  15338. #else
  15339. #include <pmmintrin.h>
  15340. #endif
  15341. #ifndef __SSE2__
  15342. #error Assembler CPP flag not enabled
  15343. #endif
  15344. int
  15345. main ()
  15346. {
  15347. ;
  15348. return 0;
  15349. }
  15350. _ACEOF
  15351. if ac_fn_c_try_compile "$LINENO"; then :
  15352. have_gcc_sse3=yes
  15353. fi
  15354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15356. $as_echo "$have_gcc_sse3" >&6; }
  15357. CFLAGS="$save_CFLAGS"
  15358. if test x$have_gcc_sse3 = xyes; then
  15359. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15360. SUMMARY_math="${SUMMARY_math} sse3"
  15361. fi
  15362. fi
  15363. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15364. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15365. have_immintrin_h_hdr=yes
  15366. else
  15367. have_immintrin_h_hdr=no
  15368. fi
  15369. if test x$have_immintrin_h_hdr = xyes; then
  15370. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15371. fi
  15372. # Check whether --enable-altivec was given.
  15373. if test "${enable_altivec+set}" = set; then :
  15374. enableval=$enable_altivec;
  15375. else
  15376. enable_altivec=yes
  15377. fi
  15378. if test x$enable_altivec = xyes; then
  15379. save_CFLAGS="$CFLAGS"
  15380. have_gcc_altivec=no
  15381. have_altivec_h_hdr=no
  15382. altivec_CFLAGS="-maltivec"
  15383. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15385. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15387. /* end confdefs.h. */
  15388. #include <altivec.h>
  15389. vector unsigned int vzero() {
  15390. return vec_splat_u32(0);
  15391. }
  15392. int
  15393. main ()
  15394. {
  15395. ;
  15396. return 0;
  15397. }
  15398. _ACEOF
  15399. if ac_fn_c_try_compile "$LINENO"; then :
  15400. have_gcc_altivec=yes
  15401. have_altivec_h_hdr=yes
  15402. fi
  15403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15405. $as_echo "$have_gcc_altivec" >&6; }
  15406. if test x$have_gcc_altivec = xno; then
  15407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15408. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. vector unsigned int vzero() {
  15412. return vec_splat_u32(0);
  15413. }
  15414. int
  15415. main ()
  15416. {
  15417. ;
  15418. return 0;
  15419. }
  15420. _ACEOF
  15421. if ac_fn_c_try_compile "$LINENO"; then :
  15422. have_gcc_altivec=yes
  15423. fi
  15424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15426. $as_echo "$have_gcc_altivec" >&6; }
  15427. fi
  15428. if test x$have_gcc_altivec = xno; then
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15430. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15431. altivec_CFLAGS="-faltivec"
  15432. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15434. /* end confdefs.h. */
  15435. #include <altivec.h>
  15436. vector unsigned int vzero() {
  15437. return vec_splat_u32(0);
  15438. }
  15439. int
  15440. main ()
  15441. {
  15442. ;
  15443. return 0;
  15444. }
  15445. _ACEOF
  15446. if ac_fn_c_try_compile "$LINENO"; then :
  15447. have_gcc_altivec=yes
  15448. have_altivec_h_hdr=yes
  15449. fi
  15450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15452. $as_echo "$have_gcc_altivec" >&6; }
  15453. fi
  15454. if test x$have_gcc_altivec = xno; then
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15456. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15458. /* end confdefs.h. */
  15459. vector unsigned int vzero() {
  15460. return vec_splat_u32(0);
  15461. }
  15462. int
  15463. main ()
  15464. {
  15465. ;
  15466. return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_compile "$LINENO"; then :
  15470. have_gcc_altivec=yes
  15471. fi
  15472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15474. $as_echo "$have_gcc_altivec" >&6; }
  15475. fi
  15476. CFLAGS="$save_CFLAGS"
  15477. if test x$have_gcc_altivec = xyes; then
  15478. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15479. if test x$have_altivec_h_hdr = xyes; then
  15480. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15481. fi
  15482. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15483. SUMMARY_math="${SUMMARY_math} altivec"
  15484. fi
  15485. fi
  15486. fi
  15487. CheckOSS()
  15488. {
  15489. # Check whether --enable-oss was given.
  15490. if test "${enable_oss+set}" = set; then :
  15491. enableval=$enable_oss;
  15492. else
  15493. enable_oss=maybe
  15494. fi
  15495. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15496. # use sndio instead. So on there, we default to disabled. You can force
  15497. # it on if you really want, though.
  15498. if test x$enable_oss = xmaybe; then
  15499. enable_oss=yes
  15500. case "$host" in
  15501. *-*-openbsd*)
  15502. enable_oss=no;;
  15503. esac
  15504. fi
  15505. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15507. $as_echo_n "checking for OSS audio support... " >&6; }
  15508. have_oss=no
  15509. if test x$have_oss != xyes; then
  15510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15511. /* end confdefs.h. */
  15512. #include <sys/soundcard.h>
  15513. int
  15514. main ()
  15515. {
  15516. int arg = SNDCTL_DSP_SETFRAGMENT;
  15517. ;
  15518. return 0;
  15519. }
  15520. _ACEOF
  15521. if ac_fn_c_try_compile "$LINENO"; then :
  15522. have_oss=yes
  15523. fi
  15524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15525. fi
  15526. if test x$have_oss != xyes; then
  15527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15528. /* end confdefs.h. */
  15529. #include <soundcard.h>
  15530. int
  15531. main ()
  15532. {
  15533. int arg = SNDCTL_DSP_SETFRAGMENT;
  15534. ;
  15535. return 0;
  15536. }
  15537. _ACEOF
  15538. if ac_fn_c_try_compile "$LINENO"; then :
  15539. have_oss=yes
  15540. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15541. fi
  15542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15543. fi
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15545. $as_echo "$have_oss" >&6; }
  15546. if test x$have_oss = xyes; then
  15547. SUMMARY_audio="${SUMMARY_audio} oss"
  15548. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15549. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15550. have_audio=yes
  15551. # We may need to link with ossaudio emulation library
  15552. case "$host" in
  15553. *-*-openbsd*|*-*-netbsd*)
  15554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15555. esac
  15556. fi
  15557. fi
  15558. }
  15559. CheckALSA()
  15560. {
  15561. # Check whether --enable-alsa was given.
  15562. if test "${enable_alsa+set}" = set; then :
  15563. enableval=$enable_alsa;
  15564. else
  15565. enable_alsa=yes
  15566. fi
  15567. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15568. alsa_save_CFLAGS="$CFLAGS"
  15569. alsa_save_LDFLAGS="$LDFLAGS"
  15570. alsa_save_LIBS="$LIBS"
  15571. alsa_found=yes
  15572. # Check whether --with-alsa-prefix was given.
  15573. if test "${with_alsa_prefix+set}" = set; then :
  15574. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15575. else
  15576. alsa_prefix=""
  15577. fi
  15578. # Check whether --with-alsa-inc-prefix was given.
  15579. if test "${with_alsa_inc_prefix+set}" = set; then :
  15580. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15581. else
  15582. alsa_inc_prefix=""
  15583. fi
  15584. # Check whether --enable-alsatest was given.
  15585. if test "${enable_alsatest+set}" = set; then :
  15586. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15587. else
  15588. enable_alsatest=yes
  15589. fi
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15591. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15592. if test "$alsa_inc_prefix" != "" ; then
  15593. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15594. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15595. fi
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15597. $as_echo "$ALSA_CFLAGS" >&6; }
  15598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15599. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15600. if test "$alsa_prefix" != "" ; then
  15601. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15602. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15603. fi
  15604. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15605. LIBS=`echo $LIBS | sed 's/-lm//'`
  15606. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15607. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15608. LIBS=`echo $LIBS | sed 's/ //'`
  15609. LIBS="$ALSA_LIBS $LIBS"
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15611. $as_echo "$ALSA_LIBS" >&6; }
  15612. min_alsa_version=1.0.11
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15614. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15615. no_alsa=""
  15616. alsa_min_major_version=`echo $min_alsa_version | \
  15617. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15618. alsa_min_minor_version=`echo $min_alsa_version | \
  15619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15620. alsa_min_micro_version=`echo $min_alsa_version | \
  15621. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15622. ac_ext=c
  15623. ac_cpp='$CPP $CPPFLAGS'
  15624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15628. /* end confdefs.h. */
  15629. #include <alsa/asoundlib.h>
  15630. int
  15631. main ()
  15632. {
  15633. /* ensure backward compatibility */
  15634. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15635. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15636. #endif
  15637. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15638. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15639. #endif
  15640. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15641. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15642. #endif
  15643. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15644. exit(0);
  15645. # else
  15646. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15647. # error not present
  15648. # endif
  15649. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15650. exit(0);
  15651. # else
  15652. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15653. # error not present
  15654. # endif
  15655. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15656. # error not present
  15657. # endif
  15658. # endif
  15659. # endif
  15660. exit(0);
  15661. ;
  15662. return 0;
  15663. }
  15664. _ACEOF
  15665. if ac_fn_c_try_compile "$LINENO"; then :
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15667. $as_echo "found." >&6; }
  15668. else
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15670. $as_echo "not present." >&6; }
  15671. alsa_found=no
  15672. fi
  15673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15674. ac_ext=c
  15675. ac_cpp='$CPP $CPPFLAGS'
  15676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15679. if test "x$enable_alsatest" = "xyes"; then
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15681. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15682. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15683. $as_echo_n "(cached) " >&6
  15684. else
  15685. ac_check_lib_save_LIBS=$LIBS
  15686. LIBS="-lasound $LIBS"
  15687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15688. /* end confdefs.h. */
  15689. /* Override any GCC internal prototype to avoid an error.
  15690. Use char because int might match the return type of a GCC
  15691. builtin and then its argument prototype would still apply. */
  15692. #ifdef __cplusplus
  15693. extern "C"
  15694. #endif
  15695. char snd_ctl_open ();
  15696. int
  15697. main ()
  15698. {
  15699. return snd_ctl_open ();
  15700. ;
  15701. return 0;
  15702. }
  15703. _ACEOF
  15704. if ac_fn_c_try_link "$LINENO"; then :
  15705. ac_cv_lib_asound_snd_ctl_open=yes
  15706. else
  15707. ac_cv_lib_asound_snd_ctl_open=no
  15708. fi
  15709. rm -f core conftest.err conftest.$ac_objext \
  15710. conftest$ac_exeext conftest.$ac_ext
  15711. LIBS=$ac_check_lib_save_LIBS
  15712. fi
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15714. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15715. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15716. cat >>confdefs.h <<_ACEOF
  15717. #define HAVE_LIBASOUND 1
  15718. _ACEOF
  15719. LIBS="-lasound $LIBS"
  15720. else
  15721. alsa_found=no
  15722. fi
  15723. fi
  15724. if test "x$alsa_found" = "xyes" ; then
  15725. have_alsa=yes
  15726. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15727. LIBS=`echo $LIBS | sed 's/ //'`
  15728. LIBS="-lasound $LIBS"
  15729. fi
  15730. if test "x$alsa_found" = "xno" ; then
  15731. have_alsa=no
  15732. CFLAGS="$alsa_save_CFLAGS"
  15733. LDFLAGS="$alsa_save_LDFLAGS"
  15734. LIBS="$alsa_save_LIBS"
  15735. ALSA_CFLAGS=""
  15736. ALSA_LIBS=""
  15737. fi
  15738. # Restore all flags from before the ALSA detection runs
  15739. CFLAGS="$alsa_save_CFLAGS"
  15740. LDFLAGS="$alsa_save_LDFLAGS"
  15741. LIBS="$alsa_save_LIBS"
  15742. if test x$have_alsa = xyes; then
  15743. # Check whether --enable-alsa-shared was given.
  15744. if test "${enable_alsa_shared+set}" = set; then :
  15745. enableval=$enable_alsa_shared;
  15746. else
  15747. enable_alsa_shared=yes
  15748. fi
  15749. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15750. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15751. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15752. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15753. if test x$have_loadso != xyes && \
  15754. test x$enable_alsa_shared = xyes; then
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15756. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15757. fi
  15758. if test x$have_loadso = xyes && \
  15759. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15760. echo "-- dynamic libasound -> $alsa_lib"
  15761. cat >>confdefs.h <<_ACEOF
  15762. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15763. _ACEOF
  15764. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15765. else
  15766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15767. SUMMARY_audio="${SUMMARY_audio} alsa"
  15768. fi
  15769. have_audio=yes
  15770. fi
  15771. fi
  15772. }
  15773. CheckJACK()
  15774. {
  15775. # Check whether --enable-jack was given.
  15776. if test "${enable_jack+set}" = set; then :
  15777. enableval=$enable_jack;
  15778. else
  15779. enable_jack=yes
  15780. fi
  15781. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15782. pkg_failed=no
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15784. $as_echo_n "checking for JACK... " >&6; }
  15785. if test -n "$JACK_CFLAGS"; then
  15786. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15787. elif test -n "$PKG_CONFIG"; then
  15788. if test -n "$PKG_CONFIG" && \
  15789. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15790. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15791. ac_status=$?
  15792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15793. test $ac_status = 0; }; then
  15794. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15795. else
  15796. pkg_failed=yes
  15797. fi
  15798. else
  15799. pkg_failed=untried
  15800. fi
  15801. if test -n "$JACK_LIBS"; then
  15802. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15803. elif test -n "$PKG_CONFIG"; then
  15804. if test -n "$PKG_CONFIG" && \
  15805. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15806. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15807. ac_status=$?
  15808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15809. test $ac_status = 0; }; then
  15810. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15811. else
  15812. pkg_failed=yes
  15813. fi
  15814. else
  15815. pkg_failed=untried
  15816. fi
  15817. if test $pkg_failed = yes; then
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15819. $as_echo "no" >&6; }
  15820. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15821. _pkg_short_errors_supported=yes
  15822. else
  15823. _pkg_short_errors_supported=no
  15824. fi
  15825. if test $_pkg_short_errors_supported = yes; then
  15826. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15827. else
  15828. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15829. fi
  15830. # Put the nasty error message in config.log where it belongs
  15831. echo "$JACK_PKG_ERRORS" >&5
  15832. audio_jack=no
  15833. elif test $pkg_failed = untried; then
  15834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15835. $as_echo "no" >&6; }
  15836. audio_jack=no
  15837. else
  15838. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15839. JACK_LIBS=$pkg_cv_JACK_LIBS
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15841. $as_echo "yes" >&6; }
  15842. audio_jack=yes
  15843. fi
  15844. if test x$audio_jack = xyes; then
  15845. # Check whether --enable-jack-shared was given.
  15846. if test "${enable_jack_shared+set}" = set; then :
  15847. enableval=$enable_jack_shared;
  15848. else
  15849. enable_jack_shared=yes
  15850. fi
  15851. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15852. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15853. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15854. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15855. if test x$have_loadso != xyes && \
  15856. test x$enable_jack_shared = xyes; then
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15858. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15859. fi
  15860. if test x$have_loadso = xyes && \
  15861. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15862. echo "-- dynamic libjack -> $jack_lib"
  15863. cat >>confdefs.h <<_ACEOF
  15864. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15865. _ACEOF
  15866. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15867. case "$host" in
  15868. # On Solaris, jack must be linked deferred explicitly
  15869. # to prevent undefined symbol failures.
  15870. *-*-solaris*)
  15871. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15873. esac
  15874. else
  15875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15876. SUMMARY_audio="${SUMMARY_audio} jack"
  15877. fi
  15878. have_audio=yes
  15879. fi
  15880. fi
  15881. }
  15882. CheckESD()
  15883. {
  15884. # Check whether --enable-esd was given.
  15885. if test "${enable_esd+set}" = set; then :
  15886. enableval=$enable_esd;
  15887. else
  15888. enable_esd=yes
  15889. fi
  15890. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15891. # Check whether --with-esd-prefix was given.
  15892. if test "${with_esd_prefix+set}" = set; then :
  15893. withval=$with_esd_prefix; esd_prefix="$withval"
  15894. else
  15895. esd_prefix=""
  15896. fi
  15897. # Check whether --with-esd-exec-prefix was given.
  15898. if test "${with_esd_exec_prefix+set}" = set; then :
  15899. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15900. else
  15901. esd_exec_prefix=""
  15902. fi
  15903. # Check whether --enable-esdtest was given.
  15904. if test "${enable_esdtest+set}" = set; then :
  15905. enableval=$enable_esdtest;
  15906. else
  15907. enable_esdtest=yes
  15908. fi
  15909. if test x$esd_exec_prefix != x ; then
  15910. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15911. if test x${ESD_CONFIG+set} != xset ; then
  15912. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15913. fi
  15914. fi
  15915. if test x$esd_prefix != x ; then
  15916. esd_args="$esd_args --prefix=$esd_prefix"
  15917. if test x${ESD_CONFIG+set} != xset ; then
  15918. ESD_CONFIG=$esd_prefix/bin/esd-config
  15919. fi
  15920. fi
  15921. # Extract the first word of "esd-config", so it can be a program name with args.
  15922. set dummy esd-config; ac_word=$2
  15923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15924. $as_echo_n "checking for $ac_word... " >&6; }
  15925. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15926. $as_echo_n "(cached) " >&6
  15927. else
  15928. case $ESD_CONFIG in
  15929. [\\/]* | ?:[\\/]*)
  15930. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15931. ;;
  15932. *)
  15933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15934. for as_dir in $PATH
  15935. do
  15936. IFS=$as_save_IFS
  15937. test -z "$as_dir" && as_dir=.
  15938. for ac_exec_ext in '' $ac_executable_extensions; do
  15939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15940. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15942. break 2
  15943. fi
  15944. done
  15945. done
  15946. IFS=$as_save_IFS
  15947. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15948. ;;
  15949. esac
  15950. fi
  15951. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15952. if test -n "$ESD_CONFIG"; then
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15954. $as_echo "$ESD_CONFIG" >&6; }
  15955. else
  15956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15957. $as_echo "no" >&6; }
  15958. fi
  15959. min_esd_version=0.2.8
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15961. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15962. no_esd=""
  15963. if test "$ESD_CONFIG" = "no" ; then
  15964. no_esd=yes
  15965. else
  15966. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15967. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15968. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15969. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15970. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15971. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15972. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15973. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15974. if test "x$enable_esdtest" = "xyes" ; then
  15975. ac_save_CFLAGS="$CFLAGS"
  15976. ac_save_LIBS="$LIBS"
  15977. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15978. LIBS="$LIBS $ESD_LIBS"
  15979. rm -f conf.esdtest
  15980. if test "$cross_compiling" = yes; then :
  15981. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15982. else
  15983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15984. /* end confdefs.h. */
  15985. #include <stdio.h>
  15986. #include <stdlib.h>
  15987. #include <string.h>
  15988. #include <esd.h>
  15989. char*
  15990. my_strdup (char *str)
  15991. {
  15992. char *new_str;
  15993. if (str)
  15994. {
  15995. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15996. strcpy (new_str, str);
  15997. }
  15998. else
  15999. new_str = NULL;
  16000. return new_str;
  16001. }
  16002. int main ()
  16003. {
  16004. int major, minor, micro;
  16005. char *tmp_version;
  16006. system ("touch conf.esdtest");
  16007. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16008. tmp_version = my_strdup("$min_esd_version");
  16009. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16010. printf("%s, bad version string\n", "$min_esd_version");
  16011. exit(1);
  16012. }
  16013. if (($esd_major_version > major) ||
  16014. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16015. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16016. {
  16017. return 0;
  16018. }
  16019. else
  16020. {
  16021. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16022. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16023. printf("*** best to upgrade to the required version.\n");
  16024. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16025. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16026. printf("*** config.cache before re-running configure\n");
  16027. return 1;
  16028. }
  16029. }
  16030. _ACEOF
  16031. if ac_fn_c_try_run "$LINENO"; then :
  16032. else
  16033. no_esd=yes
  16034. fi
  16035. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16036. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16037. fi
  16038. CFLAGS="$ac_save_CFLAGS"
  16039. LIBS="$ac_save_LIBS"
  16040. fi
  16041. fi
  16042. if test "x$no_esd" = x ; then
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16044. $as_echo "yes" >&6; }
  16045. have_esd=yes
  16046. else
  16047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16048. $as_echo "no" >&6; }
  16049. if test "$ESD_CONFIG" = "no" ; then
  16050. echo "*** The esd-config script installed by ESD could not be found"
  16051. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16052. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16053. echo "*** full path to esd-config."
  16054. else
  16055. if test -f conf.esdtest ; then
  16056. :
  16057. else
  16058. echo "*** Could not run ESD test program, checking why..."
  16059. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16060. LIBS="$LIBS $ESD_LIBS"
  16061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16062. /* end confdefs.h. */
  16063. #include <stdio.h>
  16064. #include <esd.h>
  16065. int
  16066. main ()
  16067. {
  16068. return 0;
  16069. ;
  16070. return 0;
  16071. }
  16072. _ACEOF
  16073. if ac_fn_c_try_link "$LINENO"; then :
  16074. echo "*** The test program compiled, but did not run. This usually means"
  16075. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16076. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16077. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16078. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16079. echo "*** is required on your system"
  16080. echo "***"
  16081. echo "*** If you have an old version installed, it is best to remove it, although"
  16082. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16083. else
  16084. echo "*** The test program failed to compile or link. See the file config.log for the"
  16085. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16086. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16087. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16088. fi
  16089. rm -f core conftest.err conftest.$ac_objext \
  16090. conftest$ac_exeext conftest.$ac_ext
  16091. CFLAGS="$ac_save_CFLAGS"
  16092. LIBS="$ac_save_LIBS"
  16093. fi
  16094. fi
  16095. ESD_CFLAGS=""
  16096. ESD_LIBS=""
  16097. have_esd=no
  16098. fi
  16099. rm -f conf.esdtest
  16100. if test x$have_esd = xyes; then
  16101. # Check whether --enable-esd-shared was given.
  16102. if test "${enable_esd_shared+set}" = set; then :
  16103. enableval=$enable_esd_shared;
  16104. else
  16105. enable_esd_shared=yes
  16106. fi
  16107. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16108. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16109. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16110. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16111. if test x$have_loadso != xyes && \
  16112. test x$enable_esd_shared = xyes; then
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16114. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16115. fi
  16116. if test x$have_loadso = xyes && \
  16117. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16118. echo "-- dynamic libesd -> $esd_lib"
  16119. cat >>confdefs.h <<_ACEOF
  16120. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16121. _ACEOF
  16122. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16123. else
  16124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16125. SUMMARY_audio="${SUMMARY_audio} esd"
  16126. fi
  16127. have_audio=yes
  16128. fi
  16129. fi
  16130. }
  16131. CheckPulseAudio()
  16132. {
  16133. # Check whether --enable-pulseaudio was given.
  16134. if test "${enable_pulseaudio+set}" = set; then :
  16135. enableval=$enable_pulseaudio;
  16136. else
  16137. enable_pulseaudio=yes
  16138. fi
  16139. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16140. pkg_failed=no
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16142. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16143. if test -n "$PULSEAUDIO_CFLAGS"; then
  16144. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16145. elif test -n "$PKG_CONFIG"; then
  16146. if test -n "$PKG_CONFIG" && \
  16147. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16148. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16149. ac_status=$?
  16150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16151. test $ac_status = 0; }; then
  16152. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16153. else
  16154. pkg_failed=yes
  16155. fi
  16156. else
  16157. pkg_failed=untried
  16158. fi
  16159. if test -n "$PULSEAUDIO_LIBS"; then
  16160. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16161. elif test -n "$PKG_CONFIG"; then
  16162. if test -n "$PKG_CONFIG" && \
  16163. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16164. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16165. ac_status=$?
  16166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16167. test $ac_status = 0; }; then
  16168. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16169. else
  16170. pkg_failed=yes
  16171. fi
  16172. else
  16173. pkg_failed=untried
  16174. fi
  16175. if test $pkg_failed = yes; then
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16177. $as_echo "no" >&6; }
  16178. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16179. _pkg_short_errors_supported=yes
  16180. else
  16181. _pkg_short_errors_supported=no
  16182. fi
  16183. if test $_pkg_short_errors_supported = yes; then
  16184. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16185. else
  16186. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16187. fi
  16188. # Put the nasty error message in config.log where it belongs
  16189. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16190. audio_pulseaudio=no
  16191. elif test $pkg_failed = untried; then
  16192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16193. $as_echo "no" >&6; }
  16194. audio_pulseaudio=no
  16195. else
  16196. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16197. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16199. $as_echo "yes" >&6; }
  16200. audio_pulseaudio=yes
  16201. fi
  16202. if test x$audio_pulseaudio = xyes; then
  16203. # Check whether --enable-pulseaudio-shared was given.
  16204. if test "${enable_pulseaudio_shared+set}" = set; then :
  16205. enableval=$enable_pulseaudio_shared;
  16206. else
  16207. enable_pulseaudio_shared=yes
  16208. fi
  16209. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16210. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16211. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16212. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16213. if test x$have_loadso != xyes && \
  16214. test x$enable_pulseaudio_shared = xyes; then
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16216. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16217. fi
  16218. if test x$have_loadso = xyes && \
  16219. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16220. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16221. cat >>confdefs.h <<_ACEOF
  16222. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16223. _ACEOF
  16224. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16225. case "$host" in
  16226. # On Solaris, pulseaudio must be linked deferred explicitly
  16227. # to prevent undefined symbol failures.
  16228. *-*-solaris*)
  16229. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16231. esac
  16232. else
  16233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16234. SUMMARY_audio="${SUMMARY_audio} pulse"
  16235. fi
  16236. have_audio=yes
  16237. fi
  16238. fi
  16239. }
  16240. CheckARTSC()
  16241. {
  16242. # Check whether --enable-arts was given.
  16243. if test "${enable_arts+set}" = set; then :
  16244. enableval=$enable_arts;
  16245. else
  16246. enable_arts=yes
  16247. fi
  16248. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16249. # Extract the first word of "artsc-config", so it can be a program name with args.
  16250. set dummy artsc-config; ac_word=$2
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16252. $as_echo_n "checking for $ac_word... " >&6; }
  16253. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16254. $as_echo_n "(cached) " >&6
  16255. else
  16256. case $ARTSCONFIG in
  16257. [\\/]* | ?:[\\/]*)
  16258. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16259. ;;
  16260. *)
  16261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16262. for as_dir in $PATH
  16263. do
  16264. IFS=$as_save_IFS
  16265. test -z "$as_dir" && as_dir=.
  16266. for ac_exec_ext in '' $ac_executable_extensions; do
  16267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16268. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16270. break 2
  16271. fi
  16272. done
  16273. done
  16274. IFS=$as_save_IFS
  16275. ;;
  16276. esac
  16277. fi
  16278. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16279. if test -n "$ARTSCONFIG"; then
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16281. $as_echo "$ARTSCONFIG" >&6; }
  16282. else
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16284. $as_echo "no" >&6; }
  16285. fi
  16286. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16287. : # arts isn't installed
  16288. else
  16289. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16290. ARTS_LIBS=`$ARTSCONFIG --libs`
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16292. $as_echo_n "checking for aRts development environment... " >&6; }
  16293. audio_arts=no
  16294. save_CFLAGS="$CFLAGS"
  16295. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16297. /* end confdefs.h. */
  16298. #include <artsc.h>
  16299. int
  16300. main ()
  16301. {
  16302. arts_stream_t stream;
  16303. ;
  16304. return 0;
  16305. }
  16306. _ACEOF
  16307. if ac_fn_c_try_compile "$LINENO"; then :
  16308. audio_arts=yes
  16309. fi
  16310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16311. CFLAGS="$save_CFLAGS"
  16312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16313. $as_echo "$audio_arts" >&6; }
  16314. if test x$audio_arts = xyes; then
  16315. # Check whether --enable-arts-shared was given.
  16316. if test "${enable_arts_shared+set}" = set; then :
  16317. enableval=$enable_arts_shared;
  16318. else
  16319. enable_arts_shared=yes
  16320. fi
  16321. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16322. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16323. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16324. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16325. if test x$have_loadso != xyes && \
  16326. test x$enable_arts_shared = xyes; then
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16328. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16329. fi
  16330. if test x$have_loadso = xyes && \
  16331. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16332. echo "-- dynamic libartsc -> $arts_lib"
  16333. cat >>confdefs.h <<_ACEOF
  16334. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16335. _ACEOF
  16336. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16337. else
  16338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16339. SUMMARY_audio="${SUMMARY_audio} arts"
  16340. fi
  16341. have_audio=yes
  16342. fi
  16343. fi
  16344. fi
  16345. }
  16346. CheckNAS()
  16347. {
  16348. # Check whether --enable-nas was given.
  16349. if test "${enable_nas+set}" = set; then :
  16350. enableval=$enable_nas;
  16351. else
  16352. enable_nas=yes
  16353. fi
  16354. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16355. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16356. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16357. have_nas_hdr=yes
  16358. fi
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16360. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16361. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16362. $as_echo_n "(cached) " >&6
  16363. else
  16364. ac_check_lib_save_LIBS=$LIBS
  16365. LIBS="-laudio $LIBS"
  16366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16367. /* end confdefs.h. */
  16368. /* Override any GCC internal prototype to avoid an error.
  16369. Use char because int might match the return type of a GCC
  16370. builtin and then its argument prototype would still apply. */
  16371. #ifdef __cplusplus
  16372. extern "C"
  16373. #endif
  16374. char AuOpenServer ();
  16375. int
  16376. main ()
  16377. {
  16378. return AuOpenServer ();
  16379. ;
  16380. return 0;
  16381. }
  16382. _ACEOF
  16383. if ac_fn_c_try_link "$LINENO"; then :
  16384. ac_cv_lib_audio_AuOpenServer=yes
  16385. else
  16386. ac_cv_lib_audio_AuOpenServer=no
  16387. fi
  16388. rm -f core conftest.err conftest.$ac_objext \
  16389. conftest$ac_exeext conftest.$ac_ext
  16390. LIBS=$ac_check_lib_save_LIBS
  16391. fi
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16393. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16394. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16395. have_nas_lib=yes
  16396. fi
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16398. $as_echo_n "checking for NAS audio support... " >&6; }
  16399. have_nas=no
  16400. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16401. have_nas=yes
  16402. NAS_LIBS="-laudio"
  16403. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16404. have_nas=yes
  16405. NAS_CFLAGS="-I/usr/X11R6/include/"
  16406. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16407. fi
  16408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16409. $as_echo "$have_nas" >&6; }
  16410. if test x$have_nas = xyes; then
  16411. # Check whether --enable-nas-shared was given.
  16412. if test "${enable_nas_shared+set}" = set; then :
  16413. enableval=$enable_nas_shared;
  16414. else
  16415. enable_nas_shared=yes
  16416. fi
  16417. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16418. if test x$have_loadso != xyes && \
  16419. test x$enable_nas_shared = xyes; then
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16421. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16422. fi
  16423. if test x$have_loadso = xyes && \
  16424. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16425. echo "-- dynamic libaudio -> $nas_lib"
  16426. cat >>confdefs.h <<_ACEOF
  16427. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16428. _ACEOF
  16429. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16430. else
  16431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16432. SUMMARY_audio="${SUMMARY_audio} nas"
  16433. fi
  16434. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16435. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16436. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16437. have_audio=yes
  16438. fi
  16439. fi
  16440. }
  16441. CheckSNDIO()
  16442. {
  16443. # Check whether --enable-sndio was given.
  16444. if test "${enable_sndio+set}" = set; then :
  16445. enableval=$enable_sndio;
  16446. else
  16447. enable_sndio=yes
  16448. fi
  16449. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16450. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16451. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16452. have_sndio_hdr=yes
  16453. fi
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16455. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16456. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16457. $as_echo_n "(cached) " >&6
  16458. else
  16459. ac_check_lib_save_LIBS=$LIBS
  16460. LIBS="-lsndio $LIBS"
  16461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16462. /* end confdefs.h. */
  16463. /* Override any GCC internal prototype to avoid an error.
  16464. Use char because int might match the return type of a GCC
  16465. builtin and then its argument prototype would still apply. */
  16466. #ifdef __cplusplus
  16467. extern "C"
  16468. #endif
  16469. char sio_open ();
  16470. int
  16471. main ()
  16472. {
  16473. return sio_open ();
  16474. ;
  16475. return 0;
  16476. }
  16477. _ACEOF
  16478. if ac_fn_c_try_link "$LINENO"; then :
  16479. ac_cv_lib_sndio_sio_open=yes
  16480. else
  16481. ac_cv_lib_sndio_sio_open=no
  16482. fi
  16483. rm -f core conftest.err conftest.$ac_objext \
  16484. conftest$ac_exeext conftest.$ac_ext
  16485. LIBS=$ac_check_lib_save_LIBS
  16486. fi
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16488. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16489. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16490. have_sndio_lib=yes
  16491. fi
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16493. $as_echo_n "checking for sndio audio support... " >&6; }
  16494. have_sndio=no
  16495. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16496. have_sndio=yes
  16497. SNDIO_LIBS="-lsndio"
  16498. fi
  16499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16500. $as_echo "$have_sndio" >&6; }
  16501. if test x$have_sndio = xyes; then
  16502. # Check whether --enable-sndio-shared was given.
  16503. if test "${enable_sndio_shared+set}" = set; then :
  16504. enableval=$enable_sndio_shared;
  16505. else
  16506. enable_sndio_shared=yes
  16507. fi
  16508. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16509. if test x$have_loadso != xyes && \
  16510. test x$enable_sndio_shared = xyes; then
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16512. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16513. fi
  16514. if test x$have_loadso = xyes && \
  16515. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16516. echo "-- dynamic libsndio -> $sndio_lib"
  16517. cat >>confdefs.h <<_ACEOF
  16518. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16519. _ACEOF
  16520. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16521. else
  16522. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16523. SUMMARY_audio="${SUMMARY_audio} sndio"
  16524. fi
  16525. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16526. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16527. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16528. have_audio=yes
  16529. fi
  16530. fi
  16531. }
  16532. CheckFusionSound()
  16533. {
  16534. # Check whether --enable-fusionsound was given.
  16535. if test "${enable_fusionsound+set}" = set; then :
  16536. enableval=$enable_fusionsound;
  16537. else
  16538. enable_fusionsound=no
  16539. fi
  16540. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16541. pkg_failed=no
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16543. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16544. if test -n "$FUSIONSOUND_CFLAGS"; then
  16545. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16546. elif test -n "$PKG_CONFIG"; then
  16547. if test -n "$PKG_CONFIG" && \
  16548. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16549. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16550. ac_status=$?
  16551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16552. test $ac_status = 0; }; then
  16553. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16554. else
  16555. pkg_failed=yes
  16556. fi
  16557. else
  16558. pkg_failed=untried
  16559. fi
  16560. if test -n "$FUSIONSOUND_LIBS"; then
  16561. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16562. elif test -n "$PKG_CONFIG"; then
  16563. if test -n "$PKG_CONFIG" && \
  16564. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16565. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16566. ac_status=$?
  16567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16568. test $ac_status = 0; }; then
  16569. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16570. else
  16571. pkg_failed=yes
  16572. fi
  16573. else
  16574. pkg_failed=untried
  16575. fi
  16576. if test $pkg_failed = yes; then
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16578. $as_echo "no" >&6; }
  16579. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16580. _pkg_short_errors_supported=yes
  16581. else
  16582. _pkg_short_errors_supported=no
  16583. fi
  16584. if test $_pkg_short_errors_supported = yes; then
  16585. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16586. else
  16587. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16588. fi
  16589. # Put the nasty error message in config.log where it belongs
  16590. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16591. fusionsound=no
  16592. elif test $pkg_failed = untried; then
  16593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16594. $as_echo "no" >&6; }
  16595. fusionsound=no
  16596. else
  16597. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16598. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16600. $as_echo "yes" >&6; }
  16601. fusionsound=yes
  16602. fi
  16603. if test x$fusionsound = xyes; then
  16604. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16605. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16606. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16607. # Check whether --enable-fusionsound-shared was given.
  16608. if test "${enable_fusionsound_shared+set}" = set; then :
  16609. enableval=$enable_fusionsound_shared;
  16610. else
  16611. enable_fusionsound_shared=yes
  16612. fi
  16613. fusionsound_shared=no
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16615. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16616. if test x$have_loadso != xyes && \
  16617. test x$enable_fusionsound_shared = xyes; then
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16619. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16620. fi
  16621. if test x$have_loadso = xyes && \
  16622. test x$enable_fusionsound_shared = xyes; then
  16623. cat >>confdefs.h <<_ACEOF
  16624. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16625. _ACEOF
  16626. fusionsound_shared=yes
  16627. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16628. else
  16629. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16630. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16631. fi
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16633. $as_echo "$fusionsound_shared" >&6; }
  16634. have_audio=yes
  16635. fi
  16636. fi
  16637. }
  16638. CheckDiskAudio()
  16639. {
  16640. # Check whether --enable-diskaudio was given.
  16641. if test "${enable_diskaudio+set}" = set; then :
  16642. enableval=$enable_diskaudio;
  16643. else
  16644. enable_diskaudio=yes
  16645. fi
  16646. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16647. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16648. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16649. SUMMARY_audio="${SUMMARY_audio} disk"
  16650. fi
  16651. }
  16652. CheckDummyAudio()
  16653. {
  16654. # Check whether --enable-dummyaudio was given.
  16655. if test "${enable_dummyaudio+set}" = set; then :
  16656. enableval=$enable_dummyaudio;
  16657. else
  16658. enable_dummyaudio=yes
  16659. fi
  16660. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16661. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16662. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16663. SUMMARY_audio="${SUMMARY_audio} dummy"
  16664. fi
  16665. }
  16666. CheckLibSampleRate()
  16667. {
  16668. # Check whether --enable-libsamplerate was given.
  16669. if test "${enable_libsamplerate+set}" = set; then :
  16670. enableval=$enable_libsamplerate;
  16671. else
  16672. enable_libsamplerate=yes
  16673. fi
  16674. if test x$enable_libsamplerate = xyes; then
  16675. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16676. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16677. have_samplerate_h_hdr=yes
  16678. else
  16679. have_samplerate_h_hdr=no
  16680. fi
  16681. if test x$have_samplerate_h_hdr = xyes; then
  16682. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16683. # Check whether --enable-libsamplerate-shared was given.
  16684. if test "${enable_libsamplerate_shared+set}" = set; then :
  16685. enableval=$enable_libsamplerate_shared;
  16686. else
  16687. enable_libsamplerate_shared=yes
  16688. fi
  16689. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16690. if test x$have_loadso != xyes && \
  16691. test x$enable_libsamplerate_shared = xyes; then
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16693. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16694. fi
  16695. if test x$have_loadso = xyes && \
  16696. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16697. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16698. cat >>confdefs.h <<_ACEOF
  16699. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16700. _ACEOF
  16701. else
  16702. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16703. fi
  16704. fi
  16705. fi
  16706. }
  16707. CheckARM()
  16708. {
  16709. # Check whether --enable-arm-simd was given.
  16710. if test "${enable_arm_simd+set}" = set; then :
  16711. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16712. else
  16713. enable_arm_simd=no
  16714. fi
  16715. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16716. save_CFLAGS="$CFLAGS"
  16717. have_arm_simd=no
  16718. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16720. $as_echo_n "checking for ARM SIMD... " >&6; }
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. .text
  16724. .arch armv6
  16725. .object_arch armv4
  16726. .arm
  16727. .altmacro
  16728. #ifndef __ARM_EABI__
  16729. #error EABI is required (to be sure that calling conventions are compatible)
  16730. #endif
  16731. pld [r0]
  16732. uqadd8 r0, r0, r0
  16733. _ACEOF
  16734. if ac_fn_c_try_compile "$LINENO"; then :
  16735. have_arm_simd=yes
  16736. fi
  16737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16739. $as_echo "$have_arm_simd" >&6; }
  16740. CFLAGS="$save_CFLAGS"
  16741. if test x$have_arm_simd = xyes; then
  16742. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16743. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16744. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16745. fi
  16746. fi
  16747. }
  16748. CheckNEON()
  16749. {
  16750. # Check whether --enable-arm-neon was given.
  16751. if test "${enable_arm_neon+set}" = set; then :
  16752. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16753. else
  16754. enable_arm_neon=no
  16755. fi
  16756. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16757. save_CFLAGS="$CFLAGS"
  16758. have_arm_neon=no
  16759. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16761. $as_echo_n "checking for ARM NEON... " >&6; }
  16762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16763. /* end confdefs.h. */
  16764. .text
  16765. .fpu neon
  16766. .arch armv7a
  16767. .object_arch armv4
  16768. .eabi_attribute 10, 0
  16769. .arm
  16770. .altmacro
  16771. #ifndef __ARM_EABI__
  16772. #error EABI is required (to be sure that calling conventions are compatible)
  16773. #endif
  16774. pld [r0]
  16775. vmovn.u16 d0, q0
  16776. _ACEOF
  16777. if ac_fn_c_try_compile "$LINENO"; then :
  16778. have_arm_neon=yes
  16779. fi
  16780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16782. $as_echo "$have_arm_neon" >&6; }
  16783. CFLAGS="$save_CFLAGS"
  16784. if test x$have_arm_neon = xyes; then
  16785. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16786. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16787. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16788. fi
  16789. fi
  16790. }
  16791. CheckVisibilityHidden()
  16792. {
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16794. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16795. have_gcc_fvisibility=no
  16796. visibility_CFLAGS="-fvisibility=hidden"
  16797. save_CFLAGS="$CFLAGS"
  16798. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16800. /* end confdefs.h. */
  16801. #if !defined(__GNUC__) || __GNUC__ < 4
  16802. #error SDL only uses visibility attributes in GCC 4 or newer
  16803. #endif
  16804. int
  16805. main ()
  16806. {
  16807. ;
  16808. return 0;
  16809. }
  16810. _ACEOF
  16811. if ac_fn_c_try_compile "$LINENO"; then :
  16812. have_gcc_fvisibility=yes
  16813. fi
  16814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16816. $as_echo "$have_gcc_fvisibility" >&6; }
  16817. CFLAGS="$save_CFLAGS"
  16818. if test x$have_gcc_fvisibility = xyes; then
  16819. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16820. fi
  16821. }
  16822. CheckNoStrictAliasing()
  16823. {
  16824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16825. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16826. have_gcc_no_strict_aliasing=no
  16827. save_CFLAGS="$CFLAGS"
  16828. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16830. /* end confdefs.h. */
  16831. int x = 0;
  16832. int
  16833. main ()
  16834. {
  16835. ;
  16836. return 0;
  16837. }
  16838. _ACEOF
  16839. if ac_fn_c_try_compile "$LINENO"; then :
  16840. have_gcc_no_strict_aliasing=yes
  16841. fi
  16842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16844. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16845. CFLAGS="$save_CFLAGS"
  16846. if test x$have_gcc_no_strict_aliasing = xyes; then
  16847. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16848. fi
  16849. }
  16850. CheckStackBoundary()
  16851. {
  16852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16853. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16854. have_gcc_preferred_stack_boundary=no
  16855. save_CFLAGS="$CFLAGS"
  16856. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16858. /* end confdefs.h. */
  16859. int x = 0;
  16860. int
  16861. main ()
  16862. {
  16863. ;
  16864. return 0;
  16865. }
  16866. _ACEOF
  16867. if ac_fn_c_try_compile "$LINENO"; then :
  16868. have_gcc_preferred_stack_boundary=yes
  16869. fi
  16870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16872. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16873. CFLAGS="$save_CFLAGS"
  16874. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16875. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16876. fi
  16877. }
  16878. CheckDeclarationAfterStatement()
  16879. {
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16881. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16882. have_gcc_declaration_after_statement=no
  16883. save_CFLAGS="$CFLAGS"
  16884. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16886. /* end confdefs.h. */
  16887. int x = 0;
  16888. int
  16889. main ()
  16890. {
  16891. ;
  16892. return 0;
  16893. }
  16894. _ACEOF
  16895. if ac_fn_c_try_compile "$LINENO"; then :
  16896. have_gcc_declaration_after_statement=yes
  16897. fi
  16898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16900. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16901. CFLAGS="$save_CFLAGS"
  16902. if test x$have_gcc_declaration_after_statement = xyes; then
  16903. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16904. fi
  16905. }
  16906. CheckWarnAll()
  16907. {
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16909. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16910. have_gcc_Wall=no
  16911. save_CFLAGS="$CFLAGS"
  16912. CFLAGS="$save_CFLAGS -Wall"
  16913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16914. /* end confdefs.h. */
  16915. int x = 0;
  16916. int
  16917. main ()
  16918. {
  16919. ;
  16920. return 0;
  16921. }
  16922. _ACEOF
  16923. if ac_fn_c_try_compile "$LINENO"; then :
  16924. have_gcc_Wall=yes
  16925. fi
  16926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16928. $as_echo "$have_gcc_Wall" >&6; }
  16929. CFLAGS="$save_CFLAGS"
  16930. if test x$have_gcc_Wall = xyes; then
  16931. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16933. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16934. need_gcc_Wno_multichar=no
  16935. case "$host" in
  16936. *-*-haiku*)
  16937. need_gcc_Wno_multichar=yes
  16938. ;;
  16939. esac
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16941. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16942. if test x$need_gcc_Wno_multichar = xyes; then
  16943. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16944. fi
  16945. fi
  16946. }
  16947. CheckWayland()
  16948. {
  16949. # Check whether --enable-video-wayland was given.
  16950. if test "${enable_video_wayland+set}" = set; then :
  16951. enableval=$enable_video_wayland;
  16952. else
  16953. enable_video_wayland=yes
  16954. fi
  16955. # Check whether --enable-video-wayland-qt-touch was given.
  16956. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16957. enableval=$enable_video_wayland_qt_touch;
  16958. else
  16959. enable_video_wayland_qt_touch=yes
  16960. fi
  16961. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16963. $as_echo_n "checking for Wayland support... " >&6; }
  16964. video_wayland=no
  16965. if test x$video_opengl_egl = xyes && \
  16966. test x$video_opengles_v2 = xyes; then
  16967. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16968. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16969. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16970. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16971. video_wayland=yes
  16972. fi
  16973. fi
  16974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16975. $as_echo "$video_wayland" >&6; }
  16976. if test x$video_wayland = xyes; then
  16977. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16978. if test x$enable_video_wayland_qt_touch = xyes; then
  16979. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16980. fi
  16981. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16982. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16983. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16984. # Check whether --enable-wayland-shared was given.
  16985. if test "${enable_wayland_shared+set}" = set; then :
  16986. enableval=$enable_wayland_shared;
  16987. else
  16988. enable_wayland_shared=maybe
  16989. fi
  16990. case "$host" in
  16991. *)
  16992. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16993. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16994. if test x$wayland_egl_lib = x; then
  16995. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16996. fi
  16997. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16998. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16999. ;;
  17000. esac
  17001. if test x$enable_wayland_shared = xmaybe; then
  17002. enable_wayland_shared=yes
  17003. fi
  17004. if test x$have_loadso != xyes && \
  17005. test x$enable_wayland_shared = xyes; then
  17006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17007. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17008. enable_wayland_shared=no
  17009. fi
  17010. if test x$have_loadso = xyes && \
  17011. test x$enable_wayland_shared = xyes && \
  17012. test x$wayland_client_lib != x && \
  17013. test x$wayland_egl_lib != x && \
  17014. test x$wayland_cursor_lib != x && \
  17015. test x$xkbcommon_lib != x; then
  17016. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17017. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17018. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17019. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17020. cat >>confdefs.h <<_ACEOF
  17021. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17022. _ACEOF
  17023. cat >>confdefs.h <<_ACEOF
  17024. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17025. _ACEOF
  17026. cat >>confdefs.h <<_ACEOF
  17027. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17028. _ACEOF
  17029. cat >>confdefs.h <<_ACEOF
  17030. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17031. _ACEOF
  17032. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17033. else
  17034. enable_wayland_shared=no
  17035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17036. SUMMARY_video="${SUMMARY_video} wayland"
  17037. fi
  17038. have_video=yes
  17039. fi
  17040. fi
  17041. }
  17042. CheckNativeClient()
  17043. {
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. #if !defined(__native_client__)
  17047. #error "NO NACL"
  17048. #endif
  17049. int
  17050. main ()
  17051. {
  17052. ;
  17053. return 0;
  17054. }
  17055. _ACEOF
  17056. if ac_fn_c_try_compile "$LINENO"; then :
  17057. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17058. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17059. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17060. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17061. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17062. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17063. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17064. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17065. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17066. SUMMARY_audio="${SUMMARY_audio} nacl"
  17067. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17068. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17069. fi
  17070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17071. }
  17072. CheckRPI()
  17073. {
  17074. # Check whether --enable-video-rpi was given.
  17075. if test "${enable_video_rpi+set}" = set; then :
  17076. enableval=$enable_video_rpi;
  17077. else
  17078. enable_video_rpi=yes
  17079. fi
  17080. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17081. pkg_failed=no
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17083. $as_echo_n "checking for RPI... " >&6; }
  17084. if test -n "$RPI_CFLAGS"; then
  17085. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17086. elif test -n "$PKG_CONFIG"; then
  17087. if test -n "$PKG_CONFIG" && \
  17088. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17089. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17090. ac_status=$?
  17091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17092. test $ac_status = 0; }; then
  17093. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17094. else
  17095. pkg_failed=yes
  17096. fi
  17097. else
  17098. pkg_failed=untried
  17099. fi
  17100. if test -n "$RPI_LIBS"; then
  17101. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17102. elif test -n "$PKG_CONFIG"; then
  17103. if test -n "$PKG_CONFIG" && \
  17104. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17105. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17106. ac_status=$?
  17107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17108. test $ac_status = 0; }; then
  17109. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17110. else
  17111. pkg_failed=yes
  17112. fi
  17113. else
  17114. pkg_failed=untried
  17115. fi
  17116. if test $pkg_failed = yes; then
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17118. $as_echo "no" >&6; }
  17119. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17120. _pkg_short_errors_supported=yes
  17121. else
  17122. _pkg_short_errors_supported=no
  17123. fi
  17124. if test $_pkg_short_errors_supported = yes; then
  17125. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17126. else
  17127. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17128. fi
  17129. # Put the nasty error message in config.log where it belongs
  17130. echo "$RPI_PKG_ERRORS" >&5
  17131. video_rpi=no
  17132. elif test $pkg_failed = untried; then
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17134. $as_echo "no" >&6; }
  17135. video_rpi=no
  17136. else
  17137. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17138. RPI_LIBS=$pkg_cv_RPI_LIBS
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17140. $as_echo "yes" >&6; }
  17141. video_rpi=yes
  17142. fi
  17143. if test x$video_rpi = xno; then
  17144. if test x$ARCH = xnetbsd; then
  17145. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17146. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17147. else
  17148. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17149. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17150. fi
  17151. fi
  17152. # Save the original compiler flags and libraries
  17153. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17154. # Add the Raspberry Pi compiler flags and libraries
  17155. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17157. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17158. have_video_rpi=no
  17159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17160. /* end confdefs.h. */
  17161. #include <bcm_host.h>
  17162. int
  17163. main ()
  17164. {
  17165. bcm_host_init();
  17166. ;
  17167. return 0;
  17168. }
  17169. _ACEOF
  17170. if ac_fn_c_try_link "$LINENO"; then :
  17171. have_video_rpi=yes
  17172. fi
  17173. rm -f core conftest.err conftest.$ac_objext \
  17174. conftest$ac_exeext conftest.$ac_ext
  17175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17176. $as_echo "$have_video_rpi" >&6; }
  17177. # Restore the compiler flags and libraries
  17178. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17179. if test x$have_video_rpi = xyes; then
  17180. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17181. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17182. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17184. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17185. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17186. SUMMARY_video="${SUMMARY_video} rpi"
  17187. fi
  17188. fi
  17189. }
  17190. CheckX11()
  17191. {
  17192. # Check whether --enable-video-x11 was given.
  17193. if test "${enable_video_x11+set}" = set; then :
  17194. enableval=$enable_video_x11;
  17195. else
  17196. enable_video_x11=yes
  17197. fi
  17198. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17199. case "$host" in
  17200. *-*-darwin*)
  17201. # This isn't necessary for X11, but fixes GLX detection
  17202. if test "x$x_includes" = xNONE && \
  17203. test "x$x_libraries" = xNONE && \
  17204. test -d /opt/X11/include && \
  17205. test -d /opt/X11/lib; then
  17206. x_includes="/opt/X11/include"
  17207. x_libraries="/opt/X11/lib"
  17208. fi
  17209. ;;
  17210. esac
  17211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17212. $as_echo_n "checking for X... " >&6; }
  17213. # Check whether --with-x was given.
  17214. if test "${with_x+set}" = set; then :
  17215. withval=$with_x;
  17216. fi
  17217. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17218. if test "x$with_x" = xno; then
  17219. # The user explicitly disabled X.
  17220. have_x=disabled
  17221. else
  17222. case $x_includes,$x_libraries in #(
  17223. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17224. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17225. $as_echo_n "(cached) " >&6
  17226. else
  17227. # One or both of the vars are not set, and there is no cached value.
  17228. ac_x_includes=no ac_x_libraries=no
  17229. rm -f -r conftest.dir
  17230. if mkdir conftest.dir; then
  17231. cd conftest.dir
  17232. cat >Imakefile <<'_ACEOF'
  17233. incroot:
  17234. @echo incroot='${INCROOT}'
  17235. usrlibdir:
  17236. @echo usrlibdir='${USRLIBDIR}'
  17237. libdir:
  17238. @echo libdir='${LIBDIR}'
  17239. _ACEOF
  17240. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17241. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17242. for ac_var in incroot usrlibdir libdir; do
  17243. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17244. done
  17245. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17246. for ac_extension in a so sl dylib la dll; do
  17247. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17248. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17249. ac_im_usrlibdir=$ac_im_libdir; break
  17250. fi
  17251. done
  17252. # Screen out bogus values from the imake configuration. They are
  17253. # bogus both because they are the default anyway, and because
  17254. # using them would break gcc on systems where it needs fixed includes.
  17255. case $ac_im_incroot in
  17256. /usr/include) ac_x_includes= ;;
  17257. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17258. esac
  17259. case $ac_im_usrlibdir in
  17260. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17261. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17262. esac
  17263. fi
  17264. cd ..
  17265. rm -f -r conftest.dir
  17266. fi
  17267. # Standard set of common directories for X headers.
  17268. # Check X11 before X11Rn because it is often a symlink to the current release.
  17269. ac_x_header_dirs='
  17270. /usr/X11/include
  17271. /usr/X11R7/include
  17272. /usr/X11R6/include
  17273. /usr/X11R5/include
  17274. /usr/X11R4/include
  17275. /usr/include/X11
  17276. /usr/include/X11R7
  17277. /usr/include/X11R6
  17278. /usr/include/X11R5
  17279. /usr/include/X11R4
  17280. /usr/local/X11/include
  17281. /usr/local/X11R7/include
  17282. /usr/local/X11R6/include
  17283. /usr/local/X11R5/include
  17284. /usr/local/X11R4/include
  17285. /usr/local/include/X11
  17286. /usr/local/include/X11R7
  17287. /usr/local/include/X11R6
  17288. /usr/local/include/X11R5
  17289. /usr/local/include/X11R4
  17290. /usr/X386/include
  17291. /usr/x386/include
  17292. /usr/XFree86/include/X11
  17293. /usr/include
  17294. /usr/local/include
  17295. /usr/unsupported/include
  17296. /usr/athena/include
  17297. /usr/local/x11r5/include
  17298. /usr/lpp/Xamples/include
  17299. /usr/openwin/include
  17300. /usr/openwin/share/include'
  17301. if test "$ac_x_includes" = no; then
  17302. # Guess where to find include files, by looking for Xlib.h.
  17303. # First, try using that file with no special directory specified.
  17304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17305. /* end confdefs.h. */
  17306. #include <X11/Xlib.h>
  17307. _ACEOF
  17308. if ac_fn_c_try_cpp "$LINENO"; then :
  17309. # We can compile using X headers with no special include directory.
  17310. ac_x_includes=
  17311. else
  17312. for ac_dir in $ac_x_header_dirs; do
  17313. if test -r "$ac_dir/X11/Xlib.h"; then
  17314. ac_x_includes=$ac_dir
  17315. break
  17316. fi
  17317. done
  17318. fi
  17319. rm -f conftest.err conftest.i conftest.$ac_ext
  17320. fi # $ac_x_includes = no
  17321. if test "$ac_x_libraries" = no; then
  17322. # Check for the libraries.
  17323. # See if we find them without any special options.
  17324. # Don't add to $LIBS permanently.
  17325. ac_save_LIBS=$LIBS
  17326. LIBS="-lX11 $LIBS"
  17327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17328. /* end confdefs.h. */
  17329. #include <X11/Xlib.h>
  17330. int
  17331. main ()
  17332. {
  17333. XrmInitialize ()
  17334. ;
  17335. return 0;
  17336. }
  17337. _ACEOF
  17338. if ac_fn_c_try_link "$LINENO"; then :
  17339. LIBS=$ac_save_LIBS
  17340. # We can link X programs with no special library path.
  17341. ac_x_libraries=
  17342. else
  17343. LIBS=$ac_save_LIBS
  17344. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17345. do
  17346. # Don't even attempt the hair of trying to link an X program!
  17347. for ac_extension in a so sl dylib la dll; do
  17348. if test -r "$ac_dir/libX11.$ac_extension"; then
  17349. ac_x_libraries=$ac_dir
  17350. break 2
  17351. fi
  17352. done
  17353. done
  17354. fi
  17355. rm -f core conftest.err conftest.$ac_objext \
  17356. conftest$ac_exeext conftest.$ac_ext
  17357. fi # $ac_x_libraries = no
  17358. case $ac_x_includes,$ac_x_libraries in #(
  17359. no,* | *,no | *\'*)
  17360. # Didn't find X, or a directory has "'" in its name.
  17361. ac_cv_have_x="have_x=no";; #(
  17362. *)
  17363. # Record where we found X for the cache.
  17364. ac_cv_have_x="have_x=yes\
  17365. ac_x_includes='$ac_x_includes'\
  17366. ac_x_libraries='$ac_x_libraries'"
  17367. esac
  17368. fi
  17369. ;; #(
  17370. *) have_x=yes;;
  17371. esac
  17372. eval "$ac_cv_have_x"
  17373. fi # $with_x != no
  17374. if test "$have_x" != yes; then
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17376. $as_echo "$have_x" >&6; }
  17377. no_x=yes
  17378. else
  17379. # If each of the values was on the command line, it overrides each guess.
  17380. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17381. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17382. # Update the cache value to reflect the command line values.
  17383. ac_cv_have_x="have_x=yes\
  17384. ac_x_includes='$x_includes'\
  17385. ac_x_libraries='$x_libraries'"
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17387. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17388. fi
  17389. if test "$no_x" = yes; then
  17390. # Not all programs may use this symbol, but it does not hurt to define it.
  17391. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17392. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17393. else
  17394. if test -n "$x_includes"; then
  17395. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17396. fi
  17397. # It would also be nice to do this for all -L options, not just this one.
  17398. if test -n "$x_libraries"; then
  17399. X_LIBS="$X_LIBS -L$x_libraries"
  17400. # For Solaris; some versions of Sun CC require a space after -R and
  17401. # others require no space. Words are not sufficient . . . .
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17403. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17404. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17405. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17406. ac_c_werror_flag=yes
  17407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17408. /* end confdefs.h. */
  17409. int
  17410. main ()
  17411. {
  17412. ;
  17413. return 0;
  17414. }
  17415. _ACEOF
  17416. if ac_fn_c_try_link "$LINENO"; then :
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17418. $as_echo "no" >&6; }
  17419. X_LIBS="$X_LIBS -R$x_libraries"
  17420. else
  17421. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17423. /* end confdefs.h. */
  17424. int
  17425. main ()
  17426. {
  17427. ;
  17428. return 0;
  17429. }
  17430. _ACEOF
  17431. if ac_fn_c_try_link "$LINENO"; then :
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17433. $as_echo "yes" >&6; }
  17434. X_LIBS="$X_LIBS -R $x_libraries"
  17435. else
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17437. $as_echo "neither works" >&6; }
  17438. fi
  17439. rm -f core conftest.err conftest.$ac_objext \
  17440. conftest$ac_exeext conftest.$ac_ext
  17441. fi
  17442. rm -f core conftest.err conftest.$ac_objext \
  17443. conftest$ac_exeext conftest.$ac_ext
  17444. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17445. LIBS=$ac_xsave_LIBS
  17446. fi
  17447. # Check for system-dependent libraries X programs must link with.
  17448. # Do this before checking for the system-independent R6 libraries
  17449. # (-lICE), since we may need -lsocket or whatever for X linking.
  17450. if test "$ISC" = yes; then
  17451. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17452. else
  17453. # Martyn Johnson says this is needed for Ultrix, if the X
  17454. # libraries were built with DECnet support. And Karl Berry says
  17455. # the Alpha needs dnet_stub (dnet does not exist).
  17456. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17458. /* end confdefs.h. */
  17459. /* Override any GCC internal prototype to avoid an error.
  17460. Use char because int might match the return type of a GCC
  17461. builtin and then its argument prototype would still apply. */
  17462. #ifdef __cplusplus
  17463. extern "C"
  17464. #endif
  17465. char XOpenDisplay ();
  17466. int
  17467. main ()
  17468. {
  17469. return XOpenDisplay ();
  17470. ;
  17471. return 0;
  17472. }
  17473. _ACEOF
  17474. if ac_fn_c_try_link "$LINENO"; then :
  17475. else
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17477. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17478. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17479. $as_echo_n "(cached) " >&6
  17480. else
  17481. ac_check_lib_save_LIBS=$LIBS
  17482. LIBS="-ldnet $LIBS"
  17483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17484. /* end confdefs.h. */
  17485. /* Override any GCC internal prototype to avoid an error.
  17486. Use char because int might match the return type of a GCC
  17487. builtin and then its argument prototype would still apply. */
  17488. #ifdef __cplusplus
  17489. extern "C"
  17490. #endif
  17491. char dnet_ntoa ();
  17492. int
  17493. main ()
  17494. {
  17495. return dnet_ntoa ();
  17496. ;
  17497. return 0;
  17498. }
  17499. _ACEOF
  17500. if ac_fn_c_try_link "$LINENO"; then :
  17501. ac_cv_lib_dnet_dnet_ntoa=yes
  17502. else
  17503. ac_cv_lib_dnet_dnet_ntoa=no
  17504. fi
  17505. rm -f core conftest.err conftest.$ac_objext \
  17506. conftest$ac_exeext conftest.$ac_ext
  17507. LIBS=$ac_check_lib_save_LIBS
  17508. fi
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17510. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17511. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17512. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17513. fi
  17514. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17516. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17517. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17518. $as_echo_n "(cached) " >&6
  17519. else
  17520. ac_check_lib_save_LIBS=$LIBS
  17521. LIBS="-ldnet_stub $LIBS"
  17522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17523. /* end confdefs.h. */
  17524. /* Override any GCC internal prototype to avoid an error.
  17525. Use char because int might match the return type of a GCC
  17526. builtin and then its argument prototype would still apply. */
  17527. #ifdef __cplusplus
  17528. extern "C"
  17529. #endif
  17530. char dnet_ntoa ();
  17531. int
  17532. main ()
  17533. {
  17534. return dnet_ntoa ();
  17535. ;
  17536. return 0;
  17537. }
  17538. _ACEOF
  17539. if ac_fn_c_try_link "$LINENO"; then :
  17540. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17541. else
  17542. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17543. fi
  17544. rm -f core conftest.err conftest.$ac_objext \
  17545. conftest$ac_exeext conftest.$ac_ext
  17546. LIBS=$ac_check_lib_save_LIBS
  17547. fi
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17549. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17550. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17551. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17552. fi
  17553. fi
  17554. fi
  17555. rm -f core conftest.err conftest.$ac_objext \
  17556. conftest$ac_exeext conftest.$ac_ext
  17557. LIBS="$ac_xsave_LIBS"
  17558. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17559. # to get the SysV transport functions.
  17560. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17561. # needs -lnsl.
  17562. # The nsl library prevents programs from opening the X display
  17563. # on Irix 5.2, according to T.E. Dickey.
  17564. # The functions gethostbyname, getservbyname, and inet_addr are
  17565. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17566. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17567. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17568. fi
  17569. if test $ac_cv_func_gethostbyname = no; then
  17570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17571. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17572. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17573. $as_echo_n "(cached) " >&6
  17574. else
  17575. ac_check_lib_save_LIBS=$LIBS
  17576. LIBS="-lnsl $LIBS"
  17577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17578. /* end confdefs.h. */
  17579. /* Override any GCC internal prototype to avoid an error.
  17580. Use char because int might match the return type of a GCC
  17581. builtin and then its argument prototype would still apply. */
  17582. #ifdef __cplusplus
  17583. extern "C"
  17584. #endif
  17585. char gethostbyname ();
  17586. int
  17587. main ()
  17588. {
  17589. return gethostbyname ();
  17590. ;
  17591. return 0;
  17592. }
  17593. _ACEOF
  17594. if ac_fn_c_try_link "$LINENO"; then :
  17595. ac_cv_lib_nsl_gethostbyname=yes
  17596. else
  17597. ac_cv_lib_nsl_gethostbyname=no
  17598. fi
  17599. rm -f core conftest.err conftest.$ac_objext \
  17600. conftest$ac_exeext conftest.$ac_ext
  17601. LIBS=$ac_check_lib_save_LIBS
  17602. fi
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17604. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17605. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17606. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17607. fi
  17608. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17610. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17611. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17612. $as_echo_n "(cached) " >&6
  17613. else
  17614. ac_check_lib_save_LIBS=$LIBS
  17615. LIBS="-lbsd $LIBS"
  17616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17617. /* end confdefs.h. */
  17618. /* Override any GCC internal prototype to avoid an error.
  17619. Use char because int might match the return type of a GCC
  17620. builtin and then its argument prototype would still apply. */
  17621. #ifdef __cplusplus
  17622. extern "C"
  17623. #endif
  17624. char gethostbyname ();
  17625. int
  17626. main ()
  17627. {
  17628. return gethostbyname ();
  17629. ;
  17630. return 0;
  17631. }
  17632. _ACEOF
  17633. if ac_fn_c_try_link "$LINENO"; then :
  17634. ac_cv_lib_bsd_gethostbyname=yes
  17635. else
  17636. ac_cv_lib_bsd_gethostbyname=no
  17637. fi
  17638. rm -f core conftest.err conftest.$ac_objext \
  17639. conftest$ac_exeext conftest.$ac_ext
  17640. LIBS=$ac_check_lib_save_LIBS
  17641. fi
  17642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17643. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17644. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17645. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17646. fi
  17647. fi
  17648. fi
  17649. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17650. # socket/setsockopt and other routines are undefined under SCO ODT
  17651. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17652. # on later versions), says Simon Leinen: it contains gethostby*
  17653. # variants that don't use the name server (or something). -lsocket
  17654. # must be given before -lnsl if both are needed. We assume that
  17655. # if connect needs -lnsl, so does gethostbyname.
  17656. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17657. if test "x$ac_cv_func_connect" = xyes; then :
  17658. fi
  17659. if test $ac_cv_func_connect = no; then
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17661. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17662. if ${ac_cv_lib_socket_connect+:} false; then :
  17663. $as_echo_n "(cached) " >&6
  17664. else
  17665. ac_check_lib_save_LIBS=$LIBS
  17666. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17668. /* end confdefs.h. */
  17669. /* Override any GCC internal prototype to avoid an error.
  17670. Use char because int might match the return type of a GCC
  17671. builtin and then its argument prototype would still apply. */
  17672. #ifdef __cplusplus
  17673. extern "C"
  17674. #endif
  17675. char connect ();
  17676. int
  17677. main ()
  17678. {
  17679. return connect ();
  17680. ;
  17681. return 0;
  17682. }
  17683. _ACEOF
  17684. if ac_fn_c_try_link "$LINENO"; then :
  17685. ac_cv_lib_socket_connect=yes
  17686. else
  17687. ac_cv_lib_socket_connect=no
  17688. fi
  17689. rm -f core conftest.err conftest.$ac_objext \
  17690. conftest$ac_exeext conftest.$ac_ext
  17691. LIBS=$ac_check_lib_save_LIBS
  17692. fi
  17693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17694. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17695. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17696. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17697. fi
  17698. fi
  17699. # Guillermo Gomez says -lposix is necessary on A/UX.
  17700. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17701. if test "x$ac_cv_func_remove" = xyes; then :
  17702. fi
  17703. if test $ac_cv_func_remove = no; then
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17705. $as_echo_n "checking for remove in -lposix... " >&6; }
  17706. if ${ac_cv_lib_posix_remove+:} false; then :
  17707. $as_echo_n "(cached) " >&6
  17708. else
  17709. ac_check_lib_save_LIBS=$LIBS
  17710. LIBS="-lposix $LIBS"
  17711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17712. /* end confdefs.h. */
  17713. /* Override any GCC internal prototype to avoid an error.
  17714. Use char because int might match the return type of a GCC
  17715. builtin and then its argument prototype would still apply. */
  17716. #ifdef __cplusplus
  17717. extern "C"
  17718. #endif
  17719. char remove ();
  17720. int
  17721. main ()
  17722. {
  17723. return remove ();
  17724. ;
  17725. return 0;
  17726. }
  17727. _ACEOF
  17728. if ac_fn_c_try_link "$LINENO"; then :
  17729. ac_cv_lib_posix_remove=yes
  17730. else
  17731. ac_cv_lib_posix_remove=no
  17732. fi
  17733. rm -f core conftest.err conftest.$ac_objext \
  17734. conftest$ac_exeext conftest.$ac_ext
  17735. LIBS=$ac_check_lib_save_LIBS
  17736. fi
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17738. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17739. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17740. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17741. fi
  17742. fi
  17743. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17744. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17745. if test "x$ac_cv_func_shmat" = xyes; then :
  17746. fi
  17747. if test $ac_cv_func_shmat = no; then
  17748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17749. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17750. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17751. $as_echo_n "(cached) " >&6
  17752. else
  17753. ac_check_lib_save_LIBS=$LIBS
  17754. LIBS="-lipc $LIBS"
  17755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17756. /* end confdefs.h. */
  17757. /* Override any GCC internal prototype to avoid an error.
  17758. Use char because int might match the return type of a GCC
  17759. builtin and then its argument prototype would still apply. */
  17760. #ifdef __cplusplus
  17761. extern "C"
  17762. #endif
  17763. char shmat ();
  17764. int
  17765. main ()
  17766. {
  17767. return shmat ();
  17768. ;
  17769. return 0;
  17770. }
  17771. _ACEOF
  17772. if ac_fn_c_try_link "$LINENO"; then :
  17773. ac_cv_lib_ipc_shmat=yes
  17774. else
  17775. ac_cv_lib_ipc_shmat=no
  17776. fi
  17777. rm -f core conftest.err conftest.$ac_objext \
  17778. conftest$ac_exeext conftest.$ac_ext
  17779. LIBS=$ac_check_lib_save_LIBS
  17780. fi
  17781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17782. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17783. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17784. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17785. fi
  17786. fi
  17787. fi
  17788. # Check for libraries that X11R6 Xt/Xaw programs need.
  17789. ac_save_LDFLAGS=$LDFLAGS
  17790. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17791. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17792. # check for ICE first), but we must link in the order -lSM -lICE or
  17793. # we get undefined symbols. So assume we have SM if we have ICE.
  17794. # These have to be linked with before -lX11, unlike the other
  17795. # libraries we check for below, so use a different variable.
  17796. # John Interrante, Karl Berry
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17798. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17799. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17800. $as_echo_n "(cached) " >&6
  17801. else
  17802. ac_check_lib_save_LIBS=$LIBS
  17803. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17805. /* end confdefs.h. */
  17806. /* Override any GCC internal prototype to avoid an error.
  17807. Use char because int might match the return type of a GCC
  17808. builtin and then its argument prototype would still apply. */
  17809. #ifdef __cplusplus
  17810. extern "C"
  17811. #endif
  17812. char IceConnectionNumber ();
  17813. int
  17814. main ()
  17815. {
  17816. return IceConnectionNumber ();
  17817. ;
  17818. return 0;
  17819. }
  17820. _ACEOF
  17821. if ac_fn_c_try_link "$LINENO"; then :
  17822. ac_cv_lib_ICE_IceConnectionNumber=yes
  17823. else
  17824. ac_cv_lib_ICE_IceConnectionNumber=no
  17825. fi
  17826. rm -f core conftest.err conftest.$ac_objext \
  17827. conftest$ac_exeext conftest.$ac_ext
  17828. LIBS=$ac_check_lib_save_LIBS
  17829. fi
  17830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17831. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17832. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17833. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17834. fi
  17835. LDFLAGS=$ac_save_LDFLAGS
  17836. fi
  17837. if test x$have_x = xyes; then
  17838. # Check whether --enable-x11-shared was given.
  17839. if test "${enable_x11_shared+set}" = set; then :
  17840. enableval=$enable_x11_shared;
  17841. else
  17842. enable_x11_shared=maybe
  17843. fi
  17844. case "$host" in
  17845. *-*-darwin*)
  17846. # Apple now puts this in /opt/X11
  17847. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17848. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17849. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17850. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17851. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17852. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17853. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17854. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17855. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17856. ;;
  17857. *-*-openbsd*)
  17858. x11_lib='libX11.so'
  17859. x11ext_lib='libXext.so'
  17860. xcursor_lib='libXcursor.so'
  17861. xinerama_lib='libXinerama.so'
  17862. xinput_lib='libXi.so'
  17863. xrandr_lib='libXrandr.so'
  17864. xrender_lib='libXrender.so'
  17865. xss_lib='libXss.so'
  17866. xvidmode_lib='libXxf86vm.so'
  17867. ;;
  17868. *)
  17869. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17870. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17871. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17872. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17873. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17874. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17875. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17876. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17877. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17878. ;;
  17879. esac
  17880. if test x$ac_cv_func_shmat != xyes; then
  17881. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17882. fi
  17883. CFLAGS="$CFLAGS $X_CFLAGS"
  17884. LDFLAGS="$LDFLAGS $X_LIBS"
  17885. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17886. #include <X11/Xproto.h>
  17887. "
  17888. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17889. have_xext_h_hdr=yes
  17890. else
  17891. have_xext_h_hdr=no
  17892. fi
  17893. if test x$have_xext_h_hdr != xyes; then
  17894. as_fn_error $? "
  17895. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17896. " "$LINENO" 5
  17897. fi
  17898. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17899. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17900. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17901. # Needed so SDL applications can include SDL_syswm.h
  17902. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17903. if test x$enable_x11_shared = xmaybe; then
  17904. enable_x11_shared=yes
  17905. fi
  17906. if test x$have_loadso != xyes && \
  17907. test x$enable_x11_shared = xyes; then
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17909. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17910. enable_x11_shared=no
  17911. fi
  17912. if test x$have_loadso = xyes && \
  17913. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17914. echo "-- dynamic libX11 -> $x11_lib"
  17915. echo "-- dynamic libX11ext -> $x11ext_lib"
  17916. cat >>confdefs.h <<_ACEOF
  17917. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17918. _ACEOF
  17919. cat >>confdefs.h <<_ACEOF
  17920. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17921. _ACEOF
  17922. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17923. else
  17924. enable_x11_shared=no
  17925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17926. SUMMARY_video="${SUMMARY_video} x11"
  17927. fi
  17928. have_video=yes
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17930. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17931. have_const_param_XextAddDisplay=no
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. #include <X11/Xlib.h>
  17935. #include <X11/Xproto.h>
  17936. #include <X11/extensions/Xext.h>
  17937. #include <X11/extensions/extutil.h>
  17938. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17939. int
  17940. main ()
  17941. {
  17942. ;
  17943. return 0;
  17944. }
  17945. _ACEOF
  17946. if ac_fn_c_try_compile "$LINENO"; then :
  17947. have_const_param_XextAddDisplay=yes
  17948. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17949. fi
  17950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17952. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17954. $as_echo_n "checking for XGenericEvent... " >&6; }
  17955. have_XGenericEvent=no
  17956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17957. /* end confdefs.h. */
  17958. #include <X11/Xlib.h>
  17959. int
  17960. main ()
  17961. {
  17962. Display *display;
  17963. XEvent event;
  17964. XGenericEventCookie *cookie = &event.xcookie;
  17965. XNextEvent(display, &event);
  17966. XGetEventData(display, cookie);
  17967. XFreeEventData(display, cookie);
  17968. ;
  17969. return 0;
  17970. }
  17971. _ACEOF
  17972. if ac_fn_c_try_compile "$LINENO"; then :
  17973. have_XGenericEvent=yes
  17974. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17975. fi
  17976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17978. $as_echo "$have_XGenericEvent" >&6; }
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17980. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17981. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17982. $as_echo_n "(cached) " >&6
  17983. else
  17984. ac_check_lib_save_LIBS=$LIBS
  17985. LIBS="-lX11 $LIBS"
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. /* Override any GCC internal prototype to avoid an error.
  17989. Use char because int might match the return type of a GCC
  17990. builtin and then its argument prototype would still apply. */
  17991. #ifdef __cplusplus
  17992. extern "C"
  17993. #endif
  17994. char XkbKeycodeToKeysym ();
  17995. int
  17996. main ()
  17997. {
  17998. return XkbKeycodeToKeysym ();
  17999. ;
  18000. return 0;
  18001. }
  18002. _ACEOF
  18003. if ac_fn_c_try_link "$LINENO"; then :
  18004. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18005. else
  18006. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18007. fi
  18008. rm -f core conftest.err conftest.$ac_objext \
  18009. conftest$ac_exeext conftest.$ac_ext
  18010. LIBS=$ac_check_lib_save_LIBS
  18011. fi
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18013. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18014. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18015. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18016. fi
  18017. # Check whether --enable-video-x11-xcursor was given.
  18018. if test "${enable_video_x11_xcursor+set}" = set; then :
  18019. enableval=$enable_video_x11_xcursor;
  18020. else
  18021. enable_video_x11_xcursor=yes
  18022. fi
  18023. if test x$enable_video_x11_xcursor = xyes; then
  18024. definitely_enable_video_x11_xcursor=no
  18025. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18026. "
  18027. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18028. have_xcursor_h_hdr=yes
  18029. else
  18030. have_xcursor_h_hdr=no
  18031. fi
  18032. if test x$have_xcursor_h_hdr = xyes; then
  18033. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18034. echo "-- dynamic libXcursor -> $xcursor_lib"
  18035. cat >>confdefs.h <<_ACEOF
  18036. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18037. _ACEOF
  18038. definitely_enable_video_x11_xcursor=yes
  18039. else
  18040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18041. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18042. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18043. $as_echo_n "(cached) " >&6
  18044. else
  18045. ac_check_lib_save_LIBS=$LIBS
  18046. LIBS="-lXcursor $LIBS"
  18047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18048. /* end confdefs.h. */
  18049. /* Override any GCC internal prototype to avoid an error.
  18050. Use char because int might match the return type of a GCC
  18051. builtin and then its argument prototype would still apply. */
  18052. #ifdef __cplusplus
  18053. extern "C"
  18054. #endif
  18055. char XcursorImageCreate ();
  18056. int
  18057. main ()
  18058. {
  18059. return XcursorImageCreate ();
  18060. ;
  18061. return 0;
  18062. }
  18063. _ACEOF
  18064. if ac_fn_c_try_link "$LINENO"; then :
  18065. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18066. else
  18067. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18068. fi
  18069. rm -f core conftest.err conftest.$ac_objext \
  18070. conftest$ac_exeext conftest.$ac_ext
  18071. LIBS=$ac_check_lib_save_LIBS
  18072. fi
  18073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18074. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18075. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18076. have_xcursor_lib=yes
  18077. fi
  18078. if test x$have_xcursor_lib = xyes ; then
  18079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18080. definitely_enable_video_x11_xcursor=yes
  18081. fi
  18082. fi
  18083. fi
  18084. fi
  18085. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18086. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18087. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18088. fi
  18089. # Check whether --enable-video-x11-xdbe was given.
  18090. if test "${enable_video_x11_xdbe+set}" = set; then :
  18091. enableval=$enable_video_x11_xdbe;
  18092. else
  18093. enable_video_x11_xdbe=yes
  18094. fi
  18095. if test x$enable_video_x11_xdbe = xyes; then
  18096. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18097. "
  18098. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18099. have_dbe_h_hdr=yes
  18100. else
  18101. have_dbe_h_hdr=no
  18102. fi
  18103. if test x$have_dbe_h_hdr = xyes; then
  18104. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18105. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18106. fi
  18107. fi
  18108. # Check whether --enable-video-x11-xinerama was given.
  18109. if test "${enable_video_x11_xinerama+set}" = set; then :
  18110. enableval=$enable_video_x11_xinerama;
  18111. else
  18112. enable_video_x11_xinerama=yes
  18113. fi
  18114. if test x$enable_video_x11_xinerama = xyes; then
  18115. definitely_enable_video_x11_xinerama=no
  18116. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18117. "
  18118. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18119. have_xinerama_h_hdr=yes
  18120. else
  18121. have_xinerama_h_hdr=no
  18122. fi
  18123. if test x$have_xinerama_h_hdr = xyes; then
  18124. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18125. echo "-- dynamic libXinerama -> $xinerama_lib"
  18126. cat >>confdefs.h <<_ACEOF
  18127. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18128. _ACEOF
  18129. definitely_enable_video_x11_xinerama=yes
  18130. else
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18132. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18133. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18134. $as_echo_n "(cached) " >&6
  18135. else
  18136. ac_check_lib_save_LIBS=$LIBS
  18137. LIBS="-lXinerama $LIBS"
  18138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18139. /* end confdefs.h. */
  18140. /* Override any GCC internal prototype to avoid an error.
  18141. Use char because int might match the return type of a GCC
  18142. builtin and then its argument prototype would still apply. */
  18143. #ifdef __cplusplus
  18144. extern "C"
  18145. #endif
  18146. char XineramaQueryExtension ();
  18147. int
  18148. main ()
  18149. {
  18150. return XineramaQueryExtension ();
  18151. ;
  18152. return 0;
  18153. }
  18154. _ACEOF
  18155. if ac_fn_c_try_link "$LINENO"; then :
  18156. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18157. else
  18158. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18159. fi
  18160. rm -f core conftest.err conftest.$ac_objext \
  18161. conftest$ac_exeext conftest.$ac_ext
  18162. LIBS=$ac_check_lib_save_LIBS
  18163. fi
  18164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18165. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18166. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18167. have_xinerama_lib=yes
  18168. fi
  18169. if test x$have_xinerama_lib = xyes ; then
  18170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18171. definitely_enable_video_x11_xinerama=yes
  18172. fi
  18173. fi
  18174. fi
  18175. fi
  18176. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18177. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18178. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18179. fi
  18180. # Check whether --enable-video-x11-xinput was given.
  18181. if test "${enable_video_x11_xinput+set}" = set; then :
  18182. enableval=$enable_video_x11_xinput;
  18183. else
  18184. enable_video_x11_xinput=yes
  18185. fi
  18186. if test x$enable_video_x11_xinput = xyes; then
  18187. definitely_enable_video_x11_xinput=no
  18188. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18189. "
  18190. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18191. have_xinput_h_hdr=yes
  18192. else
  18193. have_xinput_h_hdr=no
  18194. fi
  18195. if test x$have_xinput_h_hdr = xyes; then
  18196. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18197. echo "-- dynamic libXi -> $xinput_lib"
  18198. cat >>confdefs.h <<_ACEOF
  18199. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18200. _ACEOF
  18201. definitely_enable_video_x11_xinput=yes
  18202. else
  18203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18204. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18205. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18206. $as_echo_n "(cached) " >&6
  18207. else
  18208. ac_check_lib_save_LIBS=$LIBS
  18209. LIBS="-lXi $LIBS"
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. /* Override any GCC internal prototype to avoid an error.
  18213. Use char because int might match the return type of a GCC
  18214. builtin and then its argument prototype would still apply. */
  18215. #ifdef __cplusplus
  18216. extern "C"
  18217. #endif
  18218. char XOpenDevice ();
  18219. int
  18220. main ()
  18221. {
  18222. return XOpenDevice ();
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_link "$LINENO"; then :
  18228. ac_cv_lib_Xi_XOpenDevice=yes
  18229. else
  18230. ac_cv_lib_Xi_XOpenDevice=no
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext \
  18233. conftest$ac_exeext conftest.$ac_ext
  18234. LIBS=$ac_check_lib_save_LIBS
  18235. fi
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18237. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18238. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18239. have_xinput_lib=yes
  18240. fi
  18241. if test x$have_xinput_lib = xyes ; then
  18242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18243. definitely_enable_video_x11_xinput=yes
  18244. fi
  18245. fi
  18246. fi
  18247. fi
  18248. if test x$definitely_enable_video_x11_xinput = xyes; then
  18249. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18250. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18252. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18253. have_xinput2_multitouch=no
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. #include <X11/Xlib.h>
  18257. #include <X11/Xproto.h>
  18258. #include <X11/extensions/XInput2.h>
  18259. int
  18260. main ()
  18261. {
  18262. int event_type = XI_TouchBegin;
  18263. XITouchClassInfo *t;
  18264. ;
  18265. return 0;
  18266. }
  18267. _ACEOF
  18268. if ac_fn_c_try_compile "$LINENO"; then :
  18269. have_xinput2_multitouch=yes
  18270. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18271. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18272. fi
  18273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18275. $as_echo "$have_xinput2_multitouch" >&6; }
  18276. fi
  18277. # Check whether --enable-video-x11-xrandr was given.
  18278. if test "${enable_video_x11_xrandr+set}" = set; then :
  18279. enableval=$enable_video_x11_xrandr;
  18280. else
  18281. enable_video_x11_xrandr=yes
  18282. fi
  18283. if test x$enable_video_x11_xrandr = xyes; then
  18284. definitely_enable_video_x11_xrandr=no
  18285. have_xrandr_h_hdr=no
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #include <X11/Xlib.h>
  18289. #include <X11/extensions/Xrandr.h>
  18290. int
  18291. main ()
  18292. {
  18293. XRRScreenResources *res = NULL;
  18294. ;
  18295. return 0;
  18296. }
  18297. _ACEOF
  18298. if ac_fn_c_try_compile "$LINENO"; then :
  18299. have_xrandr_h_hdr=yes
  18300. fi
  18301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18302. if test x$have_xrandr_h_hdr = xyes; then
  18303. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18304. echo "-- dynamic libXrandr -> $xrandr_lib"
  18305. cat >>confdefs.h <<_ACEOF
  18306. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18307. _ACEOF
  18308. definitely_enable_video_x11_xrandr=yes
  18309. else
  18310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18311. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18312. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18313. $as_echo_n "(cached) " >&6
  18314. else
  18315. ac_check_lib_save_LIBS=$LIBS
  18316. LIBS="-lXrandr $LIBS"
  18317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18318. /* end confdefs.h. */
  18319. /* Override any GCC internal prototype to avoid an error.
  18320. Use char because int might match the return type of a GCC
  18321. builtin and then its argument prototype would still apply. */
  18322. #ifdef __cplusplus
  18323. extern "C"
  18324. #endif
  18325. char XRRQueryExtension ();
  18326. int
  18327. main ()
  18328. {
  18329. return XRRQueryExtension ();
  18330. ;
  18331. return 0;
  18332. }
  18333. _ACEOF
  18334. if ac_fn_c_try_link "$LINENO"; then :
  18335. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18336. else
  18337. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18338. fi
  18339. rm -f core conftest.err conftest.$ac_objext \
  18340. conftest$ac_exeext conftest.$ac_ext
  18341. LIBS=$ac_check_lib_save_LIBS
  18342. fi
  18343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18344. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18345. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18346. have_xrandr_lib=yes
  18347. fi
  18348. if test x$have_xrandr_lib = xyes ; then
  18349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18350. definitely_enable_video_x11_xrandr=yes
  18351. fi
  18352. fi
  18353. fi
  18354. fi
  18355. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18356. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18357. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18358. fi
  18359. # Check whether --enable-video-x11-scrnsaver was given.
  18360. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18361. enableval=$enable_video_x11_scrnsaver;
  18362. else
  18363. enable_video_x11_scrnsaver=yes
  18364. fi
  18365. if test x$enable_video_x11_scrnsaver = xyes; then
  18366. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18367. "
  18368. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18369. have_scrnsaver_h_hdr=yes
  18370. else
  18371. have_scrnsaver_h_hdr=no
  18372. fi
  18373. if test x$have_scrnsaver_h_hdr = xyes; then
  18374. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18375. echo "-- dynamic libXss -> $xss_lib"
  18376. cat >>confdefs.h <<_ACEOF
  18377. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18378. _ACEOF
  18379. definitely_enable_video_x11_scrnsaver=yes
  18380. else
  18381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18382. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18383. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18384. $as_echo_n "(cached) " >&6
  18385. else
  18386. ac_check_lib_save_LIBS=$LIBS
  18387. LIBS="-lXss $LIBS"
  18388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18389. /* end confdefs.h. */
  18390. /* Override any GCC internal prototype to avoid an error.
  18391. Use char because int might match the return type of a GCC
  18392. builtin and then its argument prototype would still apply. */
  18393. #ifdef __cplusplus
  18394. extern "C"
  18395. #endif
  18396. char XScreenSaverSuspend ();
  18397. int
  18398. main ()
  18399. {
  18400. return XScreenSaverSuspend ();
  18401. ;
  18402. return 0;
  18403. }
  18404. _ACEOF
  18405. if ac_fn_c_try_link "$LINENO"; then :
  18406. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18407. else
  18408. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18409. fi
  18410. rm -f core conftest.err conftest.$ac_objext \
  18411. conftest$ac_exeext conftest.$ac_ext
  18412. LIBS=$ac_check_lib_save_LIBS
  18413. fi
  18414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18415. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18416. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18417. have_xss_lib=yes
  18418. fi
  18419. if test x$have_xss_lib = xyes ; then
  18420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18421. definitely_enable_video_x11_scrnsaver=yes
  18422. fi
  18423. fi
  18424. fi
  18425. fi
  18426. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18427. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18428. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18429. fi
  18430. # Check whether --enable-video-x11-xshape was given.
  18431. if test "${enable_video_x11_xshape+set}" = set; then :
  18432. enableval=$enable_video_x11_xshape;
  18433. else
  18434. enable_video_x11_xshape=yes
  18435. fi
  18436. if test x$enable_video_x11_xshape = xyes; then
  18437. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18438. "
  18439. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18440. have_shape_h_hdr=yes
  18441. else
  18442. have_shape_h_hdr=no
  18443. fi
  18444. if test x$have_shape_h_hdr = xyes; then
  18445. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18446. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18447. fi
  18448. fi
  18449. # Check whether --enable-video-x11-vm was given.
  18450. if test "${enable_video_x11_vm+set}" = set; then :
  18451. enableval=$enable_video_x11_vm;
  18452. else
  18453. enable_video_x11_vm=yes
  18454. fi
  18455. if test x$enable_video_x11_vm = xyes; then
  18456. definitely_enable_video_x11_vm=no
  18457. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18458. "
  18459. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18460. have_vm_h_hdr=yes
  18461. else
  18462. have_vm_h_hdr=no
  18463. fi
  18464. if test x$have_vm_h_hdr = xyes; then
  18465. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18466. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18467. cat >>confdefs.h <<_ACEOF
  18468. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18469. _ACEOF
  18470. definitely_enable_video_x11_vm=yes
  18471. else
  18472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18473. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18474. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18475. $as_echo_n "(cached) " >&6
  18476. else
  18477. ac_check_lib_save_LIBS=$LIBS
  18478. LIBS="-lXxf86vm $LIBS"
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. /* Override any GCC internal prototype to avoid an error.
  18482. Use char because int might match the return type of a GCC
  18483. builtin and then its argument prototype would still apply. */
  18484. #ifdef __cplusplus
  18485. extern "C"
  18486. #endif
  18487. char XF86VidModeQueryVersion ();
  18488. int
  18489. main ()
  18490. {
  18491. return XF86VidModeQueryVersion ();
  18492. ;
  18493. return 0;
  18494. }
  18495. _ACEOF
  18496. if ac_fn_c_try_link "$LINENO"; then :
  18497. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18498. else
  18499. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18500. fi
  18501. rm -f core conftest.err conftest.$ac_objext \
  18502. conftest$ac_exeext conftest.$ac_ext
  18503. LIBS=$ac_check_lib_save_LIBS
  18504. fi
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18506. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18507. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18508. have_vm_lib=yes
  18509. fi
  18510. if test x$have_vm_lib = xyes ; then
  18511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18512. definitely_enable_video_x11_vm=yes
  18513. fi
  18514. fi
  18515. fi
  18516. fi
  18517. if test x$definitely_enable_video_x11_vm = xyes; then
  18518. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18519. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18520. fi
  18521. fi
  18522. else
  18523. # Prevent Mesa from including X11 headers
  18524. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18525. fi
  18526. }
  18527. CheckVivanteVideo()
  18528. {
  18529. # Check whether --enable-video-vivante was given.
  18530. if test "${enable_video_vivante+set}" = set; then :
  18531. enableval=$enable_video_vivante;
  18532. else
  18533. enable_video_vivante=yes
  18534. fi
  18535. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18537. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18538. have_vivante_vdk=no
  18539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18540. /* end confdefs.h. */
  18541. #define LINUX
  18542. #define EGL_API_FB
  18543. #include <gc_vdk.h>
  18544. int
  18545. main ()
  18546. {
  18547. ;
  18548. return 0;
  18549. }
  18550. _ACEOF
  18551. if ac_fn_c_try_compile "$LINENO"; then :
  18552. have_vivante_vdk=yes
  18553. fi
  18554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18556. $as_echo "$have_vivante_vdk" >&6; }
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18558. $as_echo_n "checking for Vivante FB API... " >&6; }
  18559. have_vivante_egl=no
  18560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18561. /* end confdefs.h. */
  18562. #define LINUX
  18563. #define EGL_API_FB
  18564. #include <EGL/eglvivante.h>
  18565. int
  18566. main ()
  18567. {
  18568. ;
  18569. return 0;
  18570. }
  18571. _ACEOF
  18572. if ac_fn_c_try_compile "$LINENO"; then :
  18573. have_vivante_egl=yes
  18574. fi
  18575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18577. $as_echo "$have_vivante_egl" >&6; }
  18578. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18579. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18580. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18581. if test x$have_vivante_vdk = xyes; then
  18582. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18584. fi
  18585. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18586. SUMMARY_video="${SUMMARY_video} vivante"
  18587. have_video=yes
  18588. fi
  18589. fi
  18590. }
  18591. CheckHaikuVideo()
  18592. {
  18593. if test x$enable_video = xyes; then
  18594. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18595. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18596. have_video=yes
  18597. SUMMARY_video="${SUMMARY_video} haiku"
  18598. fi
  18599. }
  18600. CheckCOCOA()
  18601. {
  18602. # Check whether --enable-video-cocoa was given.
  18603. if test "${enable_video_cocoa+set}" = set; then :
  18604. enableval=$enable_video_cocoa;
  18605. else
  18606. enable_video_cocoa=yes
  18607. fi
  18608. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18609. save_CFLAGS="$CFLAGS"
  18610. CFLAGS="$CFLAGS -x objective-c"
  18611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18612. $as_echo_n "checking for Cocoa framework... " >&6; }
  18613. have_cocoa=no
  18614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18615. /* end confdefs.h. */
  18616. #import <Cocoa/Cocoa.h>
  18617. int
  18618. main ()
  18619. {
  18620. ;
  18621. return 0;
  18622. }
  18623. _ACEOF
  18624. if ac_fn_c_try_compile "$LINENO"; then :
  18625. have_cocoa=yes
  18626. fi
  18627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18629. $as_echo "$have_cocoa" >&6; }
  18630. CFLAGS="$save_CFLAGS"
  18631. if test x$have_cocoa = xyes; then
  18632. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18633. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18634. SUMMARY_video="${SUMMARY_video} cocoa"
  18635. have_video=yes
  18636. fi
  18637. fi
  18638. }
  18639. CheckMETAL()
  18640. {
  18641. # Check whether --enable-video-metal was given.
  18642. if test "${enable_video_metal+set}" = set; then :
  18643. enableval=$enable_video_metal;
  18644. else
  18645. enable_video_metal=yes
  18646. fi
  18647. # Check whether --enable-render-metal was given.
  18648. if test "${enable_render_metal+set}" = set; then :
  18649. enableval=$enable_render_metal;
  18650. else
  18651. enable_render_metal=yes
  18652. fi
  18653. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18654. save_CFLAGS="$CFLAGS"
  18655. CFLAGS="$CFLAGS -x objective-c"
  18656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18657. $as_echo_n "checking for Metal framework... " >&6; }
  18658. have_metal=no
  18659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18660. /* end confdefs.h. */
  18661. #import <Cocoa/Cocoa.h>
  18662. #import <Metal/Metal.h>
  18663. #import <QuartzCore/CAMetalLayer.h>
  18664. #if TARGET_CPU_X86
  18665. #error Metal doesn't work on this configuration
  18666. #endif
  18667. int
  18668. main ()
  18669. {
  18670. ;
  18671. return 0;
  18672. }
  18673. _ACEOF
  18674. if ac_fn_c_try_compile "$LINENO"; then :
  18675. have_metal=yes
  18676. fi
  18677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18678. CFLAGS="$save_CFLAGS"
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18680. $as_echo "$have_metal" >&6; }
  18681. if test x$have_metal = xyes; then
  18682. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18683. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18684. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18685. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18686. fi
  18687. SUMMARY_video="${SUMMARY_video} metal"
  18688. else
  18689. enable_video_metal=no
  18690. enable_render_metal=no
  18691. fi
  18692. fi
  18693. }
  18694. CheckDirectFB()
  18695. {
  18696. # Check whether --enable-video-directfb was given.
  18697. if test "${enable_video_directfb+set}" = set; then :
  18698. enableval=$enable_video_directfb;
  18699. else
  18700. enable_video_directfb=no
  18701. fi
  18702. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18703. pkg_failed=no
  18704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18705. $as_echo_n "checking for DIRECTFB... " >&6; }
  18706. if test -n "$DIRECTFB_CFLAGS"; then
  18707. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18708. elif test -n "$PKG_CONFIG"; then
  18709. if test -n "$PKG_CONFIG" && \
  18710. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18711. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18712. ac_status=$?
  18713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18714. test $ac_status = 0; }; then
  18715. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18716. else
  18717. pkg_failed=yes
  18718. fi
  18719. else
  18720. pkg_failed=untried
  18721. fi
  18722. if test -n "$DIRECTFB_LIBS"; then
  18723. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18724. elif test -n "$PKG_CONFIG"; then
  18725. if test -n "$PKG_CONFIG" && \
  18726. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18727. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18728. ac_status=$?
  18729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18730. test $ac_status = 0; }; then
  18731. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18732. else
  18733. pkg_failed=yes
  18734. fi
  18735. else
  18736. pkg_failed=untried
  18737. fi
  18738. if test $pkg_failed = yes; then
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18740. $as_echo "no" >&6; }
  18741. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18742. _pkg_short_errors_supported=yes
  18743. else
  18744. _pkg_short_errors_supported=no
  18745. fi
  18746. if test $_pkg_short_errors_supported = yes; then
  18747. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18748. else
  18749. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18750. fi
  18751. # Put the nasty error message in config.log where it belongs
  18752. echo "$DIRECTFB_PKG_ERRORS" >&5
  18753. video_directfb=no
  18754. elif test $pkg_failed = untried; then
  18755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18756. $as_echo "no" >&6; }
  18757. video_directfb=no
  18758. else
  18759. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18760. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18762. $as_echo "yes" >&6; }
  18763. video_directfb=yes
  18764. fi
  18765. if test x$video_directfb = xyes; then
  18766. # SuSE 11.1 installs directfb-config without directfb-devel
  18767. save_CPPFLAGS="$CPPFLAGS"
  18768. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18769. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18770. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18771. have_directfb_hdr=yes
  18772. else
  18773. have_directfb_hdr=no
  18774. fi
  18775. CPPFLAGS="$save_CPPFLAGS"
  18776. video_directfb=$have_directfb_hdr
  18777. fi
  18778. if test x$video_directfb = xyes; then
  18779. # Check whether --enable-directfb-shared was given.
  18780. if test "${enable_directfb_shared+set}" = set; then :
  18781. enableval=$enable_directfb_shared;
  18782. else
  18783. enable_directfb_shared=yes
  18784. fi
  18785. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18786. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18787. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18788. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18790. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18791. directfb_shared=no
  18792. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18793. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18795. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18796. if test x$have_loadso != xyes && \
  18797. test x$enable_directfb_shared = xyes; then
  18798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18799. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18800. fi
  18801. if test x$have_loadso = xyes && \
  18802. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18803. directfb_shared=yes
  18804. echo "-- $directfb_lib_spec -> $directfb_lib"
  18805. cat >>confdefs.h <<_ACEOF
  18806. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18807. _ACEOF
  18808. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18809. else
  18810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18811. SUMMARY_video="${SUMMARY_video} directfb"
  18812. fi
  18813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18814. $as_echo "$directfb_shared" >&6; }
  18815. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18816. have_video=yes
  18817. fi
  18818. fi
  18819. }
  18820. CheckKMSDRM()
  18821. {
  18822. # Check whether --enable-video-kmsdrm was given.
  18823. if test "${enable_video_kmsdrm+set}" = set; then :
  18824. enableval=$enable_video_kmsdrm;
  18825. else
  18826. enable_video_kmsdrm=no
  18827. fi
  18828. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18829. video_kmsdrm=no
  18830. pkg_failed=no
  18831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18832. $as_echo_n "checking for LIBDRM... " >&6; }
  18833. if test -n "$LIBDRM_CFLAGS"; then
  18834. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18835. elif test -n "$PKG_CONFIG"; then
  18836. if test -n "$PKG_CONFIG" && \
  18837. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18838. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18839. ac_status=$?
  18840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18841. test $ac_status = 0; }; then
  18842. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  18843. else
  18844. pkg_failed=yes
  18845. fi
  18846. else
  18847. pkg_failed=untried
  18848. fi
  18849. if test -n "$LIBDRM_LIBS"; then
  18850. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18851. elif test -n "$PKG_CONFIG"; then
  18852. if test -n "$PKG_CONFIG" && \
  18853. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  18854. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  18855. ac_status=$?
  18856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18857. test $ac_status = 0; }; then
  18858. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  18859. else
  18860. pkg_failed=yes
  18861. fi
  18862. else
  18863. pkg_failed=untried
  18864. fi
  18865. if test $pkg_failed = yes; then
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18867. $as_echo "no" >&6; }
  18868. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18869. _pkg_short_errors_supported=yes
  18870. else
  18871. _pkg_short_errors_supported=no
  18872. fi
  18873. if test $_pkg_short_errors_supported = yes; then
  18874. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1`
  18875. else
  18876. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1`
  18877. fi
  18878. # Put the nasty error message in config.log where it belongs
  18879. echo "$LIBDRM_PKG_ERRORS" >&5
  18880. libdrm_avail=no
  18881. elif test $pkg_failed = untried; then
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18883. $as_echo "no" >&6; }
  18884. libdrm_avail=no
  18885. else
  18886. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18887. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18889. $as_echo "yes" >&6; }
  18890. libdrm_avail=yes
  18891. fi
  18892. pkg_failed=no
  18893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18894. $as_echo_n "checking for LIBGBM... " >&6; }
  18895. if test -n "$LIBGBM_CFLAGS"; then
  18896. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18897. elif test -n "$PKG_CONFIG"; then
  18898. if test -n "$PKG_CONFIG" && \
  18899. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18900. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18901. ac_status=$?
  18902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18903. test $ac_status = 0; }; then
  18904. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  18905. else
  18906. pkg_failed=yes
  18907. fi
  18908. else
  18909. pkg_failed=untried
  18910. fi
  18911. if test -n "$LIBGBM_LIBS"; then
  18912. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18913. elif test -n "$PKG_CONFIG"; then
  18914. if test -n "$PKG_CONFIG" && \
  18915. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  18916. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  18917. ac_status=$?
  18918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18919. test $ac_status = 0; }; then
  18920. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  18921. else
  18922. pkg_failed=yes
  18923. fi
  18924. else
  18925. pkg_failed=untried
  18926. fi
  18927. if test $pkg_failed = yes; then
  18928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18929. $as_echo "no" >&6; }
  18930. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18931. _pkg_short_errors_supported=yes
  18932. else
  18933. _pkg_short_errors_supported=no
  18934. fi
  18935. if test $_pkg_short_errors_supported = yes; then
  18936. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1`
  18937. else
  18938. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1`
  18939. fi
  18940. # Put the nasty error message in config.log where it belongs
  18941. echo "$LIBGBM_PKG_ERRORS" >&5
  18942. libgbm_avail=no
  18943. elif test $pkg_failed = untried; then
  18944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18945. $as_echo "no" >&6; }
  18946. libgbm_avail=no
  18947. else
  18948. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18949. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18951. $as_echo "yes" >&6; }
  18952. libgbm_avail=yes
  18953. fi
  18954. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18955. video_kmsdrm=yes
  18956. fi
  18957. if test x$video_kmsdrm = xyes; then
  18958. # Check whether --enable-kmsdrm-shared was given.
  18959. if test "${enable_kmsdrm_shared+set}" = set; then :
  18960. enableval=$enable_kmsdrm_shared;
  18961. else
  18962. enable_kmsdrm_shared=yes
  18963. fi
  18964. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18965. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18966. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18968. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18969. kmsdrm_shared=no
  18970. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18971. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18972. if test x$have_loadso != xyes && \
  18973. test x$enable_kmsdrm_shared = xyes; then
  18974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18975. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18976. fi
  18977. if test x$have_loadso = xyes && \
  18978. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18979. kmsdrm_shared=yes
  18980. cat >>confdefs.h <<_ACEOF
  18981. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18982. _ACEOF
  18983. cat >>confdefs.h <<_ACEOF
  18984. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18985. _ACEOF
  18986. cat >>confdefs.h <<_ACEOF
  18987. #define HAVE_KMSDRM_SHARED "TRUE"
  18988. _ACEOF
  18989. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18990. else
  18991. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18992. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18993. fi
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18995. $as_echo "$kmsdrm_shared" >&6; }
  18996. have_video=yes
  18997. fi
  18998. fi
  18999. }
  19000. CheckDummyVideo()
  19001. {
  19002. # Check whether --enable-video-dummy was given.
  19003. if test "${enable_video_dummy+set}" = set; then :
  19004. enableval=$enable_video_dummy;
  19005. else
  19006. enable_video_dummy=yes
  19007. fi
  19008. if test x$enable_video_dummy = xyes; then
  19009. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19010. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19011. have_video=yes
  19012. SUMMARY_video="${SUMMARY_video} dummy"
  19013. fi
  19014. }
  19015. CheckQNXVideo()
  19016. {
  19017. if test x$enable_video = xyes; then
  19018. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19019. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19020. have_video=yes
  19021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19022. SUMMARY_video="${SUMMARY_video} qnx"
  19023. fi
  19024. }
  19025. CheckQNXAudio()
  19026. {
  19027. if test x$enable_audio = xyes; then
  19028. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19029. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19030. have_audio=yes
  19031. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19032. SUMMARY_audio="${SUMMARY_audio} qsa"
  19033. fi
  19034. }
  19035. # Check whether --enable-video-opengl was given.
  19036. if test "${enable_video_opengl+set}" = set; then :
  19037. enableval=$enable_video_opengl;
  19038. else
  19039. enable_video_opengl=yes
  19040. fi
  19041. CheckOpenGLX11()
  19042. {
  19043. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19045. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19046. video_opengl=no
  19047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19048. /* end confdefs.h. */
  19049. #include <GL/gl.h>
  19050. #include <GL/glx.h>
  19051. int
  19052. main ()
  19053. {
  19054. ;
  19055. return 0;
  19056. }
  19057. _ACEOF
  19058. if ac_fn_c_try_compile "$LINENO"; then :
  19059. video_opengl=yes
  19060. fi
  19061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19063. $as_echo "$video_opengl" >&6; }
  19064. if test x$video_opengl = xyes; then
  19065. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19066. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19067. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19068. SUMMARY_video="${SUMMARY_video} opengl"
  19069. fi
  19070. fi
  19071. }
  19072. # Check whether --enable-video-opengles was given.
  19073. if test "${enable_video_opengles+set}" = set; then :
  19074. enableval=$enable_video_opengles;
  19075. else
  19076. enable_video_opengles=yes
  19077. fi
  19078. # Check whether --enable-video-opengles1 was given.
  19079. if test "${enable_video_opengles1+set}" = set; then :
  19080. enableval=$enable_video_opengles1;
  19081. else
  19082. enable_video_opengles1=yes
  19083. fi
  19084. # Check whether --enable-video-opengles2 was given.
  19085. if test "${enable_video_opengles2+set}" = set; then :
  19086. enableval=$enable_video_opengles2;
  19087. else
  19088. enable_video_opengles2=yes
  19089. fi
  19090. CheckOpenGLESX11()
  19091. {
  19092. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19094. $as_echo_n "checking for EGL support... " >&6; }
  19095. video_opengl_egl=no
  19096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19097. /* end confdefs.h. */
  19098. #define LINUX
  19099. #define EGL_API_FB
  19100. #define MESA_EGL_NO_X11_HEADERS
  19101. #define EGL_NO_X11
  19102. #include <EGL/egl.h>
  19103. #include <EGL/eglext.h>
  19104. int
  19105. main ()
  19106. {
  19107. ;
  19108. return 0;
  19109. }
  19110. _ACEOF
  19111. if ac_fn_c_try_compile "$LINENO"; then :
  19112. video_opengl_egl=yes
  19113. fi
  19114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19116. $as_echo "$video_opengl_egl" >&6; }
  19117. if test x$video_opengl_egl = xyes; then
  19118. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19119. fi
  19120. if test x$enable_video_opengles1 = xyes; then
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19122. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19123. video_opengles_v1=no
  19124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19125. /* end confdefs.h. */
  19126. #include <GLES/gl.h>
  19127. #include <GLES/glext.h>
  19128. int
  19129. main ()
  19130. {
  19131. ;
  19132. return 0;
  19133. }
  19134. _ACEOF
  19135. if ac_fn_c_try_compile "$LINENO"; then :
  19136. video_opengles_v1=yes
  19137. fi
  19138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19140. $as_echo "$video_opengles_v1" >&6; }
  19141. if test x$video_opengles_v1 = xyes; then
  19142. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19143. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19144. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19145. fi
  19146. fi
  19147. if test x$enable_video_opengles2 = xyes; then
  19148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19149. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19150. video_opengles_v2=no
  19151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19152. /* end confdefs.h. */
  19153. #include <GLES2/gl2.h>
  19154. #include <GLES2/gl2ext.h>
  19155. int
  19156. main ()
  19157. {
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. if ac_fn_c_try_compile "$LINENO"; then :
  19163. video_opengles_v2=yes
  19164. fi
  19165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19167. $as_echo "$video_opengles_v2" >&6; }
  19168. if test x$video_opengles_v2 = xyes; then
  19169. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19170. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19171. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19172. fi
  19173. fi
  19174. fi
  19175. }
  19176. CheckWINDOWSGL()
  19177. {
  19178. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19179. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19180. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19181. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19182. SUMMARY_video="${SUMMARY_video} opengl"
  19183. fi
  19184. }
  19185. CheckWINDOWSGLES()
  19186. {
  19187. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19189. $as_echo_n "checking for EGL support... " >&6; }
  19190. video_opengl_egl=no
  19191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19192. /* end confdefs.h. */
  19193. #include <EGL/egl.h>
  19194. int
  19195. main ()
  19196. {
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_compile "$LINENO"; then :
  19202. video_opengl_egl=yes
  19203. fi
  19204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19206. $as_echo "$video_opengl_egl" >&6; }
  19207. if test x$video_opengl_egl = xyes; then
  19208. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19209. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19210. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19211. fi
  19212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19213. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19214. video_opengles_v2=no
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. #include <GLES2/gl2.h>
  19218. #include <GLES2/gl2ext.h>
  19219. int
  19220. main ()
  19221. {
  19222. ;
  19223. return 0;
  19224. }
  19225. _ACEOF
  19226. if ac_fn_c_try_compile "$LINENO"; then :
  19227. video_opengles_v2=yes
  19228. fi
  19229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19231. $as_echo "$video_opengles_v2" >&6; }
  19232. if test x$video_opengles_v2 = xyes; then
  19233. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19234. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19235. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19236. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19237. fi
  19238. fi
  19239. }
  19240. CheckHaikuGL()
  19241. {
  19242. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19243. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19244. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19245. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19247. SUMMARY_video="${SUMMARY_video} opengl"
  19248. fi
  19249. }
  19250. CheckMacGL()
  19251. {
  19252. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19253. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19254. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19255. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19256. SUMMARY_video="${SUMMARY_video} opengl"
  19257. fi
  19258. }
  19259. CheckMacGLES()
  19260. {
  19261. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19262. video_opengl_egl=yes
  19263. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19264. video_opengles_v2=yes
  19265. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19266. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19267. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19268. fi
  19269. }
  19270. CheckEmscriptenGLES()
  19271. {
  19272. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19274. $as_echo_n "checking for EGL support... " >&6; }
  19275. video_opengl_egl=no
  19276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19277. /* end confdefs.h. */
  19278. #include <EGL/egl.h>
  19279. int
  19280. main ()
  19281. {
  19282. ;
  19283. return 0;
  19284. }
  19285. _ACEOF
  19286. if ac_fn_c_try_compile "$LINENO"; then :
  19287. video_opengl_egl=yes
  19288. fi
  19289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19291. $as_echo "$video_opengl_egl" >&6; }
  19292. if test x$video_opengl_egl = xyes; then
  19293. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19294. fi
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19296. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19297. video_opengles_v2=no
  19298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19299. /* end confdefs.h. */
  19300. #include <GLES2/gl2.h>
  19301. #include <GLES2/gl2ext.h>
  19302. int
  19303. main ()
  19304. {
  19305. ;
  19306. return 0;
  19307. }
  19308. _ACEOF
  19309. if ac_fn_c_try_compile "$LINENO"; then :
  19310. video_opengles_v2=yes
  19311. fi
  19312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19314. $as_echo "$video_opengles_v2" >&6; }
  19315. if test x$video_opengles_v2 = xyes; then
  19316. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19317. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19318. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19319. fi
  19320. fi
  19321. }
  19322. # Check whether --enable-video-vulkan was given.
  19323. if test "${enable_video_vulkan+set}" = set; then :
  19324. enableval=$enable_video_vulkan;
  19325. else
  19326. enable_video_vulkan=yes
  19327. fi
  19328. CheckVulkan()
  19329. {
  19330. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19331. case "$host" in
  19332. *-*-android*)
  19333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19334. /* end confdefs.h. */
  19335. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19336. #error Vulkan doesn't work on this configuration
  19337. #endif
  19338. int
  19339. main ()
  19340. {
  19341. ;
  19342. return 0;
  19343. }
  19344. _ACEOF
  19345. if ac_fn_c_try_compile "$LINENO"; then :
  19346. else
  19347. enable_video_vulkan=no
  19348. fi
  19349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19350. ;;
  19351. *-*-darwin*)
  19352. save_CFLAGS="$CFLAGS"
  19353. CFLAGS="$CFLAGS -x objective-c"
  19354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19355. /* end confdefs.h. */
  19356. #include <Cocoa/Cocoa.h>
  19357. #include <Metal/Metal.h>
  19358. #include <QuartzCore/CAMetalLayer.h>
  19359. #if TARGET_CPU_X86
  19360. #error Vulkan doesn't work on this configuration
  19361. #endif
  19362. int
  19363. main ()
  19364. {
  19365. ;
  19366. return 0;
  19367. }
  19368. _ACEOF
  19369. if ac_fn_c_try_compile "$LINENO"; then :
  19370. else
  19371. enable_video_vulkan=no
  19372. fi
  19373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19374. CFLAGS="$save_CFLAGS"
  19375. ;;
  19376. *)
  19377. ;;
  19378. esac
  19379. if test x$enable_video_vulkan = xno; then
  19380. # For reasons I am totally unable to see, I get an undefined macro error if
  19381. # I put this in the AC_TRY_COMPILE.
  19382. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19383. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19384. fi
  19385. fi
  19386. if test x$enable_video_vulkan = xyes; then
  19387. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19388. SUMMARY_video="${SUMMARY_video} vulkan"
  19389. fi
  19390. }
  19391. CheckInputEvents()
  19392. {
  19393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19394. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19395. use_input_events=no
  19396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19397. /* end confdefs.h. */
  19398. #include <dev/evdev/input.h>
  19399. int
  19400. main ()
  19401. {
  19402. #ifndef EVIOCGNAME
  19403. #error EVIOCGNAME() ioctl not available
  19404. #endif
  19405. ;
  19406. return 0;
  19407. }
  19408. _ACEOF
  19409. if ac_fn_c_try_compile "$LINENO"; then :
  19410. use_input_events=yes
  19411. fi
  19412. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19413. if test x$use_input_events = xno; then
  19414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. /* end confdefs.h. */
  19416. #include <linux/input.h>
  19417. int
  19418. main ()
  19419. {
  19420. #ifndef EVIOCGNAME
  19421. #error EVIOCGNAME() ioctl not available
  19422. #endif
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. if ac_fn_c_try_compile "$LINENO"; then :
  19428. use_input_events=yes
  19429. fi
  19430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19431. fi
  19432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19433. $as_echo "$use_input_events" >&6; }
  19434. if test x$use_input_events = xyes; then
  19435. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19436. SUMMARY_input="${SUMMARY_input} linuxev"
  19437. fi
  19438. }
  19439. CheckInputKD()
  19440. {
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19442. $as_echo_n "checking for Linux kd.h... " >&6; }
  19443. use_input_kd=no
  19444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19445. /* end confdefs.h. */
  19446. #include <linux/kd.h>
  19447. #include <linux/keyboard.h>
  19448. int
  19449. main ()
  19450. {
  19451. struct kbentry kbe;
  19452. kbe.kb_table = KG_CTRL;
  19453. ioctl(0, KDGKBENT, &kbe);
  19454. ;
  19455. return 0;
  19456. }
  19457. _ACEOF
  19458. if ac_fn_c_try_compile "$LINENO"; then :
  19459. use_input_kd=yes
  19460. fi
  19461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19463. $as_echo "$use_input_kd" >&6; }
  19464. if test x$use_input_kd = xyes; then
  19465. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19466. SUMMARY_input="${SUMMARY_input} linuxkd"
  19467. fi
  19468. }
  19469. CheckInputKBIO()
  19470. {
  19471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19472. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19473. use_input_kbio=no
  19474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19475. /* end confdefs.h. */
  19476. #include <sys/kbio.h>
  19477. #include <sys/ioctl.h>
  19478. int
  19479. main ()
  19480. {
  19481. accentmap_t accTable;
  19482. ioctl(0, KDENABIO, 1);
  19483. ;
  19484. return 0;
  19485. }
  19486. _ACEOF
  19487. if ac_fn_c_try_compile "$LINENO"; then :
  19488. use_input_kbio=yes
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19492. $as_echo "$use_input_kbio" >&6; }
  19493. if test x$use_input_kbio = xyes; then
  19494. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19495. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19496. fi
  19497. }
  19498. CheckLibUDev()
  19499. {
  19500. # Check whether --enable-libudev was given.
  19501. if test "${enable_libudev+set}" = set; then :
  19502. enableval=$enable_libudev;
  19503. else
  19504. enable_libudev=yes
  19505. fi
  19506. if test x$enable_libudev = xyes; then
  19507. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19508. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19509. have_libudev_h_hdr=yes
  19510. else
  19511. have_libudev_h_hdr=no
  19512. fi
  19513. if test x$have_libudev_h_hdr = xyes; then
  19514. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19515. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19516. if test x$udev_lib != x; then
  19517. echo "-- dynamic udev -> $udev_lib"
  19518. cat >>confdefs.h <<_ACEOF
  19519. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19520. _ACEOF
  19521. fi
  19522. fi
  19523. fi
  19524. }
  19525. CheckDBus()
  19526. {
  19527. # Check whether --enable-dbus was given.
  19528. if test "${enable_dbus+set}" = set; then :
  19529. enableval=$enable_dbus;
  19530. else
  19531. enable_dbus=yes
  19532. fi
  19533. if test x$enable_dbus = xyes; then
  19534. pkg_failed=no
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19536. $as_echo_n "checking for DBUS... " >&6; }
  19537. if test -n "$DBUS_CFLAGS"; then
  19538. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19539. elif test -n "$PKG_CONFIG"; then
  19540. if test -n "$PKG_CONFIG" && \
  19541. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19542. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19543. ac_status=$?
  19544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19545. test $ac_status = 0; }; then
  19546. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19547. else
  19548. pkg_failed=yes
  19549. fi
  19550. else
  19551. pkg_failed=untried
  19552. fi
  19553. if test -n "$DBUS_LIBS"; then
  19554. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19555. elif test -n "$PKG_CONFIG"; then
  19556. if test -n "$PKG_CONFIG" && \
  19557. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19558. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19559. ac_status=$?
  19560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19561. test $ac_status = 0; }; then
  19562. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19563. else
  19564. pkg_failed=yes
  19565. fi
  19566. else
  19567. pkg_failed=untried
  19568. fi
  19569. if test $pkg_failed = yes; then
  19570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19571. $as_echo "no" >&6; }
  19572. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19573. _pkg_short_errors_supported=yes
  19574. else
  19575. _pkg_short_errors_supported=no
  19576. fi
  19577. if test $_pkg_short_errors_supported = yes; then
  19578. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19579. else
  19580. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19581. fi
  19582. # Put the nasty error message in config.log where it belongs
  19583. echo "$DBUS_PKG_ERRORS" >&5
  19584. have_dbus=no
  19585. elif test $pkg_failed = untried; then
  19586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19587. $as_echo "no" >&6; }
  19588. have_dbus=no
  19589. else
  19590. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19591. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19593. $as_echo "yes" >&6; }
  19594. have_dbus=yes
  19595. fi
  19596. save_CFLAGS="$CFLAGS"
  19597. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19598. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19599. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19600. have_dbus_dbus_h_hdr=yes
  19601. else
  19602. have_dbus_dbus_h_hdr=no
  19603. fi
  19604. CFLAGS="$save_CFLAGS"
  19605. if test x$have_dbus_dbus_h_hdr = xyes; then
  19606. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19607. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19608. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19609. fi
  19610. fi
  19611. }
  19612. CheckIME()
  19613. {
  19614. # Check whether --enable-ime was given.
  19615. if test "${enable_ime+set}" = set; then :
  19616. enableval=$enable_ime;
  19617. else
  19618. enable_ime=yes
  19619. fi
  19620. if test x$enable_ime = xyes; then
  19621. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19622. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19623. fi
  19624. }
  19625. CheckIBus()
  19626. {
  19627. # Check whether --enable-ibus was given.
  19628. if test "${enable_ibus+set}" = set; then :
  19629. enableval=$enable_ibus;
  19630. else
  19631. enable_ibus=yes
  19632. fi
  19633. if test x$enable_ibus = xyes; then
  19634. pkg_failed=no
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19636. $as_echo_n "checking for IBUS... " >&6; }
  19637. if test -n "$IBUS_CFLAGS"; then
  19638. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19639. elif test -n "$PKG_CONFIG"; then
  19640. if test -n "$PKG_CONFIG" && \
  19641. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19642. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19643. ac_status=$?
  19644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19645. test $ac_status = 0; }; then
  19646. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19647. else
  19648. pkg_failed=yes
  19649. fi
  19650. else
  19651. pkg_failed=untried
  19652. fi
  19653. if test -n "$IBUS_LIBS"; then
  19654. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19655. elif test -n "$PKG_CONFIG"; then
  19656. if test -n "$PKG_CONFIG" && \
  19657. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19658. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19659. ac_status=$?
  19660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19661. test $ac_status = 0; }; then
  19662. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19663. else
  19664. pkg_failed=yes
  19665. fi
  19666. else
  19667. pkg_failed=untried
  19668. fi
  19669. if test $pkg_failed = yes; then
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19671. $as_echo "no" >&6; }
  19672. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19673. _pkg_short_errors_supported=yes
  19674. else
  19675. _pkg_short_errors_supported=no
  19676. fi
  19677. if test $_pkg_short_errors_supported = yes; then
  19678. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19679. else
  19680. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19681. fi
  19682. # Put the nasty error message in config.log where it belongs
  19683. echo "$IBUS_PKG_ERRORS" >&5
  19684. have_ibus=no
  19685. elif test $pkg_failed = untried; then
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19687. $as_echo "no" >&6; }
  19688. have_ibus=no
  19689. else
  19690. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19691. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19693. $as_echo "yes" >&6; }
  19694. have_ibus=yes
  19695. fi
  19696. save_CFLAGS="$CFLAGS"
  19697. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19698. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19699. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19700. have_ibus_ibus_h_hdr=yes
  19701. else
  19702. have_ibus_ibus_h_hdr=no
  19703. fi
  19704. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19705. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19706. have_inotify_inotify_h_hdr=yes
  19707. else
  19708. have_inotify_inotify_h_hdr=no
  19709. fi
  19710. CFLAGS="$save_CFLAGS"
  19711. if test x$have_ibus_ibus_h_hdr = xyes; then
  19712. if test x$enable_ime != xyes; then
  19713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19714. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19715. have_ibus_ibus_h_hdr=no
  19716. elif test x$enable_dbus != xyes; then
  19717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19718. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19719. have_ibus_ibus_h_hdr=no
  19720. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19722. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19723. have_ibus_ibus_h_hdr=no
  19724. else
  19725. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19726. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19727. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19728. fi
  19729. fi
  19730. fi
  19731. }
  19732. CheckFcitx()
  19733. {
  19734. # Check whether --enable-fcitx was given.
  19735. if test "${enable_fcitx+set}" = set; then :
  19736. enableval=$enable_fcitx;
  19737. else
  19738. enable_fcitx=yes
  19739. fi
  19740. if test x$enable_fcitx = xyes; then
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  19742. $as_echo_n "checking for fcitx support... " >&6; }
  19743. have_fcitx=no
  19744. if test x$enable_ime != xyes; then
  19745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19746. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19747. elif test x$have_dbus_dbus_h_hdr != xyes; then
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19749. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19750. else
  19751. have_fcitx=yes
  19752. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  19753. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19754. fi
  19755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  19756. $as_echo "$have_fcitx" >&6; }
  19757. fi
  19758. }
  19759. CheckPTHREAD()
  19760. {
  19761. # Check whether --enable-pthreads was given.
  19762. if test "${enable_pthreads+set}" = set; then :
  19763. enableval=$enable_pthreads;
  19764. else
  19765. enable_pthreads=yes
  19766. fi
  19767. # Check whether --enable-pthread-sem was given.
  19768. if test "${enable_pthread_sem+set}" = set; then :
  19769. enableval=$enable_pthread_sem;
  19770. else
  19771. enable_pthread_sem=yes
  19772. fi
  19773. case "$host" in
  19774. *-*-android*)
  19775. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19776. pthread_lib=""
  19777. ;;
  19778. *-*-linux*|*-*-uclinux*)
  19779. pthread_cflags="-D_REENTRANT"
  19780. pthread_lib="-lpthread"
  19781. ;;
  19782. *-*-bsdi*)
  19783. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19784. pthread_lib=""
  19785. ;;
  19786. *-*-darwin*)
  19787. pthread_cflags="-D_THREAD_SAFE"
  19788. # causes Carbon.p complaints?
  19789. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19790. ;;
  19791. *-*-freebsd*|*-*-dragonfly*)
  19792. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19793. pthread_lib="-pthread"
  19794. ;;
  19795. *-*-netbsd*)
  19796. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19797. pthread_lib="-lpthread"
  19798. ;;
  19799. *-*-openbsd*)
  19800. pthread_cflags="-D_REENTRANT"
  19801. pthread_lib="-pthread"
  19802. ;;
  19803. *-*-solaris2.9)
  19804. # From Solaris 9+, posix4's preferred name is rt.
  19805. pthread_cflags="-D_REENTRANT"
  19806. pthread_lib="-lpthread -lrt"
  19807. ;;
  19808. *-*-solaris2.10)
  19809. # Solaris 10+ merged pthread into libc.
  19810. pthread_cflags="-D_REENTRANT"
  19811. pthread_lib="-lrt"
  19812. ;;
  19813. *-*-solaris*)
  19814. # Solaris 11+ merged rt into libc.
  19815. pthread_cflags="-D_REENTRANT"
  19816. pthread_lib=""
  19817. ;;
  19818. *-*-sysv5*)
  19819. pthread_cflags="-D_REENTRANT -Kthread"
  19820. pthread_lib=""
  19821. ;;
  19822. *-*-aix*)
  19823. pthread_cflags="-D_REENTRANT -mthreads"
  19824. pthread_lib="-lpthread"
  19825. ;;
  19826. *-*-hpux11*)
  19827. pthread_cflags="-D_REENTRANT"
  19828. pthread_lib="-L/usr/lib -lpthread"
  19829. ;;
  19830. *-*-haiku*)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib=""
  19833. ;;
  19834. *-*-nto*)
  19835. pthread_cflags="-D_REENTRANT"
  19836. pthread_lib=""
  19837. ;;
  19838. *)
  19839. pthread_cflags="-D_REENTRANT"
  19840. pthread_lib="-lpthread"
  19841. ;;
  19842. esac
  19843. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19844. # Save the original compiler flags and libraries
  19845. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19846. # Add the pthread compiler flags and libraries
  19847. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19848. # Check to see if we have pthread support on this system
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19850. $as_echo_n "checking for pthreads... " >&6; }
  19851. use_pthreads=no
  19852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19853. /* end confdefs.h. */
  19854. #include <pthread.h>
  19855. int
  19856. main ()
  19857. {
  19858. pthread_attr_t type;
  19859. pthread_attr_init(&type);
  19860. ;
  19861. return 0;
  19862. }
  19863. _ACEOF
  19864. if ac_fn_c_try_link "$LINENO"; then :
  19865. use_pthreads=yes
  19866. fi
  19867. rm -f core conftest.err conftest.$ac_objext \
  19868. conftest$ac_exeext conftest.$ac_ext
  19869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19870. $as_echo "$use_pthreads" >&6; }
  19871. # Restore the compiler flags and libraries
  19872. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19873. # Do futher testing if we have pthread support...
  19874. if test x$use_pthreads = xyes; then
  19875. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19876. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19878. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19879. # Save the original compiler flags and libraries
  19880. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19881. # Add the pthread compiler flags and libraries
  19882. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19883. # Check to see if recursive mutexes are available
  19884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19885. $as_echo_n "checking for recursive mutexes... " >&6; }
  19886. has_recursive_mutexes=no
  19887. if test x$has_recursive_mutexes = xno; then
  19888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19889. /* end confdefs.h. */
  19890. #define _GNU_SOURCE 1
  19891. #include <pthread.h>
  19892. int
  19893. main ()
  19894. {
  19895. pthread_mutexattr_t attr;
  19896. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19897. ;
  19898. return 0;
  19899. }
  19900. _ACEOF
  19901. if ac_fn_c_try_link "$LINENO"; then :
  19902. has_recursive_mutexes=yes
  19903. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext \
  19906. conftest$ac_exeext conftest.$ac_ext
  19907. fi
  19908. if test x$has_recursive_mutexes = xno; then
  19909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19910. /* end confdefs.h. */
  19911. #define _GNU_SOURCE 1
  19912. #include <pthread.h>
  19913. int
  19914. main ()
  19915. {
  19916. pthread_mutexattr_t attr;
  19917. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19918. ;
  19919. return 0;
  19920. }
  19921. _ACEOF
  19922. if ac_fn_c_try_link "$LINENO"; then :
  19923. has_recursive_mutexes=yes
  19924. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19925. fi
  19926. rm -f core conftest.err conftest.$ac_objext \
  19927. conftest$ac_exeext conftest.$ac_ext
  19928. fi
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19930. $as_echo "$has_recursive_mutexes" >&6; }
  19931. # Check to see if pthread semaphore support is missing
  19932. if test x$enable_pthread_sem = xyes; then
  19933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19934. $as_echo_n "checking for pthread semaphores... " >&6; }
  19935. have_pthread_sem=no
  19936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19937. /* end confdefs.h. */
  19938. #include <pthread.h>
  19939. #include <semaphore.h>
  19940. int
  19941. main ()
  19942. {
  19943. ;
  19944. return 0;
  19945. }
  19946. _ACEOF
  19947. if ac_fn_c_try_compile "$LINENO"; then :
  19948. have_pthread_sem=yes
  19949. fi
  19950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19952. $as_echo "$have_pthread_sem" >&6; }
  19953. fi
  19954. if test x$have_pthread_sem = xyes; then
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19956. $as_echo_n "checking for sem_timedwait... " >&6; }
  19957. have_sem_timedwait=no
  19958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19959. /* end confdefs.h. */
  19960. #include <pthread.h>
  19961. #include <semaphore.h>
  19962. int
  19963. main ()
  19964. {
  19965. sem_timedwait(NULL, NULL);
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_link "$LINENO"; then :
  19971. have_sem_timedwait=yes
  19972. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19973. fi
  19974. rm -f core conftest.err conftest.$ac_objext \
  19975. conftest$ac_exeext conftest.$ac_ext
  19976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19977. $as_echo "$have_sem_timedwait" >&6; }
  19978. fi
  19979. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19980. "
  19981. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19982. have_pthread_np_h=yes
  19983. else
  19984. have_pthread_np_h=no
  19985. fi
  19986. if test x$have_pthread_np_h = xyes; then
  19987. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19988. fi
  19989. # Check to see if pthread naming is available
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19991. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19993. /* end confdefs.h. */
  19994. /* Override any GCC internal prototype to avoid an error.
  19995. Use char because int might match the return type of a GCC
  19996. builtin and then its argument prototype would still apply. */
  19997. #ifdef __cplusplus
  19998. extern "C"
  19999. #endif
  20000. char pthread_setname_np ();
  20001. int
  20002. main ()
  20003. {
  20004. return pthread_setname_np ();
  20005. ;
  20006. return 0;
  20007. }
  20008. _ACEOF
  20009. if ac_fn_c_try_link "$LINENO"; then :
  20010. has_pthread_setname_np=yes
  20011. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20012. else
  20013. has_pthread_setname_np=no
  20014. fi
  20015. rm -f core conftest.err conftest.$ac_objext \
  20016. conftest$ac_exeext conftest.$ac_ext
  20017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20018. $as_echo "$has_pthread_setname_np" >&6; }
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20020. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20022. /* end confdefs.h. */
  20023. /* Override any GCC internal prototype to avoid an error.
  20024. Use char because int might match the return type of a GCC
  20025. builtin and then its argument prototype would still apply. */
  20026. #ifdef __cplusplus
  20027. extern "C"
  20028. #endif
  20029. char pthread_set_name_np ();
  20030. int
  20031. main ()
  20032. {
  20033. return pthread_set_name_np ();
  20034. ;
  20035. return 0;
  20036. }
  20037. _ACEOF
  20038. if ac_fn_c_try_link "$LINENO"; then :
  20039. has_pthread_set_name_np=yes
  20040. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20041. else
  20042. has_pthread_set_name_np=no
  20043. fi
  20044. rm -f core conftest.err conftest.$ac_objext \
  20045. conftest$ac_exeext conftest.$ac_ext
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20047. $as_echo "$has_pthread_set_name_np" >&6; }
  20048. # Restore the compiler flags and libraries
  20049. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20050. # Basic thread creation functions
  20051. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20052. # Semaphores
  20053. # We can fake these with mutexes and condition variables if necessary
  20054. if test x$have_pthread_sem = xyes; then
  20055. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20056. else
  20057. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20058. fi
  20059. # Mutexes
  20060. # We can fake these with semaphores if necessary
  20061. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20062. # Condition variables
  20063. # We can fake these with semaphores and mutexes if necessary
  20064. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20065. # Thread local storage
  20066. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20067. have_threads=yes
  20068. fi
  20069. fi
  20070. }
  20071. CheckWINDOWS()
  20072. {
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20074. $as_echo_n "checking Windows compiler... " >&6; }
  20075. have_win32_gcc=no
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. #include <windows.h>
  20079. int
  20080. main ()
  20081. {
  20082. ;
  20083. return 0;
  20084. }
  20085. _ACEOF
  20086. if ac_fn_c_try_compile "$LINENO"; then :
  20087. have_win32_gcc=yes
  20088. fi
  20089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20091. $as_echo "$have_win32_gcc" >&6; }
  20092. if test x$have_win32_gcc != xyes; then
  20093. as_fn_error $? "
  20094. *** Your compiler ($CC) does not produce Windows executables!
  20095. " "$LINENO" 5
  20096. fi
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20098. $as_echo_n "checking Windows CE... " >&6; }
  20099. have_wince=no
  20100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20101. /* end confdefs.h. */
  20102. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20103. #error This is not Windows CE
  20104. #endif
  20105. int
  20106. main ()
  20107. {
  20108. ;
  20109. return 0;
  20110. }
  20111. _ACEOF
  20112. if ac_fn_c_try_compile "$LINENO"; then :
  20113. have_wince=yes
  20114. as_fn_error $? "
  20115. *** Sorry, Windows CE is no longer supported.
  20116. " "$LINENO" 5
  20117. fi
  20118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20120. $as_echo "$have_wince" >&6; }
  20121. # This fixes Windows stack alignment with newer GCC
  20122. CheckStackBoundary
  20123. }
  20124. CheckDIRECTX()
  20125. {
  20126. # Check whether --enable-directx was given.
  20127. if test "${enable_directx+set}" = set; then :
  20128. enableval=$enable_directx;
  20129. else
  20130. enable_directx=yes
  20131. fi
  20132. if test x$enable_directx = xyes; then
  20133. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20135. have_d3d=yes
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20139. have_d3d11=yes
  20140. fi
  20141. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20143. have_ddraw=yes
  20144. fi
  20145. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20146. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20147. have_dsound=yes
  20148. fi
  20149. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20150. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20151. have_dinput=yes
  20152. fi
  20153. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20154. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20155. have_dxgi=yes
  20156. fi
  20157. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20158. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20159. have_xinput=yes
  20160. fi
  20161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20162. /* end confdefs.h. */
  20163. #include <windows.h>
  20164. #include <xinput.h>
  20165. XINPUT_GAMEPAD_EX x1;
  20166. int
  20167. main ()
  20168. {
  20169. ;
  20170. return 0;
  20171. }
  20172. _ACEOF
  20173. if ac_fn_c_try_compile "$LINENO"; then :
  20174. have_xinput_gamepadex=yes
  20175. fi
  20176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20178. /* end confdefs.h. */
  20179. #include <windows.h>
  20180. #include <xinput.h>
  20181. XINPUT_STATE_EX s1;
  20182. int
  20183. main ()
  20184. {
  20185. ;
  20186. return 0;
  20187. }
  20188. _ACEOF
  20189. if ac_fn_c_try_compile "$LINENO"; then :
  20190. have_xinput_stateex=yes
  20191. fi
  20192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20193. if test x$have_ddraw = xyes; then
  20194. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20195. fi
  20196. if test x$have_dinput = xyes; then
  20197. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20198. fi
  20199. if test x$have_dsound = xyes; then
  20200. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20201. fi
  20202. if test x$have_dxgi = xyes; then
  20203. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20204. fi
  20205. if test x$have_xinput = xyes; then
  20206. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20207. fi
  20208. if test x$have_xinput_gamepadex = xyes; then
  20209. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20210. fi
  20211. if test x$have_xinput_stateex = xyes; then
  20212. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20213. fi
  20214. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20215. # FIXME: ...so force it off for now.
  20216. case "$host" in
  20217. *-*-cygwin*)
  20218. have_dinput=false
  20219. ;;
  20220. esac
  20221. fi
  20222. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20223. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20224. have_wasapi=yes
  20225. fi
  20226. if test x$have_wasapi = xyes; then
  20227. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20228. fi
  20229. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20230. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20231. else
  20232. have_wasapi=no
  20233. fi
  20234. if test x$have_wasapi = xyes; then
  20235. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20236. fi
  20237. # Check whether --enable-wasapi was given.
  20238. if test "${enable_wasapi+set}" = set; then :
  20239. enableval=$enable_wasapi;
  20240. else
  20241. enable_wasapi=yes
  20242. fi
  20243. }
  20244. CheckDLOPEN()
  20245. {
  20246. # Check whether --enable-sdl-dlopen was given.
  20247. if test "${enable_sdl_dlopen+set}" = set; then :
  20248. enableval=$enable_sdl_dlopen;
  20249. else
  20250. enable_sdl_dlopen=yes
  20251. fi
  20252. if test x$enable_sdl_dlopen = xyes; then
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20254. $as_echo_n "checking for dlopen... " >&6; }
  20255. have_dlopen=no
  20256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20257. /* end confdefs.h. */
  20258. #include <dlfcn.h>
  20259. int
  20260. main ()
  20261. {
  20262. void *handle = dlopen("", RTLD_NOW);
  20263. const char *loaderror = (char *) dlerror();
  20264. ;
  20265. return 0;
  20266. }
  20267. _ACEOF
  20268. if ac_fn_c_try_compile "$LINENO"; then :
  20269. have_dlopen=yes
  20270. fi
  20271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20273. $as_echo "$have_dlopen" >&6; }
  20274. if test x$have_dlopen = xyes; then
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20276. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20277. if ${ac_cv_lib_c_dlopen+:} false; then :
  20278. $as_echo_n "(cached) " >&6
  20279. else
  20280. ac_check_lib_save_LIBS=$LIBS
  20281. LIBS="-lc $LIBS"
  20282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20283. /* end confdefs.h. */
  20284. /* Override any GCC internal prototype to avoid an error.
  20285. Use char because int might match the return type of a GCC
  20286. builtin and then its argument prototype would still apply. */
  20287. #ifdef __cplusplus
  20288. extern "C"
  20289. #endif
  20290. char dlopen ();
  20291. int
  20292. main ()
  20293. {
  20294. return dlopen ();
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_link "$LINENO"; then :
  20300. ac_cv_lib_c_dlopen=yes
  20301. else
  20302. ac_cv_lib_c_dlopen=no
  20303. fi
  20304. rm -f core conftest.err conftest.$ac_objext \
  20305. conftest$ac_exeext conftest.$ac_ext
  20306. LIBS=$ac_check_lib_save_LIBS
  20307. fi
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20309. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20310. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20312. else
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20314. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20315. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20316. $as_echo_n "(cached) " >&6
  20317. else
  20318. ac_check_lib_save_LIBS=$LIBS
  20319. LIBS="-ldl $LIBS"
  20320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20321. /* end confdefs.h. */
  20322. /* Override any GCC internal prototype to avoid an error.
  20323. Use char because int might match the return type of a GCC
  20324. builtin and then its argument prototype would still apply. */
  20325. #ifdef __cplusplus
  20326. extern "C"
  20327. #endif
  20328. char dlopen ();
  20329. int
  20330. main ()
  20331. {
  20332. return dlopen ();
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_link "$LINENO"; then :
  20338. ac_cv_lib_dl_dlopen=yes
  20339. else
  20340. ac_cv_lib_dl_dlopen=no
  20341. fi
  20342. rm -f core conftest.err conftest.$ac_objext \
  20343. conftest$ac_exeext conftest.$ac_ext
  20344. LIBS=$ac_check_lib_save_LIBS
  20345. fi
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20347. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20348. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20350. else
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20352. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20353. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20354. $as_echo_n "(cached) " >&6
  20355. else
  20356. ac_check_lib_save_LIBS=$LIBS
  20357. LIBS="-lltdl $LIBS"
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. /* Override any GCC internal prototype to avoid an error.
  20361. Use char because int might match the return type of a GCC
  20362. builtin and then its argument prototype would still apply. */
  20363. #ifdef __cplusplus
  20364. extern "C"
  20365. #endif
  20366. char dlopen ();
  20367. int
  20368. main ()
  20369. {
  20370. return dlopen ();
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_link "$LINENO"; then :
  20376. ac_cv_lib_ltdl_dlopen=yes
  20377. else
  20378. ac_cv_lib_ltdl_dlopen=no
  20379. fi
  20380. rm -f core conftest.err conftest.$ac_objext \
  20381. conftest$ac_exeext conftest.$ac_ext
  20382. LIBS=$ac_check_lib_save_LIBS
  20383. fi
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20385. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20386. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20388. fi
  20389. fi
  20390. fi
  20391. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20392. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20393. have_loadso=yes
  20394. fi
  20395. fi
  20396. }
  20397. CheckUSBHID()
  20398. {
  20399. case "$host" in
  20400. *-*-*bsd*)
  20401. if test x$enable_joystick = xyes; then
  20402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20403. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20404. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20405. $as_echo_n "(cached) " >&6
  20406. else
  20407. ac_check_lib_save_LIBS=$LIBS
  20408. LIBS="-lusbhid $LIBS"
  20409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20410. /* end confdefs.h. */
  20411. /* Override any GCC internal prototype to avoid an error.
  20412. Use char because int might match the return type of a GCC
  20413. builtin and then its argument prototype would still apply. */
  20414. #ifdef __cplusplus
  20415. extern "C"
  20416. #endif
  20417. char hid_init ();
  20418. int
  20419. main ()
  20420. {
  20421. return hid_init ();
  20422. ;
  20423. return 0;
  20424. }
  20425. _ACEOF
  20426. if ac_fn_c_try_link "$LINENO"; then :
  20427. ac_cv_lib_usbhid_hid_init=yes
  20428. else
  20429. ac_cv_lib_usbhid_hid_init=no
  20430. fi
  20431. rm -f core conftest.err conftest.$ac_objext \
  20432. conftest$ac_exeext conftest.$ac_ext
  20433. LIBS=$ac_check_lib_save_LIBS
  20434. fi
  20435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20436. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20437. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20438. have_libusbhid=yes
  20439. fi
  20440. if test x$have_libusbhid = xyes; then
  20441. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20442. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20443. USB_CFLAGS="-DHAVE_USBHID_H"
  20444. fi
  20445. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20446. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20447. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20448. fi
  20449. USB_LIBS="$USB_LIBS -lusbhid"
  20450. else
  20451. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20452. if test "x$ac_cv_header_usb_h" = xyes; then :
  20453. USB_CFLAGS="-DHAVE_USB_H"
  20454. fi
  20455. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20456. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20457. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20458. fi
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20460. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20461. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20462. $as_echo_n "(cached) " >&6
  20463. else
  20464. ac_check_lib_save_LIBS=$LIBS
  20465. LIBS="-lusb $LIBS"
  20466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20467. /* end confdefs.h. */
  20468. /* Override any GCC internal prototype to avoid an error.
  20469. Use char because int might match the return type of a GCC
  20470. builtin and then its argument prototype would still apply. */
  20471. #ifdef __cplusplus
  20472. extern "C"
  20473. #endif
  20474. char hid_init ();
  20475. int
  20476. main ()
  20477. {
  20478. return hid_init ();
  20479. ;
  20480. return 0;
  20481. }
  20482. _ACEOF
  20483. if ac_fn_c_try_link "$LINENO"; then :
  20484. ac_cv_lib_usb_hid_init=yes
  20485. else
  20486. ac_cv_lib_usb_hid_init=no
  20487. fi
  20488. rm -f core conftest.err conftest.$ac_objext \
  20489. conftest$ac_exeext conftest.$ac_ext
  20490. LIBS=$ac_check_lib_save_LIBS
  20491. fi
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20493. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20494. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20495. USB_LIBS="$USB_LIBS -lusb"
  20496. fi
  20497. fi
  20498. save_CFLAGS="$CFLAGS"
  20499. CFLAGS="$CFLAGS $USB_CFLAGS"
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20501. $as_echo_n "checking for usbhid... " >&6; }
  20502. have_usbhid=no
  20503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20504. /* end confdefs.h. */
  20505. #include <sys/types.h>
  20506. #if defined(HAVE_USB_H)
  20507. #include <usb.h>
  20508. #endif
  20509. #ifdef __DragonFly__
  20510. # include <bus/usb/usb.h>
  20511. # include <bus/usb/usbhid.h>
  20512. #else
  20513. # include <dev/usb/usb.h>
  20514. # include <dev/usb/usbhid.h>
  20515. #endif
  20516. #if defined(HAVE_USBHID_H)
  20517. #include <usbhid.h>
  20518. #elif defined(HAVE_LIBUSB_H)
  20519. #include <libusb.h>
  20520. #elif defined(HAVE_LIBUSBHID_H)
  20521. #include <libusbhid.h>
  20522. #endif
  20523. int
  20524. main ()
  20525. {
  20526. struct report_desc *repdesc;
  20527. struct usb_ctl_report *repbuf;
  20528. hid_kind_t hidkind;
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. if ac_fn_c_try_compile "$LINENO"; then :
  20534. have_usbhid=yes
  20535. fi
  20536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20538. $as_echo "$have_usbhid" >&6; }
  20539. if test x$have_usbhid = xyes; then
  20540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20541. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20542. have_usbhid_ucr_data=no
  20543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20544. /* end confdefs.h. */
  20545. #include <sys/types.h>
  20546. #if defined(HAVE_USB_H)
  20547. #include <usb.h>
  20548. #endif
  20549. #ifdef __DragonFly__
  20550. # include <bus/usb/usb.h>
  20551. # include <bus/usb/usbhid.h>
  20552. #else
  20553. # include <dev/usb/usb.h>
  20554. # include <dev/usb/usbhid.h>
  20555. #endif
  20556. #if defined(HAVE_USBHID_H)
  20557. #include <usbhid.h>
  20558. #elif defined(HAVE_LIBUSB_H)
  20559. #include <libusb.h>
  20560. #elif defined(HAVE_LIBUSBHID_H)
  20561. #include <libusbhid.h>
  20562. #endif
  20563. int
  20564. main ()
  20565. {
  20566. struct usb_ctl_report buf;
  20567. if (buf.ucr_data) { }
  20568. ;
  20569. return 0;
  20570. }
  20571. _ACEOF
  20572. if ac_fn_c_try_compile "$LINENO"; then :
  20573. have_usbhid_ucr_data=yes
  20574. fi
  20575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20576. if test x$have_usbhid_ucr_data = xyes; then
  20577. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20578. fi
  20579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20580. $as_echo "$have_usbhid_ucr_data" >&6; }
  20581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20582. $as_echo_n "checking for new usbhid API... " >&6; }
  20583. have_usbhid_new=no
  20584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20585. /* end confdefs.h. */
  20586. #include <sys/types.h>
  20587. #if defined(HAVE_USB_H)
  20588. #include <usb.h>
  20589. #endif
  20590. #ifdef __DragonFly__
  20591. #include <bus/usb/usb.h>
  20592. #include <bus/usb/usbhid.h>
  20593. #else
  20594. #include <dev/usb/usb.h>
  20595. #include <dev/usb/usbhid.h>
  20596. #endif
  20597. #if defined(HAVE_USBHID_H)
  20598. #include <usbhid.h>
  20599. #elif defined(HAVE_LIBUSB_H)
  20600. #include <libusb.h>
  20601. #elif defined(HAVE_LIBUSBHID_H)
  20602. #include <libusbhid.h>
  20603. #endif
  20604. int
  20605. main ()
  20606. {
  20607. report_desc_t d;
  20608. hid_start_parse(d, 1, 1);
  20609. ;
  20610. return 0;
  20611. }
  20612. _ACEOF
  20613. if ac_fn_c_try_compile "$LINENO"; then :
  20614. have_usbhid_new=yes
  20615. fi
  20616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20617. if test x$have_usbhid_new = xyes; then
  20618. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20619. fi
  20620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20621. $as_echo "$have_usbhid_new" >&6; }
  20622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20623. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20624. have_machine_joystick=no
  20625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20626. /* end confdefs.h. */
  20627. #include <machine/joystick.h>
  20628. int
  20629. main ()
  20630. {
  20631. struct joystick t;
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. if ac_fn_c_try_compile "$LINENO"; then :
  20637. have_machine_joystick=yes
  20638. fi
  20639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20640. if test x$have_machine_joystick = xyes; then
  20641. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20642. fi
  20643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20644. $as_echo "$have_machine_joystick" >&6; }
  20645. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20646. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20647. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20649. have_joystick=yes
  20650. fi
  20651. CFLAGS="$save_CFLAGS"
  20652. fi
  20653. ;;
  20654. esac
  20655. }
  20656. CheckHIDAPI()
  20657. {
  20658. # Check whether --enable-hidapi was given.
  20659. if test "${enable_hidapi+set}" = set; then :
  20660. enableval=$enable_hidapi;
  20661. else
  20662. enable_hidapi=yes
  20663. fi
  20664. # Check whether --enable-hidapi-libusb was given.
  20665. if test "${enable_hidapi_libusb+set}" = set; then :
  20666. enableval=$enable_hidapi_libusb;
  20667. else
  20668. enable_hidapi_libusb=maybe
  20669. fi
  20670. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20671. case "$host" in
  20672. # libusb does not support iOS
  20673. *-ios-* )
  20674. enable_hidapi_libusb=no
  20675. ;;
  20676. # On the other hand, *BSD specifically uses libusb only
  20677. *-*-*bsd* )
  20678. enable_hidapi_libusb=yes
  20679. require_hidapi_libusb=yes
  20680. ;;
  20681. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20682. *-*-cygwin* | *-*-mingw32*)
  20683. enable_joystick_rawinput=yes
  20684. ;;
  20685. esac
  20686. hidapi_support=yes
  20687. if test x$enable_hidapi_libusb = xyes; then
  20688. pkg_failed=no
  20689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20690. $as_echo_n "checking for LIBUSB... " >&6; }
  20691. if test -n "$LIBUSB_CFLAGS"; then
  20692. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20693. elif test -n "$PKG_CONFIG"; then
  20694. if test -n "$PKG_CONFIG" && \
  20695. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20696. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20697. ac_status=$?
  20698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20699. test $ac_status = 0; }; then
  20700. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20701. else
  20702. pkg_failed=yes
  20703. fi
  20704. else
  20705. pkg_failed=untried
  20706. fi
  20707. if test -n "$LIBUSB_LIBS"; then
  20708. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20709. elif test -n "$PKG_CONFIG"; then
  20710. if test -n "$PKG_CONFIG" && \
  20711. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20712. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20713. ac_status=$?
  20714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20715. test $ac_status = 0; }; then
  20716. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20717. else
  20718. pkg_failed=yes
  20719. fi
  20720. else
  20721. pkg_failed=untried
  20722. fi
  20723. if test $pkg_failed = yes; then
  20724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20725. $as_echo "no" >&6; }
  20726. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20727. _pkg_short_errors_supported=yes
  20728. else
  20729. _pkg_short_errors_supported=no
  20730. fi
  20731. if test $_pkg_short_errors_supported = yes; then
  20732. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20733. else
  20734. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20735. fi
  20736. # Put the nasty error message in config.log where it belongs
  20737. echo "$LIBUSB_PKG_ERRORS" >&5
  20738. have_libusb=no
  20739. elif test $pkg_failed = untried; then
  20740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20741. $as_echo "no" >&6; }
  20742. have_libusb=no
  20743. else
  20744. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20745. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20747. $as_echo "yes" >&6; }
  20748. have_libusb=yes
  20749. fi
  20750. save_CFLAGS="$CFLAGS"
  20751. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20752. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20753. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20754. have_libusb_h=yes
  20755. fi
  20756. CFLAGS="$save_CFLAGS"
  20757. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  20758. hidapi_support=no
  20759. fi
  20760. fi
  20761. if test x$hidapi_support = xyes; then
  20762. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20763. if test x$enable_joystick_rawinput = xyes; then
  20764. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20765. fi
  20766. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20767. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20768. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20769. if test x$have_libusb_h = xyes; then
  20770. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20771. if test x$require_hidapi_libusb = xyes; then
  20772. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20773. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20774. else
  20775. if test x$have_loadso != xyes; then
  20776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20777. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20778. fi
  20779. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20780. libusb_lib=""
  20781. case "$host" in
  20782. *-*-darwin* )
  20783. libusb_lib="libusb-1.0.0.dylib"
  20784. ;;
  20785. *-*-cygwin* | *-*-mingw32* )
  20786. libusb_lib="libusb-1.0.dll"
  20787. ;;
  20788. esac
  20789. if test x$libusb_lib = x; then
  20790. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20791. fi
  20792. cat >>confdefs.h <<_ACEOF
  20793. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20794. _ACEOF
  20795. fi
  20796. fi
  20797. fi
  20798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20799. $as_echo_n "checking for hidapi support... " >&6; }
  20800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20801. $as_echo "$hidapi_support" >&6; }
  20802. fi
  20803. }
  20804. CheckClockGettime()
  20805. {
  20806. # Check whether --enable-clock_gettime was given.
  20807. if test "${enable_clock_gettime+set}" = set; then :
  20808. enableval=$enable_clock_gettime;
  20809. else
  20810. enable_clock_gettime=yes
  20811. fi
  20812. if test x$enable_clock_gettime = xyes; then
  20813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20814. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20815. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20816. $as_echo_n "(cached) " >&6
  20817. else
  20818. ac_check_lib_save_LIBS=$LIBS
  20819. LIBS="-lrt $LIBS"
  20820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20821. /* end confdefs.h. */
  20822. /* Override any GCC internal prototype to avoid an error.
  20823. Use char because int might match the return type of a GCC
  20824. builtin and then its argument prototype would still apply. */
  20825. #ifdef __cplusplus
  20826. extern "C"
  20827. #endif
  20828. char clock_gettime ();
  20829. int
  20830. main ()
  20831. {
  20832. return clock_gettime ();
  20833. ;
  20834. return 0;
  20835. }
  20836. _ACEOF
  20837. if ac_fn_c_try_link "$LINENO"; then :
  20838. ac_cv_lib_rt_clock_gettime=yes
  20839. else
  20840. ac_cv_lib_rt_clock_gettime=no
  20841. fi
  20842. rm -f core conftest.err conftest.$ac_objext \
  20843. conftest$ac_exeext conftest.$ac_ext
  20844. LIBS=$ac_check_lib_save_LIBS
  20845. fi
  20846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20847. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20848. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20849. have_clock_gettime=yes
  20850. fi
  20851. if test x$have_clock_gettime = xyes; then
  20852. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20854. else
  20855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20856. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20857. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20858. $as_echo_n "(cached) " >&6
  20859. else
  20860. ac_check_lib_save_LIBS=$LIBS
  20861. LIBS="-lc $LIBS"
  20862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20863. /* end confdefs.h. */
  20864. /* Override any GCC internal prototype to avoid an error.
  20865. Use char because int might match the return type of a GCC
  20866. builtin and then its argument prototype would still apply. */
  20867. #ifdef __cplusplus
  20868. extern "C"
  20869. #endif
  20870. char clock_gettime ();
  20871. int
  20872. main ()
  20873. {
  20874. return clock_gettime ();
  20875. ;
  20876. return 0;
  20877. }
  20878. _ACEOF
  20879. if ac_fn_c_try_link "$LINENO"; then :
  20880. ac_cv_lib_c_clock_gettime=yes
  20881. else
  20882. ac_cv_lib_c_clock_gettime=no
  20883. fi
  20884. rm -f core conftest.err conftest.$ac_objext \
  20885. conftest$ac_exeext conftest.$ac_ext
  20886. LIBS=$ac_check_lib_save_LIBS
  20887. fi
  20888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20889. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20890. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20891. have_clock_gettime=yes
  20892. fi
  20893. if test x$have_clock_gettime = xyes; then
  20894. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20896. fi
  20897. fi
  20898. fi
  20899. }
  20900. CheckLinuxVersion()
  20901. {
  20902. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20903. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20904. have_linux_version_h=yes
  20905. fi
  20906. if test x$have_linux_version_h = xyes; then
  20907. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20908. fi
  20909. }
  20910. CheckRPATH()
  20911. {
  20912. # Check whether --enable-rpath was given.
  20913. if test "${enable_rpath+set}" = set; then :
  20914. enableval=$enable_rpath;
  20915. else
  20916. enable_rpath=yes
  20917. fi
  20918. }
  20919. CheckEventSignals()
  20920. {
  20921. # Check whether --enable-backgrounding-signal was given.
  20922. if test "${enable_backgrounding_signal+set}" = set; then :
  20923. enableval=$enable_backgrounding_signal;
  20924. else
  20925. enable_backgrounding_signal=no
  20926. fi
  20927. if test x$enable_backgrounding_signal != xno; then
  20928. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20929. fi
  20930. # Check whether --enable-foregrounding-signal was given.
  20931. if test "${enable_foregrounding_signal+set}" = set; then :
  20932. enableval=$enable_foregrounding_signal;
  20933. else
  20934. enable_foregrounding_signal=no
  20935. fi
  20936. if test x$enable_foregrounding_signal != xno; then
  20937. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20938. fi
  20939. }
  20940. CheckVirtualJoystick()
  20941. {
  20942. # Check whether --enable-joystick-virtual was given.
  20943. if test "${enable_joystick_virtual+set}" = set; then :
  20944. enableval=$enable_joystick_virtual;
  20945. else
  20946. enable_joystick_virtual=yes
  20947. fi
  20948. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  20949. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  20950. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  20951. have_joystick_virtual=yes
  20952. fi
  20953. }
  20954. CheckWarnAll
  20955. CheckNoStrictAliasing
  20956. CheckEventSignals
  20957. have_locale=no
  20958. case "$host" in
  20959. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20960. case "$host" in
  20961. *-*-android*)
  20962. # Android
  20963. ARCH=android
  20964. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20965. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20966. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20967. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20969. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20970. if test x$enable_video = xyes; then
  20971. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20972. # FIXME: confdefs? Not AC_DEFINE?
  20973. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20974. SUMMARY_video="${SUMMARY_video} android"
  20975. fi
  20976. ;;
  20977. *-*-linux*) ARCH=linux ;;
  20978. *-*-uclinux*) ARCH=linux ;;
  20979. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20980. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20981. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20982. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20983. *-*-bsdi*) ARCH=bsdi ;;
  20984. *-*-freebsd*) ARCH=freebsd ;;
  20985. *-*-dragonfly*) ARCH=freebsd ;;
  20986. *-*-netbsd*) ARCH=netbsd ;;
  20987. *-*-openbsd*) ARCH=openbsd ;;
  20988. *-*-sysv5*) ARCH=sysv5 ;;
  20989. *-*-solaris*) ARCH=solaris ;;
  20990. *-*-hpux*) ARCH=hpux ;;
  20991. *-*-aix*) ARCH=aix ;;
  20992. *-*-minix*) ARCH=minix ;;
  20993. *-*-nto*) ARCH=nto
  20994. CheckQNXVideo
  20995. ;;
  20996. esac
  20997. CheckVisibilityHidden
  20998. CheckDeclarationAfterStatement
  20999. CheckDummyVideo
  21000. CheckDiskAudio
  21001. CheckDummyAudio
  21002. CheckDLOPEN
  21003. CheckARM
  21004. CheckNEON
  21005. CheckOSS
  21006. CheckALSA
  21007. CheckPulseAudio
  21008. CheckJACK
  21009. CheckARTSC
  21010. CheckESD
  21011. CheckNAS
  21012. CheckSNDIO
  21013. CheckFusionSound
  21014. CheckLibSampleRate
  21015. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21016. CheckRPI
  21017. CheckX11
  21018. CheckDirectFB
  21019. CheckKMSDRM
  21020. CheckOpenGLX11
  21021. CheckOpenGLESX11
  21022. CheckVulkan
  21023. CheckWayland
  21024. CheckInputEvents
  21025. CheckLibUDev
  21026. CheckDBus
  21027. CheckIME
  21028. CheckIBus
  21029. CheckFcitx
  21030. case $ARCH in
  21031. linux)
  21032. CheckInputKD
  21033. ;;
  21034. freebsd)
  21035. CheckInputKBIO
  21036. ;;
  21037. esac
  21038. CheckUSBHID
  21039. CheckHIDAPI
  21040. CheckPTHREAD
  21041. CheckClockGettime
  21042. CheckLinuxVersion
  21043. CheckRPATH
  21044. CheckVivanteVideo
  21045. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21046. have_misc=yes
  21047. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21048. have_locale=yes
  21049. # Set up files for the audio library
  21050. if test x$enable_audio = xyes; then
  21051. case $ARCH in
  21052. sysv5|solaris|hpux)
  21053. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21054. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21055. SUMMARY_audio="${SUMMARY_audio} sun"
  21056. have_audio=yes
  21057. ;;
  21058. netbsd) # Don't use this on OpenBSD, it's busted.
  21059. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21060. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21061. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21062. have_audio=yes
  21063. ;;
  21064. aix)
  21065. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21066. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21067. SUMMARY_audio="${SUMMARY_audio} paudio"
  21068. have_audio=yes
  21069. ;;
  21070. android)
  21071. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21072. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21073. SUMMARY_audio="${SUMMARY_audio} android"
  21074. have_audio=yes
  21075. ;;
  21076. nto)
  21077. CheckQNXAudio
  21078. ;;
  21079. esac
  21080. fi
  21081. # Set up files for the joystick library
  21082. if test x$enable_joystick = xyes; then
  21083. case $ARCH in
  21084. linux|freebsd)
  21085. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21086. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21087. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21088. have_joystick=yes
  21089. ;;
  21090. android)
  21091. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21092. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21093. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21094. have_joystick=yes
  21095. ;;
  21096. esac
  21097. fi
  21098. # Set up files for the haptic library
  21099. if test x$enable_haptic = xyes; then
  21100. case $ARCH in
  21101. linux|freebsd)
  21102. if test x$use_input_events = xyes; then
  21103. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21104. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21105. have_haptic=yes
  21106. fi
  21107. ;;
  21108. android)
  21109. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21110. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21111. have_haptic=yes
  21112. ;;
  21113. esac
  21114. fi
  21115. # Set up files for the sensor library
  21116. if test x$enable_sensor = xyes; then
  21117. case $ARCH in
  21118. android)
  21119. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21120. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21121. have_sensor=yes
  21122. ;;
  21123. esac
  21124. fi
  21125. # Set up files for the power library
  21126. if test x$enable_power = xyes; then
  21127. case $ARCH in
  21128. linux)
  21129. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21130. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21131. have_power=yes
  21132. ;;
  21133. android)
  21134. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21135. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21136. have_power=yes
  21137. ;;
  21138. esac
  21139. fi
  21140. # Set up files for the filesystem library
  21141. if test x$enable_filesystem = xyes; then
  21142. case $ARCH in
  21143. android)
  21144. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21145. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21146. have_filesystem=yes
  21147. ;;
  21148. *)
  21149. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21150. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21151. have_filesystem=yes
  21152. ;;
  21153. esac
  21154. fi
  21155. # Set up files for the timer library
  21156. if test x$enable_timers = xyes; then
  21157. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21158. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21159. have_timers=yes
  21160. fi
  21161. # Set up files for udev hotplugging support
  21162. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21163. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21164. fi
  21165. # Set up files for evdev input
  21166. if test x$use_input_events = xyes; then
  21167. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21168. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21169. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21170. fi
  21171. # Set up other core UNIX files
  21172. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21173. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21174. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21175. ;;
  21176. *-*-cygwin* | *-*-mingw32*)
  21177. ARCH=win32
  21178. if test "$build" != "$host"; then # cross-compiling
  21179. # Default cross-compile location
  21180. ac_default_prefix=/usr/local/cross-tools/$host
  21181. else
  21182. # Look for the location of the tools and install there
  21183. if test "$BUILD_PREFIX" != ""; then
  21184. ac_default_prefix=$BUILD_PREFIX
  21185. fi
  21186. fi
  21187. CheckDeclarationAfterStatement
  21188. CheckDummyVideo
  21189. CheckDiskAudio
  21190. CheckDummyAudio
  21191. CheckWINDOWS
  21192. CheckWINDOWSGL
  21193. CheckWINDOWSGLES
  21194. CheckVulkan
  21195. CheckDIRECTX
  21196. CheckHIDAPI
  21197. # Set up the core platform files
  21198. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21199. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21200. have_misc=yes
  21201. # Use the Windows locale APIs.
  21202. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21203. have_locale=yes
  21204. # Set up files for the video library
  21205. if test x$enable_video = xyes; then
  21206. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21207. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21208. have_video=yes
  21209. # Check whether --enable-render-d3d was given.
  21210. if test "${enable_render_d3d+set}" = set; then :
  21211. enableval=$enable_render_d3d;
  21212. else
  21213. enable_render_d3d=yes
  21214. fi
  21215. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21216. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21217. SUMMARY_video="${SUMMARY_video} d3d9"
  21218. fi
  21219. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21220. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21221. SUMMARY_video="${SUMMARY_video} d3d11"
  21222. fi
  21223. fi
  21224. # Set up files for the audio library
  21225. if test x$enable_audio = xyes; then
  21226. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21227. SUMMARY_audio="${SUMMARY_audio} winmm"
  21228. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21229. if test x$have_dsound = xyes; then
  21230. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21231. SUMMARY_audio="${SUMMARY_audio} directsound"
  21232. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21233. fi
  21234. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21235. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21236. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21237. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21238. fi
  21239. have_audio=yes
  21240. fi
  21241. # Set up files for the joystick library
  21242. if test x$enable_joystick = xyes; then
  21243. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21244. if test x$have_xinput = xyes; then
  21245. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21246. fi
  21247. if test x$have_dinput = xyes; then
  21248. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21249. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21250. fi
  21251. else
  21252. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21253. fi
  21254. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21255. have_joystick=yes
  21256. fi
  21257. if test x$enable_haptic = xyes; then
  21258. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21259. if test x$have_xinput = xyes; then
  21260. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21261. fi
  21262. if test x$have_dinput = xyes; then
  21263. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21264. fi
  21265. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21266. have_haptic=yes
  21267. fi
  21268. fi
  21269. # Set up files for the sensor library
  21270. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21271. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21272. have_winsensors=yes
  21273. else
  21274. have_winsensors=no
  21275. fi
  21276. if test x$have_winsensors = xyes; then
  21277. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21278. fi
  21279. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21280. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21281. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21282. have_sensor=yes
  21283. fi
  21284. # Set up files for the power library
  21285. if test x$enable_power = xyes; then
  21286. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21287. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21288. have_power=yes
  21289. fi
  21290. # Set up files for the filesystem library
  21291. if test x$enable_filesystem = xyes; then
  21292. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21293. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21294. have_filesystem=yes
  21295. fi
  21296. # Set up files for the thread library
  21297. if test x$enable_threads = xyes; then
  21298. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21299. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21300. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21301. have_threads=yes
  21302. fi
  21303. # Set up files for the timer library
  21304. if test x$enable_timers = xyes; then
  21305. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21306. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21307. have_timers=yes
  21308. fi
  21309. # Set up files for the shared object loading library
  21310. if test x$enable_loadso = xyes; then
  21311. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21312. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21313. have_loadso=yes
  21314. fi
  21315. # Set up the system libraries we need
  21316. if test -f /lib/w32api/libuuid.a; then
  21317. LIBUUID=/lib/w32api/libuuid.a
  21318. else
  21319. LIBUUID=-luuid
  21320. fi
  21321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21322. # The Windows platform requires special setup
  21323. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21324. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21325. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21326. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21327. # Check to see if this is a mingw or cygwin build
  21328. have_mingw32=
  21329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21330. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21331. if ${ac_cv_lib_mingw32_main+:} false; then :
  21332. $as_echo_n "(cached) " >&6
  21333. else
  21334. ac_check_lib_save_LIBS=$LIBS
  21335. LIBS="-lmingw32 $LIBS"
  21336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21337. /* end confdefs.h. */
  21338. int
  21339. main ()
  21340. {
  21341. return main ();
  21342. ;
  21343. return 0;
  21344. }
  21345. _ACEOF
  21346. if ac_fn_c_try_link "$LINENO"; then :
  21347. ac_cv_lib_mingw32_main=yes
  21348. else
  21349. ac_cv_lib_mingw32_main=no
  21350. fi
  21351. rm -f core conftest.err conftest.$ac_objext \
  21352. conftest$ac_exeext conftest.$ac_ext
  21353. LIBS=$ac_check_lib_save_LIBS
  21354. fi
  21355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21356. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21357. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21358. have_mingw32=yes
  21359. fi
  21360. if test x$have_mingw32 = xyes; then
  21361. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21362. else
  21363. SDL_LIBS="-lcygwin $SDL_LIBS"
  21364. fi
  21365. ;;
  21366. *-*-beos*)
  21367. as_fn_error $? "
  21368. *** BeOS support has been removed as of SDL 2.0.2.
  21369. " "$LINENO" 5
  21370. ;;
  21371. *-*-haiku*)
  21372. ARCH=haiku
  21373. ac_default_prefix=/boot/system
  21374. CheckDummyVideo
  21375. CheckDiskAudio
  21376. CheckDummyAudio
  21377. CheckDLOPEN
  21378. CheckHaikuVideo
  21379. CheckHaikuGL
  21380. CheckPTHREAD
  21381. # Set up files for the audio library
  21382. if test x$enable_audio = xyes; then
  21383. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21384. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21385. SUMMARY_audio="${SUMMARY_audio} haiku"
  21386. have_audio=yes
  21387. fi
  21388. # Set up files for the joystick library
  21389. if test x$enable_joystick = xyes; then
  21390. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21391. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21392. have_joystick=yes
  21393. fi
  21394. # Set up files for the timer library
  21395. if test x$enable_timers = xyes; then
  21396. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21397. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21398. have_timers=yes
  21399. fi
  21400. # Set up files for the system power library
  21401. if test x$enable_power = xyes; then
  21402. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21403. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21404. have_power=yes
  21405. fi
  21406. # Set up files for the system filesystem library
  21407. if test x$enable_filesystem = xyes; then
  21408. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21409. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21410. have_filesystem=yes
  21411. fi
  21412. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21413. have_misc=yes
  21414. # Set up files for the locale library
  21415. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21416. have_locale=yes
  21417. # The Haiku platform requires special setup.
  21418. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21420. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21421. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21422. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21424. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21425. if eval \${$as_ac_File+:} false; then :
  21426. $as_echo_n "(cached) " >&6
  21427. else
  21428. test "$cross_compiling" = yes &&
  21429. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21430. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21431. eval "$as_ac_File=yes"
  21432. else
  21433. eval "$as_ac_File=no"
  21434. fi
  21435. fi
  21436. eval ac_res=\$$as_ac_File
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21438. $as_echo "$ac_res" >&6; }
  21439. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21441. else
  21442. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21443. fi
  21444. ;;
  21445. *-ios-*)
  21446. ARCH=ios
  21447. CheckVisibilityHidden
  21448. CheckDeclarationAfterStatement
  21449. CheckDummyVideo
  21450. CheckDiskAudio
  21451. CheckDummyAudio
  21452. CheckDLOPEN
  21453. CheckMETAL
  21454. CheckVulkan
  21455. CheckPTHREAD
  21456. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21457. have_misc=yes
  21458. # Set up files for the locale library
  21459. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21460. have_locale=yes
  21461. # Set up files for the audio library
  21462. if test x$enable_audio = xyes; then
  21463. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21464. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21465. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21466. have_audio=yes
  21467. fi
  21468. # Set up files for the joystick library
  21469. if test x$enable_joystick = xyes; then
  21470. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21471. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21472. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21473. have_joystick=yes
  21474. else
  21475. # Need this code for accelerometer as joystick support
  21476. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21477. fi
  21478. # Set up files for the haptic library
  21479. #if test x$enable_haptic = xyes; then
  21480. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21481. # have_haptic=yes
  21482. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21483. #fi
  21484. # Set up files for the sensor library
  21485. if test x$enable_sensor = xyes; then
  21486. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21487. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21488. have_sensor=yes
  21489. fi
  21490. # Set up files for the power library
  21491. if test x$enable_power = xyes; then
  21492. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21493. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21494. have_power=yes
  21495. fi
  21496. # Set up files for the filesystem library
  21497. if test x$enable_filesystem = xyes; then
  21498. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21499. have_filesystem=yes
  21500. fi
  21501. # Set up additional files for the file library
  21502. if test x$enable_file = xyes; then
  21503. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21504. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21505. fi
  21506. # Set up files for the timer library
  21507. if test x$enable_timers = xyes; then
  21508. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21509. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21510. have_timers=yes
  21511. fi
  21512. # Set up other core UNIX files
  21513. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21514. # The iOS platform requires special setup.
  21515. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21516. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21517. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21518. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21519. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21520. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21521. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21522. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21524. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21526. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21527. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21529. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21532. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21533. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21534. fi
  21535. ;;
  21536. *-*-darwin* )
  21537. # This could be either full "Mac OS X", or plain "Darwin" which is
  21538. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21539. # Next line is broken, and a few files below require Mac OS X (full)
  21540. ARCH=macosx
  21541. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21542. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21543. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21544. CheckVisibilityHidden
  21545. CheckDeclarationAfterStatement
  21546. CheckDummyVideo
  21547. CheckDiskAudio
  21548. CheckDummyAudio
  21549. CheckDLOPEN
  21550. CheckCOCOA
  21551. CheckMETAL
  21552. CheckX11
  21553. CheckMacGL
  21554. CheckMacGLES
  21555. CheckOpenGLX11
  21556. CheckVulkan
  21557. CheckPTHREAD
  21558. CheckHIDAPI
  21559. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21560. have_misc=yes
  21561. # Set up files for the locale library
  21562. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21563. have_locale=yes
  21564. # Set up files for the audio library
  21565. if test x$enable_audio = xyes; then
  21566. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21567. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21568. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21569. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21570. have_audio=yes
  21571. fi
  21572. # Set up files for the joystick library
  21573. if test x$enable_joystick = xyes; then
  21574. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21575. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21576. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21577. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21578. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  21579. have_joystick=yes
  21580. fi
  21581. # Set up files for the haptic library
  21582. if test x$enable_haptic = xyes; then
  21583. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21584. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21586. have_haptic=yes
  21587. fi
  21588. # Set up files for the power library
  21589. if test x$enable_power = xyes; then
  21590. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21591. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21592. have_power=yes
  21593. fi
  21594. # Set up files for the filesystem library
  21595. if test x$enable_filesystem = xyes; then
  21596. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21597. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21598. have_filesystem=yes
  21599. fi
  21600. # Set up files for the timer library
  21601. if test x$enable_timers = xyes; then
  21602. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21603. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21604. have_timers=yes
  21605. fi
  21606. # Set up additional files for the file library
  21607. if test x$enable_file = xyes; then
  21608. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21609. fi
  21610. # Set up other core UNIX files
  21611. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21612. # The Mac OS X platform requires special setup.
  21613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21616. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21618. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21619. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21620. fi
  21621. ;;
  21622. *-nacl|*-pnacl)
  21623. ARCH=nacl
  21624. CheckNativeClient
  21625. CheckDummyAudio
  21626. CheckDummyVideo
  21627. CheckInputEvents
  21628. CheckPTHREAD
  21629. # Set up files for the timer library
  21630. if test x$enable_timers = xyes; then
  21631. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21632. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21633. have_timers=yes
  21634. fi
  21635. if test x$enable_filesystem = xyes; then
  21636. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21637. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21638. have_filesystem=yes
  21639. fi
  21640. ;;
  21641. *-*-emscripten* )
  21642. if test x$enable_video = xyes; then
  21643. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21644. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21645. have_video=yes
  21646. SUMMARY_video="${SUMMARY_video} emscripten"
  21647. fi
  21648. if test x$enable_audio = xyes; then
  21649. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21650. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21651. have_audio=yes
  21652. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21653. fi
  21654. CheckVisibilityHidden
  21655. CheckDeclarationAfterStatement
  21656. CheckDummyVideo
  21657. CheckDiskAudio
  21658. CheckDummyAudio
  21659. CheckDLOPEN
  21660. CheckClockGettime
  21661. CheckEmscriptenGLES
  21662. # Set up files for the power library
  21663. if test x$enable_power = xyes; then
  21664. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21666. have_power=yes
  21667. fi
  21668. # Set up files for the power library
  21669. if test x$enable_joystick = xyes; then
  21670. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21671. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21672. have_joystick=yes
  21673. fi
  21674. # Set up files for the filesystem library
  21675. if test x$enable_filesystem = xyes; then
  21676. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21677. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21678. have_filesystem=yes
  21679. fi
  21680. # Set up files for the timer library
  21681. if test x$enable_timers = xyes; then
  21682. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21683. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21684. have_timers=yes
  21685. fi
  21686. # Set up files for the locale library
  21687. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  21688. have_locale=yes
  21689. ;;
  21690. *-*-riscos*)
  21691. ARCH=riscos
  21692. CheckVisibilityHidden
  21693. CheckDeclarationAfterStatement
  21694. CheckDummyVideo
  21695. CheckDiskAudio
  21696. CheckDummyAudio
  21697. CheckDLOPEN
  21698. CheckOSS
  21699. CheckPTHREAD
  21700. CheckClockGettime
  21701. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  21702. have_misc=yes
  21703. # Set up files for the timer library
  21704. if test x$enable_timers = xyes; then
  21705. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21706. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21707. have_timers=yes
  21708. fi
  21709. ;;
  21710. *)
  21711. as_fn_error $? "
  21712. *** Unsupported host: Please add to configure.ac
  21713. " "$LINENO" 5
  21714. ;;
  21715. esac
  21716. CheckVirtualJoystick
  21717. # Check whether to install sdl2-config
  21718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21719. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21720. # Check whether --enable-sdl2-config was given.
  21721. if test "${enable_sdl2_config+set}" = set; then :
  21722. enableval=$enable_sdl2_config; case "${enableval}" in
  21723. yes) enable_sdl2_config="TRUE" ;;
  21724. no) enable_sdl2_config="FALSE" ;;
  21725. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21726. esac
  21727. else
  21728. enable_sdl2_config="TRUE"
  21729. fi
  21730. if test "$enable_sdl2_config" = "TRUE"; then
  21731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21732. $as_echo "yes" >&6; }
  21733. else
  21734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21735. $as_echo "no" >&6; }
  21736. fi
  21737. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21738. # Verify that we have all the platform specific files we need
  21739. if test x$have_misc != xyes; then
  21740. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  21741. fi
  21742. if test x$have_locale != xyes; then
  21743. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  21744. fi
  21745. if test x$have_joystick != xyes; then
  21746. if test x$enable_joystick = xyes; then
  21747. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21748. fi
  21749. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21750. fi
  21751. if test x$have_haptic != xyes; then
  21752. if test x$enable_haptic = xyes; then
  21753. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21754. fi
  21755. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21756. fi
  21757. if test x$have_sensor != xyes; then
  21758. if test x$enable_sensor = xyes; then
  21759. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21760. fi
  21761. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21762. fi
  21763. if test x$have_threads != xyes; then
  21764. if test x$enable_threads = xyes; then
  21765. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21766. fi
  21767. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21768. fi
  21769. if test x$have_timers != xyes; then
  21770. if test x$enable_timers = xyes; then
  21771. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21772. fi
  21773. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21774. fi
  21775. if test x$have_filesystem != xyes; then
  21776. if test x$enable_filesystem = xyes; then
  21777. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21778. fi
  21779. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21780. fi
  21781. if test x$have_loadso != xyes; then
  21782. if test x$enable_loadso = xyes; then
  21783. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21784. fi
  21785. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21786. fi
  21787. if test x$SDLMAIN_SOURCES = x; then
  21788. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21789. fi
  21790. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21791. if test x$video_wayland = xyes; then
  21792. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21793. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21794. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21795. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21796. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21797. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21798. echo ;\
  21799. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21800. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21801. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21802. echo ;\
  21803. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21804. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21805. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21806. echo ;\
  21807. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21808. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21809. done ;\
  21810. echo ;\
  21811. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21812. fi
  21813. OBJECTS=`echo $SOURCES`
  21814. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21815. for EXT in asm cc m c S; do
  21816. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21817. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21818. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21819. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21820. done
  21821. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21822. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21823. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21824. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21825. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21826. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21827. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21828. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21829. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21830. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21831. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21832. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21833. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21834. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21835. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21836. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21837. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21838. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21839. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21840. # Set runtime shared library paths as needed
  21841. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21842. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21843. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21845. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21846. have_enable_new_dtags=no
  21847. save_LDFLAGS="$LDFLAGS"
  21848. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21850. /* end confdefs.h. */
  21851. int
  21852. main ()
  21853. {
  21854. ;
  21855. return 0;
  21856. }
  21857. _ACEOF
  21858. if ac_fn_c_try_link "$LINENO"; then :
  21859. have_enable_new_dtags=yes
  21860. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21861. fi
  21862. rm -f core conftest.err conftest.$ac_objext \
  21863. conftest$ac_exeext conftest.$ac_ext
  21864. LDFLAGS="$save_LDFLAGS"
  21865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21866. $as_echo "$have_enable_new_dtags" >&6; }
  21867. fi
  21868. if test $ARCH = solaris; then
  21869. SDL_RLD_FLAGS="-R\${libdir}"
  21870. fi
  21871. else
  21872. SDL_RLD_FLAGS=""
  21873. fi
  21874. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21875. if test x$enable_shared = xyes; then
  21876. PKG_CONFIG_LIBS_PRIV="
  21877. Libs.private:"
  21878. ENABLE_SHARED_TRUE=
  21879. ENABLE_SHARED_FALSE="#"
  21880. else
  21881. PKG_CONFIG_LIBS_PRIV=
  21882. ENABLE_SHARED_TRUE="#"
  21883. ENABLE_SHARED_FALSE=
  21884. fi
  21885. if test x$enable_static = xyes; then
  21886. ENABLE_STATIC_TRUE=
  21887. ENABLE_STATIC_FALSE="#"
  21888. else
  21889. ENABLE_STATIC_TRUE="#"
  21890. ENABLE_STATIC_FALSE=
  21891. fi
  21892. cat >Makefile.rules <<__EOF__
  21893. # Build rules for objects
  21894. -include \$(OBJECTS:.lo=.d)
  21895. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21896. $srcdir/src/SDL.c: update-revision
  21897. $DEPENDS
  21898. $VERSION_DEPENDS
  21899. $SDLMAIN_DEPENDS
  21900. $SDLTEST_DEPENDS
  21901. $WAYLAND_PROTOCOLS_DEPENDS
  21902. __EOF__
  21903. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21904. ac_config_commands="$ac_config_commands sdl2_config"
  21905. SUMMARY="SDL2 Configure Summary:\n"
  21906. if test x$enable_shared = xyes; then
  21907. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21908. fi
  21909. if test x$enable_static = xyes; then
  21910. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21911. fi
  21912. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21913. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21914. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21915. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21916. if test x$have_x = xyes; then
  21917. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21918. fi
  21919. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21920. if test x$have_joystick_virtual = xyes; then
  21921. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21922. else
  21923. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21924. fi
  21925. if test x$have_samplerate_h_hdr = xyes; then
  21926. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21927. else
  21928. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21929. fi
  21930. if test x$have_libudev_h_hdr = xyes; then
  21931. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21932. else
  21933. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21934. fi
  21935. if test x$have_dbus_dbus_h_hdr = xyes; then
  21936. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21937. else
  21938. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21939. fi
  21940. if test x$enable_ime = xyes; then
  21941. SUMMARY="${SUMMARY}Using ime : YES\n"
  21942. else
  21943. SUMMARY="${SUMMARY}Using ime : NO\n"
  21944. fi
  21945. if test x$have_ibus_ibus_h_hdr = xyes; then
  21946. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21947. else
  21948. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21949. fi
  21950. if test x$have_fcitx = xyes; then
  21951. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21952. else
  21953. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21954. fi
  21955. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21956. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21957. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21958. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21959. SUMMARY="${SUMMARY}configure script with:\n"
  21960. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21961. fi
  21962. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21963. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21964. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21965. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21966. SUMMARY="${SUMMARY}configure script with:\n"
  21967. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21968. fi
  21969. ac_config_commands="$ac_config_commands summary"
  21970. cat >confcache <<\_ACEOF
  21971. # This file is a shell script that caches the results of configure
  21972. # tests run on this system so they can be shared between configure
  21973. # scripts and configure runs, see configure's option --config-cache.
  21974. # It is not useful on other systems. If it contains results you don't
  21975. # want to keep, you may remove or edit it.
  21976. #
  21977. # config.status only pays attention to the cache file if you give it
  21978. # the --recheck option to rerun configure.
  21979. #
  21980. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21981. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21982. # following values.
  21983. _ACEOF
  21984. # The following way of writing the cache mishandles newlines in values,
  21985. # but we know of no workaround that is simple, portable, and efficient.
  21986. # So, we kill variables containing newlines.
  21987. # Ultrix sh set writes to stderr and can't be redirected directly,
  21988. # and sets the high bit in the cache file unless we assign to the vars.
  21989. (
  21990. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21991. eval ac_val=\$$ac_var
  21992. case $ac_val in #(
  21993. *${as_nl}*)
  21994. case $ac_var in #(
  21995. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21996. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21997. esac
  21998. case $ac_var in #(
  21999. _ | IFS | as_nl) ;; #(
  22000. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22001. *) { eval $ac_var=; unset $ac_var;} ;;
  22002. esac ;;
  22003. esac
  22004. done
  22005. (set) 2>&1 |
  22006. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22007. *${as_nl}ac_space=\ *)
  22008. # `set' does not quote correctly, so add quotes: double-quote
  22009. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22010. sed -n \
  22011. "s/'/'\\\\''/g;
  22012. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22013. ;; #(
  22014. *)
  22015. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22016. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22017. ;;
  22018. esac |
  22019. sort
  22020. ) |
  22021. sed '
  22022. /^ac_cv_env_/b end
  22023. t clear
  22024. :clear
  22025. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22026. t end
  22027. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22028. :end' >>confcache
  22029. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22030. if test -w "$cache_file"; then
  22031. if test "x$cache_file" != "x/dev/null"; then
  22032. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22033. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22034. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22035. cat confcache >"$cache_file"
  22036. else
  22037. case $cache_file in #(
  22038. */* | ?:*)
  22039. mv -f confcache "$cache_file"$$ &&
  22040. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22041. *)
  22042. mv -f confcache "$cache_file" ;;
  22043. esac
  22044. fi
  22045. fi
  22046. else
  22047. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22048. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22049. fi
  22050. fi
  22051. rm -f confcache
  22052. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22053. # Let make expand exec_prefix.
  22054. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22055. DEFS=-DHAVE_CONFIG_H
  22056. ac_libobjs=
  22057. ac_ltlibobjs=
  22058. U=
  22059. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22060. # 1. Remove the extension, and $U if already installed.
  22061. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22062. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22063. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22064. # will be set to the directory where LIBOBJS objects are built.
  22065. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22066. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22067. done
  22068. LIBOBJS=$ac_libobjs
  22069. LTLIBOBJS=$ac_ltlibobjs
  22070. : "${CONFIG_STATUS=./config.status}"
  22071. ac_write_fail=0
  22072. ac_clean_files_save=$ac_clean_files
  22073. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22074. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22075. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22076. as_write_fail=0
  22077. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22078. #! $SHELL
  22079. # Generated by $as_me.
  22080. # Run this file to recreate the current configuration.
  22081. # Compiler output produced by configure, useful for debugging
  22082. # configure, is in config.log if it exists.
  22083. debug=false
  22084. ac_cs_recheck=false
  22085. ac_cs_silent=false
  22086. SHELL=\${CONFIG_SHELL-$SHELL}
  22087. export SHELL
  22088. _ASEOF
  22089. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22090. ## -------------------- ##
  22091. ## M4sh Initialization. ##
  22092. ## -------------------- ##
  22093. # Be more Bourne compatible
  22094. DUALCASE=1; export DUALCASE # for MKS sh
  22095. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22096. emulate sh
  22097. NULLCMD=:
  22098. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22099. # is contrary to our usage. Disable this feature.
  22100. alias -g '${1+"$@"}'='"$@"'
  22101. setopt NO_GLOB_SUBST
  22102. else
  22103. case `(set -o) 2>/dev/null` in #(
  22104. *posix*) :
  22105. set -o posix ;; #(
  22106. *) :
  22107. ;;
  22108. esac
  22109. fi
  22110. as_nl='
  22111. '
  22112. export as_nl
  22113. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22114. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22115. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22116. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22117. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22118. # but without wasting forks for bash or zsh.
  22119. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22120. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22121. as_echo='print -r --'
  22122. as_echo_n='print -rn --'
  22123. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22124. as_echo='printf %s\n'
  22125. as_echo_n='printf %s'
  22126. else
  22127. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22128. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22129. as_echo_n='/usr/ucb/echo -n'
  22130. else
  22131. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22132. as_echo_n_body='eval
  22133. arg=$1;
  22134. case $arg in #(
  22135. *"$as_nl"*)
  22136. expr "X$arg" : "X\\(.*\\)$as_nl";
  22137. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22138. esac;
  22139. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22140. '
  22141. export as_echo_n_body
  22142. as_echo_n='sh -c $as_echo_n_body as_echo'
  22143. fi
  22144. export as_echo_body
  22145. as_echo='sh -c $as_echo_body as_echo'
  22146. fi
  22147. # The user is always right.
  22148. if test "${PATH_SEPARATOR+set}" != set; then
  22149. PATH_SEPARATOR=:
  22150. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22151. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22152. PATH_SEPARATOR=';'
  22153. }
  22154. fi
  22155. # IFS
  22156. # We need space, tab and new line, in precisely that order. Quoting is
  22157. # there to prevent editors from complaining about space-tab.
  22158. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22159. # splitting by setting IFS to empty value.)
  22160. IFS=" "" $as_nl"
  22161. # Find who we are. Look in the path if we contain no directory separator.
  22162. as_myself=
  22163. case $0 in #((
  22164. *[\\/]* ) as_myself=$0 ;;
  22165. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22166. for as_dir in $PATH
  22167. do
  22168. IFS=$as_save_IFS
  22169. test -z "$as_dir" && as_dir=.
  22170. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22171. done
  22172. IFS=$as_save_IFS
  22173. ;;
  22174. esac
  22175. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22176. # in which case we are not to be found in the path.
  22177. if test "x$as_myself" = x; then
  22178. as_myself=$0
  22179. fi
  22180. if test ! -f "$as_myself"; then
  22181. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22182. exit 1
  22183. fi
  22184. # Unset variables that we do not need and which cause bugs (e.g. in
  22185. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22186. # suppresses any "Segmentation fault" message there. '((' could
  22187. # trigger a bug in pdksh 5.2.14.
  22188. for as_var in BASH_ENV ENV MAIL MAILPATH
  22189. do eval test x\${$as_var+set} = xset \
  22190. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22191. done
  22192. PS1='$ '
  22193. PS2='> '
  22194. PS4='+ '
  22195. # NLS nuisances.
  22196. LC_ALL=C
  22197. export LC_ALL
  22198. LANGUAGE=C
  22199. export LANGUAGE
  22200. # CDPATH.
  22201. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22202. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22203. # ----------------------------------------
  22204. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22205. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22206. # script with STATUS, using 1 if that was 0.
  22207. as_fn_error ()
  22208. {
  22209. as_status=$1; test $as_status -eq 0 && as_status=1
  22210. if test "$4"; then
  22211. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22212. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22213. fi
  22214. $as_echo "$as_me: error: $2" >&2
  22215. as_fn_exit $as_status
  22216. } # as_fn_error
  22217. # as_fn_set_status STATUS
  22218. # -----------------------
  22219. # Set $? to STATUS, without forking.
  22220. as_fn_set_status ()
  22221. {
  22222. return $1
  22223. } # as_fn_set_status
  22224. # as_fn_exit STATUS
  22225. # -----------------
  22226. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22227. as_fn_exit ()
  22228. {
  22229. set +e
  22230. as_fn_set_status $1
  22231. exit $1
  22232. } # as_fn_exit
  22233. # as_fn_unset VAR
  22234. # ---------------
  22235. # Portably unset VAR.
  22236. as_fn_unset ()
  22237. {
  22238. { eval $1=; unset $1;}
  22239. }
  22240. as_unset=as_fn_unset
  22241. # as_fn_append VAR VALUE
  22242. # ----------------------
  22243. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22244. # advantage of any shell optimizations that allow amortized linear growth over
  22245. # repeated appends, instead of the typical quadratic growth present in naive
  22246. # implementations.
  22247. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22248. eval 'as_fn_append ()
  22249. {
  22250. eval $1+=\$2
  22251. }'
  22252. else
  22253. as_fn_append ()
  22254. {
  22255. eval $1=\$$1\$2
  22256. }
  22257. fi # as_fn_append
  22258. # as_fn_arith ARG...
  22259. # ------------------
  22260. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22261. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22262. # must be portable across $(()) and expr.
  22263. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22264. eval 'as_fn_arith ()
  22265. {
  22266. as_val=$(( $* ))
  22267. }'
  22268. else
  22269. as_fn_arith ()
  22270. {
  22271. as_val=`expr "$@" || test $? -eq 1`
  22272. }
  22273. fi # as_fn_arith
  22274. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22275. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22276. as_expr=expr
  22277. else
  22278. as_expr=false
  22279. fi
  22280. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22281. as_basename=basename
  22282. else
  22283. as_basename=false
  22284. fi
  22285. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22286. as_dirname=dirname
  22287. else
  22288. as_dirname=false
  22289. fi
  22290. as_me=`$as_basename -- "$0" ||
  22291. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22292. X"$0" : 'X\(//\)$' \| \
  22293. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22294. $as_echo X/"$0" |
  22295. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22296. s//\1/
  22297. q
  22298. }
  22299. /^X\/\(\/\/\)$/{
  22300. s//\1/
  22301. q
  22302. }
  22303. /^X\/\(\/\).*/{
  22304. s//\1/
  22305. q
  22306. }
  22307. s/.*/./; q'`
  22308. # Avoid depending upon Character Ranges.
  22309. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22310. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22311. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22312. as_cr_digits='0123456789'
  22313. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22314. ECHO_C= ECHO_N= ECHO_T=
  22315. case `echo -n x` in #(((((
  22316. -n*)
  22317. case `echo 'xy\c'` in
  22318. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22319. xy) ECHO_C='\c';;
  22320. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22321. ECHO_T=' ';;
  22322. esac;;
  22323. *)
  22324. ECHO_N='-n';;
  22325. esac
  22326. rm -f conf$$ conf$$.exe conf$$.file
  22327. if test -d conf$$.dir; then
  22328. rm -f conf$$.dir/conf$$.file
  22329. else
  22330. rm -f conf$$.dir
  22331. mkdir conf$$.dir 2>/dev/null
  22332. fi
  22333. if (echo >conf$$.file) 2>/dev/null; then
  22334. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22335. as_ln_s='ln -s'
  22336. # ... but there are two gotchas:
  22337. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22338. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22339. # In both cases, we have to default to `cp -pR'.
  22340. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22341. as_ln_s='cp -pR'
  22342. elif ln conf$$.file conf$$ 2>/dev/null; then
  22343. as_ln_s=ln
  22344. else
  22345. as_ln_s='cp -pR'
  22346. fi
  22347. else
  22348. as_ln_s='cp -pR'
  22349. fi
  22350. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22351. rmdir conf$$.dir 2>/dev/null
  22352. # as_fn_mkdir_p
  22353. # -------------
  22354. # Create "$as_dir" as a directory, including parents if necessary.
  22355. as_fn_mkdir_p ()
  22356. {
  22357. case $as_dir in #(
  22358. -*) as_dir=./$as_dir;;
  22359. esac
  22360. test -d "$as_dir" || eval $as_mkdir_p || {
  22361. as_dirs=
  22362. while :; do
  22363. case $as_dir in #(
  22364. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22365. *) as_qdir=$as_dir;;
  22366. esac
  22367. as_dirs="'$as_qdir' $as_dirs"
  22368. as_dir=`$as_dirname -- "$as_dir" ||
  22369. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22370. X"$as_dir" : 'X\(//\)[^/]' \| \
  22371. X"$as_dir" : 'X\(//\)$' \| \
  22372. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22373. $as_echo X"$as_dir" |
  22374. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22375. s//\1/
  22376. q
  22377. }
  22378. /^X\(\/\/\)[^/].*/{
  22379. s//\1/
  22380. q
  22381. }
  22382. /^X\(\/\/\)$/{
  22383. s//\1/
  22384. q
  22385. }
  22386. /^X\(\/\).*/{
  22387. s//\1/
  22388. q
  22389. }
  22390. s/.*/./; q'`
  22391. test -d "$as_dir" && break
  22392. done
  22393. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22394. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22395. } # as_fn_mkdir_p
  22396. if mkdir -p . 2>/dev/null; then
  22397. as_mkdir_p='mkdir -p "$as_dir"'
  22398. else
  22399. test -d ./-p && rmdir ./-p
  22400. as_mkdir_p=false
  22401. fi
  22402. # as_fn_executable_p FILE
  22403. # -----------------------
  22404. # Test if FILE is an executable regular file.
  22405. as_fn_executable_p ()
  22406. {
  22407. test -f "$1" && test -x "$1"
  22408. } # as_fn_executable_p
  22409. as_test_x='test -x'
  22410. as_executable_p=as_fn_executable_p
  22411. # Sed expression to map a string onto a valid CPP name.
  22412. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22413. # Sed expression to map a string onto a valid variable name.
  22414. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22415. exec 6>&1
  22416. ## ----------------------------------- ##
  22417. ## Main body of $CONFIG_STATUS script. ##
  22418. ## ----------------------------------- ##
  22419. _ASEOF
  22420. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22421. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22422. # Save the log message, to keep $0 and so on meaningful, and to
  22423. # report actual input values of CONFIG_FILES etc. instead of their
  22424. # values after options handling.
  22425. ac_log="
  22426. This file was extended by $as_me, which was
  22427. generated by GNU Autoconf 2.69. Invocation command line was
  22428. CONFIG_FILES = $CONFIG_FILES
  22429. CONFIG_HEADERS = $CONFIG_HEADERS
  22430. CONFIG_LINKS = $CONFIG_LINKS
  22431. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22432. $ $0 $@
  22433. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22434. "
  22435. _ACEOF
  22436. case $ac_config_files in *"
  22437. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22438. esac
  22439. case $ac_config_headers in *"
  22440. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22441. esac
  22442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22443. # Files that config.status was made for.
  22444. config_files="$ac_config_files"
  22445. config_headers="$ac_config_headers"
  22446. config_commands="$ac_config_commands"
  22447. _ACEOF
  22448. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22449. ac_cs_usage="\
  22450. \`$as_me' instantiates files and other configuration actions
  22451. from templates according to the current configuration. Unless the files
  22452. and actions are specified as TAGs, all are instantiated by default.
  22453. Usage: $0 [OPTION]... [TAG]...
  22454. -h, --help print this help, then exit
  22455. -V, --version print version number and configuration settings, then exit
  22456. --config print configuration, then exit
  22457. -q, --quiet, --silent
  22458. do not print progress messages
  22459. -d, --debug don't remove temporary files
  22460. --recheck update $as_me by reconfiguring in the same conditions
  22461. --file=FILE[:TEMPLATE]
  22462. instantiate the configuration file FILE
  22463. --header=FILE[:TEMPLATE]
  22464. instantiate the configuration header FILE
  22465. Configuration files:
  22466. $config_files
  22467. Configuration headers:
  22468. $config_headers
  22469. Configuration commands:
  22470. $config_commands
  22471. Report bugs to the package provider."
  22472. _ACEOF
  22473. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22474. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22475. ac_cs_version="\\
  22476. config.status
  22477. configured by $0, generated by GNU Autoconf 2.69,
  22478. with options \\"\$ac_cs_config\\"
  22479. Copyright (C) 2012 Free Software Foundation, Inc.
  22480. This config.status script is free software; the Free Software Foundation
  22481. gives unlimited permission to copy, distribute and modify it."
  22482. ac_pwd='$ac_pwd'
  22483. srcdir='$srcdir'
  22484. INSTALL='$INSTALL'
  22485. AWK='$AWK'
  22486. test -n "\$AWK" || AWK=awk
  22487. _ACEOF
  22488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22489. # The default lists apply if the user does not specify any file.
  22490. ac_need_defaults=:
  22491. while test $# != 0
  22492. do
  22493. case $1 in
  22494. --*=?*)
  22495. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22496. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22497. ac_shift=:
  22498. ;;
  22499. --*=)
  22500. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22501. ac_optarg=
  22502. ac_shift=:
  22503. ;;
  22504. *)
  22505. ac_option=$1
  22506. ac_optarg=$2
  22507. ac_shift=shift
  22508. ;;
  22509. esac
  22510. case $ac_option in
  22511. # Handling of the options.
  22512. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22513. ac_cs_recheck=: ;;
  22514. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22515. $as_echo "$ac_cs_version"; exit ;;
  22516. --config | --confi | --conf | --con | --co | --c )
  22517. $as_echo "$ac_cs_config"; exit ;;
  22518. --debug | --debu | --deb | --de | --d | -d )
  22519. debug=: ;;
  22520. --file | --fil | --fi | --f )
  22521. $ac_shift
  22522. case $ac_optarg in
  22523. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22524. '') as_fn_error $? "missing file argument" ;;
  22525. esac
  22526. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22527. ac_need_defaults=false;;
  22528. --header | --heade | --head | --hea )
  22529. $ac_shift
  22530. case $ac_optarg in
  22531. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22532. esac
  22533. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22534. ac_need_defaults=false;;
  22535. --he | --h)
  22536. # Conflict between --help and --header
  22537. as_fn_error $? "ambiguous option: \`$1'
  22538. Try \`$0 --help' for more information.";;
  22539. --help | --hel | -h )
  22540. $as_echo "$ac_cs_usage"; exit ;;
  22541. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22542. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22543. ac_cs_silent=: ;;
  22544. # This is an error.
  22545. -*) as_fn_error $? "unrecognized option: \`$1'
  22546. Try \`$0 --help' for more information." ;;
  22547. *) as_fn_append ac_config_targets " $1"
  22548. ac_need_defaults=false ;;
  22549. esac
  22550. shift
  22551. done
  22552. ac_configure_extra_args=
  22553. if $ac_cs_silent; then
  22554. exec 6>/dev/null
  22555. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22556. fi
  22557. _ACEOF
  22558. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22559. if \$ac_cs_recheck; then
  22560. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22561. shift
  22562. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22563. CONFIG_SHELL='$SHELL'
  22564. export CONFIG_SHELL
  22565. exec "\$@"
  22566. fi
  22567. _ACEOF
  22568. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22569. exec 5>>config.log
  22570. {
  22571. echo
  22572. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22573. ## Running $as_me. ##
  22574. _ASBOX
  22575. $as_echo "$ac_log"
  22576. } >&5
  22577. _ACEOF
  22578. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22579. #
  22580. # INIT-COMMANDS
  22581. #
  22582. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22583. # if CDPATH is set.
  22584. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22585. sed_quote_subst='$sed_quote_subst'
  22586. double_quote_subst='$double_quote_subst'
  22587. delay_variable_subst='$delay_variable_subst'
  22588. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22589. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22590. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22591. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22592. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22593. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22594. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22595. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22596. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22597. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22598. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22599. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22600. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22601. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22602. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22603. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22604. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22605. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22606. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22607. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22608. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22609. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22610. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22611. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22612. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22613. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22614. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22615. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22616. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22617. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22618. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22619. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22620. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22621. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22622. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22623. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22624. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22625. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22626. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22627. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22628. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22629. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22630. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22631. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22632. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22633. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22634. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22635. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22636. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22637. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22638. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22639. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22640. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22641. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22642. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22643. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22644. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22645. 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"`'
  22646. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22647. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22648. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22649. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22650. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22651. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22652. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22653. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22654. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22655. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22656. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22657. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22658. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22659. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22660. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22661. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22662. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22663. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22664. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22665. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22666. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22667. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22668. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22669. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22670. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22671. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22672. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22673. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22674. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22675. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22676. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22677. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22678. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22679. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22680. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22681. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22682. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22683. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22684. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22685. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22686. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22687. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22688. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22689. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22690. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22691. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22692. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22693. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22694. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22695. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22696. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22697. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22698. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22699. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22700. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22701. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22702. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22703. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22704. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22705. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22706. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22707. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22708. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22709. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22710. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22711. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22712. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22713. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22714. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22715. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22716. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22717. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22718. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22719. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22720. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22721. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22722. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22723. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22724. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22725. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22726. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22727. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22728. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22729. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22730. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22731. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22732. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22733. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22734. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22735. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22736. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22737. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22738. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22739. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22740. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22741. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22742. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22743. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22744. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22745. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22746. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22747. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22748. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22749. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22750. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22751. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22752. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22753. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22754. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22755. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22756. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22757. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22758. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22759. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22760. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22761. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22762. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22763. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22764. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22765. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22766. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22767. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22768. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22769. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22770. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22771. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22772. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22773. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22774. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22775. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22776. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22777. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22778. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22779. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22780. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22781. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22782. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22783. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22784. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22785. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22786. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22787. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22788. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22789. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22790. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22791. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22792. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22793. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22794. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22795. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22796. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22797. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22798. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22799. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22800. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22801. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22802. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22803. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22804. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22805. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22806. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22807. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22808. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22809. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22810. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22811. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22812. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22813. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22814. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22815. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22816. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22817. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22818. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22819. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22820. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22821. LTCC='$LTCC'
  22822. LTCFLAGS='$LTCFLAGS'
  22823. compiler='$compiler_DEFAULT'
  22824. # A function that is used when there is no print builtin or printf.
  22825. func_fallback_echo ()
  22826. {
  22827. eval 'cat <<_LTECHO_EOF
  22828. \$1
  22829. _LTECHO_EOF'
  22830. }
  22831. # Quote evaled strings.
  22832. for var in AS \
  22833. DLLTOOL \
  22834. OBJDUMP \
  22835. SHELL \
  22836. ECHO \
  22837. PATH_SEPARATOR \
  22838. SED \
  22839. GREP \
  22840. EGREP \
  22841. FGREP \
  22842. LD \
  22843. NM \
  22844. LN_S \
  22845. lt_SP2NL \
  22846. lt_NL2SP \
  22847. reload_flag \
  22848. deplibs_check_method \
  22849. file_magic_cmd \
  22850. file_magic_glob \
  22851. want_nocaseglob \
  22852. sharedlib_from_linklib_cmd \
  22853. AR \
  22854. AR_FLAGS \
  22855. archiver_list_spec \
  22856. STRIP \
  22857. RANLIB \
  22858. CC \
  22859. CFLAGS \
  22860. compiler \
  22861. lt_cv_sys_global_symbol_pipe \
  22862. lt_cv_sys_global_symbol_to_cdecl \
  22863. lt_cv_sys_global_symbol_to_c_name_address \
  22864. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22865. nm_file_list_spec \
  22866. lt_prog_compiler_no_builtin_flag \
  22867. lt_prog_compiler_pic \
  22868. lt_prog_compiler_wl \
  22869. lt_prog_compiler_static \
  22870. lt_cv_prog_compiler_c_o \
  22871. need_locks \
  22872. MANIFEST_TOOL \
  22873. DSYMUTIL \
  22874. NMEDIT \
  22875. LIPO \
  22876. OTOOL \
  22877. OTOOL64 \
  22878. shrext_cmds \
  22879. export_dynamic_flag_spec \
  22880. whole_archive_flag_spec \
  22881. compiler_needs_object \
  22882. with_gnu_ld \
  22883. allow_undefined_flag \
  22884. no_undefined_flag \
  22885. hardcode_libdir_flag_spec \
  22886. hardcode_libdir_separator \
  22887. exclude_expsyms \
  22888. include_expsyms \
  22889. file_list_spec \
  22890. variables_saved_for_relink \
  22891. libname_spec \
  22892. library_names_spec \
  22893. soname_spec \
  22894. install_override_mode \
  22895. finish_eval \
  22896. old_striplib \
  22897. striplib \
  22898. compiler_lib_search_dirs \
  22899. predep_objects \
  22900. postdep_objects \
  22901. predeps \
  22902. postdeps \
  22903. compiler_lib_search_path \
  22904. LD_RC \
  22905. LD_CXX \
  22906. reload_flag_RC \
  22907. reload_flag_CXX \
  22908. compiler_RC \
  22909. compiler_CXX \
  22910. lt_prog_compiler_no_builtin_flag_RC \
  22911. lt_prog_compiler_no_builtin_flag_CXX \
  22912. lt_prog_compiler_pic_RC \
  22913. lt_prog_compiler_pic_CXX \
  22914. lt_prog_compiler_wl_RC \
  22915. lt_prog_compiler_wl_CXX \
  22916. lt_prog_compiler_static_RC \
  22917. lt_prog_compiler_static_CXX \
  22918. lt_cv_prog_compiler_c_o_RC \
  22919. lt_cv_prog_compiler_c_o_CXX \
  22920. export_dynamic_flag_spec_RC \
  22921. export_dynamic_flag_spec_CXX \
  22922. whole_archive_flag_spec_RC \
  22923. whole_archive_flag_spec_CXX \
  22924. compiler_needs_object_RC \
  22925. compiler_needs_object_CXX \
  22926. with_gnu_ld_RC \
  22927. with_gnu_ld_CXX \
  22928. allow_undefined_flag_RC \
  22929. allow_undefined_flag_CXX \
  22930. no_undefined_flag_RC \
  22931. no_undefined_flag_CXX \
  22932. hardcode_libdir_flag_spec_RC \
  22933. hardcode_libdir_flag_spec_CXX \
  22934. hardcode_libdir_separator_RC \
  22935. hardcode_libdir_separator_CXX \
  22936. exclude_expsyms_RC \
  22937. exclude_expsyms_CXX \
  22938. include_expsyms_RC \
  22939. include_expsyms_CXX \
  22940. file_list_spec_RC \
  22941. file_list_spec_CXX \
  22942. compiler_lib_search_dirs_RC \
  22943. compiler_lib_search_dirs_CXX \
  22944. predep_objects_RC \
  22945. predep_objects_CXX \
  22946. postdep_objects_RC \
  22947. postdep_objects_CXX \
  22948. predeps_RC \
  22949. predeps_CXX \
  22950. postdeps_RC \
  22951. postdeps_CXX \
  22952. compiler_lib_search_path_RC \
  22953. compiler_lib_search_path_CXX; do
  22954. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22955. *[\\\\\\\`\\"\\\$]*)
  22956. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22957. ;;
  22958. *)
  22959. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22960. ;;
  22961. esac
  22962. done
  22963. # Double-quote double-evaled strings.
  22964. for var in reload_cmds \
  22965. old_postinstall_cmds \
  22966. old_postuninstall_cmds \
  22967. old_archive_cmds \
  22968. extract_expsyms_cmds \
  22969. old_archive_from_new_cmds \
  22970. old_archive_from_expsyms_cmds \
  22971. archive_cmds \
  22972. archive_expsym_cmds \
  22973. module_cmds \
  22974. module_expsym_cmds \
  22975. export_symbols_cmds \
  22976. prelink_cmds \
  22977. postlink_cmds \
  22978. postinstall_cmds \
  22979. postuninstall_cmds \
  22980. finish_cmds \
  22981. sys_lib_search_path_spec \
  22982. sys_lib_dlsearch_path_spec \
  22983. reload_cmds_RC \
  22984. reload_cmds_CXX \
  22985. old_archive_cmds_RC \
  22986. old_archive_cmds_CXX \
  22987. old_archive_from_new_cmds_RC \
  22988. old_archive_from_new_cmds_CXX \
  22989. old_archive_from_expsyms_cmds_RC \
  22990. old_archive_from_expsyms_cmds_CXX \
  22991. archive_cmds_RC \
  22992. archive_cmds_CXX \
  22993. archive_expsym_cmds_RC \
  22994. archive_expsym_cmds_CXX \
  22995. module_cmds_RC \
  22996. module_cmds_CXX \
  22997. module_expsym_cmds_RC \
  22998. module_expsym_cmds_CXX \
  22999. export_symbols_cmds_RC \
  23000. export_symbols_cmds_CXX \
  23001. prelink_cmds_RC \
  23002. prelink_cmds_CXX \
  23003. postlink_cmds_RC \
  23004. postlink_cmds_CXX; do
  23005. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23006. *[\\\\\\\`\\"\\\$]*)
  23007. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23008. ;;
  23009. *)
  23010. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23011. ;;
  23012. esac
  23013. done
  23014. ac_aux_dir='$ac_aux_dir'
  23015. xsi_shell='$xsi_shell'
  23016. lt_shell_append='$lt_shell_append'
  23017. # See if we are running on zsh, and set the options which allow our
  23018. # commands through without removal of \ escapes INIT.
  23019. if test -n "\${ZSH_VERSION+set}" ; then
  23020. setopt NO_GLOB_SUBST
  23021. fi
  23022. PACKAGE='$PACKAGE'
  23023. VERSION='$VERSION'
  23024. TIMESTAMP='$TIMESTAMP'
  23025. RM='$RM'
  23026. ofile='$ofile'
  23027. SUMMARY="$SUMMARY"
  23028. _ACEOF
  23029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23030. # Handling of arguments.
  23031. for ac_config_target in $ac_config_targets
  23032. do
  23033. case $ac_config_target in
  23034. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23035. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23036. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23037. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23038. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23039. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23040. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23041. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23042. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23043. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23044. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23045. esac
  23046. done
  23047. # If the user did not use the arguments to specify the items to instantiate,
  23048. # then the envvar interface is used. Set only those that are not.
  23049. # We use the long form for the default assignment because of an extremely
  23050. # bizarre bug on SunOS 4.1.3.
  23051. if $ac_need_defaults; then
  23052. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23053. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23054. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23055. fi
  23056. # Have a temporary directory for convenience. Make it in the build tree
  23057. # simply because there is no reason against having it here, and in addition,
  23058. # creating and moving files from /tmp can sometimes cause problems.
  23059. # Hook for its removal unless debugging.
  23060. # Note that there is a small window in which the directory will not be cleaned:
  23061. # after its creation but before its name has been assigned to `$tmp'.
  23062. $debug ||
  23063. {
  23064. tmp= ac_tmp=
  23065. trap 'exit_status=$?
  23066. : "${ac_tmp:=$tmp}"
  23067. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23068. ' 0
  23069. trap 'as_fn_exit 1' 1 2 13 15
  23070. }
  23071. # Create a (secure) tmp directory for tmp files.
  23072. {
  23073. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23074. test -d "$tmp"
  23075. } ||
  23076. {
  23077. tmp=./conf$$-$RANDOM
  23078. (umask 077 && mkdir "$tmp")
  23079. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23080. ac_tmp=$tmp
  23081. # Set up the scripts for CONFIG_FILES section.
  23082. # No need to generate them if there are no CONFIG_FILES.
  23083. # This happens for instance with `./config.status config.h'.
  23084. if test -n "$CONFIG_FILES"; then
  23085. ac_cr=`echo X | tr X '\015'`
  23086. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23087. # But we know of no other shell where ac_cr would be empty at this
  23088. # point, so we can use a bashism as a fallback.
  23089. if test "x$ac_cr" = x; then
  23090. eval ac_cr=\$\'\\r\'
  23091. fi
  23092. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23093. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23094. ac_cs_awk_cr='\\r'
  23095. else
  23096. ac_cs_awk_cr=$ac_cr
  23097. fi
  23098. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23099. _ACEOF
  23100. {
  23101. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23102. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23103. echo "_ACEOF"
  23104. } >conf$$subs.sh ||
  23105. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23106. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23107. ac_delim='%!_!# '
  23108. for ac_last_try in false false false false false :; do
  23109. . ./conf$$subs.sh ||
  23110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23111. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23112. if test $ac_delim_n = $ac_delim_num; then
  23113. break
  23114. elif $ac_last_try; then
  23115. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23116. else
  23117. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23118. fi
  23119. done
  23120. rm -f conf$$subs.sh
  23121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23122. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23123. _ACEOF
  23124. sed -n '
  23125. h
  23126. s/^/S["/; s/!.*/"]=/
  23127. p
  23128. g
  23129. s/^[^!]*!//
  23130. :repl
  23131. t repl
  23132. s/'"$ac_delim"'$//
  23133. t delim
  23134. :nl
  23135. h
  23136. s/\(.\{148\}\)..*/\1/
  23137. t more1
  23138. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23139. p
  23140. n
  23141. b repl
  23142. :more1
  23143. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23144. p
  23145. g
  23146. s/.\{148\}//
  23147. t nl
  23148. :delim
  23149. h
  23150. s/\(.\{148\}\)..*/\1/
  23151. t more2
  23152. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23153. p
  23154. b
  23155. :more2
  23156. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23157. p
  23158. g
  23159. s/.\{148\}//
  23160. t delim
  23161. ' <conf$$subs.awk | sed '
  23162. /^[^""]/{
  23163. N
  23164. s/\n//
  23165. }
  23166. ' >>$CONFIG_STATUS || ac_write_fail=1
  23167. rm -f conf$$subs.awk
  23168. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23169. _ACAWK
  23170. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23171. for (key in S) S_is_set[key] = 1
  23172. FS = ""
  23173. }
  23174. {
  23175. line = $ 0
  23176. nfields = split(line, field, "@")
  23177. substed = 0
  23178. len = length(field[1])
  23179. for (i = 2; i < nfields; i++) {
  23180. key = field[i]
  23181. keylen = length(key)
  23182. if (S_is_set[key]) {
  23183. value = S[key]
  23184. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23185. len += length(value) + length(field[++i])
  23186. substed = 1
  23187. } else
  23188. len += 1 + keylen
  23189. }
  23190. print line
  23191. }
  23192. _ACAWK
  23193. _ACEOF
  23194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23195. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23196. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23197. else
  23198. cat
  23199. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23200. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23201. _ACEOF
  23202. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23203. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23204. # trailing colons and then remove the whole line if VPATH becomes empty
  23205. # (actually we leave an empty line to preserve line numbers).
  23206. if test "x$srcdir" = x.; then
  23207. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23208. h
  23209. s///
  23210. s/^/:/
  23211. s/[ ]*$/:/
  23212. s/:\$(srcdir):/:/g
  23213. s/:\${srcdir}:/:/g
  23214. s/:@srcdir@:/:/g
  23215. s/^:*//
  23216. s/:*$//
  23217. x
  23218. s/\(=[ ]*\).*/\1/
  23219. G
  23220. s/\n//
  23221. s/^[^=]*=[ ]*$//
  23222. }'
  23223. fi
  23224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23225. fi # test -n "$CONFIG_FILES"
  23226. # Set up the scripts for CONFIG_HEADERS section.
  23227. # No need to generate them if there are no CONFIG_HEADERS.
  23228. # This happens for instance with `./config.status Makefile'.
  23229. if test -n "$CONFIG_HEADERS"; then
  23230. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23231. BEGIN {
  23232. _ACEOF
  23233. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23234. # here-document in config.status, that substitutes the proper values into
  23235. # config.h.in to produce config.h.
  23236. # Create a delimiter string that does not exist in confdefs.h, to ease
  23237. # handling of long lines.
  23238. ac_delim='%!_!# '
  23239. for ac_last_try in false false :; do
  23240. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23241. if test -z "$ac_tt"; then
  23242. break
  23243. elif $ac_last_try; then
  23244. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23245. else
  23246. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23247. fi
  23248. done
  23249. # For the awk script, D is an array of macro values keyed by name,
  23250. # likewise P contains macro parameters if any. Preserve backslash
  23251. # newline sequences.
  23252. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23253. sed -n '
  23254. s/.\{148\}/&'"$ac_delim"'/g
  23255. t rset
  23256. :rset
  23257. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23258. t def
  23259. d
  23260. :def
  23261. s/\\$//
  23262. t bsnl
  23263. s/["\\]/\\&/g
  23264. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23265. D["\1"]=" \3"/p
  23266. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23267. d
  23268. :bsnl
  23269. s/["\\]/\\&/g
  23270. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23271. D["\1"]=" \3\\\\\\n"\\/p
  23272. t cont
  23273. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23274. t cont
  23275. d
  23276. :cont
  23277. n
  23278. s/.\{148\}/&'"$ac_delim"'/g
  23279. t clear
  23280. :clear
  23281. s/\\$//
  23282. t bsnlc
  23283. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23284. d
  23285. :bsnlc
  23286. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23287. b cont
  23288. ' <confdefs.h | sed '
  23289. s/'"$ac_delim"'/"\\\
  23290. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23292. for (key in D) D_is_set[key] = 1
  23293. FS = ""
  23294. }
  23295. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23296. line = \$ 0
  23297. split(line, arg, " ")
  23298. if (arg[1] == "#") {
  23299. defundef = arg[2]
  23300. mac1 = arg[3]
  23301. } else {
  23302. defundef = substr(arg[1], 2)
  23303. mac1 = arg[2]
  23304. }
  23305. split(mac1, mac2, "(") #)
  23306. macro = mac2[1]
  23307. prefix = substr(line, 1, index(line, defundef) - 1)
  23308. if (D_is_set[macro]) {
  23309. # Preserve the white space surrounding the "#".
  23310. print prefix "define", macro P[macro] D[macro]
  23311. next
  23312. } else {
  23313. # Replace #undef with comments. This is necessary, for example,
  23314. # in the case of _POSIX_SOURCE, which is predefined and required
  23315. # on some systems where configure will not decide to define it.
  23316. if (defundef == "undef") {
  23317. print "/*", prefix defundef, macro, "*/"
  23318. next
  23319. }
  23320. }
  23321. }
  23322. { print }
  23323. _ACAWK
  23324. _ACEOF
  23325. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23326. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23327. fi # test -n "$CONFIG_HEADERS"
  23328. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23329. shift
  23330. for ac_tag
  23331. do
  23332. case $ac_tag in
  23333. :[FHLC]) ac_mode=$ac_tag; continue;;
  23334. esac
  23335. case $ac_mode$ac_tag in
  23336. :[FHL]*:*);;
  23337. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23338. :[FH]-) ac_tag=-:-;;
  23339. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23340. esac
  23341. ac_save_IFS=$IFS
  23342. IFS=:
  23343. set x $ac_tag
  23344. IFS=$ac_save_IFS
  23345. shift
  23346. ac_file=$1
  23347. shift
  23348. case $ac_mode in
  23349. :L) ac_source=$1;;
  23350. :[FH])
  23351. ac_file_inputs=
  23352. for ac_f
  23353. do
  23354. case $ac_f in
  23355. -) ac_f="$ac_tmp/stdin";;
  23356. *) # Look for the file first in the build tree, then in the source tree
  23357. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23358. # because $ac_f cannot contain `:'.
  23359. test -f "$ac_f" ||
  23360. case $ac_f in
  23361. [\\/$]*) false;;
  23362. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23363. esac ||
  23364. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23365. esac
  23366. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23367. as_fn_append ac_file_inputs " '$ac_f'"
  23368. done
  23369. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23370. # use $as_me), people would be surprised to read:
  23371. # /* config.h. Generated by config.status. */
  23372. configure_input='Generated from '`
  23373. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23374. `' by configure.'
  23375. if test x"$ac_file" != x-; then
  23376. configure_input="$ac_file. $configure_input"
  23377. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23378. $as_echo "$as_me: creating $ac_file" >&6;}
  23379. fi
  23380. # Neutralize special characters interpreted by sed in replacement strings.
  23381. case $configure_input in #(
  23382. *\&* | *\|* | *\\* )
  23383. ac_sed_conf_input=`$as_echo "$configure_input" |
  23384. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23385. *) ac_sed_conf_input=$configure_input;;
  23386. esac
  23387. case $ac_tag in
  23388. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23389. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23390. esac
  23391. ;;
  23392. esac
  23393. ac_dir=`$as_dirname -- "$ac_file" ||
  23394. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23395. X"$ac_file" : 'X\(//\)[^/]' \| \
  23396. X"$ac_file" : 'X\(//\)$' \| \
  23397. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23398. $as_echo X"$ac_file" |
  23399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23400. s//\1/
  23401. q
  23402. }
  23403. /^X\(\/\/\)[^/].*/{
  23404. s//\1/
  23405. q
  23406. }
  23407. /^X\(\/\/\)$/{
  23408. s//\1/
  23409. q
  23410. }
  23411. /^X\(\/\).*/{
  23412. s//\1/
  23413. q
  23414. }
  23415. s/.*/./; q'`
  23416. as_dir="$ac_dir"; as_fn_mkdir_p
  23417. ac_builddir=.
  23418. case "$ac_dir" in
  23419. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23420. *)
  23421. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23422. # A ".." for each directory in $ac_dir_suffix.
  23423. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23424. case $ac_top_builddir_sub in
  23425. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23426. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23427. esac ;;
  23428. esac
  23429. ac_abs_top_builddir=$ac_pwd
  23430. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23431. # for backward compatibility:
  23432. ac_top_builddir=$ac_top_build_prefix
  23433. case $srcdir in
  23434. .) # We are building in place.
  23435. ac_srcdir=.
  23436. ac_top_srcdir=$ac_top_builddir_sub
  23437. ac_abs_top_srcdir=$ac_pwd ;;
  23438. [\\/]* | ?:[\\/]* ) # Absolute name.
  23439. ac_srcdir=$srcdir$ac_dir_suffix;
  23440. ac_top_srcdir=$srcdir
  23441. ac_abs_top_srcdir=$srcdir ;;
  23442. *) # Relative name.
  23443. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23444. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23445. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23446. esac
  23447. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23448. case $ac_mode in
  23449. :F)
  23450. #
  23451. # CONFIG_FILE
  23452. #
  23453. case $INSTALL in
  23454. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23455. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23456. esac
  23457. _ACEOF
  23458. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23459. # If the template does not know about datarootdir, expand it.
  23460. # FIXME: This hack should be removed a few years after 2.60.
  23461. ac_datarootdir_hack=; ac_datarootdir_seen=
  23462. ac_sed_dataroot='
  23463. /datarootdir/ {
  23464. p
  23465. q
  23466. }
  23467. /@datadir@/p
  23468. /@docdir@/p
  23469. /@infodir@/p
  23470. /@localedir@/p
  23471. /@mandir@/p'
  23472. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23473. *datarootdir*) ac_datarootdir_seen=yes;;
  23474. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23476. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23477. _ACEOF
  23478. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23479. ac_datarootdir_hack='
  23480. s&@datadir@&$datadir&g
  23481. s&@docdir@&$docdir&g
  23482. s&@infodir@&$infodir&g
  23483. s&@localedir@&$localedir&g
  23484. s&@mandir@&$mandir&g
  23485. s&\\\${datarootdir}&$datarootdir&g' ;;
  23486. esac
  23487. _ACEOF
  23488. # Neutralize VPATH when `$srcdir' = `.'.
  23489. # Shell code in configure.ac might set extrasub.
  23490. # FIXME: do we really want to maintain this feature?
  23491. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23492. ac_sed_extra="$ac_vpsub
  23493. $extrasub
  23494. _ACEOF
  23495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23496. :t
  23497. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23498. s|@configure_input@|$ac_sed_conf_input|;t t
  23499. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23500. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23501. s&@srcdir@&$ac_srcdir&;t t
  23502. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23503. s&@top_srcdir@&$ac_top_srcdir&;t t
  23504. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23505. s&@builddir@&$ac_builddir&;t t
  23506. s&@abs_builddir@&$ac_abs_builddir&;t t
  23507. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23508. s&@INSTALL@&$ac_INSTALL&;t t
  23509. $ac_datarootdir_hack
  23510. "
  23511. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23512. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23513. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23514. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23515. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23516. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23518. which seems to be undefined. Please make sure it is defined" >&5
  23519. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23520. which seems to be undefined. Please make sure it is defined" >&2;}
  23521. rm -f "$ac_tmp/stdin"
  23522. case $ac_file in
  23523. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23524. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23525. esac \
  23526. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23527. ;;
  23528. :H)
  23529. #
  23530. # CONFIG_HEADER
  23531. #
  23532. if test x"$ac_file" != x-; then
  23533. {
  23534. $as_echo "/* $configure_input */" \
  23535. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23536. } >"$ac_tmp/config.h" \
  23537. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23538. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23539. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23540. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23541. else
  23542. rm -f "$ac_file"
  23543. mv "$ac_tmp/config.h" "$ac_file" \
  23544. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23545. fi
  23546. else
  23547. $as_echo "/* $configure_input */" \
  23548. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23549. || as_fn_error $? "could not create -" "$LINENO" 5
  23550. fi
  23551. ;;
  23552. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23553. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23554. ;;
  23555. esac
  23556. case $ac_file$ac_mode in
  23557. "libtool":C)
  23558. # See if we are running on zsh, and set the options which allow our
  23559. # commands through without removal of \ escapes.
  23560. if test -n "${ZSH_VERSION+set}" ; then
  23561. setopt NO_GLOB_SUBST
  23562. fi
  23563. cfgfile="${ofile}T"
  23564. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23565. $RM "$cfgfile"
  23566. cat <<_LT_EOF >> "$cfgfile"
  23567. #! $SHELL
  23568. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23569. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23570. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23571. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23572. #
  23573. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23574. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23575. # Foundation, Inc.
  23576. # Written by Gordon Matzigkeit, 1996
  23577. #
  23578. # This file is part of GNU Libtool.
  23579. #
  23580. # GNU Libtool is free software; you can redistribute it and/or
  23581. # modify it under the terms of the GNU General Public License as
  23582. # published by the Free Software Foundation; either version 2 of
  23583. # the License, or (at your option) any later version.
  23584. #
  23585. # As a special exception to the GNU General Public License,
  23586. # if you distribute this file as part of a program or library that
  23587. # is built using GNU Libtool, you may include this file under the
  23588. # same distribution terms that you use for the rest of that program.
  23589. #
  23590. # GNU Libtool is distributed in the hope that it will be useful,
  23591. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23592. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23593. # GNU General Public License for more details.
  23594. #
  23595. # You should have received a copy of the GNU General Public License
  23596. # along with GNU Libtool; see the file COPYING. If not, a copy
  23597. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23598. # obtained by writing to the Free Software Foundation, Inc.,
  23599. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23600. # The names of the tagged configurations supported by this script.
  23601. available_tags="RC CXX "
  23602. # ### BEGIN LIBTOOL CONFIG
  23603. # Which release of libtool.m4 was used?
  23604. macro_version=$macro_version
  23605. macro_revision=$macro_revision
  23606. # Assembler program.
  23607. AS=$lt_AS
  23608. # DLL creation program.
  23609. DLLTOOL=$lt_DLLTOOL
  23610. # Object dumper program.
  23611. OBJDUMP=$lt_OBJDUMP
  23612. # Whether or not to build shared libraries.
  23613. build_libtool_libs=$enable_shared
  23614. # Whether or not to build static libraries.
  23615. build_old_libs=$enable_static
  23616. # What type of objects to build.
  23617. pic_mode=$pic_mode
  23618. # Whether or not to optimize for fast installation.
  23619. fast_install=$enable_fast_install
  23620. # Shell to use when invoking shell scripts.
  23621. SHELL=$lt_SHELL
  23622. # An echo program that protects backslashes.
  23623. ECHO=$lt_ECHO
  23624. # The PATH separator for the build system.
  23625. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23626. # The host system.
  23627. host_alias=$host_alias
  23628. host=$host
  23629. host_os=$host_os
  23630. # The build system.
  23631. build_alias=$build_alias
  23632. build=$build
  23633. build_os=$build_os
  23634. # A sed program that does not truncate output.
  23635. SED=$lt_SED
  23636. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23637. Xsed="\$SED -e 1s/^X//"
  23638. # A grep program that handles long lines.
  23639. GREP=$lt_GREP
  23640. # An ERE matcher.
  23641. EGREP=$lt_EGREP
  23642. # A literal string matcher.
  23643. FGREP=$lt_FGREP
  23644. # A BSD- or MS-compatible name lister.
  23645. NM=$lt_NM
  23646. # Whether we need soft or hard links.
  23647. LN_S=$lt_LN_S
  23648. # What is the maximum length of a command?
  23649. max_cmd_len=$max_cmd_len
  23650. # Object file suffix (normally "o").
  23651. objext=$ac_objext
  23652. # Executable file suffix (normally "").
  23653. exeext=$exeext
  23654. # whether the shell understands "unset".
  23655. lt_unset=$lt_unset
  23656. # turn spaces into newlines.
  23657. SP2NL=$lt_lt_SP2NL
  23658. # turn newlines into spaces.
  23659. NL2SP=$lt_lt_NL2SP
  23660. # convert \$build file names to \$host format.
  23661. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23662. # convert \$build files to toolchain format.
  23663. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23664. # Method to check whether dependent libraries are shared objects.
  23665. deplibs_check_method=$lt_deplibs_check_method
  23666. # Command to use when deplibs_check_method = "file_magic".
  23667. file_magic_cmd=$lt_file_magic_cmd
  23668. # How to find potential files when deplibs_check_method = "file_magic".
  23669. file_magic_glob=$lt_file_magic_glob
  23670. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23671. want_nocaseglob=$lt_want_nocaseglob
  23672. # Command to associate shared and link libraries.
  23673. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23674. # The archiver.
  23675. AR=$lt_AR
  23676. # Flags to create an archive.
  23677. AR_FLAGS=$lt_AR_FLAGS
  23678. # How to feed a file listing to the archiver.
  23679. archiver_list_spec=$lt_archiver_list_spec
  23680. # A symbol stripping program.
  23681. STRIP=$lt_STRIP
  23682. # Commands used to install an old-style archive.
  23683. RANLIB=$lt_RANLIB
  23684. old_postinstall_cmds=$lt_old_postinstall_cmds
  23685. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23686. # Whether to use a lock for old archive extraction.
  23687. lock_old_archive_extraction=$lock_old_archive_extraction
  23688. # A C compiler.
  23689. LTCC=$lt_CC
  23690. # LTCC compiler flags.
  23691. LTCFLAGS=$lt_CFLAGS
  23692. # Take the output of nm and produce a listing of raw symbols and C names.
  23693. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23694. # Transform the output of nm in a proper C declaration.
  23695. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23696. # Transform the output of nm in a C name address pair.
  23697. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23698. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23699. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23700. # Specify filename containing input files for \$NM.
  23701. nm_file_list_spec=$lt_nm_file_list_spec
  23702. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23703. lt_sysroot=$lt_sysroot
  23704. # The name of the directory that contains temporary libtool files.
  23705. objdir=$objdir
  23706. # Used to examine libraries when file_magic_cmd begins with "file".
  23707. MAGIC_CMD=$MAGIC_CMD
  23708. # Must we lock files when doing compilation?
  23709. need_locks=$lt_need_locks
  23710. # Manifest tool.
  23711. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23712. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23713. DSYMUTIL=$lt_DSYMUTIL
  23714. # Tool to change global to local symbols on Mac OS X.
  23715. NMEDIT=$lt_NMEDIT
  23716. # Tool to manipulate fat objects and archives on Mac OS X.
  23717. LIPO=$lt_LIPO
  23718. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23719. OTOOL=$lt_OTOOL
  23720. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23721. OTOOL64=$lt_OTOOL64
  23722. # Old archive suffix (normally "a").
  23723. libext=$libext
  23724. # Shared library suffix (normally ".so").
  23725. shrext_cmds=$lt_shrext_cmds
  23726. # The commands to extract the exported symbol list from a shared archive.
  23727. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23728. # Variables whose values should be saved in libtool wrapper scripts and
  23729. # restored at link time.
  23730. variables_saved_for_relink=$lt_variables_saved_for_relink
  23731. # Do we need the "lib" prefix for modules?
  23732. need_lib_prefix=$need_lib_prefix
  23733. # Do we need a version for libraries?
  23734. need_version=$need_version
  23735. # Library versioning type.
  23736. version_type=$version_type
  23737. # Shared library runtime path variable.
  23738. runpath_var=$runpath_var
  23739. # Shared library path variable.
  23740. shlibpath_var=$shlibpath_var
  23741. # Is shlibpath searched before the hard-coded library search path?
  23742. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23743. # Format of library name prefix.
  23744. libname_spec=$lt_libname_spec
  23745. # List of archive names. First name is the real one, the rest are links.
  23746. # The last name is the one that the linker finds with -lNAME
  23747. library_names_spec=$lt_library_names_spec
  23748. # The coded name of the library, if different from the real name.
  23749. soname_spec=$lt_soname_spec
  23750. # Permission mode override for installation of shared libraries.
  23751. install_override_mode=$lt_install_override_mode
  23752. # Command to use after installation of a shared archive.
  23753. postinstall_cmds=$lt_postinstall_cmds
  23754. # Command to use after uninstallation of a shared archive.
  23755. postuninstall_cmds=$lt_postuninstall_cmds
  23756. # Commands used to finish a libtool library installation in a directory.
  23757. finish_cmds=$lt_finish_cmds
  23758. # As "finish_cmds", except a single script fragment to be evaled but
  23759. # not shown.
  23760. finish_eval=$lt_finish_eval
  23761. # Whether we should hardcode library paths into libraries.
  23762. hardcode_into_libs=$hardcode_into_libs
  23763. # Compile-time system search path for libraries.
  23764. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23765. # Run-time system search path for libraries.
  23766. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23767. # Whether dlopen is supported.
  23768. dlopen_support=$enable_dlopen
  23769. # Whether dlopen of programs is supported.
  23770. dlopen_self=$enable_dlopen_self
  23771. # Whether dlopen of statically linked programs is supported.
  23772. dlopen_self_static=$enable_dlopen_self_static
  23773. # Commands to strip libraries.
  23774. old_striplib=$lt_old_striplib
  23775. striplib=$lt_striplib
  23776. # The linker used to build libraries.
  23777. LD=$lt_LD
  23778. # How to create reloadable object files.
  23779. reload_flag=$lt_reload_flag
  23780. reload_cmds=$lt_reload_cmds
  23781. # Commands used to build an old-style archive.
  23782. old_archive_cmds=$lt_old_archive_cmds
  23783. # A language specific compiler.
  23784. CC=$lt_compiler
  23785. # Is the compiler the GNU compiler?
  23786. with_gcc=$GCC
  23787. # Compiler flag to turn off builtin functions.
  23788. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23789. # Additional compiler flags for building library objects.
  23790. pic_flag=$lt_lt_prog_compiler_pic
  23791. # How to pass a linker flag through the compiler.
  23792. wl=$lt_lt_prog_compiler_wl
  23793. # Compiler flag to prevent dynamic linking.
  23794. link_static_flag=$lt_lt_prog_compiler_static
  23795. # Does compiler simultaneously support -c and -o options?
  23796. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23797. # Whether or not to add -lc for building shared libraries.
  23798. build_libtool_need_lc=$archive_cmds_need_lc
  23799. # Whether or not to disallow shared libs when runtime libs are static.
  23800. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23801. # Compiler flag to allow reflexive dlopens.
  23802. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23803. # Compiler flag to generate shared objects directly from archives.
  23804. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23805. # Whether the compiler copes with passing no objects directly.
  23806. compiler_needs_object=$lt_compiler_needs_object
  23807. # Create an old-style archive from a shared archive.
  23808. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23809. # Create a temporary old-style archive to link instead of a shared archive.
  23810. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23811. # Commands used to build a shared archive.
  23812. archive_cmds=$lt_archive_cmds
  23813. archive_expsym_cmds=$lt_archive_expsym_cmds
  23814. # Commands used to build a loadable module if different from building
  23815. # a shared archive.
  23816. module_cmds=$lt_module_cmds
  23817. module_expsym_cmds=$lt_module_expsym_cmds
  23818. # Whether we are building with GNU ld or not.
  23819. with_gnu_ld=$lt_with_gnu_ld
  23820. # Flag that allows shared libraries with undefined symbols to be built.
  23821. allow_undefined_flag=$lt_allow_undefined_flag
  23822. # Flag that enforces no undefined symbols.
  23823. no_undefined_flag=$lt_no_undefined_flag
  23824. # Flag to hardcode \$libdir into a binary during linking.
  23825. # This must work even if \$libdir does not exist
  23826. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23827. # Whether we need a single "-rpath" flag with a separated argument.
  23828. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23829. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23830. # DIR into the resulting binary.
  23831. hardcode_direct=$hardcode_direct
  23832. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23833. # DIR into the resulting binary and the resulting library dependency is
  23834. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23835. # library is relocated.
  23836. hardcode_direct_absolute=$hardcode_direct_absolute
  23837. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23838. # into the resulting binary.
  23839. hardcode_minus_L=$hardcode_minus_L
  23840. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23841. # into the resulting binary.
  23842. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23843. # Set to "yes" if building a shared library automatically hardcodes DIR
  23844. # into the library and all subsequent libraries and executables linked
  23845. # against it.
  23846. hardcode_automatic=$hardcode_automatic
  23847. # Set to yes if linker adds runtime paths of dependent libraries
  23848. # to runtime path list.
  23849. inherit_rpath=$inherit_rpath
  23850. # Whether libtool must link a program against all its dependency libraries.
  23851. link_all_deplibs=$link_all_deplibs
  23852. # Set to "yes" if exported symbols are required.
  23853. always_export_symbols=$always_export_symbols
  23854. # The commands to list exported symbols.
  23855. export_symbols_cmds=$lt_export_symbols_cmds
  23856. # Symbols that should not be listed in the preloaded symbols.
  23857. exclude_expsyms=$lt_exclude_expsyms
  23858. # Symbols that must always be exported.
  23859. include_expsyms=$lt_include_expsyms
  23860. # Commands necessary for linking programs (against libraries) with templates.
  23861. prelink_cmds=$lt_prelink_cmds
  23862. # Commands necessary for finishing linking programs.
  23863. postlink_cmds=$lt_postlink_cmds
  23864. # Specify filename containing input files.
  23865. file_list_spec=$lt_file_list_spec
  23866. # How to hardcode a shared library path into an executable.
  23867. hardcode_action=$hardcode_action
  23868. # The directories searched by this compiler when creating a shared library.
  23869. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23870. # Dependencies to place before and after the objects being linked to
  23871. # create a shared library.
  23872. predep_objects=$lt_predep_objects
  23873. postdep_objects=$lt_postdep_objects
  23874. predeps=$lt_predeps
  23875. postdeps=$lt_postdeps
  23876. # The library search path used internally by the compiler when linking
  23877. # a shared library.
  23878. compiler_lib_search_path=$lt_compiler_lib_search_path
  23879. # ### END LIBTOOL CONFIG
  23880. _LT_EOF
  23881. case $host_os in
  23882. aix3*)
  23883. cat <<\_LT_EOF >> "$cfgfile"
  23884. # AIX sometimes has problems with the GCC collect2 program. For some
  23885. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23886. # vanish in a puff of smoke.
  23887. if test "X${COLLECT_NAMES+set}" != Xset; then
  23888. COLLECT_NAMES=
  23889. export COLLECT_NAMES
  23890. fi
  23891. _LT_EOF
  23892. ;;
  23893. esac
  23894. ltmain="$ac_aux_dir/ltmain.sh"
  23895. # We use sed instead of cat because bash on DJGPP gets confused if
  23896. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23897. # text mode, it properly converts lines to CR/LF. This bash problem
  23898. # is reportedly fixed, but why not run on old versions too?
  23899. sed '$q' "$ltmain" >> "$cfgfile" \
  23900. || (rm -f "$cfgfile"; exit 1)
  23901. if test x"$xsi_shell" = xyes; then
  23902. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23903. func_dirname ()\
  23904. {\
  23905. \ case ${1} in\
  23906. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23907. \ * ) func_dirname_result="${3}" ;;\
  23908. \ esac\
  23909. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23910. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23911. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23912. test 0 -eq $? || _lt_function_replace_fail=:
  23913. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23914. func_basename ()\
  23915. {\
  23916. \ func_basename_result="${1##*/}"\
  23917. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23918. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23919. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23920. test 0 -eq $? || _lt_function_replace_fail=:
  23921. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23922. func_dirname_and_basename ()\
  23923. {\
  23924. \ case ${1} in\
  23925. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23926. \ * ) func_dirname_result="${3}" ;;\
  23927. \ esac\
  23928. \ func_basename_result="${1##*/}"\
  23929. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23930. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23931. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23932. test 0 -eq $? || _lt_function_replace_fail=:
  23933. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23934. func_stripname ()\
  23935. {\
  23936. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23937. \ # positional parameters, so assign one to ordinary parameter first.\
  23938. \ func_stripname_result=${3}\
  23939. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23940. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23941. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23942. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23943. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23944. test 0 -eq $? || _lt_function_replace_fail=:
  23945. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23946. func_split_long_opt ()\
  23947. {\
  23948. \ func_split_long_opt_name=${1%%=*}\
  23949. \ func_split_long_opt_arg=${1#*=}\
  23950. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23951. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23952. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23953. test 0 -eq $? || _lt_function_replace_fail=:
  23954. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23955. func_split_short_opt ()\
  23956. {\
  23957. \ func_split_short_opt_arg=${1#??}\
  23958. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23959. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23960. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23961. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23962. test 0 -eq $? || _lt_function_replace_fail=:
  23963. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23964. func_lo2o ()\
  23965. {\
  23966. \ case ${1} in\
  23967. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23968. \ *) func_lo2o_result=${1} ;;\
  23969. \ esac\
  23970. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23971. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23972. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23973. test 0 -eq $? || _lt_function_replace_fail=:
  23974. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23975. func_xform ()\
  23976. {\
  23977. func_xform_result=${1%.*}.lo\
  23978. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23979. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23980. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23981. test 0 -eq $? || _lt_function_replace_fail=:
  23982. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23983. func_arith ()\
  23984. {\
  23985. func_arith_result=$(( $* ))\
  23986. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23987. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23988. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23989. test 0 -eq $? || _lt_function_replace_fail=:
  23990. sed -e '/^func_len ()$/,/^} # func_len /c\
  23991. func_len ()\
  23992. {\
  23993. func_len_result=${#1}\
  23994. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23995. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23996. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23997. test 0 -eq $? || _lt_function_replace_fail=:
  23998. fi
  23999. if test x"$lt_shell_append" = xyes; then
  24000. sed -e '/^func_append ()$/,/^} # func_append /c\
  24001. func_append ()\
  24002. {\
  24003. eval "${1}+=\\${2}"\
  24004. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24005. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24006. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24007. test 0 -eq $? || _lt_function_replace_fail=:
  24008. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24009. func_append_quoted ()\
  24010. {\
  24011. \ func_quote_for_eval "${2}"\
  24012. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24013. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24014. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24015. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24016. test 0 -eq $? || _lt_function_replace_fail=:
  24017. # Save a `func_append' function call where possible by direct use of '+='
  24018. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24019. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24020. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24021. test 0 -eq $? || _lt_function_replace_fail=:
  24022. else
  24023. # Save a `func_append' function call even when '+=' is not available
  24024. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24025. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24026. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24027. test 0 -eq $? || _lt_function_replace_fail=:
  24028. fi
  24029. if test x"$_lt_function_replace_fail" = x":"; then
  24030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24031. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24032. fi
  24033. mv -f "$cfgfile" "$ofile" ||
  24034. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24035. chmod +x "$ofile"
  24036. cat <<_LT_EOF >> "$ofile"
  24037. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24038. # The linker used to build libraries.
  24039. LD=$lt_LD_RC
  24040. # How to create reloadable object files.
  24041. reload_flag=$lt_reload_flag_RC
  24042. reload_cmds=$lt_reload_cmds_RC
  24043. # Commands used to build an old-style archive.
  24044. old_archive_cmds=$lt_old_archive_cmds_RC
  24045. # A language specific compiler.
  24046. CC=$lt_compiler_RC
  24047. # Is the compiler the GNU compiler?
  24048. with_gcc=$GCC_RC
  24049. # Compiler flag to turn off builtin functions.
  24050. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24051. # Additional compiler flags for building library objects.
  24052. pic_flag=$lt_lt_prog_compiler_pic_RC
  24053. # How to pass a linker flag through the compiler.
  24054. wl=$lt_lt_prog_compiler_wl_RC
  24055. # Compiler flag to prevent dynamic linking.
  24056. link_static_flag=$lt_lt_prog_compiler_static_RC
  24057. # Does compiler simultaneously support -c and -o options?
  24058. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24059. # Whether or not to add -lc for building shared libraries.
  24060. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24061. # Whether or not to disallow shared libs when runtime libs are static.
  24062. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24063. # Compiler flag to allow reflexive dlopens.
  24064. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24065. # Compiler flag to generate shared objects directly from archives.
  24066. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24067. # Whether the compiler copes with passing no objects directly.
  24068. compiler_needs_object=$lt_compiler_needs_object_RC
  24069. # Create an old-style archive from a shared archive.
  24070. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24071. # Create a temporary old-style archive to link instead of a shared archive.
  24072. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24073. # Commands used to build a shared archive.
  24074. archive_cmds=$lt_archive_cmds_RC
  24075. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24076. # Commands used to build a loadable module if different from building
  24077. # a shared archive.
  24078. module_cmds=$lt_module_cmds_RC
  24079. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24080. # Whether we are building with GNU ld or not.
  24081. with_gnu_ld=$lt_with_gnu_ld_RC
  24082. # Flag that allows shared libraries with undefined symbols to be built.
  24083. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24084. # Flag that enforces no undefined symbols.
  24085. no_undefined_flag=$lt_no_undefined_flag_RC
  24086. # Flag to hardcode \$libdir into a binary during linking.
  24087. # This must work even if \$libdir does not exist
  24088. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24089. # Whether we need a single "-rpath" flag with a separated argument.
  24090. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24091. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24092. # DIR into the resulting binary.
  24093. hardcode_direct=$hardcode_direct_RC
  24094. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24095. # DIR into the resulting binary and the resulting library dependency is
  24096. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24097. # library is relocated.
  24098. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24099. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24100. # into the resulting binary.
  24101. hardcode_minus_L=$hardcode_minus_L_RC
  24102. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24103. # into the resulting binary.
  24104. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24105. # Set to "yes" if building a shared library automatically hardcodes DIR
  24106. # into the library and all subsequent libraries and executables linked
  24107. # against it.
  24108. hardcode_automatic=$hardcode_automatic_RC
  24109. # Set to yes if linker adds runtime paths of dependent libraries
  24110. # to runtime path list.
  24111. inherit_rpath=$inherit_rpath_RC
  24112. # Whether libtool must link a program against all its dependency libraries.
  24113. link_all_deplibs=$link_all_deplibs_RC
  24114. # Set to "yes" if exported symbols are required.
  24115. always_export_symbols=$always_export_symbols_RC
  24116. # The commands to list exported symbols.
  24117. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24118. # Symbols that should not be listed in the preloaded symbols.
  24119. exclude_expsyms=$lt_exclude_expsyms_RC
  24120. # Symbols that must always be exported.
  24121. include_expsyms=$lt_include_expsyms_RC
  24122. # Commands necessary for linking programs (against libraries) with templates.
  24123. prelink_cmds=$lt_prelink_cmds_RC
  24124. # Commands necessary for finishing linking programs.
  24125. postlink_cmds=$lt_postlink_cmds_RC
  24126. # Specify filename containing input files.
  24127. file_list_spec=$lt_file_list_spec_RC
  24128. # How to hardcode a shared library path into an executable.
  24129. hardcode_action=$hardcode_action_RC
  24130. # The directories searched by this compiler when creating a shared library.
  24131. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24132. # Dependencies to place before and after the objects being linked to
  24133. # create a shared library.
  24134. predep_objects=$lt_predep_objects_RC
  24135. postdep_objects=$lt_postdep_objects_RC
  24136. predeps=$lt_predeps_RC
  24137. postdeps=$lt_postdeps_RC
  24138. # The library search path used internally by the compiler when linking
  24139. # a shared library.
  24140. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24141. # ### END LIBTOOL TAG CONFIG: RC
  24142. _LT_EOF
  24143. cat <<_LT_EOF >> "$ofile"
  24144. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24145. # The linker used to build libraries.
  24146. LD=$lt_LD_CXX
  24147. # How to create reloadable object files.
  24148. reload_flag=$lt_reload_flag_CXX
  24149. reload_cmds=$lt_reload_cmds_CXX
  24150. # Commands used to build an old-style archive.
  24151. old_archive_cmds=$lt_old_archive_cmds_CXX
  24152. # A language specific compiler.
  24153. CC=$lt_compiler_CXX
  24154. # Is the compiler the GNU compiler?
  24155. with_gcc=$GCC_CXX
  24156. # Compiler flag to turn off builtin functions.
  24157. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24158. # Additional compiler flags for building library objects.
  24159. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24160. # How to pass a linker flag through the compiler.
  24161. wl=$lt_lt_prog_compiler_wl_CXX
  24162. # Compiler flag to prevent dynamic linking.
  24163. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24164. # Does compiler simultaneously support -c and -o options?
  24165. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24166. # Whether or not to add -lc for building shared libraries.
  24167. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24168. # Whether or not to disallow shared libs when runtime libs are static.
  24169. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24170. # Compiler flag to allow reflexive dlopens.
  24171. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24172. # Compiler flag to generate shared objects directly from archives.
  24173. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24174. # Whether the compiler copes with passing no objects directly.
  24175. compiler_needs_object=$lt_compiler_needs_object_CXX
  24176. # Create an old-style archive from a shared archive.
  24177. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24178. # Create a temporary old-style archive to link instead of a shared archive.
  24179. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24180. # Commands used to build a shared archive.
  24181. archive_cmds=$lt_archive_cmds_CXX
  24182. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24183. # Commands used to build a loadable module if different from building
  24184. # a shared archive.
  24185. module_cmds=$lt_module_cmds_CXX
  24186. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24187. # Whether we are building with GNU ld or not.
  24188. with_gnu_ld=$lt_with_gnu_ld_CXX
  24189. # Flag that allows shared libraries with undefined symbols to be built.
  24190. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24191. # Flag that enforces no undefined symbols.
  24192. no_undefined_flag=$lt_no_undefined_flag_CXX
  24193. # Flag to hardcode \$libdir into a binary during linking.
  24194. # This must work even if \$libdir does not exist
  24195. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24196. # Whether we need a single "-rpath" flag with a separated argument.
  24197. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24198. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24199. # DIR into the resulting binary.
  24200. hardcode_direct=$hardcode_direct_CXX
  24201. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24202. # DIR into the resulting binary and the resulting library dependency is
  24203. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24204. # library is relocated.
  24205. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24206. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24207. # into the resulting binary.
  24208. hardcode_minus_L=$hardcode_minus_L_CXX
  24209. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24210. # into the resulting binary.
  24211. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24212. # Set to "yes" if building a shared library automatically hardcodes DIR
  24213. # into the library and all subsequent libraries and executables linked
  24214. # against it.
  24215. hardcode_automatic=$hardcode_automatic_CXX
  24216. # Set to yes if linker adds runtime paths of dependent libraries
  24217. # to runtime path list.
  24218. inherit_rpath=$inherit_rpath_CXX
  24219. # Whether libtool must link a program against all its dependency libraries.
  24220. link_all_deplibs=$link_all_deplibs_CXX
  24221. # Set to "yes" if exported symbols are required.
  24222. always_export_symbols=$always_export_symbols_CXX
  24223. # The commands to list exported symbols.
  24224. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24225. # Symbols that should not be listed in the preloaded symbols.
  24226. exclude_expsyms=$lt_exclude_expsyms_CXX
  24227. # Symbols that must always be exported.
  24228. include_expsyms=$lt_include_expsyms_CXX
  24229. # Commands necessary for linking programs (against libraries) with templates.
  24230. prelink_cmds=$lt_prelink_cmds_CXX
  24231. # Commands necessary for finishing linking programs.
  24232. postlink_cmds=$lt_postlink_cmds_CXX
  24233. # Specify filename containing input files.
  24234. file_list_spec=$lt_file_list_spec_CXX
  24235. # How to hardcode a shared library path into an executable.
  24236. hardcode_action=$hardcode_action_CXX
  24237. # The directories searched by this compiler when creating a shared library.
  24238. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24239. # Dependencies to place before and after the objects being linked to
  24240. # create a shared library.
  24241. predep_objects=$lt_predep_objects_CXX
  24242. postdep_objects=$lt_postdep_objects_CXX
  24243. predeps=$lt_predeps_CXX
  24244. postdeps=$lt_postdeps_CXX
  24245. # The library search path used internally by the compiler when linking
  24246. # a shared library.
  24247. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24248. # ### END LIBTOOL TAG CONFIG: CXX
  24249. _LT_EOF
  24250. ;;
  24251. "sdl2_config":C) chmod a+x sdl2-config ;;
  24252. "summary":C) echo -en "$SUMMARY" ;;
  24253. esac
  24254. done # for ac_tag
  24255. as_fn_exit 0
  24256. _ACEOF
  24257. ac_clean_files=$ac_clean_files_save
  24258. test $ac_write_fail = 0 ||
  24259. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24260. # configure is writing to config.log, and then calls config.status.
  24261. # config.status does its own redirection, appending to config.log.
  24262. # Unfortunately, on DOS this fails, as config.log is still kept open
  24263. # by configure, so config.status won't be able to write to it; its
  24264. # output is simply discarded. So we exec the FD to /dev/null,
  24265. # effectively closing config.log, so it can be properly (re)opened and
  24266. # appended to by config.status. When coming back to configure, we
  24267. # need to make the FD available again.
  24268. if test "$no_create" != yes; then
  24269. ac_cs_success=:
  24270. ac_config_status_args=
  24271. test "$silent" = yes &&
  24272. ac_config_status_args="$ac_config_status_args --quiet"
  24273. exec 5>/dev/null
  24274. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24275. exec 5>>config.log
  24276. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24277. # would make configure fail if this is the last instruction.
  24278. $ac_cs_success || as_fn_exit 1
  24279. fi
  24280. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24282. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24283. fi