configure 798 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_x11
  784. with_x
  785. enable_x11_shared
  786. enable_video_x11_xcursor
  787. enable_video_x11_xdbe
  788. enable_video_x11_xinerama
  789. enable_video_x11_xinput
  790. enable_video_x11_xrandr
  791. enable_video_x11_scrnsaver
  792. enable_video_x11_xshape
  793. enable_video_x11_vm
  794. enable_video_vivante
  795. enable_video_cocoa
  796. enable_video_directfb
  797. enable_directfb_shared
  798. enable_video_kmsdrm
  799. enable_kmsdrm_shared
  800. enable_video_dummy
  801. enable_video_opengl
  802. enable_video_opengles
  803. enable_video_opengles1
  804. enable_video_opengles2
  805. enable_video_vulkan
  806. enable_libudev
  807. enable_dbus
  808. enable_ime
  809. enable_ibus
  810. enable_fcitx
  811. enable_input_tslib
  812. enable_pthreads
  813. enable_pthread_sem
  814. enable_directx
  815. enable_sdl_dlopen
  816. enable_clock_gettime
  817. enable_rpath
  818. enable_render_d3d
  819. '
  820. ac_precious_vars='build_alias
  821. host_alias
  822. target_alias
  823. CC
  824. CFLAGS
  825. LDFLAGS
  826. LIBS
  827. CPPFLAGS
  828. CPP
  829. CXX
  830. CXXFLAGS
  831. CCC
  832. CXXCPP
  833. XMKMF'
  834. # Initialize some variables set by options.
  835. ac_init_help=
  836. ac_init_version=false
  837. ac_unrecognized_opts=
  838. ac_unrecognized_sep=
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *=) ac_optarg= ;;
  893. *) ac_optarg=yes ;;
  894. esac
  895. # Accept the important Cygnus configure options, so we can diagnose typos.
  896. case $ac_dashdash$ac_option in
  897. --)
  898. ac_dashdash=yes ;;
  899. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  900. ac_prev=bindir ;;
  901. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  902. bindir=$ac_optarg ;;
  903. -build | --build | --buil | --bui | --bu)
  904. ac_prev=build_alias ;;
  905. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  906. build_alias=$ac_optarg ;;
  907. -cache-file | --cache-file | --cache-fil | --cache-fi \
  908. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  909. ac_prev=cache_file ;;
  910. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  911. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  912. cache_file=$ac_optarg ;;
  913. --config-cache | -C)
  914. cache_file=config.cache ;;
  915. -datadir | --datadir | --datadi | --datad)
  916. ac_prev=datadir ;;
  917. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  918. datadir=$ac_optarg ;;
  919. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  920. | --dataroo | --dataro | --datar)
  921. ac_prev=datarootdir ;;
  922. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  923. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  924. datarootdir=$ac_optarg ;;
  925. -disable-* | --disable-*)
  926. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  927. # Reject names that are not valid shell variable names.
  928. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  929. as_fn_error $? "invalid feature name: $ac_useropt"
  930. ac_useropt_orig=$ac_useropt
  931. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  932. case $ac_user_opts in
  933. *"
  934. "enable_$ac_useropt"
  935. "*) ;;
  936. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  937. ac_unrecognized_sep=', ';;
  938. esac
  939. eval enable_$ac_useropt=no ;;
  940. -docdir | --docdir | --docdi | --doc | --do)
  941. ac_prev=docdir ;;
  942. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  943. docdir=$ac_optarg ;;
  944. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  945. ac_prev=dvidir ;;
  946. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  947. dvidir=$ac_optarg ;;
  948. -enable-* | --enable-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. as_fn_error $? "invalid feature name: $ac_useropt"
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "enable_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval enable_$ac_useropt=\$ac_optarg ;;
  963. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  964. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  965. | --exec | --exe | --ex)
  966. ac_prev=exec_prefix ;;
  967. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  968. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  969. | --exec=* | --exe=* | --ex=*)
  970. exec_prefix=$ac_optarg ;;
  971. -gas | --gas | --ga | --g)
  972. # Obsolete; use --with-gas.
  973. with_gas=yes ;;
  974. -help | --help | --hel | --he | -h)
  975. ac_init_help=long ;;
  976. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  977. ac_init_help=recursive ;;
  978. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  979. ac_init_help=short ;;
  980. -host | --host | --hos | --ho)
  981. ac_prev=host_alias ;;
  982. -host=* | --host=* | --hos=* | --ho=*)
  983. host_alias=$ac_optarg ;;
  984. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  985. ac_prev=htmldir ;;
  986. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  987. | --ht=*)
  988. htmldir=$ac_optarg ;;
  989. -includedir | --includedir | --includedi | --included | --include \
  990. | --includ | --inclu | --incl | --inc)
  991. ac_prev=includedir ;;
  992. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  993. | --includ=* | --inclu=* | --incl=* | --inc=*)
  994. includedir=$ac_optarg ;;
  995. -infodir | --infodir | --infodi | --infod | --info | --inf)
  996. ac_prev=infodir ;;
  997. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  998. infodir=$ac_optarg ;;
  999. -libdir | --libdir | --libdi | --libd)
  1000. ac_prev=libdir ;;
  1001. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1002. libdir=$ac_optarg ;;
  1003. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1004. | --libexe | --libex | --libe)
  1005. ac_prev=libexecdir ;;
  1006. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1007. | --libexe=* | --libex=* | --libe=*)
  1008. libexecdir=$ac_optarg ;;
  1009. -localedir | --localedir | --localedi | --localed | --locale)
  1010. ac_prev=localedir ;;
  1011. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1012. localedir=$ac_optarg ;;
  1013. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1014. | --localstate | --localstat | --localsta | --localst | --locals)
  1015. ac_prev=localstatedir ;;
  1016. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1017. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1018. localstatedir=$ac_optarg ;;
  1019. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1020. ac_prev=mandir ;;
  1021. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1022. mandir=$ac_optarg ;;
  1023. -nfp | --nfp | --nf)
  1024. # Obsolete; use --without-fp.
  1025. with_fp=no ;;
  1026. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1027. | --no-cr | --no-c | -n)
  1028. no_create=yes ;;
  1029. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1030. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1031. no_recursion=yes ;;
  1032. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1033. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1034. | --oldin | --oldi | --old | --ol | --o)
  1035. ac_prev=oldincludedir ;;
  1036. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1037. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1038. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1039. oldincludedir=$ac_optarg ;;
  1040. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1041. ac_prev=prefix ;;
  1042. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1043. prefix=$ac_optarg ;;
  1044. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1045. | --program-pre | --program-pr | --program-p)
  1046. ac_prev=program_prefix ;;
  1047. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1048. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1049. program_prefix=$ac_optarg ;;
  1050. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1051. | --program-suf | --program-su | --program-s)
  1052. ac_prev=program_suffix ;;
  1053. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1054. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1055. program_suffix=$ac_optarg ;;
  1056. -program-transform-name | --program-transform-name \
  1057. | --program-transform-nam | --program-transform-na \
  1058. | --program-transform-n | --program-transform- \
  1059. | --program-transform | --program-transfor \
  1060. | --program-transfo | --program-transf \
  1061. | --program-trans | --program-tran \
  1062. | --progr-tra | --program-tr | --program-t)
  1063. ac_prev=program_transform_name ;;
  1064. -program-transform-name=* | --program-transform-name=* \
  1065. | --program-transform-nam=* | --program-transform-na=* \
  1066. | --program-transform-n=* | --program-transform-=* \
  1067. | --program-transform=* | --program-transfor=* \
  1068. | --program-transfo=* | --program-transf=* \
  1069. | --program-trans=* | --program-tran=* \
  1070. | --progr-tra=* | --program-tr=* | --program-t=*)
  1071. program_transform_name=$ac_optarg ;;
  1072. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1073. ac_prev=pdfdir ;;
  1074. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1075. pdfdir=$ac_optarg ;;
  1076. -psdir | --psdir | --psdi | --psd | --ps)
  1077. ac_prev=psdir ;;
  1078. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1079. psdir=$ac_optarg ;;
  1080. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1081. | -silent | --silent | --silen | --sile | --sil)
  1082. silent=yes ;;
  1083. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1084. ac_prev=sbindir ;;
  1085. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1086. | --sbi=* | --sb=*)
  1087. sbindir=$ac_optarg ;;
  1088. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1089. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1090. | --sharedst | --shareds | --shared | --share | --shar \
  1091. | --sha | --sh)
  1092. ac_prev=sharedstatedir ;;
  1093. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1094. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1095. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1096. | --sha=* | --sh=*)
  1097. sharedstatedir=$ac_optarg ;;
  1098. -site | --site | --sit)
  1099. ac_prev=site ;;
  1100. -site=* | --site=* | --sit=*)
  1101. site=$ac_optarg ;;
  1102. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1103. ac_prev=srcdir ;;
  1104. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1105. srcdir=$ac_optarg ;;
  1106. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1107. | --syscon | --sysco | --sysc | --sys | --sy)
  1108. ac_prev=sysconfdir ;;
  1109. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1110. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1111. sysconfdir=$ac_optarg ;;
  1112. -target | --target | --targe | --targ | --tar | --ta | --t)
  1113. ac_prev=target_alias ;;
  1114. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1115. target_alias=$ac_optarg ;;
  1116. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1117. verbose=yes ;;
  1118. -version | --version | --versio | --versi | --vers | -V)
  1119. ac_init_version=: ;;
  1120. -with-* | --with-*)
  1121. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1122. # Reject names that are not valid shell variable names.
  1123. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1124. as_fn_error $? "invalid package name: $ac_useropt"
  1125. ac_useropt_orig=$ac_useropt
  1126. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1127. case $ac_user_opts in
  1128. *"
  1129. "with_$ac_useropt"
  1130. "*) ;;
  1131. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1132. ac_unrecognized_sep=', ';;
  1133. esac
  1134. eval with_$ac_useropt=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1139. as_fn_error $? "invalid package name: $ac_useropt"
  1140. ac_useropt_orig=$ac_useropt
  1141. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. case $ac_user_opts in
  1143. *"
  1144. "with_$ac_useropt"
  1145. "*) ;;
  1146. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1147. ac_unrecognized_sep=', ';;
  1148. esac
  1149. eval with_$ac_useropt=no ;;
  1150. --x)
  1151. # Obsolete; use --with-x.
  1152. with_x=yes ;;
  1153. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1154. | --x-incl | --x-inc | --x-in | --x-i)
  1155. ac_prev=x_includes ;;
  1156. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1157. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1158. x_includes=$ac_optarg ;;
  1159. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1160. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1161. ac_prev=x_libraries ;;
  1162. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1163. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1164. x_libraries=$ac_optarg ;;
  1165. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1166. Try \`$0 --help' for more information"
  1167. ;;
  1168. *=*)
  1169. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1170. # Reject names that are not valid shell variable names.
  1171. case $ac_envvar in #(
  1172. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1173. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1174. esac
  1175. eval $ac_envvar=\$ac_optarg
  1176. export $ac_envvar ;;
  1177. *)
  1178. # FIXME: should be removed in autoconf 3.0.
  1179. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1180. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1181. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1182. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1183. ;;
  1184. esac
  1185. done
  1186. if test -n "$ac_prev"; then
  1187. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1188. as_fn_error $? "missing argument to $ac_option"
  1189. fi
  1190. if test -n "$ac_unrecognized_opts"; then
  1191. case $enable_option_checking in
  1192. no) ;;
  1193. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1194. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1195. esac
  1196. fi
  1197. # Check all directory arguments for consistency.
  1198. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1199. datadir sysconfdir sharedstatedir localstatedir includedir \
  1200. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1201. libdir localedir mandir
  1202. do
  1203. eval ac_val=\$$ac_var
  1204. # Remove trailing slashes.
  1205. case $ac_val in
  1206. */ )
  1207. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1208. eval $ac_var=\$ac_val;;
  1209. esac
  1210. # Be sure to have absolute directory names.
  1211. case $ac_val in
  1212. [\\/$]* | ?:[\\/]* ) continue;;
  1213. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1214. esac
  1215. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1216. done
  1217. # There might be people who depend on the old broken behavior: `$host'
  1218. # used to hold the argument of --host etc.
  1219. # FIXME: To remove some day.
  1220. build=$build_alias
  1221. host=$host_alias
  1222. target=$target_alias
  1223. # FIXME: To remove some day.
  1224. if test "x$host_alias" != x; then
  1225. if test "x$build_alias" = x; then
  1226. cross_compiling=maybe
  1227. elif test "x$build_alias" != "x$host_alias"; then
  1228. cross_compiling=yes
  1229. fi
  1230. fi
  1231. ac_tool_prefix=
  1232. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1233. test "$silent" = yes && exec 6>/dev/null
  1234. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1235. ac_ls_di=`ls -di .` &&
  1236. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1237. as_fn_error $? "working directory cannot be determined"
  1238. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1239. as_fn_error $? "pwd does not report name of working directory"
  1240. # Find the source files, if location was not specified.
  1241. if test -z "$srcdir"; then
  1242. ac_srcdir_defaulted=yes
  1243. # Try the directory containing this script, then the parent directory.
  1244. ac_confdir=`$as_dirname -- "$as_myself" ||
  1245. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1246. X"$as_myself" : 'X\(//\)[^/]' \| \
  1247. X"$as_myself" : 'X\(//\)$' \| \
  1248. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1249. $as_echo X"$as_myself" |
  1250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1251. s//\1/
  1252. q
  1253. }
  1254. /^X\(\/\/\)[^/].*/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\).*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. s/.*/./; q'`
  1267. srcdir=$ac_confdir
  1268. if test ! -r "$srcdir/$ac_unique_file"; then
  1269. srcdir=..
  1270. fi
  1271. else
  1272. ac_srcdir_defaulted=no
  1273. fi
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1276. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1277. fi
  1278. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1279. ac_abs_confdir=`(
  1280. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1281. pwd)`
  1282. # When building in place, set srcdir=.
  1283. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1284. srcdir=.
  1285. fi
  1286. # Remove unnecessary trailing slashes from srcdir.
  1287. # Double slashes in file names in object file debugging info
  1288. # mess up M-x gdb in Emacs.
  1289. case $srcdir in
  1290. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1291. esac
  1292. for ac_var in $ac_precious_vars; do
  1293. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_env_${ac_var}_value=\$${ac_var}
  1295. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1297. done
  1298. #
  1299. # Report the --help message.
  1300. #
  1301. if test "$ac_init_help" = "long"; then
  1302. # Omit some internal or obsolete options to make the list less imposing.
  1303. # This message is too long to be a string in the A/UX 3.1 sh.
  1304. cat <<_ACEOF
  1305. \`configure' configures this package to adapt to many kinds of systems.
  1306. Usage: $0 [OPTION]... [VAR=VALUE]...
  1307. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1308. VAR=VALUE. See below for descriptions of some of the useful variables.
  1309. Defaults for the options are specified in brackets.
  1310. Configuration:
  1311. -h, --help display this help and exit
  1312. --help=short display options specific to this package
  1313. --help=recursive display the short help of all the included packages
  1314. -V, --version display version information and exit
  1315. -q, --quiet, --silent do not print \`checking ...' messages
  1316. --cache-file=FILE cache test results in FILE [disabled]
  1317. -C, --config-cache alias for \`--cache-file=config.cache'
  1318. -n, --no-create do not create output files
  1319. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1320. Installation directories:
  1321. --prefix=PREFIX install architecture-independent files in PREFIX
  1322. [$ac_default_prefix]
  1323. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1324. [PREFIX]
  1325. By default, \`make install' will install all the files in
  1326. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1327. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1328. for instance \`--prefix=\$HOME'.
  1329. For better control, use the options below.
  1330. Fine tuning of the installation directories:
  1331. --bindir=DIR user executables [EPREFIX/bin]
  1332. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1333. --libexecdir=DIR program executables [EPREFIX/libexec]
  1334. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1335. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1336. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1337. --libdir=DIR object code libraries [EPREFIX/lib]
  1338. --includedir=DIR C header files [PREFIX/include]
  1339. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1340. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1341. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1342. --infodir=DIR info documentation [DATAROOTDIR/info]
  1343. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1344. --mandir=DIR man documentation [DATAROOTDIR/man]
  1345. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1346. --htmldir=DIR html documentation [DOCDIR]
  1347. --dvidir=DIR dvi documentation [DOCDIR]
  1348. --pdfdir=DIR pdf documentation [DOCDIR]
  1349. --psdir=DIR ps documentation [DOCDIR]
  1350. _ACEOF
  1351. cat <<\_ACEOF
  1352. X features:
  1353. --x-includes=DIR X include files are in DIR
  1354. --x-libraries=DIR X library files are in DIR
  1355. System types:
  1356. --build=BUILD configure for building on BUILD [guessed]
  1357. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1358. _ACEOF
  1359. fi
  1360. if test -n "$ac_init_help"; then
  1361. cat <<\_ACEOF
  1362. Optional Features:
  1363. --disable-option-checking ignore unrecognized --enable/--with options
  1364. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1365. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1366. --enable-shared[=PKGS] build shared libraries [default=yes]
  1367. --enable-static[=PKGS] build static libraries [default=yes]
  1368. --enable-fast-install[=PKGS]
  1369. optimize for fast installation [default=yes]
  1370. --disable-libtool-lock avoid locking (might break parallel builds)
  1371. --enable-assertions Enable internal sanity checks
  1372. (auto/disabled/release/enabled/paranoid)
  1373. [[default=auto]]
  1374. --enable-dependency-tracking
  1375. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1376. --enable-libc Use the system C library [[default=yes]]
  1377. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1378. --enable-atomic Enable the atomic operations subsystem
  1379. [[default=yes]]
  1380. --enable-audio Enable the audio subsystem [[default=yes]]
  1381. --enable-video Enable the video subsystem [[default=yes]]
  1382. --enable-render Enable the render subsystem [[default=yes]]
  1383. --enable-events Enable the events subsystem [[default=yes]]
  1384. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1385. --enable-haptic Enable the haptic (force feedback) subsystem
  1386. [[default=yes]]
  1387. --enable-power Enable the power subsystem [[default=yes]]
  1388. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1389. --enable-threads Enable the threading subsystem [[default=yes]]
  1390. --enable-timers Enable the timer subsystem [[default=yes]]
  1391. --enable-file Enable the file subsystem [[default=yes]]
  1392. --enable-loadso Enable the shared object loading subsystem
  1393. [[default=yes]]
  1394. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1395. --enable-assembly Enable assembly routines [[default=yes]]
  1396. --enable-ssemath Allow GCC to use SSE floating point math
  1397. [[default=maybe]]
  1398. --enable-mmx use MMX assembly routines [[default=yes]]
  1399. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1400. --enable-sse use SSE assembly routines [[default=yes]]
  1401. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1402. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1403. --enable-altivec use Altivec assembly routines [[default=yes]]
  1404. --enable-oss support the OSS audio API [[default=maybe]]
  1405. --enable-alsa support the ALSA audio API [[default=yes]]
  1406. --disable-alsatest Do not try to compile and run a test Alsa program
  1407. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1408. --enable-jack use JACK audio [[default=yes]]
  1409. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1410. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1411. --disable-esdtest Do not try to compile and run a test ESD program
  1412. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1413. --enable-pulseaudio use PulseAudio [[default=yes]]
  1414. --enable-pulseaudio-shared
  1415. dynamically load PulseAudio support [[default=yes]]
  1416. --enable-arts support the Analog Real Time Synthesizer
  1417. [[default=yes]]
  1418. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1419. --enable-nas support the NAS audio API [[default=yes]]
  1420. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1421. --enable-sndio support the sndio audio API [[default=yes]]
  1422. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1423. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1424. --enable-fusionsound-shared
  1425. dynamically load fusionsound audio support
  1426. [[default=yes]]
  1427. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1428. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1429. --enable-libsamplerate use libsamplerate for audio rate conversion
  1430. [[default=yes]]
  1431. --enable-libsamplerate-shared
  1432. dynamically load libsamplerate [[default=yes]]
  1433. --enable-video-wayland use Wayland video driver [[default=yes]]
  1434. --enable-video-wayland-qt-touch
  1435. QtWayland server support for Wayland video driver
  1436. [[default=yes]]
  1437. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1438. --enable-video-mir use Mir video driver [[default=yes]]
  1439. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1440. --enable-video-x11 use X11 video driver [[default=yes]]
  1441. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1442. --enable-video-x11-xcursor
  1443. enable X11 Xcursor support [[default=yes]]
  1444. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1445. --enable-video-x11-xinerama
  1446. enable X11 Xinerama support [[default=yes]]
  1447. --enable-video-x11-xinput
  1448. enable X11 XInput extension for manymouse, tablets,
  1449. etc [[default=yes]]
  1450. --enable-video-x11-xrandr
  1451. enable X11 Xrandr extension for fullscreen
  1452. [[default=yes]]
  1453. --enable-video-x11-scrnsaver
  1454. enable X11 screensaver extension [[default=yes]]
  1455. --enable-video-x11-xshape
  1456. enable X11 XShape support [[default=yes]]
  1457. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1458. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1459. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1460. --enable-video-directfb use DirectFB video driver [[default=no]]
  1461. --enable-directfb-shared
  1462. dynamically load directfb support [[default=yes]]
  1463. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1464. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1465. --enable-video-dummy use dummy video driver [[default=yes]]
  1466. --enable-video-opengl include OpenGL support [[default=yes]]
  1467. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1468. --enable-video-opengles1
  1469. include OpenGL ES 1.1 support [[default=yes]]
  1470. --enable-video-opengles2
  1471. include OpenGL ES 2.0 support [[default=yes]]
  1472. --enable-video-vulkan include Vulkan support [[default=yes]]
  1473. --enable-libudev enable libudev support [[default=yes]]
  1474. --enable-dbus enable D-Bus support [[default=yes]]
  1475. --enable-ime enable IME support [[default=yes]]
  1476. --enable-ibus enable IBus support [[default=yes]]
  1477. --enable-fcitx enable fcitx support [[default=yes]]
  1478. --enable-input-tslib use the Touchscreen library for input
  1479. [[default=yes]]
  1480. --enable-pthreads use POSIX threads for multi-threading
  1481. [[default=yes]]
  1482. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1483. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1484. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1485. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1486. UNIX [[default=yes]]
  1487. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1488. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1489. Optional Packages:
  1490. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1491. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1492. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1493. both]
  1494. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1495. --with-sysroot=DIR Search for dependent libraries within DIR
  1496. (or the compiler's sysroot if not specified).
  1497. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1498. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1499. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1500. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1501. --with-x use the X Window System
  1502. Some influential environment variables:
  1503. CC C compiler command
  1504. CFLAGS C compiler flags
  1505. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1506. nonstandard directory <lib dir>
  1507. LIBS libraries to pass to the linker, e.g. -l<library>
  1508. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1509. you have headers in a nonstandard directory <include dir>
  1510. CPP C preprocessor
  1511. CXX C++ compiler command
  1512. CXXFLAGS C++ compiler flags
  1513. CXXCPP C++ preprocessor
  1514. XMKMF Path to xmkmf, Makefile generator for X Window System
  1515. Use these variables to override the choices made by `configure' or to help
  1516. it to find libraries and programs with nonstandard names/locations.
  1517. Report bugs to the package provider.
  1518. _ACEOF
  1519. ac_status=$?
  1520. fi
  1521. if test "$ac_init_help" = "recursive"; then
  1522. # If there are subdirs, report their specific --help.
  1523. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1524. test -d "$ac_dir" ||
  1525. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1526. continue
  1527. ac_builddir=.
  1528. case "$ac_dir" in
  1529. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1530. *)
  1531. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1532. # A ".." for each directory in $ac_dir_suffix.
  1533. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1534. case $ac_top_builddir_sub in
  1535. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1536. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1537. esac ;;
  1538. esac
  1539. ac_abs_top_builddir=$ac_pwd
  1540. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1541. # for backward compatibility:
  1542. ac_top_builddir=$ac_top_build_prefix
  1543. case $srcdir in
  1544. .) # We are building in place.
  1545. ac_srcdir=.
  1546. ac_top_srcdir=$ac_top_builddir_sub
  1547. ac_abs_top_srcdir=$ac_pwd ;;
  1548. [\\/]* | ?:[\\/]* ) # Absolute name.
  1549. ac_srcdir=$srcdir$ac_dir_suffix;
  1550. ac_top_srcdir=$srcdir
  1551. ac_abs_top_srcdir=$srcdir ;;
  1552. *) # Relative name.
  1553. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1554. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1555. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1556. esac
  1557. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1558. cd "$ac_dir" || { ac_status=$?; continue; }
  1559. # Check for guested configure.
  1560. if test -f "$ac_srcdir/configure.gnu"; then
  1561. echo &&
  1562. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1563. elif test -f "$ac_srcdir/configure"; then
  1564. echo &&
  1565. $SHELL "$ac_srcdir/configure" --help=recursive
  1566. else
  1567. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1568. fi || ac_status=$?
  1569. cd "$ac_pwd" || { ac_status=$?; break; }
  1570. done
  1571. fi
  1572. test -n "$ac_init_help" && exit $ac_status
  1573. if $ac_init_version; then
  1574. cat <<\_ACEOF
  1575. configure
  1576. generated by GNU Autoconf 2.69
  1577. Copyright (C) 2012 Free Software Foundation, Inc.
  1578. This configure script is free software; the Free Software Foundation
  1579. gives unlimited permission to copy, distribute and modify it.
  1580. _ACEOF
  1581. exit
  1582. fi
  1583. ## ------------------------ ##
  1584. ## Autoconf initialization. ##
  1585. ## ------------------------ ##
  1586. # ac_fn_c_try_compile LINENO
  1587. # --------------------------
  1588. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1589. ac_fn_c_try_compile ()
  1590. {
  1591. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1592. rm -f conftest.$ac_objext
  1593. if { { ac_try="$ac_compile"
  1594. case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_compile") 2>conftest.err
  1601. ac_status=$?
  1602. if test -s conftest.err; then
  1603. grep -v '^ *+' conftest.err >conftest.er1
  1604. cat conftest.er1 >&5
  1605. mv -f conftest.er1 conftest.err
  1606. fi
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; } && {
  1609. test -z "$ac_c_werror_flag" ||
  1610. test ! -s conftest.err
  1611. } && test -s conftest.$ac_objext; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: failed program was:" >&5
  1615. sed 's/^/| /' conftest.$ac_ext >&5
  1616. ac_retval=1
  1617. fi
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_compile
  1621. # ac_fn_c_try_link LINENO
  1622. # -----------------------
  1623. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1624. ac_fn_c_try_link ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. rm -f conftest.$ac_objext conftest$ac_exeext
  1628. if { { ac_try="$ac_link"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_link") 2>conftest.err
  1636. ac_status=$?
  1637. if test -s conftest.err; then
  1638. grep -v '^ *+' conftest.err >conftest.er1
  1639. cat conftest.er1 >&5
  1640. mv -f conftest.er1 conftest.err
  1641. fi
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && {
  1644. test -z "$ac_c_werror_flag" ||
  1645. test ! -s conftest.err
  1646. } && test -s conftest$ac_exeext && {
  1647. test "$cross_compiling" = yes ||
  1648. test -x conftest$ac_exeext
  1649. }; then :
  1650. ac_retval=0
  1651. else
  1652. $as_echo "$as_me: failed program was:" >&5
  1653. sed 's/^/| /' conftest.$ac_ext >&5
  1654. ac_retval=1
  1655. fi
  1656. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1657. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1658. # interfere with the next link command; also delete a directory that is
  1659. # left behind by Apple's compiler. We do this before executing the actions.
  1660. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. as_fn_set_status $ac_retval
  1663. } # ac_fn_c_try_link
  1664. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1665. # -------------------------------------------------------
  1666. # Tests whether HEADER exists and can be compiled using the include files in
  1667. # INCLUDES, setting the cache variable VAR accordingly.
  1668. ac_fn_c_check_header_compile ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. $4
  1679. #include <$2>
  1680. _ACEOF
  1681. if ac_fn_c_try_compile "$LINENO"; then :
  1682. eval "$3=yes"
  1683. else
  1684. eval "$3=no"
  1685. fi
  1686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. } # ac_fn_c_check_header_compile
  1693. # ac_fn_c_try_cpp LINENO
  1694. # ----------------------
  1695. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1696. ac_fn_c_try_cpp ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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; } > conftest.i && {
  1715. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1716. test ! -s conftest.err
  1717. }; 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_cpp
  1727. # ac_fn_c_try_run LINENO
  1728. # ----------------------
  1729. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1730. # that executables *can* be run.
  1731. ac_fn_c_try_run ()
  1732. {
  1733. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  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>&5
  1742. ac_status=$?
  1743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1744. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1745. { { case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_try") 2>&5
  1752. ac_status=$?
  1753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; }; }; then :
  1755. ac_retval=0
  1756. else
  1757. $as_echo "$as_me: program exited with status $ac_status" >&5
  1758. $as_echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. ac_retval=$ac_status
  1761. fi
  1762. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1763. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1764. as_fn_set_status $ac_retval
  1765. } # ac_fn_c_try_run
  1766. # ac_fn_c_check_func LINENO FUNC VAR
  1767. # ----------------------------------
  1768. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1769. ac_fn_c_check_func ()
  1770. {
  1771. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1773. $as_echo_n "checking for $2... " >&6; }
  1774. if eval \${$3+:} false; then :
  1775. $as_echo_n "(cached) " >&6
  1776. else
  1777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1781. #define $2 innocuous_$2
  1782. /* System header to define __stub macros and hopefully few prototypes,
  1783. which can conflict with char $2 (); below.
  1784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1785. <limits.h> exists even on freestanding compilers. */
  1786. #ifdef __STDC__
  1787. # include <limits.h>
  1788. #else
  1789. # include <assert.h>
  1790. #endif
  1791. #undef $2
  1792. /* Override any GCC internal prototype to avoid an error.
  1793. Use char because int might match the return type of a GCC
  1794. builtin and then its argument prototype would still apply. */
  1795. #ifdef __cplusplus
  1796. extern "C"
  1797. #endif
  1798. char $2 ();
  1799. /* The GNU C library defines this for functions which it implements
  1800. to always fail with ENOSYS. Some functions are actually named
  1801. something starting with __ and the normal name is an alias. */
  1802. #if defined __stub_$2 || defined __stub___$2
  1803. choke me
  1804. #endif
  1805. int
  1806. main ()
  1807. {
  1808. return $2 ();
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_link "$LINENO"; then :
  1814. eval "$3=yes"
  1815. else
  1816. eval "$3=no"
  1817. fi
  1818. rm -f core conftest.err conftest.$ac_objext \
  1819. conftest$ac_exeext conftest.$ac_ext
  1820. fi
  1821. eval ac_res=\$$3
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1823. $as_echo "$ac_res" >&6; }
  1824. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1825. } # ac_fn_c_check_func
  1826. # ac_fn_cxx_try_compile LINENO
  1827. # ----------------------------
  1828. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1829. ac_fn_cxx_try_compile ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. rm -f conftest.$ac_objext
  1833. if { { ac_try="$ac_compile"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1839. $as_echo "$ac_try_echo"; } >&5
  1840. (eval "$ac_compile") 2>conftest.err
  1841. ac_status=$?
  1842. if test -s conftest.err; then
  1843. grep -v '^ *+' conftest.err >conftest.er1
  1844. cat conftest.er1 >&5
  1845. mv -f conftest.er1 conftest.err
  1846. fi
  1847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1848. test $ac_status = 0; } && {
  1849. test -z "$ac_cxx_werror_flag" ||
  1850. test ! -s conftest.err
  1851. } && test -s conftest.$ac_objext; then :
  1852. ac_retval=0
  1853. else
  1854. $as_echo "$as_me: failed program was:" >&5
  1855. sed 's/^/| /' conftest.$ac_ext >&5
  1856. ac_retval=1
  1857. fi
  1858. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1859. as_fn_set_status $ac_retval
  1860. } # ac_fn_cxx_try_compile
  1861. # ac_fn_cxx_try_cpp LINENO
  1862. # ------------------------
  1863. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1864. ac_fn_cxx_try_cpp ()
  1865. {
  1866. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1867. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1868. case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1875. ac_status=$?
  1876. if test -s conftest.err; then
  1877. grep -v '^ *+' conftest.err >conftest.er1
  1878. cat conftest.er1 >&5
  1879. mv -f conftest.er1 conftest.err
  1880. fi
  1881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1882. test $ac_status = 0; } > conftest.i && {
  1883. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1884. test ! -s conftest.err
  1885. }; then :
  1886. ac_retval=0
  1887. else
  1888. $as_echo "$as_me: failed program was:" >&5
  1889. sed 's/^/| /' conftest.$ac_ext >&5
  1890. ac_retval=1
  1891. fi
  1892. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1893. as_fn_set_status $ac_retval
  1894. } # ac_fn_cxx_try_cpp
  1895. # ac_fn_cxx_try_link LINENO
  1896. # -------------------------
  1897. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1898. ac_fn_cxx_try_link ()
  1899. {
  1900. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1901. rm -f conftest.$ac_objext conftest$ac_exeext
  1902. if { { ac_try="$ac_link"
  1903. case "(($ac_try" in
  1904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1905. *) ac_try_echo=$ac_try;;
  1906. esac
  1907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1908. $as_echo "$ac_try_echo"; } >&5
  1909. (eval "$ac_link") 2>conftest.err
  1910. ac_status=$?
  1911. if test -s conftest.err; then
  1912. grep -v '^ *+' conftest.err >conftest.er1
  1913. cat conftest.er1 >&5
  1914. mv -f conftest.er1 conftest.err
  1915. fi
  1916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1917. test $ac_status = 0; } && {
  1918. test -z "$ac_cxx_werror_flag" ||
  1919. test ! -s conftest.err
  1920. } && test -s conftest$ac_exeext && {
  1921. test "$cross_compiling" = yes ||
  1922. test -x conftest$ac_exeext
  1923. }; then :
  1924. ac_retval=0
  1925. else
  1926. $as_echo "$as_me: failed program was:" >&5
  1927. sed 's/^/| /' conftest.$ac_ext >&5
  1928. ac_retval=1
  1929. fi
  1930. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1931. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1932. # interfere with the next link command; also delete a directory that is
  1933. # left behind by Apple's compiler. We do this before executing the actions.
  1934. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1935. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1936. as_fn_set_status $ac_retval
  1937. } # ac_fn_cxx_try_link
  1938. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1939. # -------------------------------------------------------
  1940. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1941. # the include files in INCLUDES and setting the cache variable VAR
  1942. # accordingly.
  1943. ac_fn_c_check_header_mongrel ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. if eval \${$3+:} false; then :
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1948. $as_echo_n "checking for $2... " >&6; }
  1949. if eval \${$3+:} false; then :
  1950. $as_echo_n "(cached) " >&6
  1951. fi
  1952. eval ac_res=\$$3
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. $as_echo "$ac_res" >&6; }
  1955. else
  1956. # Is the header compilable?
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1958. $as_echo_n "checking $2 usability... " >&6; }
  1959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1960. /* end confdefs.h. */
  1961. $4
  1962. #include <$2>
  1963. _ACEOF
  1964. if ac_fn_c_try_compile "$LINENO"; then :
  1965. ac_header_compiler=yes
  1966. else
  1967. ac_header_compiler=no
  1968. fi
  1969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1971. $as_echo "$ac_header_compiler" >&6; }
  1972. # Is the header present?
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1974. $as_echo_n "checking $2 presence... " >&6; }
  1975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1976. /* end confdefs.h. */
  1977. #include <$2>
  1978. _ACEOF
  1979. if ac_fn_c_try_cpp "$LINENO"; then :
  1980. ac_header_preproc=yes
  1981. else
  1982. ac_header_preproc=no
  1983. fi
  1984. rm -f conftest.err conftest.i conftest.$ac_ext
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1986. $as_echo "$ac_header_preproc" >&6; }
  1987. # So? What about this header?
  1988. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1989. yes:no: )
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1991. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1993. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1994. ;;
  1995. no:yes:* )
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1997. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1999. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2001. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2003. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2005. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2006. ;;
  2007. esac
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2009. $as_echo_n "checking for $2... " >&6; }
  2010. if eval \${$3+:} false; then :
  2011. $as_echo_n "(cached) " >&6
  2012. else
  2013. eval "$3=\$ac_header_compiler"
  2014. fi
  2015. eval ac_res=\$$3
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2017. $as_echo "$ac_res" >&6; }
  2018. fi
  2019. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020. } # ac_fn_c_check_header_mongrel
  2021. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2022. # -------------------------------------------
  2023. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2024. # variable VAR accordingly.
  2025. ac_fn_c_check_type ()
  2026. {
  2027. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2029. $as_echo_n "checking for $2... " >&6; }
  2030. if eval \${$3+:} false; then :
  2031. $as_echo_n "(cached) " >&6
  2032. else
  2033. eval "$3=no"
  2034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2035. /* end confdefs.h. */
  2036. $4
  2037. int
  2038. main ()
  2039. {
  2040. if (sizeof ($2))
  2041. return 0;
  2042. ;
  2043. return 0;
  2044. }
  2045. _ACEOF
  2046. if ac_fn_c_try_compile "$LINENO"; then :
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. $4
  2050. int
  2051. main ()
  2052. {
  2053. if (sizeof (($2)))
  2054. return 0;
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. if ac_fn_c_try_compile "$LINENO"; then :
  2060. else
  2061. eval "$3=yes"
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2064. fi
  2065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2066. fi
  2067. eval ac_res=\$$3
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2069. $as_echo "$ac_res" >&6; }
  2070. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2071. } # ac_fn_c_check_type
  2072. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2073. # ----------------------------------------------------
  2074. # Tries to find if the field MEMBER exists in type AGGR, after including
  2075. # INCLUDES, setting cache variable VAR accordingly.
  2076. ac_fn_c_check_member ()
  2077. {
  2078. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2080. $as_echo_n "checking for $2.$3... " >&6; }
  2081. if eval \${$4+:} false; then :
  2082. $as_echo_n "(cached) " >&6
  2083. else
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. $5
  2087. int
  2088. main ()
  2089. {
  2090. static $2 ac_aggr;
  2091. if (ac_aggr.$3)
  2092. return 0;
  2093. ;
  2094. return 0;
  2095. }
  2096. _ACEOF
  2097. if ac_fn_c_try_compile "$LINENO"; then :
  2098. eval "$4=yes"
  2099. else
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $5
  2103. int
  2104. main ()
  2105. {
  2106. static $2 ac_aggr;
  2107. if (sizeof ac_aggr.$3)
  2108. return 0;
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_c_try_compile "$LINENO"; then :
  2114. eval "$4=yes"
  2115. else
  2116. eval "$4=no"
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. fi
  2120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2121. fi
  2122. eval ac_res=\$$4
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2124. $as_echo "$ac_res" >&6; }
  2125. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2126. } # ac_fn_c_check_member
  2127. cat >config.log <<_ACEOF
  2128. This file contains any messages produced by compilers while
  2129. running configure, to aid debugging if configure makes a mistake.
  2130. It was created by $as_me, which was
  2131. generated by GNU Autoconf 2.69. Invocation command line was
  2132. $ $0 $@
  2133. _ACEOF
  2134. exec 5>>config.log
  2135. {
  2136. cat <<_ASUNAME
  2137. ## --------- ##
  2138. ## Platform. ##
  2139. ## --------- ##
  2140. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2141. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2142. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2143. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2144. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2145. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2146. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2147. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2148. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2149. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2150. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2151. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2152. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2153. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2154. _ASUNAME
  2155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2156. for as_dir in $PATH
  2157. do
  2158. IFS=$as_save_IFS
  2159. test -z "$as_dir" && as_dir=.
  2160. $as_echo "PATH: $as_dir"
  2161. done
  2162. IFS=$as_save_IFS
  2163. } >&5
  2164. cat >&5 <<_ACEOF
  2165. ## ----------- ##
  2166. ## Core tests. ##
  2167. ## ----------- ##
  2168. _ACEOF
  2169. # Keep a trace of the command line.
  2170. # Strip out --no-create and --no-recursion so they do not pile up.
  2171. # Strip out --silent because we don't want to record it for future runs.
  2172. # Also quote any args containing shell meta-characters.
  2173. # Make two passes to allow for proper duplicate-argument suppression.
  2174. ac_configure_args=
  2175. ac_configure_args0=
  2176. ac_configure_args1=
  2177. ac_must_keep_next=false
  2178. for ac_pass in 1 2
  2179. do
  2180. for ac_arg
  2181. do
  2182. case $ac_arg in
  2183. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2184. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2185. | -silent | --silent | --silen | --sile | --sil)
  2186. continue ;;
  2187. *\'*)
  2188. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. esac
  2190. case $ac_pass in
  2191. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2192. 2)
  2193. as_fn_append ac_configure_args1 " '$ac_arg'"
  2194. if test $ac_must_keep_next = true; then
  2195. ac_must_keep_next=false # Got value, back to normal.
  2196. else
  2197. case $ac_arg in
  2198. *=* | --config-cache | -C | -disable-* | --disable-* \
  2199. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2200. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2201. | -with-* | --with-* | -without-* | --without-* | --x)
  2202. case "$ac_configure_args0 " in
  2203. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2204. esac
  2205. ;;
  2206. -* ) ac_must_keep_next=true ;;
  2207. esac
  2208. fi
  2209. as_fn_append ac_configure_args " '$ac_arg'"
  2210. ;;
  2211. esac
  2212. done
  2213. done
  2214. { ac_configure_args0=; unset ac_configure_args0;}
  2215. { ac_configure_args1=; unset ac_configure_args1;}
  2216. # When interrupted or exit'd, cleanup temporary files, and complete
  2217. # config.log. We remove comments because anyway the quotes in there
  2218. # would cause problems or look ugly.
  2219. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2220. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2221. trap 'exit_status=$?
  2222. # Save into config.log some information that might help in debugging.
  2223. {
  2224. echo
  2225. $as_echo "## ---------------- ##
  2226. ## Cache variables. ##
  2227. ## ---------------- ##"
  2228. echo
  2229. # The following way of writing the cache mishandles newlines in values,
  2230. (
  2231. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2232. eval ac_val=\$$ac_var
  2233. case $ac_val in #(
  2234. *${as_nl}*)
  2235. case $ac_var in #(
  2236. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2237. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2238. esac
  2239. case $ac_var in #(
  2240. _ | IFS | as_nl) ;; #(
  2241. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2242. *) { eval $ac_var=; unset $ac_var;} ;;
  2243. esac ;;
  2244. esac
  2245. done
  2246. (set) 2>&1 |
  2247. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2248. *${as_nl}ac_space=\ *)
  2249. sed -n \
  2250. "s/'\''/'\''\\\\'\'''\''/g;
  2251. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2252. ;; #(
  2253. *)
  2254. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2255. ;;
  2256. esac |
  2257. sort
  2258. )
  2259. echo
  2260. $as_echo "## ----------------- ##
  2261. ## Output variables. ##
  2262. ## ----------------- ##"
  2263. echo
  2264. for ac_var in $ac_subst_vars
  2265. do
  2266. eval ac_val=\$$ac_var
  2267. case $ac_val in
  2268. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2269. esac
  2270. $as_echo "$ac_var='\''$ac_val'\''"
  2271. done | sort
  2272. echo
  2273. if test -n "$ac_subst_files"; then
  2274. $as_echo "## ------------------- ##
  2275. ## File substitutions. ##
  2276. ## ------------------- ##"
  2277. echo
  2278. for ac_var in $ac_subst_files
  2279. do
  2280. eval ac_val=\$$ac_var
  2281. case $ac_val in
  2282. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2283. esac
  2284. $as_echo "$ac_var='\''$ac_val'\''"
  2285. done | sort
  2286. echo
  2287. fi
  2288. if test -s confdefs.h; then
  2289. $as_echo "## ----------- ##
  2290. ## confdefs.h. ##
  2291. ## ----------- ##"
  2292. echo
  2293. cat confdefs.h
  2294. echo
  2295. fi
  2296. test "$ac_signal" != 0 &&
  2297. $as_echo "$as_me: caught signal $ac_signal"
  2298. $as_echo "$as_me: exit $exit_status"
  2299. } >&5
  2300. rm -f core *.core core.conftest.* &&
  2301. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2302. exit $exit_status
  2303. ' 0
  2304. for ac_signal in 1 2 13 15; do
  2305. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2306. done
  2307. ac_signal=0
  2308. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2309. rm -f -r conftest* confdefs.h
  2310. $as_echo "/* confdefs.h */" > confdefs.h
  2311. # Predefined preprocessor variables.
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define PACKAGE_NAME "$PACKAGE_NAME"
  2314. _ACEOF
  2315. cat >>confdefs.h <<_ACEOF
  2316. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2317. _ACEOF
  2318. cat >>confdefs.h <<_ACEOF
  2319. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2320. _ACEOF
  2321. cat >>confdefs.h <<_ACEOF
  2322. #define PACKAGE_STRING "$PACKAGE_STRING"
  2323. _ACEOF
  2324. cat >>confdefs.h <<_ACEOF
  2325. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2326. _ACEOF
  2327. cat >>confdefs.h <<_ACEOF
  2328. #define PACKAGE_URL "$PACKAGE_URL"
  2329. _ACEOF
  2330. # Let the site file select an alternate cache file if it wants to.
  2331. # Prefer an explicitly selected file to automatically selected ones.
  2332. ac_site_file1=NONE
  2333. ac_site_file2=NONE
  2334. if test -n "$CONFIG_SITE"; then
  2335. # We do not want a PATH search for config.site.
  2336. case $CONFIG_SITE in #((
  2337. -*) ac_site_file1=./$CONFIG_SITE;;
  2338. */*) ac_site_file1=$CONFIG_SITE;;
  2339. *) ac_site_file1=./$CONFIG_SITE;;
  2340. esac
  2341. elif test "x$prefix" != xNONE; then
  2342. ac_site_file1=$prefix/share/config.site
  2343. ac_site_file2=$prefix/etc/config.site
  2344. else
  2345. ac_site_file1=$ac_default_prefix/share/config.site
  2346. ac_site_file2=$ac_default_prefix/etc/config.site
  2347. fi
  2348. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2349. do
  2350. test "x$ac_site_file" = xNONE && continue
  2351. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2353. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2354. sed 's/^/| /' "$ac_site_file" >&5
  2355. . "$ac_site_file" \
  2356. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2357. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2358. as_fn_error $? "failed to load site script $ac_site_file
  2359. See \`config.log' for more details" "$LINENO" 5; }
  2360. fi
  2361. done
  2362. if test -r "$cache_file"; then
  2363. # Some versions of bash will fail to source /dev/null (special files
  2364. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2365. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2367. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2368. case $cache_file in
  2369. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2370. *) . "./$cache_file";;
  2371. esac
  2372. fi
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2375. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2376. >$cache_file
  2377. fi
  2378. # Check that the precious variables saved in the cache have kept the same
  2379. # value.
  2380. ac_cache_corrupted=false
  2381. for ac_var in $ac_precious_vars; do
  2382. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2383. eval ac_new_set=\$ac_env_${ac_var}_set
  2384. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2385. eval ac_new_val=\$ac_env_${ac_var}_value
  2386. case $ac_old_set,$ac_new_set in
  2387. set,)
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2389. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2390. ac_cache_corrupted=: ;;
  2391. ,set)
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2394. ac_cache_corrupted=: ;;
  2395. ,);;
  2396. *)
  2397. if test "x$ac_old_val" != "x$ac_new_val"; then
  2398. # differences in whitespace do not lead to failure.
  2399. ac_old_val_w=`echo x $ac_old_val`
  2400. ac_new_val_w=`echo x $ac_new_val`
  2401. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2403. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2404. ac_cache_corrupted=:
  2405. else
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2407. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2408. eval $ac_var=\$ac_old_val
  2409. fi
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2411. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2413. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2414. fi;;
  2415. esac
  2416. # Pass precious variables to config.status.
  2417. if test "$ac_new_set" = set; then
  2418. case $ac_new_val in
  2419. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2420. *) ac_arg=$ac_var=$ac_new_val ;;
  2421. esac
  2422. case " $ac_configure_args " in
  2423. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2424. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2425. esac
  2426. fi
  2427. done
  2428. if $ac_cache_corrupted; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2432. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2433. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2434. fi
  2435. ## -------------------- ##
  2436. ## Main body of script. ##
  2437. ## -------------------- ##
  2438. ac_ext=c
  2439. ac_cpp='$CPP $CPPFLAGS'
  2440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2443. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2444. ac_aux_dir=
  2445. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2446. if test -f "$ac_dir/install-sh"; then
  2447. ac_aux_dir=$ac_dir
  2448. ac_install_sh="$ac_aux_dir/install-sh -c"
  2449. break
  2450. elif test -f "$ac_dir/install.sh"; then
  2451. ac_aux_dir=$ac_dir
  2452. ac_install_sh="$ac_aux_dir/install.sh -c"
  2453. break
  2454. elif test -f "$ac_dir/shtool"; then
  2455. ac_aux_dir=$ac_dir
  2456. ac_install_sh="$ac_aux_dir/shtool install -c"
  2457. break
  2458. fi
  2459. done
  2460. if test -z "$ac_aux_dir"; then
  2461. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2462. fi
  2463. # These three variables are undocumented and unsupported,
  2464. # and are intended to be withdrawn in a future Autoconf release.
  2465. # They can cause serious problems if a builder's source tree is in a directory
  2466. # whose full name contains unusual characters.
  2467. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2468. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2469. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2470. orig_CFLAGS="$CFLAGS"
  2471. #
  2472. # Making releases:
  2473. # Edit include/SDL_version.h and change the version, then:
  2474. # SDL_MICRO_VERSION += 1;
  2475. # SDL_INTERFACE_AGE += 1;
  2476. # SDL_BINARY_AGE += 1;
  2477. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2478. # if backwards compatibility has been broken,
  2479. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2480. #
  2481. SDL_MAJOR_VERSION=2
  2482. SDL_MINOR_VERSION=0
  2483. SDL_MICRO_VERSION=6
  2484. SDL_INTERFACE_AGE=0
  2485. SDL_BINARY_AGE=6
  2486. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2487. # libtool versioning
  2488. case `pwd` in
  2489. *\ * | *\ *)
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2491. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2492. esac
  2493. macro_version='2.4.2'
  2494. macro_revision='1.3337'
  2495. ltmain="$ac_aux_dir/ltmain.sh"
  2496. # Make sure we can run config.sub.
  2497. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2498. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2500. $as_echo_n "checking build system type... " >&6; }
  2501. if ${ac_cv_build+:} false; then :
  2502. $as_echo_n "(cached) " >&6
  2503. else
  2504. ac_build_alias=$build_alias
  2505. test "x$ac_build_alias" = x &&
  2506. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2507. test "x$ac_build_alias" = x &&
  2508. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2509. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2510. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2511. fi
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2513. $as_echo "$ac_cv_build" >&6; }
  2514. case $ac_cv_build in
  2515. *-*-*) ;;
  2516. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2517. esac
  2518. build=$ac_cv_build
  2519. ac_save_IFS=$IFS; IFS='-'
  2520. set x $ac_cv_build
  2521. shift
  2522. build_cpu=$1
  2523. build_vendor=$2
  2524. shift; shift
  2525. # Remember, the first character of IFS is used to create $*,
  2526. # except with old shells:
  2527. build_os=$*
  2528. IFS=$ac_save_IFS
  2529. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2531. $as_echo_n "checking host system type... " >&6; }
  2532. if ${ac_cv_host+:} false; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test "x$host_alias" = x; then
  2536. ac_cv_host=$ac_cv_build
  2537. else
  2538. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2539. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2540. fi
  2541. fi
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2543. $as_echo "$ac_cv_host" >&6; }
  2544. case $ac_cv_host in
  2545. *-*-*) ;;
  2546. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2547. esac
  2548. host=$ac_cv_host
  2549. ac_save_IFS=$IFS; IFS='-'
  2550. set x $ac_cv_host
  2551. shift
  2552. host_cpu=$1
  2553. host_vendor=$2
  2554. shift; shift
  2555. # Remember, the first character of IFS is used to create $*,
  2556. # except with old shells:
  2557. host_os=$*
  2558. IFS=$ac_save_IFS
  2559. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2560. # Backslashify metacharacters that are still active within
  2561. # double-quoted strings.
  2562. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2563. # Same as above, but do not quote variable references.
  2564. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2565. # Sed substitution to delay expansion of an escaped shell variable in a
  2566. # double_quote_subst'ed string.
  2567. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2568. # Sed substitution to delay expansion of an escaped single quote.
  2569. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2570. # Sed substitution to avoid accidental globbing in evaled expressions
  2571. no_glob_subst='s/\*/\\\*/g'
  2572. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2573. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2574. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2576. $as_echo_n "checking how to print strings... " >&6; }
  2577. # Test print first, because it will be a builtin if present.
  2578. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2579. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2580. ECHO='print -r --'
  2581. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2582. ECHO='printf %s\n'
  2583. else
  2584. # Use this function as a fallback that always works.
  2585. func_fallback_echo ()
  2586. {
  2587. eval 'cat <<_LTECHO_EOF
  2588. $1
  2589. _LTECHO_EOF'
  2590. }
  2591. ECHO='func_fallback_echo'
  2592. fi
  2593. # func_echo_all arg...
  2594. # Invoke $ECHO with all args, space-separated.
  2595. func_echo_all ()
  2596. {
  2597. $ECHO ""
  2598. }
  2599. case "$ECHO" in
  2600. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2601. $as_echo "printf" >&6; } ;;
  2602. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2603. $as_echo "print -r" >&6; } ;;
  2604. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2605. $as_echo "cat" >&6; } ;;
  2606. esac
  2607. ac_ext=c
  2608. ac_cpp='$CPP $CPPFLAGS'
  2609. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2610. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2611. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2612. if test -n "$ac_tool_prefix"; then
  2613. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2614. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2616. $as_echo_n "checking for $ac_word... " >&6; }
  2617. if ${ac_cv_prog_CC+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. if test -n "$CC"; then
  2621. ac_cv_prog_CC="$CC" # Let the user override the test.
  2622. else
  2623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2624. for as_dir in $PATH
  2625. do
  2626. IFS=$as_save_IFS
  2627. test -z "$as_dir" && as_dir=.
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2630. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. fi
  2638. fi
  2639. CC=$ac_cv_prog_CC
  2640. if test -n "$CC"; then
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2642. $as_echo "$CC" >&6; }
  2643. else
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2645. $as_echo "no" >&6; }
  2646. fi
  2647. fi
  2648. if test -z "$ac_cv_prog_CC"; then
  2649. ac_ct_CC=$CC
  2650. # Extract the first word of "gcc", so it can be a program name with args.
  2651. set dummy gcc; ac_word=$2
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2653. $as_echo_n "checking for $ac_word... " >&6; }
  2654. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2655. $as_echo_n "(cached) " >&6
  2656. else
  2657. if test -n "$ac_ct_CC"; then
  2658. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2659. else
  2660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2661. for as_dir in $PATH
  2662. do
  2663. IFS=$as_save_IFS
  2664. test -z "$as_dir" && as_dir=.
  2665. for ac_exec_ext in '' $ac_executable_extensions; do
  2666. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2667. ac_cv_prog_ac_ct_CC="gcc"
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2669. break 2
  2670. fi
  2671. done
  2672. done
  2673. IFS=$as_save_IFS
  2674. fi
  2675. fi
  2676. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2677. if test -n "$ac_ct_CC"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2679. $as_echo "$ac_ct_CC" >&6; }
  2680. else
  2681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2682. $as_echo "no" >&6; }
  2683. fi
  2684. if test "x$ac_ct_CC" = x; then
  2685. CC=""
  2686. else
  2687. case $cross_compiling:$ac_tool_warned in
  2688. yes:)
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2690. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2691. ac_tool_warned=yes ;;
  2692. esac
  2693. CC=$ac_ct_CC
  2694. fi
  2695. else
  2696. CC="$ac_cv_prog_CC"
  2697. fi
  2698. if test -z "$CC"; then
  2699. if test -n "$ac_tool_prefix"; then
  2700. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2701. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2703. $as_echo_n "checking for $ac_word... " >&6; }
  2704. if ${ac_cv_prog_CC+:} false; then :
  2705. $as_echo_n "(cached) " >&6
  2706. else
  2707. if test -n "$CC"; then
  2708. ac_cv_prog_CC="$CC" # Let the user override the test.
  2709. else
  2710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2711. for as_dir in $PATH
  2712. do
  2713. IFS=$as_save_IFS
  2714. test -z "$as_dir" && as_dir=.
  2715. for ac_exec_ext in '' $ac_executable_extensions; do
  2716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2717. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2719. break 2
  2720. fi
  2721. done
  2722. done
  2723. IFS=$as_save_IFS
  2724. fi
  2725. fi
  2726. CC=$ac_cv_prog_CC
  2727. if test -n "$CC"; then
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2729. $as_echo "$CC" >&6; }
  2730. else
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2732. $as_echo "no" >&6; }
  2733. fi
  2734. fi
  2735. fi
  2736. if test -z "$CC"; then
  2737. # Extract the first word of "cc", so it can be a program name with args.
  2738. set dummy cc; ac_word=$2
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2740. $as_echo_n "checking for $ac_word... " >&6; }
  2741. if ${ac_cv_prog_CC+:} false; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if test -n "$CC"; then
  2745. ac_cv_prog_CC="$CC" # Let the user override the test.
  2746. else
  2747. ac_prog_rejected=no
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2755. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2756. ac_prog_rejected=yes
  2757. continue
  2758. fi
  2759. ac_cv_prog_CC="cc"
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2761. break 2
  2762. fi
  2763. done
  2764. done
  2765. IFS=$as_save_IFS
  2766. if test $ac_prog_rejected = yes; then
  2767. # We found a bogon in the path, so make sure we never use it.
  2768. set dummy $ac_cv_prog_CC
  2769. shift
  2770. if test $# != 0; then
  2771. # We chose a different compiler from the bogus one.
  2772. # However, it has the same basename, so the bogon will be chosen
  2773. # first if we set CC to just the basename; use the full file name.
  2774. shift
  2775. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2776. fi
  2777. fi
  2778. fi
  2779. fi
  2780. CC=$ac_cv_prog_CC
  2781. if test -n "$CC"; then
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2783. $as_echo "$CC" >&6; }
  2784. else
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2786. $as_echo "no" >&6; }
  2787. fi
  2788. fi
  2789. if test -z "$CC"; then
  2790. if test -n "$ac_tool_prefix"; then
  2791. for ac_prog in cl.exe
  2792. do
  2793. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2794. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if ${ac_cv_prog_CC+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$CC"; then
  2801. ac_cv_prog_CC="$CC" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2810. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. CC=$ac_cv_prog_CC
  2820. if test -n "$CC"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2822. $as_echo "$CC" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. test -n "$CC" && break
  2828. done
  2829. fi
  2830. if test -z "$CC"; then
  2831. ac_ct_CC=$CC
  2832. for ac_prog in cl.exe
  2833. do
  2834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2835. set dummy $ac_prog; ac_word=$2
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2837. $as_echo_n "checking for $ac_word... " >&6; }
  2838. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2839. $as_echo_n "(cached) " >&6
  2840. else
  2841. if test -n "$ac_ct_CC"; then
  2842. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2843. else
  2844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2845. for as_dir in $PATH
  2846. do
  2847. IFS=$as_save_IFS
  2848. test -z "$as_dir" && as_dir=.
  2849. for ac_exec_ext in '' $ac_executable_extensions; do
  2850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2851. ac_cv_prog_ac_ct_CC="$ac_prog"
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2853. break 2
  2854. fi
  2855. done
  2856. done
  2857. IFS=$as_save_IFS
  2858. fi
  2859. fi
  2860. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2861. if test -n "$ac_ct_CC"; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2863. $as_echo "$ac_ct_CC" >&6; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2866. $as_echo "no" >&6; }
  2867. fi
  2868. test -n "$ac_ct_CC" && break
  2869. done
  2870. if test "x$ac_ct_CC" = x; then
  2871. CC=""
  2872. else
  2873. case $cross_compiling:$ac_tool_warned in
  2874. yes:)
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2876. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2877. ac_tool_warned=yes ;;
  2878. esac
  2879. CC=$ac_ct_CC
  2880. fi
  2881. fi
  2882. fi
  2883. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2884. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2885. as_fn_error $? "no acceptable C compiler found in \$PATH
  2886. See \`config.log' for more details" "$LINENO" 5; }
  2887. # Provide some information about the compiler.
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2889. set X $ac_compile
  2890. ac_compiler=$2
  2891. for ac_option in --version -v -V -qversion; do
  2892. { { ac_try="$ac_compiler $ac_option >&5"
  2893. case "(($ac_try" in
  2894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2895. *) ac_try_echo=$ac_try;;
  2896. esac
  2897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2898. $as_echo "$ac_try_echo"; } >&5
  2899. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2900. ac_status=$?
  2901. if test -s conftest.err; then
  2902. sed '10a\
  2903. ... rest of stderr output deleted ...
  2904. 10q' conftest.err >conftest.er1
  2905. cat conftest.er1 >&5
  2906. fi
  2907. rm -f conftest.er1 conftest.err
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2909. test $ac_status = 0; }
  2910. done
  2911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2912. /* end confdefs.h. */
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. ac_clean_files_save=$ac_clean_files
  2921. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2922. # Try to create an executable without -o first, disregard a.out.
  2923. # It will help us diagnose broken compilers, and finding out an intuition
  2924. # of exeext.
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2926. $as_echo_n "checking whether the C compiler works... " >&6; }
  2927. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2928. # The possible output files:
  2929. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2930. ac_rmfiles=
  2931. for ac_file in $ac_files
  2932. do
  2933. case $ac_file in
  2934. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2935. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2936. esac
  2937. done
  2938. rm -f $ac_rmfiles
  2939. if { { ac_try="$ac_link_default"
  2940. case "(($ac_try" in
  2941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2942. *) ac_try_echo=$ac_try;;
  2943. esac
  2944. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2945. $as_echo "$ac_try_echo"; } >&5
  2946. (eval "$ac_link_default") 2>&5
  2947. ac_status=$?
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2949. test $ac_status = 0; }; then :
  2950. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2951. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2952. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2953. # so that the user can short-circuit this test for compilers unknown to
  2954. # Autoconf.
  2955. for ac_file in $ac_files ''
  2956. do
  2957. test -f "$ac_file" || continue
  2958. case $ac_file in
  2959. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2960. ;;
  2961. [ab].out )
  2962. # We found the default executable, but exeext='' is most
  2963. # certainly right.
  2964. break;;
  2965. *.* )
  2966. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2967. then :; else
  2968. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2969. fi
  2970. # We set ac_cv_exeext here because the later test for it is not
  2971. # safe: cross compilers may not add the suffix if given an `-o'
  2972. # argument, so we may need to know it at that point already.
  2973. # Even if this section looks crufty: it has the advantage of
  2974. # actually working.
  2975. break;;
  2976. * )
  2977. break;;
  2978. esac
  2979. done
  2980. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2981. else
  2982. ac_file=''
  2983. fi
  2984. if test -z "$ac_file"; then :
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2986. $as_echo "no" >&6; }
  2987. $as_echo "$as_me: failed program was:" >&5
  2988. sed 's/^/| /' conftest.$ac_ext >&5
  2989. { { $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 77 "C compiler cannot create executables
  2992. See \`config.log' for more details" "$LINENO" 5; }
  2993. else
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2995. $as_echo "yes" >&6; }
  2996. fi
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2998. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3000. $as_echo "$ac_file" >&6; }
  3001. ac_exeext=$ac_cv_exeext
  3002. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3003. ac_clean_files=$ac_clean_files_save
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3005. $as_echo_n "checking for suffix of executables... " >&6; }
  3006. if { { ac_try="$ac_link"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3012. $as_echo "$ac_try_echo"; } >&5
  3013. (eval "$ac_link") 2>&5
  3014. ac_status=$?
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3016. test $ac_status = 0; }; then :
  3017. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3018. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3019. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3020. # `rm'.
  3021. for ac_file in conftest.exe conftest conftest.*; do
  3022. test -f "$ac_file" || continue
  3023. case $ac_file in
  3024. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3025. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3026. break;;
  3027. * ) break;;
  3028. esac
  3029. done
  3030. else
  3031. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3032. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3033. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3034. See \`config.log' for more details" "$LINENO" 5; }
  3035. fi
  3036. rm -f conftest conftest$ac_cv_exeext
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3038. $as_echo "$ac_cv_exeext" >&6; }
  3039. rm -f conftest.$ac_ext
  3040. EXEEXT=$ac_cv_exeext
  3041. ac_exeext=$EXEEXT
  3042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3043. /* end confdefs.h. */
  3044. #include <stdio.h>
  3045. int
  3046. main ()
  3047. {
  3048. FILE *f = fopen ("conftest.out", "w");
  3049. return ferror (f) || fclose (f) != 0;
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. ac_clean_files="$ac_clean_files conftest.out"
  3055. # Check that the compiler produces executables we can run. If not, either
  3056. # the compiler is broken, or we cross compile.
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3058. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3059. if test "$cross_compiling" != yes; then
  3060. { { ac_try="$ac_link"
  3061. case "(($ac_try" in
  3062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063. *) ac_try_echo=$ac_try;;
  3064. esac
  3065. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3066. $as_echo "$ac_try_echo"; } >&5
  3067. (eval "$ac_link") 2>&5
  3068. ac_status=$?
  3069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3070. test $ac_status = 0; }
  3071. if { ac_try='./conftest$ac_cv_exeext'
  3072. { { case "(($ac_try" in
  3073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3074. *) ac_try_echo=$ac_try;;
  3075. esac
  3076. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3077. $as_echo "$ac_try_echo"; } >&5
  3078. (eval "$ac_try") 2>&5
  3079. ac_status=$?
  3080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3081. test $ac_status = 0; }; }; then
  3082. cross_compiling=no
  3083. else
  3084. if test "$cross_compiling" = maybe; then
  3085. cross_compiling=yes
  3086. else
  3087. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3088. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3089. as_fn_error $? "cannot run C compiled programs.
  3090. If you meant to cross compile, use \`--host'.
  3091. See \`config.log' for more details" "$LINENO" 5; }
  3092. fi
  3093. fi
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3096. $as_echo "$cross_compiling" >&6; }
  3097. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3098. ac_clean_files=$ac_clean_files_save
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3100. $as_echo_n "checking for suffix of object files... " >&6; }
  3101. if ${ac_cv_objext+:} false; then :
  3102. $as_echo_n "(cached) " >&6
  3103. else
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. rm -f conftest.o conftest.obj
  3114. if { { ac_try="$ac_compile"
  3115. case "(($ac_try" in
  3116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3117. *) ac_try_echo=$ac_try;;
  3118. esac
  3119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3120. $as_echo "$ac_try_echo"; } >&5
  3121. (eval "$ac_compile") 2>&5
  3122. ac_status=$?
  3123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3124. test $ac_status = 0; }; then :
  3125. for ac_file in conftest.o conftest.obj conftest.*; do
  3126. test -f "$ac_file" || continue;
  3127. case $ac_file in
  3128. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3129. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3130. break;;
  3131. esac
  3132. done
  3133. else
  3134. $as_echo "$as_me: failed program was:" >&5
  3135. sed 's/^/| /' conftest.$ac_ext >&5
  3136. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3137. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3138. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3139. See \`config.log' for more details" "$LINENO" 5; }
  3140. fi
  3141. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3142. fi
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3144. $as_echo "$ac_cv_objext" >&6; }
  3145. OBJEXT=$ac_cv_objext
  3146. ac_objext=$OBJEXT
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3148. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3149. if ${ac_cv_c_compiler_gnu+:} false; then :
  3150. $as_echo_n "(cached) " >&6
  3151. else
  3152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. int
  3155. main ()
  3156. {
  3157. #ifndef __GNUC__
  3158. choke me
  3159. #endif
  3160. ;
  3161. return 0;
  3162. }
  3163. _ACEOF
  3164. if ac_fn_c_try_compile "$LINENO"; then :
  3165. ac_compiler_gnu=yes
  3166. else
  3167. ac_compiler_gnu=no
  3168. fi
  3169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3170. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3171. fi
  3172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3173. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3174. if test $ac_compiler_gnu = yes; then
  3175. GCC=yes
  3176. else
  3177. GCC=
  3178. fi
  3179. ac_test_CFLAGS=${CFLAGS+set}
  3180. ac_save_CFLAGS=$CFLAGS
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3182. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3183. if ${ac_cv_prog_cc_g+:} false; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. ac_save_c_werror_flag=$ac_c_werror_flag
  3187. ac_c_werror_flag=yes
  3188. ac_cv_prog_cc_g=no
  3189. CFLAGS="-g"
  3190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3191. /* end confdefs.h. */
  3192. int
  3193. main ()
  3194. {
  3195. ;
  3196. return 0;
  3197. }
  3198. _ACEOF
  3199. if ac_fn_c_try_compile "$LINENO"; then :
  3200. ac_cv_prog_cc_g=yes
  3201. else
  3202. CFLAGS=""
  3203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3204. /* end confdefs.h. */
  3205. int
  3206. main ()
  3207. {
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. if ac_fn_c_try_compile "$LINENO"; then :
  3213. else
  3214. ac_c_werror_flag=$ac_save_c_werror_flag
  3215. CFLAGS="-g"
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. if ac_fn_c_try_compile "$LINENO"; then :
  3226. ac_cv_prog_cc_g=yes
  3227. fi
  3228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. ac_c_werror_flag=$ac_save_c_werror_flag
  3234. fi
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3236. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3237. if test "$ac_test_CFLAGS" = set; then
  3238. CFLAGS=$ac_save_CFLAGS
  3239. elif test $ac_cv_prog_cc_g = yes; then
  3240. if test "$GCC" = yes; then
  3241. CFLAGS="-g -O2"
  3242. else
  3243. CFLAGS="-g"
  3244. fi
  3245. else
  3246. if test "$GCC" = yes; then
  3247. CFLAGS="-O2"
  3248. else
  3249. CFLAGS=
  3250. fi
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3253. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3254. if ${ac_cv_prog_cc_c89+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. ac_cv_prog_cc_c89=no
  3258. ac_save_CC=$CC
  3259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3260. /* end confdefs.h. */
  3261. #include <stdarg.h>
  3262. #include <stdio.h>
  3263. struct stat;
  3264. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3265. struct buf { int x; };
  3266. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3267. static char *e (p, i)
  3268. char **p;
  3269. int i;
  3270. {
  3271. return p[i];
  3272. }
  3273. static char *f (char * (*g) (char **, int), char **p, ...)
  3274. {
  3275. char *s;
  3276. va_list v;
  3277. va_start (v,p);
  3278. s = g (p, va_arg (v,int));
  3279. va_end (v);
  3280. return s;
  3281. }
  3282. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3283. function prototypes and stuff, but not '\xHH' hex character constants.
  3284. These don't provoke an error unfortunately, instead are silently treated
  3285. as 'x'. The following induces an error, until -std is added to get
  3286. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3287. array size at least. It's necessary to write '\x00'==0 to get something
  3288. that's true only with -std. */
  3289. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3290. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3291. inside strings and character constants. */
  3292. #define FOO(x) 'x'
  3293. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3294. int test (int i, double x);
  3295. struct s1 {int (*f) (int a);};
  3296. struct s2 {int (*f) (double a);};
  3297. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3298. int argc;
  3299. char **argv;
  3300. int
  3301. main ()
  3302. {
  3303. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3309. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3310. do
  3311. CC="$ac_save_CC $ac_arg"
  3312. if ac_fn_c_try_compile "$LINENO"; then :
  3313. ac_cv_prog_cc_c89=$ac_arg
  3314. fi
  3315. rm -f core conftest.err conftest.$ac_objext
  3316. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3317. done
  3318. rm -f conftest.$ac_ext
  3319. CC=$ac_save_CC
  3320. fi
  3321. # AC_CACHE_VAL
  3322. case "x$ac_cv_prog_cc_c89" in
  3323. x)
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3325. $as_echo "none needed" >&6; } ;;
  3326. xno)
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3328. $as_echo "unsupported" >&6; } ;;
  3329. *)
  3330. CC="$CC $ac_cv_prog_cc_c89"
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3332. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3333. esac
  3334. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3335. fi
  3336. ac_ext=c
  3337. ac_cpp='$CPP $CPPFLAGS'
  3338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3342. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3343. if ${ac_cv_path_SED+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3347. for ac_i in 1 2 3 4 5 6 7; do
  3348. ac_script="$ac_script$as_nl$ac_script"
  3349. done
  3350. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3351. { ac_script=; unset ac_script;}
  3352. if test -z "$SED"; then
  3353. ac_path_SED_found=false
  3354. # Loop through the user's path and test for each of PROGNAME-LIST
  3355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. for as_dir in $PATH
  3357. do
  3358. IFS=$as_save_IFS
  3359. test -z "$as_dir" && as_dir=.
  3360. for ac_prog in sed gsed; do
  3361. for ac_exec_ext in '' $ac_executable_extensions; do
  3362. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3363. as_fn_executable_p "$ac_path_SED" || continue
  3364. # Check for GNU ac_path_SED and select it if it is found.
  3365. # Check for GNU $ac_path_SED
  3366. case `"$ac_path_SED" --version 2>&1` in
  3367. *GNU*)
  3368. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3369. *)
  3370. ac_count=0
  3371. $as_echo_n 0123456789 >"conftest.in"
  3372. while :
  3373. do
  3374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3375. mv "conftest.tmp" "conftest.in"
  3376. cp "conftest.in" "conftest.nl"
  3377. $as_echo '' >> "conftest.nl"
  3378. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3381. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3382. # Best one so far, save it but keep looking for a better one
  3383. ac_cv_path_SED="$ac_path_SED"
  3384. ac_path_SED_max=$ac_count
  3385. fi
  3386. # 10*(2^10) chars as input seems more than enough
  3387. test $ac_count -gt 10 && break
  3388. done
  3389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3390. esac
  3391. $ac_path_SED_found && break 3
  3392. done
  3393. done
  3394. done
  3395. IFS=$as_save_IFS
  3396. if test -z "$ac_cv_path_SED"; then
  3397. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3398. fi
  3399. else
  3400. ac_cv_path_SED=$SED
  3401. fi
  3402. fi
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3404. $as_echo "$ac_cv_path_SED" >&6; }
  3405. SED="$ac_cv_path_SED"
  3406. rm -f conftest.sed
  3407. test -z "$SED" && SED=sed
  3408. Xsed="$SED -e 1s/^X//"
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3410. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3411. if ${ac_cv_path_GREP+:} false; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. if test -z "$GREP"; then
  3415. ac_path_GREP_found=false
  3416. # Loop through the user's path and test for each of PROGNAME-LIST
  3417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3418. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3419. do
  3420. IFS=$as_save_IFS
  3421. test -z "$as_dir" && as_dir=.
  3422. for ac_prog in grep ggrep; do
  3423. for ac_exec_ext in '' $ac_executable_extensions; do
  3424. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3425. as_fn_executable_p "$ac_path_GREP" || continue
  3426. # Check for GNU ac_path_GREP and select it if it is found.
  3427. # Check for GNU $ac_path_GREP
  3428. case `"$ac_path_GREP" --version 2>&1` in
  3429. *GNU*)
  3430. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3431. *)
  3432. ac_count=0
  3433. $as_echo_n 0123456789 >"conftest.in"
  3434. while :
  3435. do
  3436. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3437. mv "conftest.tmp" "conftest.in"
  3438. cp "conftest.in" "conftest.nl"
  3439. $as_echo 'GREP' >> "conftest.nl"
  3440. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3441. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3442. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3443. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3444. # Best one so far, save it but keep looking for a better one
  3445. ac_cv_path_GREP="$ac_path_GREP"
  3446. ac_path_GREP_max=$ac_count
  3447. fi
  3448. # 10*(2^10) chars as input seems more than enough
  3449. test $ac_count -gt 10 && break
  3450. done
  3451. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3452. esac
  3453. $ac_path_GREP_found && break 3
  3454. done
  3455. done
  3456. done
  3457. IFS=$as_save_IFS
  3458. if test -z "$ac_cv_path_GREP"; then
  3459. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3460. fi
  3461. else
  3462. ac_cv_path_GREP=$GREP
  3463. fi
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3466. $as_echo "$ac_cv_path_GREP" >&6; }
  3467. GREP="$ac_cv_path_GREP"
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3469. $as_echo_n "checking for egrep... " >&6; }
  3470. if ${ac_cv_path_EGREP+:} false; then :
  3471. $as_echo_n "(cached) " >&6
  3472. else
  3473. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3474. then ac_cv_path_EGREP="$GREP -E"
  3475. else
  3476. if test -z "$EGREP"; then
  3477. ac_path_EGREP_found=false
  3478. # Loop through the user's path and test for each of PROGNAME-LIST
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3481. do
  3482. IFS=$as_save_IFS
  3483. test -z "$as_dir" && as_dir=.
  3484. for ac_prog in egrep; do
  3485. for ac_exec_ext in '' $ac_executable_extensions; do
  3486. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3487. as_fn_executable_p "$ac_path_EGREP" || continue
  3488. # Check for GNU ac_path_EGREP and select it if it is found.
  3489. # Check for GNU $ac_path_EGREP
  3490. case `"$ac_path_EGREP" --version 2>&1` in
  3491. *GNU*)
  3492. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3493. *)
  3494. ac_count=0
  3495. $as_echo_n 0123456789 >"conftest.in"
  3496. while :
  3497. do
  3498. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3499. mv "conftest.tmp" "conftest.in"
  3500. cp "conftest.in" "conftest.nl"
  3501. $as_echo 'EGREP' >> "conftest.nl"
  3502. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3503. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3504. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3505. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3506. # Best one so far, save it but keep looking for a better one
  3507. ac_cv_path_EGREP="$ac_path_EGREP"
  3508. ac_path_EGREP_max=$ac_count
  3509. fi
  3510. # 10*(2^10) chars as input seems more than enough
  3511. test $ac_count -gt 10 && break
  3512. done
  3513. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3514. esac
  3515. $ac_path_EGREP_found && break 3
  3516. done
  3517. done
  3518. done
  3519. IFS=$as_save_IFS
  3520. if test -z "$ac_cv_path_EGREP"; then
  3521. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3522. fi
  3523. else
  3524. ac_cv_path_EGREP=$EGREP
  3525. fi
  3526. fi
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3529. $as_echo "$ac_cv_path_EGREP" >&6; }
  3530. EGREP="$ac_cv_path_EGREP"
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3532. $as_echo_n "checking for fgrep... " >&6; }
  3533. if ${ac_cv_path_FGREP+:} false; then :
  3534. $as_echo_n "(cached) " >&6
  3535. else
  3536. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3537. then ac_cv_path_FGREP="$GREP -F"
  3538. else
  3539. if test -z "$FGREP"; then
  3540. ac_path_FGREP_found=false
  3541. # Loop through the user's path and test for each of PROGNAME-LIST
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3544. do
  3545. IFS=$as_save_IFS
  3546. test -z "$as_dir" && as_dir=.
  3547. for ac_prog in fgrep; do
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3550. as_fn_executable_p "$ac_path_FGREP" || continue
  3551. # Check for GNU ac_path_FGREP and select it if it is found.
  3552. # Check for GNU $ac_path_FGREP
  3553. case `"$ac_path_FGREP" --version 2>&1` in
  3554. *GNU*)
  3555. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3556. *)
  3557. ac_count=0
  3558. $as_echo_n 0123456789 >"conftest.in"
  3559. while :
  3560. do
  3561. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3562. mv "conftest.tmp" "conftest.in"
  3563. cp "conftest.in" "conftest.nl"
  3564. $as_echo 'FGREP' >> "conftest.nl"
  3565. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3566. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3567. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3568. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3569. # Best one so far, save it but keep looking for a better one
  3570. ac_cv_path_FGREP="$ac_path_FGREP"
  3571. ac_path_FGREP_max=$ac_count
  3572. fi
  3573. # 10*(2^10) chars as input seems more than enough
  3574. test $ac_count -gt 10 && break
  3575. done
  3576. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3577. esac
  3578. $ac_path_FGREP_found && break 3
  3579. done
  3580. done
  3581. done
  3582. IFS=$as_save_IFS
  3583. if test -z "$ac_cv_path_FGREP"; then
  3584. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3585. fi
  3586. else
  3587. ac_cv_path_FGREP=$FGREP
  3588. fi
  3589. fi
  3590. fi
  3591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3592. $as_echo "$ac_cv_path_FGREP" >&6; }
  3593. FGREP="$ac_cv_path_FGREP"
  3594. test -z "$GREP" && GREP=grep
  3595. # Check whether --with-gnu-ld was given.
  3596. if test "${with_gnu_ld+set}" = set; then :
  3597. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3598. else
  3599. with_gnu_ld=no
  3600. fi
  3601. ac_prog=ld
  3602. if test "$GCC" = yes; then
  3603. # Check if gcc -print-prog-name=ld gives a path.
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3605. $as_echo_n "checking for ld used by $CC... " >&6; }
  3606. case $host in
  3607. *-*-mingw*)
  3608. # gcc leaves a trailing carriage return which upsets mingw
  3609. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3610. *)
  3611. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3612. esac
  3613. case $ac_prog in
  3614. # Accept absolute paths.
  3615. [\\/]* | ?:[\\/]*)
  3616. re_direlt='/[^/][^/]*/\.\./'
  3617. # Canonicalize the pathname of ld
  3618. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3619. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3620. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3621. done
  3622. test -z "$LD" && LD="$ac_prog"
  3623. ;;
  3624. "")
  3625. # If it fails, then pretend we aren't using GCC.
  3626. ac_prog=ld
  3627. ;;
  3628. *)
  3629. # If it is relative, then search for the first ld in PATH.
  3630. with_gnu_ld=unknown
  3631. ;;
  3632. esac
  3633. elif test "$with_gnu_ld" = yes; then
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3635. $as_echo_n "checking for GNU ld... " >&6; }
  3636. else
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3638. $as_echo_n "checking for non-GNU ld... " >&6; }
  3639. fi
  3640. if ${lt_cv_path_LD+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. if test -z "$LD"; then
  3644. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3645. for ac_dir in $PATH; do
  3646. IFS="$lt_save_ifs"
  3647. test -z "$ac_dir" && ac_dir=.
  3648. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3649. lt_cv_path_LD="$ac_dir/$ac_prog"
  3650. # Check to see if the program is GNU ld. I'd rather use --version,
  3651. # but apparently some variants of GNU ld only accept -v.
  3652. # Break only if it was the GNU/non-GNU ld that we prefer.
  3653. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3654. *GNU* | *'with BFD'*)
  3655. test "$with_gnu_ld" != no && break
  3656. ;;
  3657. *)
  3658. test "$with_gnu_ld" != yes && break
  3659. ;;
  3660. esac
  3661. fi
  3662. done
  3663. IFS="$lt_save_ifs"
  3664. else
  3665. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3666. fi
  3667. fi
  3668. LD="$lt_cv_path_LD"
  3669. if test -n "$LD"; then
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3671. $as_echo "$LD" >&6; }
  3672. else
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3674. $as_echo "no" >&6; }
  3675. fi
  3676. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3678. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3679. if ${lt_cv_prog_gnu_ld+:} false; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3683. case `$LD -v 2>&1 </dev/null` in
  3684. *GNU* | *'with BFD'*)
  3685. lt_cv_prog_gnu_ld=yes
  3686. ;;
  3687. *)
  3688. lt_cv_prog_gnu_ld=no
  3689. ;;
  3690. esac
  3691. fi
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3693. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3694. with_gnu_ld=$lt_cv_prog_gnu_ld
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3696. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3697. if ${lt_cv_path_NM+:} false; then :
  3698. $as_echo_n "(cached) " >&6
  3699. else
  3700. if test -n "$NM"; then
  3701. # Let the user override the test.
  3702. lt_cv_path_NM="$NM"
  3703. else
  3704. lt_nm_to_check="${ac_tool_prefix}nm"
  3705. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3706. lt_nm_to_check="$lt_nm_to_check nm"
  3707. fi
  3708. for lt_tmp_nm in $lt_nm_to_check; do
  3709. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3710. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3711. IFS="$lt_save_ifs"
  3712. test -z "$ac_dir" && ac_dir=.
  3713. tmp_nm="$ac_dir/$lt_tmp_nm"
  3714. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3715. # Check to see if the nm accepts a BSD-compat flag.
  3716. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3717. # nm: unknown option "B" ignored
  3718. # Tru64's nm complains that /dev/null is an invalid object file
  3719. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3720. */dev/null* | *'Invalid file or object type'*)
  3721. lt_cv_path_NM="$tmp_nm -B"
  3722. break
  3723. ;;
  3724. *)
  3725. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3726. */dev/null*)
  3727. lt_cv_path_NM="$tmp_nm -p"
  3728. break
  3729. ;;
  3730. *)
  3731. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3732. continue # so that we can try to find one that supports BSD flags
  3733. ;;
  3734. esac
  3735. ;;
  3736. esac
  3737. fi
  3738. done
  3739. IFS="$lt_save_ifs"
  3740. done
  3741. : ${lt_cv_path_NM=no}
  3742. fi
  3743. fi
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3745. $as_echo "$lt_cv_path_NM" >&6; }
  3746. if test "$lt_cv_path_NM" != "no"; then
  3747. NM="$lt_cv_path_NM"
  3748. else
  3749. # Didn't find any BSD compatible name lister, look for dumpbin.
  3750. if test -n "$DUMPBIN"; then :
  3751. # Let the user override the test.
  3752. else
  3753. if test -n "$ac_tool_prefix"; then
  3754. for ac_prog in dumpbin "link -dump"
  3755. do
  3756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3759. $as_echo_n "checking for $ac_word... " >&6; }
  3760. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. if test -n "$DUMPBIN"; then
  3764. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3765. else
  3766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3767. for as_dir in $PATH
  3768. do
  3769. IFS=$as_save_IFS
  3770. test -z "$as_dir" && as_dir=.
  3771. for ac_exec_ext in '' $ac_executable_extensions; do
  3772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3773. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3775. break 2
  3776. fi
  3777. done
  3778. done
  3779. IFS=$as_save_IFS
  3780. fi
  3781. fi
  3782. DUMPBIN=$ac_cv_prog_DUMPBIN
  3783. if test -n "$DUMPBIN"; then
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3785. $as_echo "$DUMPBIN" >&6; }
  3786. else
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3788. $as_echo "no" >&6; }
  3789. fi
  3790. test -n "$DUMPBIN" && break
  3791. done
  3792. fi
  3793. if test -z "$DUMPBIN"; then
  3794. ac_ct_DUMPBIN=$DUMPBIN
  3795. for ac_prog in dumpbin "link -dump"
  3796. do
  3797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3798. set dummy $ac_prog; ac_word=$2
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3800. $as_echo_n "checking for $ac_word... " >&6; }
  3801. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. if test -n "$ac_ct_DUMPBIN"; then
  3805. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3806. else
  3807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3808. for as_dir in $PATH
  3809. do
  3810. IFS=$as_save_IFS
  3811. test -z "$as_dir" && as_dir=.
  3812. for ac_exec_ext in '' $ac_executable_extensions; do
  3813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3814. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3816. break 2
  3817. fi
  3818. done
  3819. done
  3820. IFS=$as_save_IFS
  3821. fi
  3822. fi
  3823. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3824. if test -n "$ac_ct_DUMPBIN"; then
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3826. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3827. else
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3829. $as_echo "no" >&6; }
  3830. fi
  3831. test -n "$ac_ct_DUMPBIN" && break
  3832. done
  3833. if test "x$ac_ct_DUMPBIN" = x; then
  3834. DUMPBIN=":"
  3835. else
  3836. case $cross_compiling:$ac_tool_warned in
  3837. yes:)
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3840. ac_tool_warned=yes ;;
  3841. esac
  3842. DUMPBIN=$ac_ct_DUMPBIN
  3843. fi
  3844. fi
  3845. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3846. *COFF*)
  3847. DUMPBIN="$DUMPBIN -symbols"
  3848. ;;
  3849. *)
  3850. DUMPBIN=:
  3851. ;;
  3852. esac
  3853. fi
  3854. if test "$DUMPBIN" != ":"; then
  3855. NM="$DUMPBIN"
  3856. fi
  3857. fi
  3858. test -z "$NM" && NM=nm
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3860. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3861. if ${lt_cv_nm_interface+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. lt_cv_nm_interface="BSD nm"
  3865. echo "int some_variable = 0;" > conftest.$ac_ext
  3866. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3867. (eval "$ac_compile" 2>conftest.err)
  3868. cat conftest.err >&5
  3869. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3870. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3871. cat conftest.err >&5
  3872. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3873. cat conftest.out >&5
  3874. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3875. lt_cv_nm_interface="MS dumpbin"
  3876. fi
  3877. rm -f conftest*
  3878. fi
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3880. $as_echo "$lt_cv_nm_interface" >&6; }
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3882. $as_echo_n "checking whether ln -s works... " >&6; }
  3883. LN_S=$as_ln_s
  3884. if test "$LN_S" = "ln -s"; then
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3886. $as_echo "yes" >&6; }
  3887. else
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3889. $as_echo "no, using $LN_S" >&6; }
  3890. fi
  3891. # find the maximum length of command line arguments
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3893. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3894. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. i=0
  3898. teststring="ABCD"
  3899. case $build_os in
  3900. msdosdjgpp*)
  3901. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3902. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3903. # during glob expansion). Even if it were fixed, the result of this
  3904. # check would be larger than it should be.
  3905. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3906. ;;
  3907. gnu*)
  3908. # Under GNU Hurd, this test is not required because there is
  3909. # no limit to the length of command line arguments.
  3910. # Libtool will interpret -1 as no limit whatsoever
  3911. lt_cv_sys_max_cmd_len=-1;
  3912. ;;
  3913. cygwin* | mingw* | cegcc*)
  3914. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3915. # about 5 minutes as the teststring grows exponentially.
  3916. # Worse, since 9x/ME are not pre-emptively multitasking,
  3917. # you end up with a "frozen" computer, even though with patience
  3918. # the test eventually succeeds (with a max line length of 256k).
  3919. # Instead, let's just punt: use the minimum linelength reported by
  3920. # all of the supported platforms: 8192 (on NT/2K/XP).
  3921. lt_cv_sys_max_cmd_len=8192;
  3922. ;;
  3923. mint*)
  3924. # On MiNT this can take a long time and run out of memory.
  3925. lt_cv_sys_max_cmd_len=8192;
  3926. ;;
  3927. amigaos*)
  3928. # On AmigaOS with pdksh, this test takes hours, literally.
  3929. # So we just punt and use a minimum line length of 8192.
  3930. lt_cv_sys_max_cmd_len=8192;
  3931. ;;
  3932. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3933. # This has been around since 386BSD, at least. Likely further.
  3934. if test -x /sbin/sysctl; then
  3935. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3936. elif test -x /usr/sbin/sysctl; then
  3937. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3938. else
  3939. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3940. fi
  3941. # And add a safety zone
  3942. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3944. ;;
  3945. interix*)
  3946. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3947. lt_cv_sys_max_cmd_len=196608
  3948. ;;
  3949. os2*)
  3950. # The test takes a long time on OS/2.
  3951. lt_cv_sys_max_cmd_len=8192
  3952. ;;
  3953. osf*)
  3954. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3955. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3956. # nice to cause kernel panics so lets avoid the loop below.
  3957. # First set a reasonable default.
  3958. lt_cv_sys_max_cmd_len=16384
  3959. #
  3960. if test -x /sbin/sysconfig; then
  3961. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3962. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3963. esac
  3964. fi
  3965. ;;
  3966. sco3.2v5*)
  3967. lt_cv_sys_max_cmd_len=102400
  3968. ;;
  3969. sysv5* | sco5v6* | sysv4.2uw2*)
  3970. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3971. if test -n "$kargmax"; then
  3972. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3973. else
  3974. lt_cv_sys_max_cmd_len=32768
  3975. fi
  3976. ;;
  3977. *)
  3978. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3979. if test -n "$lt_cv_sys_max_cmd_len"; then
  3980. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3981. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3982. else
  3983. # Make teststring a little bigger before we do anything with it.
  3984. # a 1K string should be a reasonable start.
  3985. for i in 1 2 3 4 5 6 7 8 ; do
  3986. teststring=$teststring$teststring
  3987. done
  3988. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3989. # If test is not a shell built-in, we'll probably end up computing a
  3990. # maximum length that is only half of the actual maximum length, but
  3991. # we can't tell.
  3992. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3993. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3994. test $i != 17 # 1/2 MB should be enough
  3995. do
  3996. i=`expr $i + 1`
  3997. teststring=$teststring$teststring
  3998. done
  3999. # Only check the string length outside the loop.
  4000. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4001. teststring=
  4002. # Add a significant safety factor because C++ compilers can tack on
  4003. # massive amounts of additional arguments before passing them to the
  4004. # linker. It appears as though 1/2 is a usable value.
  4005. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4006. fi
  4007. ;;
  4008. esac
  4009. fi
  4010. if test -n $lt_cv_sys_max_cmd_len ; then
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4012. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4013. else
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4015. $as_echo "none" >&6; }
  4016. fi
  4017. max_cmd_len=$lt_cv_sys_max_cmd_len
  4018. : ${CP="cp -f"}
  4019. : ${MV="mv -f"}
  4020. : ${RM="rm -f"}
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4022. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4023. # Try some XSI features
  4024. xsi_shell=no
  4025. ( _lt_dummy="a/b/c"
  4026. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4027. = c,a/b,b/c, \
  4028. && eval 'test $(( 1 + 1 )) -eq 2 \
  4029. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4030. && xsi_shell=yes
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4032. $as_echo "$xsi_shell" >&6; }
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4034. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4035. lt_shell_append=no
  4036. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4037. >/dev/null 2>&1 \
  4038. && lt_shell_append=yes
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4040. $as_echo "$lt_shell_append" >&6; }
  4041. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4042. lt_unset=unset
  4043. else
  4044. lt_unset=false
  4045. fi
  4046. # test EBCDIC or ASCII
  4047. case `echo X|tr X '\101'` in
  4048. A) # ASCII based system
  4049. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4050. lt_SP2NL='tr \040 \012'
  4051. lt_NL2SP='tr \015\012 \040\040'
  4052. ;;
  4053. *) # EBCDIC based system
  4054. lt_SP2NL='tr \100 \n'
  4055. lt_NL2SP='tr \r\n \100\100'
  4056. ;;
  4057. esac
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4059. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4060. if ${lt_cv_to_host_file_cmd+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. case $host in
  4064. *-*-mingw* )
  4065. case $build in
  4066. *-*-mingw* ) # actually msys
  4067. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4068. ;;
  4069. *-*-cygwin* )
  4070. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4071. ;;
  4072. * ) # otherwise, assume *nix
  4073. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4074. ;;
  4075. esac
  4076. ;;
  4077. *-*-cygwin* )
  4078. case $build in
  4079. *-*-mingw* ) # actually msys
  4080. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4081. ;;
  4082. *-*-cygwin* )
  4083. lt_cv_to_host_file_cmd=func_convert_file_noop
  4084. ;;
  4085. * ) # otherwise, assume *nix
  4086. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4087. ;;
  4088. esac
  4089. ;;
  4090. * ) # unhandled hosts (and "normal" native builds)
  4091. lt_cv_to_host_file_cmd=func_convert_file_noop
  4092. ;;
  4093. esac
  4094. fi
  4095. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4097. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4099. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4100. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. #assume ordinary cross tools, or native build.
  4104. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4105. case $host in
  4106. *-*-mingw* )
  4107. case $build in
  4108. *-*-mingw* ) # actually msys
  4109. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4110. ;;
  4111. esac
  4112. ;;
  4113. esac
  4114. fi
  4115. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4117. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4119. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4120. if ${lt_cv_ld_reload_flag+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. lt_cv_ld_reload_flag='-r'
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4126. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4127. reload_flag=$lt_cv_ld_reload_flag
  4128. case $reload_flag in
  4129. "" | " "*) ;;
  4130. *) reload_flag=" $reload_flag" ;;
  4131. esac
  4132. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4133. case $host_os in
  4134. cygwin* | mingw* | pw32* | cegcc*)
  4135. if test "$GCC" != yes; then
  4136. reload_cmds=false
  4137. fi
  4138. ;;
  4139. darwin*)
  4140. if test "$GCC" = yes; then
  4141. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4142. else
  4143. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4144. fi
  4145. ;;
  4146. esac
  4147. if test -n "$ac_tool_prefix"; then
  4148. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4149. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4151. $as_echo_n "checking for $ac_word... " >&6; }
  4152. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. if test -n "$OBJDUMP"; then
  4156. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4157. else
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4165. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167. break 2
  4168. fi
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. fi
  4173. fi
  4174. OBJDUMP=$ac_cv_prog_OBJDUMP
  4175. if test -n "$OBJDUMP"; then
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4177. $as_echo "$OBJDUMP" >&6; }
  4178. else
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4180. $as_echo "no" >&6; }
  4181. fi
  4182. fi
  4183. if test -z "$ac_cv_prog_OBJDUMP"; then
  4184. ac_ct_OBJDUMP=$OBJDUMP
  4185. # Extract the first word of "objdump", so it can be a program name with args.
  4186. set dummy objdump; ac_word=$2
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4188. $as_echo_n "checking for $ac_word... " >&6; }
  4189. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. if test -n "$ac_ct_OBJDUMP"; then
  4193. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4194. else
  4195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4196. for as_dir in $PATH
  4197. do
  4198. IFS=$as_save_IFS
  4199. test -z "$as_dir" && as_dir=.
  4200. for ac_exec_ext in '' $ac_executable_extensions; do
  4201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4202. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4204. break 2
  4205. fi
  4206. done
  4207. done
  4208. IFS=$as_save_IFS
  4209. fi
  4210. fi
  4211. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4212. if test -n "$ac_ct_OBJDUMP"; then
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4214. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4215. else
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4217. $as_echo "no" >&6; }
  4218. fi
  4219. if test "x$ac_ct_OBJDUMP" = x; then
  4220. OBJDUMP="false"
  4221. else
  4222. case $cross_compiling:$ac_tool_warned in
  4223. yes:)
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4226. ac_tool_warned=yes ;;
  4227. esac
  4228. OBJDUMP=$ac_ct_OBJDUMP
  4229. fi
  4230. else
  4231. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4232. fi
  4233. test -z "$OBJDUMP" && OBJDUMP=objdump
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4235. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4236. if ${lt_cv_deplibs_check_method+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4240. lt_cv_file_magic_test_file=
  4241. lt_cv_deplibs_check_method='unknown'
  4242. # Need to set the preceding variable on all platforms that support
  4243. # interlibrary dependencies.
  4244. # 'none' -- dependencies not supported.
  4245. # `unknown' -- same as none, but documents that we really don't know.
  4246. # 'pass_all' -- all dependencies passed with no checks.
  4247. # 'test_compile' -- check by making test program.
  4248. # 'file_magic [[regex]]' -- check by looking for files in library path
  4249. # which responds to the $file_magic_cmd with a given extended regex.
  4250. # If you have `file' or equivalent on your system and you're not sure
  4251. # whether `pass_all' will *always* work, you probably want this one.
  4252. case $host_os in
  4253. aix[4-9]*)
  4254. lt_cv_deplibs_check_method=pass_all
  4255. ;;
  4256. beos*)
  4257. lt_cv_deplibs_check_method=pass_all
  4258. ;;
  4259. bsdi[45]*)
  4260. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4261. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4262. lt_cv_file_magic_test_file=/shlib/libc.so
  4263. ;;
  4264. cygwin*)
  4265. # func_win32_libid is a shell function defined in ltmain.sh
  4266. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4267. lt_cv_file_magic_cmd='func_win32_libid'
  4268. lt_cv_deplibs_check_method=pass_all
  4269. ;;
  4270. mingw* | pw32*)
  4271. # Base MSYS/MinGW do not provide the 'file' command needed by
  4272. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4273. # unless we find 'file', for example because we are cross-compiling.
  4274. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4275. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4276. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4277. lt_cv_file_magic_cmd='func_win32_libid'
  4278. else
  4279. # Keep this pattern in sync with the one in func_win32_libid.
  4280. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4281. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4282. fi
  4283. lt_cv_deplibs_check_method=pass_all
  4284. ;;
  4285. cegcc*)
  4286. # use the weaker test based on 'objdump'. See mingw*.
  4287. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4288. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4289. ;;
  4290. darwin* | rhapsody*)
  4291. lt_cv_deplibs_check_method=pass_all
  4292. ;;
  4293. freebsd* | dragonfly*)
  4294. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4295. case $host_cpu in
  4296. i*86 )
  4297. # Not sure whether the presence of OpenBSD here was a mistake.
  4298. # Let's accept both of them until this is cleared up.
  4299. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4300. lt_cv_file_magic_cmd=/usr/bin/file
  4301. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4302. ;;
  4303. esac
  4304. else
  4305. lt_cv_deplibs_check_method=pass_all
  4306. fi
  4307. ;;
  4308. gnu*)
  4309. lt_cv_deplibs_check_method=pass_all
  4310. ;;
  4311. haiku*)
  4312. lt_cv_deplibs_check_method=pass_all
  4313. ;;
  4314. hpux10.20* | hpux11*)
  4315. lt_cv_file_magic_cmd=/usr/bin/file
  4316. case $host_cpu in
  4317. ia64*)
  4318. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4319. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4320. ;;
  4321. hppa*64*)
  4322. 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]'
  4323. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4324. ;;
  4325. *)
  4326. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4327. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4328. ;;
  4329. esac
  4330. ;;
  4331. interix[3-9]*)
  4332. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4333. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4334. ;;
  4335. irix5* | irix6* | nonstopux*)
  4336. case $LD in
  4337. *-32|*"-32 ") libmagic=32-bit;;
  4338. *-n32|*"-n32 ") libmagic=N32;;
  4339. *-64|*"-64 ") libmagic=64-bit;;
  4340. *) libmagic=never-match;;
  4341. esac
  4342. lt_cv_deplibs_check_method=pass_all
  4343. ;;
  4344. # This must be glibc/ELF.
  4345. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4346. lt_cv_deplibs_check_method=pass_all
  4347. ;;
  4348. netbsd*)
  4349. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4350. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4351. else
  4352. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4353. fi
  4354. ;;
  4355. newos6*)
  4356. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4357. lt_cv_file_magic_cmd=/usr/bin/file
  4358. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4359. ;;
  4360. *nto* | *qnx*)
  4361. lt_cv_deplibs_check_method=pass_all
  4362. ;;
  4363. openbsd*)
  4364. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4365. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4366. else
  4367. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4368. fi
  4369. ;;
  4370. osf3* | osf4* | osf5*)
  4371. lt_cv_deplibs_check_method=pass_all
  4372. ;;
  4373. rdos*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. solaris*)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. sysv4 | sysv4.3*)
  4383. case $host_vendor in
  4384. motorola)
  4385. 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]'
  4386. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4387. ;;
  4388. ncr)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. sequent)
  4392. lt_cv_file_magic_cmd='/bin/file'
  4393. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4394. ;;
  4395. sni)
  4396. lt_cv_file_magic_cmd='/bin/file'
  4397. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4398. lt_cv_file_magic_test_file=/lib/libc.so
  4399. ;;
  4400. siemens)
  4401. lt_cv_deplibs_check_method=pass_all
  4402. ;;
  4403. pc)
  4404. lt_cv_deplibs_check_method=pass_all
  4405. ;;
  4406. esac
  4407. ;;
  4408. tpf*)
  4409. lt_cv_deplibs_check_method=pass_all
  4410. ;;
  4411. esac
  4412. fi
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4414. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4415. file_magic_glob=
  4416. want_nocaseglob=no
  4417. if test "$build" = "$host"; then
  4418. case $host_os in
  4419. mingw* | pw32*)
  4420. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4421. want_nocaseglob=yes
  4422. else
  4423. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4424. fi
  4425. ;;
  4426. esac
  4427. fi
  4428. file_magic_cmd=$lt_cv_file_magic_cmd
  4429. deplibs_check_method=$lt_cv_deplibs_check_method
  4430. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4431. if test -n "$ac_tool_prefix"; then
  4432. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4433. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4435. $as_echo_n "checking for $ac_word... " >&6; }
  4436. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4437. $as_echo_n "(cached) " >&6
  4438. else
  4439. if test -n "$DLLTOOL"; then
  4440. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4441. else
  4442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4443. for as_dir in $PATH
  4444. do
  4445. IFS=$as_save_IFS
  4446. test -z "$as_dir" && as_dir=.
  4447. for ac_exec_ext in '' $ac_executable_extensions; do
  4448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4449. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4451. break 2
  4452. fi
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. fi
  4457. fi
  4458. DLLTOOL=$ac_cv_prog_DLLTOOL
  4459. if test -n "$DLLTOOL"; then
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4461. $as_echo "$DLLTOOL" >&6; }
  4462. else
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4464. $as_echo "no" >&6; }
  4465. fi
  4466. fi
  4467. if test -z "$ac_cv_prog_DLLTOOL"; then
  4468. ac_ct_DLLTOOL=$DLLTOOL
  4469. # Extract the first word of "dlltool", so it can be a program name with args.
  4470. set dummy dlltool; ac_word=$2
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4472. $as_echo_n "checking for $ac_word... " >&6; }
  4473. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. if test -n "$ac_ct_DLLTOOL"; then
  4477. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4478. else
  4479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4480. for as_dir in $PATH
  4481. do
  4482. IFS=$as_save_IFS
  4483. test -z "$as_dir" && as_dir=.
  4484. for ac_exec_ext in '' $ac_executable_extensions; do
  4485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4486. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4488. break 2
  4489. fi
  4490. done
  4491. done
  4492. IFS=$as_save_IFS
  4493. fi
  4494. fi
  4495. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4496. if test -n "$ac_ct_DLLTOOL"; then
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4498. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4499. else
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4501. $as_echo "no" >&6; }
  4502. fi
  4503. if test "x$ac_ct_DLLTOOL" = x; then
  4504. DLLTOOL="false"
  4505. else
  4506. case $cross_compiling:$ac_tool_warned in
  4507. yes:)
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4509. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4510. ac_tool_warned=yes ;;
  4511. esac
  4512. DLLTOOL=$ac_ct_DLLTOOL
  4513. fi
  4514. else
  4515. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4516. fi
  4517. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4519. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4520. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4524. case $host_os in
  4525. cygwin* | mingw* | pw32* | cegcc*)
  4526. # two different shell functions defined in ltmain.sh
  4527. # decide which to use based on capabilities of $DLLTOOL
  4528. case `$DLLTOOL --help 2>&1` in
  4529. *--identify-strict*)
  4530. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4531. ;;
  4532. *)
  4533. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4534. ;;
  4535. esac
  4536. ;;
  4537. *)
  4538. # fallback: assume linklib IS sharedlib
  4539. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4540. ;;
  4541. esac
  4542. fi
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4544. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4545. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4546. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4547. if test -n "$ac_tool_prefix"; then
  4548. for ac_prog in ar
  4549. do
  4550. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4551. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4553. $as_echo_n "checking for $ac_word... " >&6; }
  4554. if ${ac_cv_prog_AR+:} false; then :
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. if test -n "$AR"; then
  4558. ac_cv_prog_AR="$AR" # Let the user override the test.
  4559. else
  4560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4561. for as_dir in $PATH
  4562. do
  4563. IFS=$as_save_IFS
  4564. test -z "$as_dir" && as_dir=.
  4565. for ac_exec_ext in '' $ac_executable_extensions; do
  4566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4567. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4569. break 2
  4570. fi
  4571. done
  4572. done
  4573. IFS=$as_save_IFS
  4574. fi
  4575. fi
  4576. AR=$ac_cv_prog_AR
  4577. if test -n "$AR"; then
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4579. $as_echo "$AR" >&6; }
  4580. else
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4582. $as_echo "no" >&6; }
  4583. fi
  4584. test -n "$AR" && break
  4585. done
  4586. fi
  4587. if test -z "$AR"; then
  4588. ac_ct_AR=$AR
  4589. for ac_prog in ar
  4590. do
  4591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4592. set dummy $ac_prog; ac_word=$2
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4594. $as_echo_n "checking for $ac_word... " >&6; }
  4595. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. if test -n "$ac_ct_AR"; then
  4599. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4600. else
  4601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4602. for as_dir in $PATH
  4603. do
  4604. IFS=$as_save_IFS
  4605. test -z "$as_dir" && as_dir=.
  4606. for ac_exec_ext in '' $ac_executable_extensions; do
  4607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4608. ac_cv_prog_ac_ct_AR="$ac_prog"
  4609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4610. break 2
  4611. fi
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. fi
  4616. fi
  4617. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4618. if test -n "$ac_ct_AR"; then
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4620. $as_echo "$ac_ct_AR" >&6; }
  4621. else
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4623. $as_echo "no" >&6; }
  4624. fi
  4625. test -n "$ac_ct_AR" && break
  4626. done
  4627. if test "x$ac_ct_AR" = x; then
  4628. AR="false"
  4629. else
  4630. case $cross_compiling:$ac_tool_warned in
  4631. yes:)
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4634. ac_tool_warned=yes ;;
  4635. esac
  4636. AR=$ac_ct_AR
  4637. fi
  4638. fi
  4639. : ${AR=ar}
  4640. : ${AR_FLAGS=cru}
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4642. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4643. if ${lt_cv_ar_at_file+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. lt_cv_ar_at_file=no
  4647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4648. /* end confdefs.h. */
  4649. int
  4650. main ()
  4651. {
  4652. ;
  4653. return 0;
  4654. }
  4655. _ACEOF
  4656. if ac_fn_c_try_compile "$LINENO"; then :
  4657. echo conftest.$ac_objext > conftest.lst
  4658. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4659. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4660. (eval $lt_ar_try) 2>&5
  4661. ac_status=$?
  4662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4663. test $ac_status = 0; }
  4664. if test "$ac_status" -eq 0; then
  4665. # Ensure the archiver fails upon bogus file names.
  4666. rm -f conftest.$ac_objext libconftest.a
  4667. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4668. (eval $lt_ar_try) 2>&5
  4669. ac_status=$?
  4670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4671. test $ac_status = 0; }
  4672. if test "$ac_status" -ne 0; then
  4673. lt_cv_ar_at_file=@
  4674. fi
  4675. fi
  4676. rm -f conftest.* libconftest.a
  4677. fi
  4678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4679. fi
  4680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4681. $as_echo "$lt_cv_ar_at_file" >&6; }
  4682. if test "x$lt_cv_ar_at_file" = xno; then
  4683. archiver_list_spec=
  4684. else
  4685. archiver_list_spec=$lt_cv_ar_at_file
  4686. fi
  4687. if test -n "$ac_tool_prefix"; then
  4688. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4689. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4691. $as_echo_n "checking for $ac_word... " >&6; }
  4692. if ${ac_cv_prog_STRIP+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$STRIP"; then
  4696. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4697. else
  4698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4699. for as_dir in $PATH
  4700. do
  4701. IFS=$as_save_IFS
  4702. test -z "$as_dir" && as_dir=.
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4705. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4707. break 2
  4708. fi
  4709. done
  4710. done
  4711. IFS=$as_save_IFS
  4712. fi
  4713. fi
  4714. STRIP=$ac_cv_prog_STRIP
  4715. if test -n "$STRIP"; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4717. $as_echo "$STRIP" >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. fi
  4722. fi
  4723. if test -z "$ac_cv_prog_STRIP"; then
  4724. ac_ct_STRIP=$STRIP
  4725. # Extract the first word of "strip", so it can be a program name with args.
  4726. set dummy strip; ac_word=$2
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. $as_echo_n "checking for $ac_word... " >&6; }
  4729. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -n "$ac_ct_STRIP"; then
  4733. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4742. ac_cv_prog_ac_ct_STRIP="strip"
  4743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4752. if test -n "$ac_ct_STRIP"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4754. $as_echo "$ac_ct_STRIP" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. if test "x$ac_ct_STRIP" = x; then
  4760. STRIP=":"
  4761. else
  4762. case $cross_compiling:$ac_tool_warned in
  4763. yes:)
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4766. ac_tool_warned=yes ;;
  4767. esac
  4768. STRIP=$ac_ct_STRIP
  4769. fi
  4770. else
  4771. STRIP="$ac_cv_prog_STRIP"
  4772. fi
  4773. test -z "$STRIP" && STRIP=:
  4774. if test -n "$ac_tool_prefix"; then
  4775. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4776. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4778. $as_echo_n "checking for $ac_word... " >&6; }
  4779. if ${ac_cv_prog_RANLIB+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. if test -n "$RANLIB"; then
  4783. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4784. else
  4785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4786. for as_dir in $PATH
  4787. do
  4788. IFS=$as_save_IFS
  4789. test -z "$as_dir" && as_dir=.
  4790. for ac_exec_ext in '' $ac_executable_extensions; do
  4791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4792. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4794. break 2
  4795. fi
  4796. done
  4797. done
  4798. IFS=$as_save_IFS
  4799. fi
  4800. fi
  4801. RANLIB=$ac_cv_prog_RANLIB
  4802. if test -n "$RANLIB"; then
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4804. $as_echo "$RANLIB" >&6; }
  4805. else
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4807. $as_echo "no" >&6; }
  4808. fi
  4809. fi
  4810. if test -z "$ac_cv_prog_RANLIB"; then
  4811. ac_ct_RANLIB=$RANLIB
  4812. # Extract the first word of "ranlib", so it can be a program name with args.
  4813. set dummy ranlib; ac_word=$2
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4815. $as_echo_n "checking for $ac_word... " >&6; }
  4816. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4817. $as_echo_n "(cached) " >&6
  4818. else
  4819. if test -n "$ac_ct_RANLIB"; then
  4820. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4821. else
  4822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4823. for as_dir in $PATH
  4824. do
  4825. IFS=$as_save_IFS
  4826. test -z "$as_dir" && as_dir=.
  4827. for ac_exec_ext in '' $ac_executable_extensions; do
  4828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4829. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4831. break 2
  4832. fi
  4833. done
  4834. done
  4835. IFS=$as_save_IFS
  4836. fi
  4837. fi
  4838. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4839. if test -n "$ac_ct_RANLIB"; then
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4841. $as_echo "$ac_ct_RANLIB" >&6; }
  4842. else
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4844. $as_echo "no" >&6; }
  4845. fi
  4846. if test "x$ac_ct_RANLIB" = x; then
  4847. RANLIB=":"
  4848. else
  4849. case $cross_compiling:$ac_tool_warned in
  4850. yes:)
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4853. ac_tool_warned=yes ;;
  4854. esac
  4855. RANLIB=$ac_ct_RANLIB
  4856. fi
  4857. else
  4858. RANLIB="$ac_cv_prog_RANLIB"
  4859. fi
  4860. test -z "$RANLIB" && RANLIB=:
  4861. # Determine commands to create old-style static archives.
  4862. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4863. old_postinstall_cmds='chmod 644 $oldlib'
  4864. old_postuninstall_cmds=
  4865. if test -n "$RANLIB"; then
  4866. case $host_os in
  4867. openbsd*)
  4868. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4869. ;;
  4870. *)
  4871. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4872. ;;
  4873. esac
  4874. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4875. fi
  4876. case $host_os in
  4877. darwin*)
  4878. lock_old_archive_extraction=yes ;;
  4879. *)
  4880. lock_old_archive_extraction=no ;;
  4881. esac
  4882. for ac_prog in gawk mawk nawk awk
  4883. do
  4884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4885. set dummy $ac_prog; ac_word=$2
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4887. $as_echo_n "checking for $ac_word... " >&6; }
  4888. if ${ac_cv_prog_AWK+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. if test -n "$AWK"; then
  4892. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4901. ac_cv_prog_AWK="$ac_prog"
  4902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. AWK=$ac_cv_prog_AWK
  4911. if test -n "$AWK"; then
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4913. $as_echo "$AWK" >&6; }
  4914. else
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4916. $as_echo "no" >&6; }
  4917. fi
  4918. test -n "$AWK" && break
  4919. done
  4920. # If no C compiler was specified, use CC.
  4921. LTCC=${LTCC-"$CC"}
  4922. # If no C compiler flags were specified, use CFLAGS.
  4923. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4924. # Allow CC to be a program name with arguments.
  4925. compiler=$CC
  4926. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4928. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4929. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. # These are sane defaults that work on at least a few old systems.
  4933. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4934. # Character class describing NM global symbol codes.
  4935. symcode='[BCDEGRST]'
  4936. # Regexp to match symbols that can be accessed directly from C.
  4937. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4938. # Define system-specific variables.
  4939. case $host_os in
  4940. aix*)
  4941. symcode='[BCDT]'
  4942. ;;
  4943. cygwin* | mingw* | pw32* | cegcc*)
  4944. symcode='[ABCDGISTW]'
  4945. ;;
  4946. hpux*)
  4947. if test "$host_cpu" = ia64; then
  4948. symcode='[ABCDEGRST]'
  4949. fi
  4950. ;;
  4951. irix* | nonstopux*)
  4952. symcode='[BCDEGRST]'
  4953. ;;
  4954. osf*)
  4955. symcode='[BCDEGQRST]'
  4956. ;;
  4957. solaris*)
  4958. symcode='[BDRT]'
  4959. ;;
  4960. sco3.2v5*)
  4961. symcode='[DT]'
  4962. ;;
  4963. sysv4.2uw2*)
  4964. symcode='[DT]'
  4965. ;;
  4966. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4967. symcode='[ABDT]'
  4968. ;;
  4969. sysv4)
  4970. symcode='[DFNSTU]'
  4971. ;;
  4972. esac
  4973. # If we're using GNU nm, then use its standard symbol codes.
  4974. case `$NM -V 2>&1` in
  4975. *GNU* | *'with BFD'*)
  4976. symcode='[ABCDGIRSTW]' ;;
  4977. esac
  4978. # Transform an extracted symbol line into a proper C declaration.
  4979. # Some systems (esp. on ia64) link data and code symbols differently,
  4980. # so use this general approach.
  4981. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4982. # Transform an extracted symbol line into symbol name and symbol address
  4983. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4984. 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'"
  4985. # Handle CRLF in mingw tool chain
  4986. opt_cr=
  4987. case $build_os in
  4988. mingw*)
  4989. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4990. ;;
  4991. esac
  4992. # Try without a prefix underscore, then with it.
  4993. for ac_symprfx in "" "_"; do
  4994. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4995. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4996. # Write the raw and C identifiers.
  4997. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4998. # Fake it for dumpbin and say T for any non-static function
  4999. # and D for any global variable.
  5000. # Also find C++ and __fastcall symbols from MSVC++,
  5001. # which start with @ or ?.
  5002. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5003. " {last_section=section; section=\$ 3};"\
  5004. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5005. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5006. " \$ 0!~/External *\|/{next};"\
  5007. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5008. " {if(hide[section]) next};"\
  5009. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5010. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5011. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5012. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5013. " ' prfx=^$ac_symprfx"
  5014. else
  5015. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5016. fi
  5017. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5018. # Check to see that the pipe works correctly.
  5019. pipe_works=no
  5020. rm -f conftest*
  5021. cat > conftest.$ac_ext <<_LT_EOF
  5022. #ifdef __cplusplus
  5023. extern "C" {
  5024. #endif
  5025. char nm_test_var;
  5026. void nm_test_func(void);
  5027. void nm_test_func(void){}
  5028. #ifdef __cplusplus
  5029. }
  5030. #endif
  5031. int main(){nm_test_var='a';nm_test_func();return(0);}
  5032. _LT_EOF
  5033. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5034. (eval $ac_compile) 2>&5
  5035. ac_status=$?
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5037. test $ac_status = 0; }; then
  5038. # Now try to grab the symbols.
  5039. nlist=conftest.nm
  5040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5041. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5042. ac_status=$?
  5043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5044. test $ac_status = 0; } && test -s "$nlist"; then
  5045. # Try sorting and uniquifying the output.
  5046. if sort "$nlist" | uniq > "$nlist"T; then
  5047. mv -f "$nlist"T "$nlist"
  5048. else
  5049. rm -f "$nlist"T
  5050. fi
  5051. # Make sure that we snagged all the symbols we need.
  5052. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5053. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5054. cat <<_LT_EOF > conftest.$ac_ext
  5055. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5056. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5057. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5058. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5059. # define LT_DLSYM_CONST
  5060. #elif defined(__osf__)
  5061. /* This system does not cope well with relocations in const data. */
  5062. # define LT_DLSYM_CONST
  5063. #else
  5064. # define LT_DLSYM_CONST const
  5065. #endif
  5066. #ifdef __cplusplus
  5067. extern "C" {
  5068. #endif
  5069. _LT_EOF
  5070. # Now generate the symbol file.
  5071. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5072. cat <<_LT_EOF >> conftest.$ac_ext
  5073. /* The mapping between symbol names and symbols. */
  5074. LT_DLSYM_CONST struct {
  5075. const char *name;
  5076. void *address;
  5077. }
  5078. lt__PROGRAM__LTX_preloaded_symbols[] =
  5079. {
  5080. { "@PROGRAM@", (void *) 0 },
  5081. _LT_EOF
  5082. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5083. cat <<\_LT_EOF >> conftest.$ac_ext
  5084. {0, (void *) 0}
  5085. };
  5086. /* This works around a problem in FreeBSD linker */
  5087. #ifdef FREEBSD_WORKAROUND
  5088. static const void *lt_preloaded_setup() {
  5089. return lt__PROGRAM__LTX_preloaded_symbols;
  5090. }
  5091. #endif
  5092. #ifdef __cplusplus
  5093. }
  5094. #endif
  5095. _LT_EOF
  5096. # Now try linking the two files.
  5097. mv conftest.$ac_objext conftstm.$ac_objext
  5098. lt_globsym_save_LIBS=$LIBS
  5099. lt_globsym_save_CFLAGS=$CFLAGS
  5100. LIBS="conftstm.$ac_objext"
  5101. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5102. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5103. (eval $ac_link) 2>&5
  5104. ac_status=$?
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5106. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5107. pipe_works=yes
  5108. fi
  5109. LIBS=$lt_globsym_save_LIBS
  5110. CFLAGS=$lt_globsym_save_CFLAGS
  5111. else
  5112. echo "cannot find nm_test_func in $nlist" >&5
  5113. fi
  5114. else
  5115. echo "cannot find nm_test_var in $nlist" >&5
  5116. fi
  5117. else
  5118. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5119. fi
  5120. else
  5121. echo "$progname: failed program was:" >&5
  5122. cat conftest.$ac_ext >&5
  5123. fi
  5124. rm -rf conftest* conftst*
  5125. # Do not use the global_symbol_pipe unless it works.
  5126. if test "$pipe_works" = yes; then
  5127. break
  5128. else
  5129. lt_cv_sys_global_symbol_pipe=
  5130. fi
  5131. done
  5132. fi
  5133. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5134. lt_cv_sys_global_symbol_to_cdecl=
  5135. fi
  5136. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5138. $as_echo "failed" >&6; }
  5139. else
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5141. $as_echo "ok" >&6; }
  5142. fi
  5143. # Response file support.
  5144. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5145. nm_file_list_spec='@'
  5146. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5147. nm_file_list_spec='@'
  5148. fi
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5150. $as_echo_n "checking for sysroot... " >&6; }
  5151. # Check whether --with-sysroot was given.
  5152. if test "${with_sysroot+set}" = set; then :
  5153. withval=$with_sysroot;
  5154. else
  5155. with_sysroot=no
  5156. fi
  5157. lt_sysroot=
  5158. case ${with_sysroot} in #(
  5159. yes)
  5160. if test "$GCC" = yes; then
  5161. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5162. fi
  5163. ;; #(
  5164. /*)
  5165. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5166. ;; #(
  5167. no|'')
  5168. ;; #(
  5169. *)
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5171. $as_echo "${with_sysroot}" >&6; }
  5172. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5173. ;;
  5174. esac
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5176. $as_echo "${lt_sysroot:-no}" >&6; }
  5177. # Check whether --enable-libtool-lock was given.
  5178. if test "${enable_libtool_lock+set}" = set; then :
  5179. enableval=$enable_libtool_lock;
  5180. fi
  5181. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5182. # Some flags need to be propagated to the compiler or linker for good
  5183. # libtool support.
  5184. case $host in
  5185. ia64-*-hpux*)
  5186. # Find out which ABI we are using.
  5187. echo 'int i;' > conftest.$ac_ext
  5188. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5189. (eval $ac_compile) 2>&5
  5190. ac_status=$?
  5191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5192. test $ac_status = 0; }; then
  5193. case `/usr/bin/file conftest.$ac_objext` in
  5194. *ELF-32*)
  5195. HPUX_IA64_MODE="32"
  5196. ;;
  5197. *ELF-64*)
  5198. HPUX_IA64_MODE="64"
  5199. ;;
  5200. esac
  5201. fi
  5202. rm -rf conftest*
  5203. ;;
  5204. *-*-irix6*)
  5205. # Find out which ABI we are using.
  5206. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5207. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5208. (eval $ac_compile) 2>&5
  5209. ac_status=$?
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5211. test $ac_status = 0; }; then
  5212. if test "$lt_cv_prog_gnu_ld" = yes; then
  5213. case `/usr/bin/file conftest.$ac_objext` in
  5214. *32-bit*)
  5215. LD="${LD-ld} -melf32bsmip"
  5216. ;;
  5217. *N32*)
  5218. LD="${LD-ld} -melf32bmipn32"
  5219. ;;
  5220. *64-bit*)
  5221. LD="${LD-ld} -melf64bmip"
  5222. ;;
  5223. esac
  5224. else
  5225. case `/usr/bin/file conftest.$ac_objext` in
  5226. *32-bit*)
  5227. LD="${LD-ld} -32"
  5228. ;;
  5229. *N32*)
  5230. LD="${LD-ld} -n32"
  5231. ;;
  5232. *64-bit*)
  5233. LD="${LD-ld} -64"
  5234. ;;
  5235. esac
  5236. fi
  5237. fi
  5238. rm -rf conftest*
  5239. ;;
  5240. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5241. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5242. # Find out which ABI we are using.
  5243. echo 'int i;' > conftest.$ac_ext
  5244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5245. (eval $ac_compile) 2>&5
  5246. ac_status=$?
  5247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5248. test $ac_status = 0; }; then
  5249. case `/usr/bin/file conftest.o` in
  5250. *32-bit*)
  5251. case $host in
  5252. x86_64-*kfreebsd*-gnu)
  5253. LD="${LD-ld} -m elf_i386_fbsd"
  5254. ;;
  5255. x86_64-*linux*)
  5256. LD="${LD-ld} -m elf_i386"
  5257. ;;
  5258. ppc64-*linux*|powerpc64-*linux*)
  5259. LD="${LD-ld} -m elf32ppclinux"
  5260. ;;
  5261. s390x-*linux*)
  5262. LD="${LD-ld} -m elf_s390"
  5263. ;;
  5264. sparc64-*linux*)
  5265. LD="${LD-ld} -m elf32_sparc"
  5266. ;;
  5267. esac
  5268. ;;
  5269. *64-bit*)
  5270. case $host in
  5271. x86_64-*kfreebsd*-gnu)
  5272. LD="${LD-ld} -m elf_x86_64_fbsd"
  5273. ;;
  5274. x86_64-*linux*)
  5275. LD="${LD-ld} -m elf_x86_64"
  5276. ;;
  5277. powerpc64le-*linux*)
  5278. LD="${LD-ld} -m elf64lppc"
  5279. ;;
  5280. powerpc64-*linux*)
  5281. LD="${LD-ld} -m elf64ppc"
  5282. ;;
  5283. s390*-*linux*|s390*-*tpf*)
  5284. LD="${LD-ld} -m elf64_s390"
  5285. ;;
  5286. sparc*-*linux*)
  5287. LD="${LD-ld} -m elf64_sparc"
  5288. ;;
  5289. esac
  5290. ;;
  5291. esac
  5292. fi
  5293. rm -rf conftest*
  5294. ;;
  5295. *-*-sco3.2v5*)
  5296. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5297. SAVE_CFLAGS="$CFLAGS"
  5298. CFLAGS="$CFLAGS -belf"
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5300. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5301. if ${lt_cv_cc_needs_belf+:} false; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. ac_ext=c
  5305. ac_cpp='$CPP $CPPFLAGS'
  5306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5310. /* end confdefs.h. */
  5311. int
  5312. main ()
  5313. {
  5314. ;
  5315. return 0;
  5316. }
  5317. _ACEOF
  5318. if ac_fn_c_try_link "$LINENO"; then :
  5319. lt_cv_cc_needs_belf=yes
  5320. else
  5321. lt_cv_cc_needs_belf=no
  5322. fi
  5323. rm -f core conftest.err conftest.$ac_objext \
  5324. conftest$ac_exeext conftest.$ac_ext
  5325. ac_ext=c
  5326. ac_cpp='$CPP $CPPFLAGS'
  5327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5330. fi
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5332. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5333. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5334. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5335. CFLAGS="$SAVE_CFLAGS"
  5336. fi
  5337. ;;
  5338. *-*solaris*)
  5339. # Find out which ABI we are using.
  5340. echo 'int i;' > conftest.$ac_ext
  5341. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5342. (eval $ac_compile) 2>&5
  5343. ac_status=$?
  5344. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5345. test $ac_status = 0; }; then
  5346. case `/usr/bin/file conftest.o` in
  5347. *64-bit*)
  5348. case $lt_cv_prog_gnu_ld in
  5349. yes*)
  5350. case $host in
  5351. i?86-*-solaris*)
  5352. LD="${LD-ld} -m elf_x86_64"
  5353. ;;
  5354. sparc*-*-solaris*)
  5355. LD="${LD-ld} -m elf64_sparc"
  5356. ;;
  5357. esac
  5358. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5359. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5360. LD="${LD-ld}_sol2"
  5361. fi
  5362. ;;
  5363. *)
  5364. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5365. LD="${LD-ld} -64"
  5366. fi
  5367. ;;
  5368. esac
  5369. ;;
  5370. esac
  5371. fi
  5372. rm -rf conftest*
  5373. ;;
  5374. esac
  5375. need_locks="$enable_libtool_lock"
  5376. if test -n "$ac_tool_prefix"; then
  5377. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5378. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5380. $as_echo_n "checking for $ac_word... " >&6; }
  5381. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. if test -n "$MANIFEST_TOOL"; then
  5385. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5386. else
  5387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5388. for as_dir in $PATH
  5389. do
  5390. IFS=$as_save_IFS
  5391. test -z "$as_dir" && as_dir=.
  5392. for ac_exec_ext in '' $ac_executable_extensions; do
  5393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5394. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5396. break 2
  5397. fi
  5398. done
  5399. done
  5400. IFS=$as_save_IFS
  5401. fi
  5402. fi
  5403. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5404. if test -n "$MANIFEST_TOOL"; then
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5406. $as_echo "$MANIFEST_TOOL" >&6; }
  5407. else
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5409. $as_echo "no" >&6; }
  5410. fi
  5411. fi
  5412. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5413. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5414. # Extract the first word of "mt", so it can be a program name with args.
  5415. set dummy mt; ac_word=$2
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5417. $as_echo_n "checking for $ac_word... " >&6; }
  5418. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5422. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5423. else
  5424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5425. for as_dir in $PATH
  5426. do
  5427. IFS=$as_save_IFS
  5428. test -z "$as_dir" && as_dir=.
  5429. for ac_exec_ext in '' $ac_executable_extensions; do
  5430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5431. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5433. break 2
  5434. fi
  5435. done
  5436. done
  5437. IFS=$as_save_IFS
  5438. fi
  5439. fi
  5440. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5441. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5443. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5444. else
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5446. $as_echo "no" >&6; }
  5447. fi
  5448. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5449. MANIFEST_TOOL=":"
  5450. else
  5451. case $cross_compiling:$ac_tool_warned in
  5452. yes:)
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5455. ac_tool_warned=yes ;;
  5456. esac
  5457. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5458. fi
  5459. else
  5460. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5461. fi
  5462. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5464. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5465. if ${lt_cv_path_mainfest_tool+:} false; then :
  5466. $as_echo_n "(cached) " >&6
  5467. else
  5468. lt_cv_path_mainfest_tool=no
  5469. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5470. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5471. cat conftest.err >&5
  5472. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5473. lt_cv_path_mainfest_tool=yes
  5474. fi
  5475. rm -f conftest*
  5476. fi
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5478. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5479. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5480. MANIFEST_TOOL=:
  5481. fi
  5482. case $host_os in
  5483. rhapsody* | darwin*)
  5484. if test -n "$ac_tool_prefix"; then
  5485. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5486. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$DSYMUTIL"; then
  5493. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5502. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509. fi
  5510. fi
  5511. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5512. if test -n "$DSYMUTIL"; then
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5514. $as_echo "$DSYMUTIL" >&6; }
  5515. else
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5517. $as_echo "no" >&6; }
  5518. fi
  5519. fi
  5520. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5521. ac_ct_DSYMUTIL=$DSYMUTIL
  5522. # Extract the first word of "dsymutil", so it can be a program name with args.
  5523. set dummy dsymutil; ac_word=$2
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5525. $as_echo_n "checking for $ac_word... " >&6; }
  5526. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5527. $as_echo_n "(cached) " >&6
  5528. else
  5529. if test -n "$ac_ct_DSYMUTIL"; then
  5530. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5531. else
  5532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5533. for as_dir in $PATH
  5534. do
  5535. IFS=$as_save_IFS
  5536. test -z "$as_dir" && as_dir=.
  5537. for ac_exec_ext in '' $ac_executable_extensions; do
  5538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5539. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5541. break 2
  5542. fi
  5543. done
  5544. done
  5545. IFS=$as_save_IFS
  5546. fi
  5547. fi
  5548. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5549. if test -n "$ac_ct_DSYMUTIL"; then
  5550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5551. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5552. else
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5554. $as_echo "no" >&6; }
  5555. fi
  5556. if test "x$ac_ct_DSYMUTIL" = x; then
  5557. DSYMUTIL=":"
  5558. else
  5559. case $cross_compiling:$ac_tool_warned in
  5560. yes:)
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5563. ac_tool_warned=yes ;;
  5564. esac
  5565. DSYMUTIL=$ac_ct_DSYMUTIL
  5566. fi
  5567. else
  5568. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5569. fi
  5570. if test -n "$ac_tool_prefix"; then
  5571. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5572. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5574. $as_echo_n "checking for $ac_word... " >&6; }
  5575. if ${ac_cv_prog_NMEDIT+:} false; then :
  5576. $as_echo_n "(cached) " >&6
  5577. else
  5578. if test -n "$NMEDIT"; then
  5579. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5580. else
  5581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5582. for as_dir in $PATH
  5583. do
  5584. IFS=$as_save_IFS
  5585. test -z "$as_dir" && as_dir=.
  5586. for ac_exec_ext in '' $ac_executable_extensions; do
  5587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5588. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5590. break 2
  5591. fi
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. fi
  5596. fi
  5597. NMEDIT=$ac_cv_prog_NMEDIT
  5598. if test -n "$NMEDIT"; then
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5600. $as_echo "$NMEDIT" >&6; }
  5601. else
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. $as_echo "no" >&6; }
  5604. fi
  5605. fi
  5606. if test -z "$ac_cv_prog_NMEDIT"; then
  5607. ac_ct_NMEDIT=$NMEDIT
  5608. # Extract the first word of "nmedit", so it can be a program name with args.
  5609. set dummy nmedit; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$ac_ct_NMEDIT"; then
  5616. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5635. if test -n "$ac_ct_NMEDIT"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5637. $as_echo "$ac_ct_NMEDIT" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. if test "x$ac_ct_NMEDIT" = x; then
  5643. NMEDIT=":"
  5644. else
  5645. case $cross_compiling:$ac_tool_warned in
  5646. yes:)
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5649. ac_tool_warned=yes ;;
  5650. esac
  5651. NMEDIT=$ac_ct_NMEDIT
  5652. fi
  5653. else
  5654. NMEDIT="$ac_cv_prog_NMEDIT"
  5655. fi
  5656. if test -n "$ac_tool_prefix"; then
  5657. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5658. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_LIPO+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$LIPO"; then
  5665. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. LIPO=$ac_cv_prog_LIPO
  5684. if test -n "$LIPO"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5686. $as_echo "$LIPO" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. fi
  5692. if test -z "$ac_cv_prog_LIPO"; then
  5693. ac_ct_LIPO=$LIPO
  5694. # Extract the first word of "lipo", so it can be a program name with args.
  5695. set dummy lipo; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$ac_ct_LIPO"; then
  5702. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_ac_ct_LIPO="lipo"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5721. if test -n "$ac_ct_LIPO"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5723. $as_echo "$ac_ct_LIPO" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. if test "x$ac_ct_LIPO" = x; then
  5729. LIPO=":"
  5730. else
  5731. case $cross_compiling:$ac_tool_warned in
  5732. yes:)
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5734. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5735. ac_tool_warned=yes ;;
  5736. esac
  5737. LIPO=$ac_ct_LIPO
  5738. fi
  5739. else
  5740. LIPO="$ac_cv_prog_LIPO"
  5741. fi
  5742. if test -n "$ac_tool_prefix"; then
  5743. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5744. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. if ${ac_cv_prog_OTOOL+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -n "$OTOOL"; then
  5751. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5752. else
  5753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5754. for as_dir in $PATH
  5755. do
  5756. IFS=$as_save_IFS
  5757. test -z "$as_dir" && as_dir=.
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. OTOOL=$ac_cv_prog_OTOOL
  5770. if test -n "$OTOOL"; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5772. $as_echo "$OTOOL" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. $as_echo "no" >&6; }
  5776. fi
  5777. fi
  5778. if test -z "$ac_cv_prog_OTOOL"; then
  5779. ac_ct_OTOOL=$OTOOL
  5780. # Extract the first word of "otool", so it can be a program name with args.
  5781. set dummy otool; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$ac_ct_OTOOL"; then
  5788. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_ac_ct_OTOOL="otool"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5807. if test -n "$ac_ct_OTOOL"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5809. $as_echo "$ac_ct_OTOOL" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. if test "x$ac_ct_OTOOL" = x; then
  5815. OTOOL=":"
  5816. else
  5817. case $cross_compiling:$ac_tool_warned in
  5818. yes:)
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5821. ac_tool_warned=yes ;;
  5822. esac
  5823. OTOOL=$ac_ct_OTOOL
  5824. fi
  5825. else
  5826. OTOOL="$ac_cv_prog_OTOOL"
  5827. fi
  5828. if test -n "$ac_tool_prefix"; then
  5829. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5830. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. $as_echo_n "checking for $ac_word... " >&6; }
  5833. if ${ac_cv_prog_OTOOL64+:} false; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if test -n "$OTOOL64"; then
  5837. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. test -z "$as_dir" && as_dir=.
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5846. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi
  5854. fi
  5855. OTOOL64=$ac_cv_prog_OTOOL64
  5856. if test -n "$OTOOL64"; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5858. $as_echo "$OTOOL64" >&6; }
  5859. else
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5861. $as_echo "no" >&6; }
  5862. fi
  5863. fi
  5864. if test -z "$ac_cv_prog_OTOOL64"; then
  5865. ac_ct_OTOOL64=$OTOOL64
  5866. # Extract the first word of "otool64", so it can be a program name with args.
  5867. set dummy otool64; ac_word=$2
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5869. $as_echo_n "checking for $ac_word... " >&6; }
  5870. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if test -n "$ac_ct_OTOOL64"; then
  5874. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_exec_ext in '' $ac_executable_extensions; do
  5882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5883. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5885. break 2
  5886. fi
  5887. done
  5888. done
  5889. IFS=$as_save_IFS
  5890. fi
  5891. fi
  5892. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5893. if test -n "$ac_ct_OTOOL64"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5895. $as_echo "$ac_ct_OTOOL64" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. if test "x$ac_ct_OTOOL64" = x; then
  5901. OTOOL64=":"
  5902. else
  5903. case $cross_compiling:$ac_tool_warned in
  5904. yes:)
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5906. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5907. ac_tool_warned=yes ;;
  5908. esac
  5909. OTOOL64=$ac_ct_OTOOL64
  5910. fi
  5911. else
  5912. OTOOL64="$ac_cv_prog_OTOOL64"
  5913. fi
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5915. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5916. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. lt_cv_apple_cc_single_mod=no
  5920. if test -z "${LT_MULTI_MODULE}"; then
  5921. # By default we will add the -single_module flag. You can override
  5922. # by either setting the environment variable LT_MULTI_MODULE
  5923. # non-empty at configure time, or by adding -multi_module to the
  5924. # link flags.
  5925. rm -rf libconftest.dylib*
  5926. echo "int foo(void){return 1;}" > conftest.c
  5927. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5928. -dynamiclib -Wl,-single_module conftest.c" >&5
  5929. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5930. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5931. _lt_result=$?
  5932. # If there is a non-empty error log, and "single_module"
  5933. # appears in it, assume the flag caused a linker warning
  5934. if test -s conftest.err && $GREP single_module conftest.err; then
  5935. cat conftest.err >&5
  5936. # Otherwise, if the output was created with a 0 exit code from
  5937. # the compiler, it worked.
  5938. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5939. lt_cv_apple_cc_single_mod=yes
  5940. else
  5941. cat conftest.err >&5
  5942. fi
  5943. rm -rf libconftest.dylib*
  5944. rm -f conftest.*
  5945. fi
  5946. fi
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5948. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5950. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5951. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. lt_cv_ld_exported_symbols_list=no
  5955. save_LDFLAGS=$LDFLAGS
  5956. echo "_main" > conftest.sym
  5957. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5959. /* end confdefs.h. */
  5960. int
  5961. main ()
  5962. {
  5963. ;
  5964. return 0;
  5965. }
  5966. _ACEOF
  5967. if ac_fn_c_try_link "$LINENO"; then :
  5968. lt_cv_ld_exported_symbols_list=yes
  5969. else
  5970. lt_cv_ld_exported_symbols_list=no
  5971. fi
  5972. rm -f core conftest.err conftest.$ac_objext \
  5973. conftest$ac_exeext conftest.$ac_ext
  5974. LDFLAGS="$save_LDFLAGS"
  5975. fi
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5977. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5979. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5980. if ${lt_cv_ld_force_load+:} false; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. lt_cv_ld_force_load=no
  5984. cat > conftest.c << _LT_EOF
  5985. int forced_loaded() { return 2;}
  5986. _LT_EOF
  5987. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5988. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5989. echo "$AR cru libconftest.a conftest.o" >&5
  5990. $AR cru libconftest.a conftest.o 2>&5
  5991. echo "$RANLIB libconftest.a" >&5
  5992. $RANLIB libconftest.a 2>&5
  5993. cat > conftest.c << _LT_EOF
  5994. int main() { return 0;}
  5995. _LT_EOF
  5996. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  5997. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  5998. _lt_result=$?
  5999. if test -s conftest.err && $GREP force_load conftest.err; then
  6000. cat conftest.err >&5
  6001. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6002. lt_cv_ld_force_load=yes
  6003. else
  6004. cat conftest.err >&5
  6005. fi
  6006. rm -f conftest.err libconftest.a conftest conftest.c
  6007. rm -rf conftest.dSYM
  6008. fi
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6010. $as_echo "$lt_cv_ld_force_load" >&6; }
  6011. case $host_os in
  6012. rhapsody* | darwin1.[012])
  6013. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6014. darwin1.*)
  6015. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6016. darwin*) # darwin 5.x on
  6017. # if running on 10.5 or later, the deployment target defaults
  6018. # to the OS version, if on x86, and 10.4, the deployment
  6019. # target defaults to 10.4. Don't you love it?
  6020. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6021. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6022. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6023. 10.[012]*)
  6024. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6025. 10.*)
  6026. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6027. esac
  6028. ;;
  6029. esac
  6030. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6031. _lt_dar_single_mod='$single_module'
  6032. fi
  6033. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6034. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6035. else
  6036. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6037. fi
  6038. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6039. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6040. else
  6041. _lt_dsymutil=
  6042. fi
  6043. ;;
  6044. esac
  6045. ac_ext=c
  6046. ac_cpp='$CPP $CPPFLAGS'
  6047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6051. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6052. # On Suns, sometimes $CPP names a directory.
  6053. if test -n "$CPP" && test -d "$CPP"; then
  6054. CPP=
  6055. fi
  6056. if test -z "$CPP"; then
  6057. if ${ac_cv_prog_CPP+:} false; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. # Double quotes because CPP needs to be expanded
  6061. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6062. do
  6063. ac_preproc_ok=false
  6064. for ac_c_preproc_warn_flag in '' yes
  6065. do
  6066. # Use a header file that comes with gcc, so configuring glibc
  6067. # with a fresh cross-compiler works.
  6068. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6069. # <limits.h> exists even on freestanding compilers.
  6070. # On the NeXT, cc -E runs the code through the compiler's parser,
  6071. # not just through cpp. "Syntax error" is here to catch this case.
  6072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6073. /* end confdefs.h. */
  6074. #ifdef __STDC__
  6075. # include <limits.h>
  6076. #else
  6077. # include <assert.h>
  6078. #endif
  6079. Syntax error
  6080. _ACEOF
  6081. if ac_fn_c_try_cpp "$LINENO"; then :
  6082. else
  6083. # Broken: fails on valid input.
  6084. continue
  6085. fi
  6086. rm -f conftest.err conftest.i conftest.$ac_ext
  6087. # OK, works on sane cases. Now check whether nonexistent headers
  6088. # can be detected and how.
  6089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6090. /* end confdefs.h. */
  6091. #include <ac_nonexistent.h>
  6092. _ACEOF
  6093. if ac_fn_c_try_cpp "$LINENO"; then :
  6094. # Broken: success on invalid input.
  6095. continue
  6096. else
  6097. # Passes both tests.
  6098. ac_preproc_ok=:
  6099. break
  6100. fi
  6101. rm -f conftest.err conftest.i conftest.$ac_ext
  6102. done
  6103. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6104. rm -f conftest.i conftest.err conftest.$ac_ext
  6105. if $ac_preproc_ok; then :
  6106. break
  6107. fi
  6108. done
  6109. ac_cv_prog_CPP=$CPP
  6110. fi
  6111. CPP=$ac_cv_prog_CPP
  6112. else
  6113. ac_cv_prog_CPP=$CPP
  6114. fi
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6116. $as_echo "$CPP" >&6; }
  6117. ac_preproc_ok=false
  6118. for ac_c_preproc_warn_flag in '' yes
  6119. do
  6120. # Use a header file that comes with gcc, so configuring glibc
  6121. # with a fresh cross-compiler works.
  6122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6123. # <limits.h> exists even on freestanding compilers.
  6124. # On the NeXT, cc -E runs the code through the compiler's parser,
  6125. # not just through cpp. "Syntax error" is here to catch this case.
  6126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6127. /* end confdefs.h. */
  6128. #ifdef __STDC__
  6129. # include <limits.h>
  6130. #else
  6131. # include <assert.h>
  6132. #endif
  6133. Syntax error
  6134. _ACEOF
  6135. if ac_fn_c_try_cpp "$LINENO"; then :
  6136. else
  6137. # Broken: fails on valid input.
  6138. continue
  6139. fi
  6140. rm -f conftest.err conftest.i conftest.$ac_ext
  6141. # OK, works on sane cases. Now check whether nonexistent headers
  6142. # can be detected and how.
  6143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6144. /* end confdefs.h. */
  6145. #include <ac_nonexistent.h>
  6146. _ACEOF
  6147. if ac_fn_c_try_cpp "$LINENO"; then :
  6148. # Broken: success on invalid input.
  6149. continue
  6150. else
  6151. # Passes both tests.
  6152. ac_preproc_ok=:
  6153. break
  6154. fi
  6155. rm -f conftest.err conftest.i conftest.$ac_ext
  6156. done
  6157. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6158. rm -f conftest.i conftest.err conftest.$ac_ext
  6159. if $ac_preproc_ok; then :
  6160. else
  6161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6163. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6164. See \`config.log' for more details" "$LINENO" 5; }
  6165. fi
  6166. ac_ext=c
  6167. ac_cpp='$CPP $CPPFLAGS'
  6168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6172. $as_echo_n "checking for ANSI C header files... " >&6; }
  6173. if ${ac_cv_header_stdc+:} false; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6177. /* end confdefs.h. */
  6178. #include <stdlib.h>
  6179. #include <stdarg.h>
  6180. #include <string.h>
  6181. #include <float.h>
  6182. int
  6183. main ()
  6184. {
  6185. ;
  6186. return 0;
  6187. }
  6188. _ACEOF
  6189. if ac_fn_c_try_compile "$LINENO"; then :
  6190. ac_cv_header_stdc=yes
  6191. else
  6192. ac_cv_header_stdc=no
  6193. fi
  6194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6195. if test $ac_cv_header_stdc = yes; then
  6196. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6198. /* end confdefs.h. */
  6199. #include <string.h>
  6200. _ACEOF
  6201. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6202. $EGREP "memchr" >/dev/null 2>&1; then :
  6203. else
  6204. ac_cv_header_stdc=no
  6205. fi
  6206. rm -f conftest*
  6207. fi
  6208. if test $ac_cv_header_stdc = yes; then
  6209. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6211. /* end confdefs.h. */
  6212. #include <stdlib.h>
  6213. _ACEOF
  6214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6215. $EGREP "free" >/dev/null 2>&1; then :
  6216. else
  6217. ac_cv_header_stdc=no
  6218. fi
  6219. rm -f conftest*
  6220. fi
  6221. if test $ac_cv_header_stdc = yes; then
  6222. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6223. if test "$cross_compiling" = yes; then :
  6224. :
  6225. else
  6226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6227. /* end confdefs.h. */
  6228. #include <ctype.h>
  6229. #include <stdlib.h>
  6230. #if ((' ' & 0x0FF) == 0x020)
  6231. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6232. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6233. #else
  6234. # define ISLOWER(c) \
  6235. (('a' <= (c) && (c) <= 'i') \
  6236. || ('j' <= (c) && (c) <= 'r') \
  6237. || ('s' <= (c) && (c) <= 'z'))
  6238. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6239. #endif
  6240. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6241. int
  6242. main ()
  6243. {
  6244. int i;
  6245. for (i = 0; i < 256; i++)
  6246. if (XOR (islower (i), ISLOWER (i))
  6247. || toupper (i) != TOUPPER (i))
  6248. return 2;
  6249. return 0;
  6250. }
  6251. _ACEOF
  6252. if ac_fn_c_try_run "$LINENO"; then :
  6253. else
  6254. ac_cv_header_stdc=no
  6255. fi
  6256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6257. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6258. fi
  6259. fi
  6260. fi
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6262. $as_echo "$ac_cv_header_stdc" >&6; }
  6263. if test $ac_cv_header_stdc = yes; then
  6264. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6265. fi
  6266. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6267. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6268. inttypes.h stdint.h unistd.h
  6269. do :
  6270. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6271. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6272. "
  6273. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6274. cat >>confdefs.h <<_ACEOF
  6275. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6276. _ACEOF
  6277. fi
  6278. done
  6279. for ac_header in dlfcn.h
  6280. do :
  6281. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6282. "
  6283. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6284. cat >>confdefs.h <<_ACEOF
  6285. #define HAVE_DLFCN_H 1
  6286. _ACEOF
  6287. fi
  6288. done
  6289. # Set options
  6290. enable_win32_dll=yes
  6291. case $host in
  6292. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6293. if test -n "$ac_tool_prefix"; then
  6294. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6295. set dummy ${ac_tool_prefix}as; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if ${ac_cv_prog_AS+:} false; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. if test -n "$AS"; then
  6302. ac_cv_prog_AS="$AS" # Let the user override the test.
  6303. else
  6304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6305. for as_dir in $PATH
  6306. do
  6307. IFS=$as_save_IFS
  6308. test -z "$as_dir" && as_dir=.
  6309. for ac_exec_ext in '' $ac_executable_extensions; do
  6310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6311. ac_cv_prog_AS="${ac_tool_prefix}as"
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6313. break 2
  6314. fi
  6315. done
  6316. done
  6317. IFS=$as_save_IFS
  6318. fi
  6319. fi
  6320. AS=$ac_cv_prog_AS
  6321. if test -n "$AS"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6323. $as_echo "$AS" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. fi
  6329. if test -z "$ac_cv_prog_AS"; then
  6330. ac_ct_AS=$AS
  6331. # Extract the first word of "as", so it can be a program name with args.
  6332. set dummy as; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$ac_ct_AS"; then
  6339. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6348. ac_cv_prog_ac_ct_AS="as"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6358. if test -n "$ac_ct_AS"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6360. $as_echo "$ac_ct_AS" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. if test "x$ac_ct_AS" = x; then
  6366. AS="false"
  6367. else
  6368. case $cross_compiling:$ac_tool_warned in
  6369. yes:)
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. AS=$ac_ct_AS
  6375. fi
  6376. else
  6377. AS="$ac_cv_prog_AS"
  6378. fi
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. $as_echo_n "checking for $ac_word... " >&6; }
  6384. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. if test -n "$DLLTOOL"; then
  6388. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6397. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. DLLTOOL=$ac_cv_prog_DLLTOOL
  6407. if test -n "$DLLTOOL"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6409. $as_echo "$DLLTOOL" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_DLLTOOL"; then
  6416. ac_ct_DLLTOOL=$DLLTOOL
  6417. # Extract the first word of "dlltool", so it can be a program name with args.
  6418. set dummy dlltool; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$ac_ct_DLLTOOL"; then
  6425. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6434. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6444. if test -n "$ac_ct_DLLTOOL"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6446. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_DLLTOOL" = x; then
  6452. DLLTOOL="false"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6458. ac_tool_warned=yes ;;
  6459. esac
  6460. DLLTOOL=$ac_ct_DLLTOOL
  6461. fi
  6462. else
  6463. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6464. fi
  6465. if test -n "$ac_tool_prefix"; then
  6466. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6467. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6469. $as_echo_n "checking for $ac_word... " >&6; }
  6470. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. if test -n "$OBJDUMP"; then
  6474. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6475. else
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6483. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. OBJDUMP=$ac_cv_prog_OBJDUMP
  6493. if test -n "$OBJDUMP"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6495. $as_echo "$OBJDUMP" >&6; }
  6496. else
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. fi
  6501. if test -z "$ac_cv_prog_OBJDUMP"; then
  6502. ac_ct_OBJDUMP=$OBJDUMP
  6503. # Extract the first word of "objdump", so it can be a program name with args.
  6504. set dummy objdump; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. if test -n "$ac_ct_OBJDUMP"; then
  6511. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. test -z "$as_dir" && as_dir=.
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6520. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6530. if test -n "$ac_ct_OBJDUMP"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6532. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. if test "x$ac_ct_OBJDUMP" = x; then
  6538. OBJDUMP="false"
  6539. else
  6540. case $cross_compiling:$ac_tool_warned in
  6541. yes:)
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6544. ac_tool_warned=yes ;;
  6545. esac
  6546. OBJDUMP=$ac_ct_OBJDUMP
  6547. fi
  6548. else
  6549. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6550. fi
  6551. ;;
  6552. esac
  6553. test -z "$AS" && AS=as
  6554. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6555. test -z "$OBJDUMP" && OBJDUMP=objdump
  6556. enable_dlopen=no
  6557. # Check whether --enable-shared was given.
  6558. if test "${enable_shared+set}" = set; then :
  6559. enableval=$enable_shared; p=${PACKAGE-default}
  6560. case $enableval in
  6561. yes) enable_shared=yes ;;
  6562. no) enable_shared=no ;;
  6563. *)
  6564. enable_shared=no
  6565. # Look at the argument we got. We use all the common list separators.
  6566. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6567. for pkg in $enableval; do
  6568. IFS="$lt_save_ifs"
  6569. if test "X$pkg" = "X$p"; then
  6570. enable_shared=yes
  6571. fi
  6572. done
  6573. IFS="$lt_save_ifs"
  6574. ;;
  6575. esac
  6576. else
  6577. enable_shared=yes
  6578. fi
  6579. # Check whether --enable-static was given.
  6580. if test "${enable_static+set}" = set; then :
  6581. enableval=$enable_static; p=${PACKAGE-default}
  6582. case $enableval in
  6583. yes) enable_static=yes ;;
  6584. no) enable_static=no ;;
  6585. *)
  6586. enable_static=no
  6587. # Look at the argument we got. We use all the common list separators.
  6588. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6589. for pkg in $enableval; do
  6590. IFS="$lt_save_ifs"
  6591. if test "X$pkg" = "X$p"; then
  6592. enable_static=yes
  6593. fi
  6594. done
  6595. IFS="$lt_save_ifs"
  6596. ;;
  6597. esac
  6598. else
  6599. enable_static=yes
  6600. fi
  6601. # Check whether --with-pic was given.
  6602. if test "${with_pic+set}" = set; then :
  6603. withval=$with_pic; lt_p=${PACKAGE-default}
  6604. case $withval in
  6605. yes|no) pic_mode=$withval ;;
  6606. *)
  6607. pic_mode=default
  6608. # Look at the argument we got. We use all the common list separators.
  6609. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6610. for lt_pkg in $withval; do
  6611. IFS="$lt_save_ifs"
  6612. if test "X$lt_pkg" = "X$lt_p"; then
  6613. pic_mode=yes
  6614. fi
  6615. done
  6616. IFS="$lt_save_ifs"
  6617. ;;
  6618. esac
  6619. else
  6620. pic_mode=default
  6621. fi
  6622. test -z "$pic_mode" && pic_mode=default
  6623. # Check whether --enable-fast-install was given.
  6624. if test "${enable_fast_install+set}" = set; then :
  6625. enableval=$enable_fast_install; p=${PACKAGE-default}
  6626. case $enableval in
  6627. yes) enable_fast_install=yes ;;
  6628. no) enable_fast_install=no ;;
  6629. *)
  6630. enable_fast_install=no
  6631. # Look at the argument we got. We use all the common list separators.
  6632. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6633. for pkg in $enableval; do
  6634. IFS="$lt_save_ifs"
  6635. if test "X$pkg" = "X$p"; then
  6636. enable_fast_install=yes
  6637. fi
  6638. done
  6639. IFS="$lt_save_ifs"
  6640. ;;
  6641. esac
  6642. else
  6643. enable_fast_install=yes
  6644. fi
  6645. # This can be used to rebuild libtool when needed
  6646. LIBTOOL_DEPS="$ltmain"
  6647. # Always use our own libtool.
  6648. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6649. test -z "$LN_S" && LN_S="ln -s"
  6650. if test -n "${ZSH_VERSION+set}" ; then
  6651. setopt NO_GLOB_SUBST
  6652. fi
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6654. $as_echo_n "checking for objdir... " >&6; }
  6655. if ${lt_cv_objdir+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. rm -f .libs 2>/dev/null
  6659. mkdir .libs 2>/dev/null
  6660. if test -d .libs; then
  6661. lt_cv_objdir=.libs
  6662. else
  6663. # MS-DOS does not allow filenames that begin with a dot.
  6664. lt_cv_objdir=_libs
  6665. fi
  6666. rmdir .libs 2>/dev/null
  6667. fi
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6669. $as_echo "$lt_cv_objdir" >&6; }
  6670. objdir=$lt_cv_objdir
  6671. cat >>confdefs.h <<_ACEOF
  6672. #define LT_OBJDIR "$lt_cv_objdir/"
  6673. _ACEOF
  6674. case $host_os in
  6675. aix3*)
  6676. # AIX sometimes has problems with the GCC collect2 program. For some
  6677. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6678. # vanish in a puff of smoke.
  6679. if test "X${COLLECT_NAMES+set}" != Xset; then
  6680. COLLECT_NAMES=
  6681. export COLLECT_NAMES
  6682. fi
  6683. ;;
  6684. esac
  6685. # Global variables:
  6686. ofile=libtool
  6687. can_build_shared=yes
  6688. # All known linkers require a `.a' archive for static linking (except MSVC,
  6689. # which needs '.lib').
  6690. libext=a
  6691. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6692. old_CC="$CC"
  6693. old_CFLAGS="$CFLAGS"
  6694. # Set sane defaults for various variables
  6695. test -z "$CC" && CC=cc
  6696. test -z "$LTCC" && LTCC=$CC
  6697. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6698. test -z "$LD" && LD=ld
  6699. test -z "$ac_objext" && ac_objext=o
  6700. for cc_temp in $compiler""; do
  6701. case $cc_temp in
  6702. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6703. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6704. \-*) ;;
  6705. *) break;;
  6706. esac
  6707. done
  6708. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6709. # Only perform the check for file, if the check method requires it
  6710. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6711. case $deplibs_check_method in
  6712. file_magic*)
  6713. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6715. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6716. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. case $MAGIC_CMD in
  6720. [\\/*] | ?:[\\/]*)
  6721. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6722. ;;
  6723. *)
  6724. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6725. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6726. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6727. for ac_dir in $ac_dummy; do
  6728. IFS="$lt_save_ifs"
  6729. test -z "$ac_dir" && ac_dir=.
  6730. if test -f $ac_dir/${ac_tool_prefix}file; then
  6731. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6732. if test -n "$file_magic_test_file"; then
  6733. case $deplibs_check_method in
  6734. "file_magic "*)
  6735. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6736. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6737. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6738. $EGREP "$file_magic_regex" > /dev/null; then
  6739. :
  6740. else
  6741. cat <<_LT_EOF 1>&2
  6742. *** Warning: the command libtool uses to detect shared libraries,
  6743. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6744. *** The result is that libtool may fail to recognize shared libraries
  6745. *** as such. This will affect the creation of libtool libraries that
  6746. *** depend on shared libraries, but programs linked with such libtool
  6747. *** libraries will work regardless of this problem. Nevertheless, you
  6748. *** may want to report the problem to your system manager and/or to
  6749. *** bug-libtool@gnu.org
  6750. _LT_EOF
  6751. fi ;;
  6752. esac
  6753. fi
  6754. break
  6755. fi
  6756. done
  6757. IFS="$lt_save_ifs"
  6758. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6759. ;;
  6760. esac
  6761. fi
  6762. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6763. if test -n "$MAGIC_CMD"; then
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6765. $as_echo "$MAGIC_CMD" >&6; }
  6766. else
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6768. $as_echo "no" >&6; }
  6769. fi
  6770. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6771. if test -n "$ac_tool_prefix"; then
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6773. $as_echo_n "checking for file... " >&6; }
  6774. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. case $MAGIC_CMD in
  6778. [\\/*] | ?:[\\/]*)
  6779. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6780. ;;
  6781. *)
  6782. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6783. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6784. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6785. for ac_dir in $ac_dummy; do
  6786. IFS="$lt_save_ifs"
  6787. test -z "$ac_dir" && ac_dir=.
  6788. if test -f $ac_dir/file; then
  6789. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6790. if test -n "$file_magic_test_file"; then
  6791. case $deplibs_check_method in
  6792. "file_magic "*)
  6793. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6794. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6795. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6796. $EGREP "$file_magic_regex" > /dev/null; then
  6797. :
  6798. else
  6799. cat <<_LT_EOF 1>&2
  6800. *** Warning: the command libtool uses to detect shared libraries,
  6801. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6802. *** The result is that libtool may fail to recognize shared libraries
  6803. *** as such. This will affect the creation of libtool libraries that
  6804. *** depend on shared libraries, but programs linked with such libtool
  6805. *** libraries will work regardless of this problem. Nevertheless, you
  6806. *** may want to report the problem to your system manager and/or to
  6807. *** bug-libtool@gnu.org
  6808. _LT_EOF
  6809. fi ;;
  6810. esac
  6811. fi
  6812. break
  6813. fi
  6814. done
  6815. IFS="$lt_save_ifs"
  6816. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6817. ;;
  6818. esac
  6819. fi
  6820. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6821. if test -n "$MAGIC_CMD"; then
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6823. $as_echo "$MAGIC_CMD" >&6; }
  6824. else
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6826. $as_echo "no" >&6; }
  6827. fi
  6828. else
  6829. MAGIC_CMD=:
  6830. fi
  6831. fi
  6832. fi
  6833. ;;
  6834. esac
  6835. # Use C for the default configuration in the libtool script
  6836. lt_save_CC="$CC"
  6837. ac_ext=c
  6838. ac_cpp='$CPP $CPPFLAGS'
  6839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6842. # Source file extension for C test sources.
  6843. ac_ext=c
  6844. # Object file extension for compiled C test sources.
  6845. objext=o
  6846. objext=$objext
  6847. # Code to be used in simple compile tests
  6848. lt_simple_compile_test_code="int some_variable = 0;"
  6849. # Code to be used in simple link tests
  6850. lt_simple_link_test_code='int main(){return(0);}'
  6851. # If no C compiler was specified, use CC.
  6852. LTCC=${LTCC-"$CC"}
  6853. # If no C compiler flags were specified, use CFLAGS.
  6854. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6855. # Allow CC to be a program name with arguments.
  6856. compiler=$CC
  6857. # Save the default compiler, since it gets overwritten when the other
  6858. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6859. compiler_DEFAULT=$CC
  6860. # save warnings/boilerplate of simple test code
  6861. ac_outfile=conftest.$ac_objext
  6862. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6863. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6864. _lt_compiler_boilerplate=`cat conftest.err`
  6865. $RM conftest*
  6866. ac_outfile=conftest.$ac_objext
  6867. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6868. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6869. _lt_linker_boilerplate=`cat conftest.err`
  6870. $RM -r conftest*
  6871. ## CAVEAT EMPTOR:
  6872. ## There is no encapsulation within the following macros, do not change
  6873. ## the running order or otherwise move them around unless you know exactly
  6874. ## what you are doing...
  6875. if test -n "$compiler"; then
  6876. lt_prog_compiler_no_builtin_flag=
  6877. if test "$GCC" = yes; then
  6878. case $cc_basename in
  6879. nvcc*)
  6880. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6881. *)
  6882. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6883. esac
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6885. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6886. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6887. $as_echo_n "(cached) " >&6
  6888. else
  6889. lt_cv_prog_compiler_rtti_exceptions=no
  6890. ac_outfile=conftest.$ac_objext
  6891. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6892. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6893. # Insert the option either (1) after the last *FLAGS variable, or
  6894. # (2) before a word containing "conftest.", or (3) at the end.
  6895. # Note that $ac_compile itself does not contain backslashes and begins
  6896. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6897. # The option is referenced via a variable to avoid confusing sed.
  6898. lt_compile=`echo "$ac_compile" | $SED \
  6899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6901. -e 's:$: $lt_compiler_flag:'`
  6902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6903. (eval "$lt_compile" 2>conftest.err)
  6904. ac_status=$?
  6905. cat conftest.err >&5
  6906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6907. if (exit $ac_status) && test -s "$ac_outfile"; then
  6908. # The compiler can only warn and ignore the option if not recognized
  6909. # So say no if there are warnings other than the usual output.
  6910. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6911. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6912. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6913. lt_cv_prog_compiler_rtti_exceptions=yes
  6914. fi
  6915. fi
  6916. $RM conftest*
  6917. fi
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6919. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6920. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6921. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6922. else
  6923. :
  6924. fi
  6925. fi
  6926. lt_prog_compiler_wl=
  6927. lt_prog_compiler_pic=
  6928. lt_prog_compiler_static=
  6929. if test "$GCC" = yes; then
  6930. lt_prog_compiler_wl='-Wl,'
  6931. lt_prog_compiler_static='-static'
  6932. case $host_os in
  6933. aix*)
  6934. # All AIX code is PIC.
  6935. if test "$host_cpu" = ia64; then
  6936. # AIX 5 now supports IA64 processor
  6937. lt_prog_compiler_static='-Bstatic'
  6938. fi
  6939. ;;
  6940. amigaos*)
  6941. case $host_cpu in
  6942. powerpc)
  6943. # see comment about AmigaOS4 .so support
  6944. lt_prog_compiler_pic='-fPIC'
  6945. ;;
  6946. m68k)
  6947. # FIXME: we need at least 68020 code to build shared libraries, but
  6948. # adding the `-m68020' flag to GCC prevents building anything better,
  6949. # like `-m68040'.
  6950. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6951. ;;
  6952. esac
  6953. ;;
  6954. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6955. # PIC is the default for these OSes.
  6956. ;;
  6957. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6958. # This hack is so that the source file can tell whether it is being
  6959. # built for inclusion in a dll (and should export symbols for example).
  6960. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6961. # (--disable-auto-import) libraries
  6962. lt_prog_compiler_pic='-DDLL_EXPORT'
  6963. ;;
  6964. darwin* | rhapsody*)
  6965. # PIC is the default on this platform
  6966. # Common symbols not allowed in MH_DYLIB files
  6967. lt_prog_compiler_pic='-fno-common'
  6968. ;;
  6969. haiku*)
  6970. # PIC is the default for Haiku.
  6971. # The "-static" flag exists, but is broken.
  6972. lt_prog_compiler_static=
  6973. ;;
  6974. hpux*)
  6975. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6976. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6977. # sets the default TLS model and affects inlining.
  6978. case $host_cpu in
  6979. hppa*64*)
  6980. # +Z the default
  6981. ;;
  6982. *)
  6983. lt_prog_compiler_pic='-fPIC'
  6984. ;;
  6985. esac
  6986. ;;
  6987. interix[3-9]*)
  6988. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6989. # Instead, we relocate shared libraries at runtime.
  6990. ;;
  6991. msdosdjgpp*)
  6992. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6993. # on systems that don't support them.
  6994. lt_prog_compiler_can_build_shared=no
  6995. enable_shared=no
  6996. ;;
  6997. *nto* | *qnx*)
  6998. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6999. # it will coredump.
  7000. lt_prog_compiler_pic='-fPIC -shared'
  7001. ;;
  7002. sysv4*MP*)
  7003. if test -d /usr/nec; then
  7004. lt_prog_compiler_pic=-Kconform_pic
  7005. fi
  7006. ;;
  7007. *)
  7008. lt_prog_compiler_pic='-fPIC'
  7009. ;;
  7010. esac
  7011. case $cc_basename in
  7012. nvcc*) # Cuda Compiler Driver 2.2
  7013. lt_prog_compiler_wl='-Xlinker '
  7014. if test -n "$lt_prog_compiler_pic"; then
  7015. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7016. fi
  7017. ;;
  7018. esac
  7019. else
  7020. # PORTME Check for flag to pass linker flags through the system compiler.
  7021. case $host_os in
  7022. aix*)
  7023. lt_prog_compiler_wl='-Wl,'
  7024. if test "$host_cpu" = ia64; then
  7025. # AIX 5 now supports IA64 processor
  7026. lt_prog_compiler_static='-Bstatic'
  7027. else
  7028. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7029. fi
  7030. ;;
  7031. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7032. # This hack is so that the source file can tell whether it is being
  7033. # built for inclusion in a dll (and should export symbols for example).
  7034. lt_prog_compiler_pic='-DDLL_EXPORT'
  7035. ;;
  7036. hpux9* | hpux10* | hpux11*)
  7037. lt_prog_compiler_wl='-Wl,'
  7038. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7039. # not for PA HP-UX.
  7040. case $host_cpu in
  7041. hppa*64*|ia64*)
  7042. # +Z the default
  7043. ;;
  7044. *)
  7045. lt_prog_compiler_pic='+Z'
  7046. ;;
  7047. esac
  7048. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7049. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7050. ;;
  7051. irix5* | irix6* | nonstopux*)
  7052. lt_prog_compiler_wl='-Wl,'
  7053. # PIC (with -KPIC) is the default.
  7054. lt_prog_compiler_static='-non_shared'
  7055. ;;
  7056. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7057. case $cc_basename in
  7058. # old Intel for x86_64 which still supported -KPIC.
  7059. ecc*)
  7060. lt_prog_compiler_wl='-Wl,'
  7061. lt_prog_compiler_pic='-KPIC'
  7062. lt_prog_compiler_static='-static'
  7063. ;;
  7064. # icc used to be incompatible with GCC.
  7065. # ICC 10 doesn't accept -KPIC any more.
  7066. icc* | ifort*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-fPIC'
  7069. lt_prog_compiler_static='-static'
  7070. ;;
  7071. # Lahey Fortran 8.1.
  7072. lf95*)
  7073. lt_prog_compiler_wl='-Wl,'
  7074. lt_prog_compiler_pic='--shared'
  7075. lt_prog_compiler_static='--static'
  7076. ;;
  7077. nagfor*)
  7078. # NAG Fortran compiler
  7079. lt_prog_compiler_wl='-Wl,-Wl,,'
  7080. lt_prog_compiler_pic='-PIC'
  7081. lt_prog_compiler_static='-Bstatic'
  7082. ;;
  7083. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7084. # Portland Group compilers (*not* the Pentium gcc compiler,
  7085. # which looks to be a dead project)
  7086. lt_prog_compiler_wl='-Wl,'
  7087. lt_prog_compiler_pic='-fpic'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. ;;
  7090. ccc*)
  7091. lt_prog_compiler_wl='-Wl,'
  7092. # All Alpha code is PIC.
  7093. lt_prog_compiler_static='-non_shared'
  7094. ;;
  7095. xl* | bgxl* | bgf* | mpixl*)
  7096. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7097. lt_prog_compiler_wl='-Wl,'
  7098. lt_prog_compiler_pic='-qpic'
  7099. lt_prog_compiler_static='-qstaticlink'
  7100. ;;
  7101. *)
  7102. case `$CC -V 2>&1 | sed 5q` in
  7103. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7104. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7105. lt_prog_compiler_pic='-KPIC'
  7106. lt_prog_compiler_static='-Bstatic'
  7107. lt_prog_compiler_wl=''
  7108. ;;
  7109. *Sun\ F* | *Sun*Fortran*)
  7110. lt_prog_compiler_pic='-KPIC'
  7111. lt_prog_compiler_static='-Bstatic'
  7112. lt_prog_compiler_wl='-Qoption ld '
  7113. ;;
  7114. *Sun\ C*)
  7115. # Sun C 5.9
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-Bstatic'
  7118. lt_prog_compiler_wl='-Wl,'
  7119. ;;
  7120. *Intel*\ [CF]*Compiler*)
  7121. lt_prog_compiler_wl='-Wl,'
  7122. lt_prog_compiler_pic='-fPIC'
  7123. lt_prog_compiler_static='-static'
  7124. ;;
  7125. *Portland\ Group*)
  7126. lt_prog_compiler_wl='-Wl,'
  7127. lt_prog_compiler_pic='-fpic'
  7128. lt_prog_compiler_static='-Bstatic'
  7129. ;;
  7130. esac
  7131. ;;
  7132. esac
  7133. ;;
  7134. newsos6)
  7135. lt_prog_compiler_pic='-KPIC'
  7136. lt_prog_compiler_static='-Bstatic'
  7137. ;;
  7138. *nto* | *qnx*)
  7139. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7140. # it will coredump.
  7141. lt_prog_compiler_pic='-fPIC -shared'
  7142. ;;
  7143. osf3* | osf4* | osf5*)
  7144. lt_prog_compiler_wl='-Wl,'
  7145. # All OSF/1 code is PIC.
  7146. lt_prog_compiler_static='-non_shared'
  7147. ;;
  7148. rdos*)
  7149. lt_prog_compiler_static='-non_shared'
  7150. ;;
  7151. solaris*)
  7152. lt_prog_compiler_pic='-KPIC'
  7153. lt_prog_compiler_static='-Bstatic'
  7154. case $cc_basename in
  7155. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7156. lt_prog_compiler_wl='-Qoption ld ';;
  7157. *)
  7158. lt_prog_compiler_wl='-Wl,';;
  7159. esac
  7160. ;;
  7161. sunos4*)
  7162. lt_prog_compiler_wl='-Qoption ld '
  7163. lt_prog_compiler_pic='-PIC'
  7164. lt_prog_compiler_static='-Bstatic'
  7165. ;;
  7166. sysv4 | sysv4.2uw2* | sysv4.3*)
  7167. lt_prog_compiler_wl='-Wl,'
  7168. lt_prog_compiler_pic='-KPIC'
  7169. lt_prog_compiler_static='-Bstatic'
  7170. ;;
  7171. sysv4*MP*)
  7172. if test -d /usr/nec ;then
  7173. lt_prog_compiler_pic='-Kconform_pic'
  7174. lt_prog_compiler_static='-Bstatic'
  7175. fi
  7176. ;;
  7177. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. lt_prog_compiler_pic='-KPIC'
  7180. lt_prog_compiler_static='-Bstatic'
  7181. ;;
  7182. unicos*)
  7183. lt_prog_compiler_wl='-Wl,'
  7184. lt_prog_compiler_can_build_shared=no
  7185. ;;
  7186. uts4*)
  7187. lt_prog_compiler_pic='-pic'
  7188. lt_prog_compiler_static='-Bstatic'
  7189. ;;
  7190. *)
  7191. lt_prog_compiler_can_build_shared=no
  7192. ;;
  7193. esac
  7194. fi
  7195. case $host_os in
  7196. # For platforms which do not support PIC, -DPIC is meaningless:
  7197. *djgpp*)
  7198. lt_prog_compiler_pic=
  7199. ;;
  7200. *)
  7201. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7202. ;;
  7203. esac
  7204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7205. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7206. if ${lt_cv_prog_compiler_pic+:} false; then :
  7207. $as_echo_n "(cached) " >&6
  7208. else
  7209. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7210. fi
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7212. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7213. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7214. #
  7215. # Check to make sure the PIC flag actually works.
  7216. #
  7217. if test -n "$lt_prog_compiler_pic"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7219. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7220. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7221. $as_echo_n "(cached) " >&6
  7222. else
  7223. lt_cv_prog_compiler_pic_works=no
  7224. ac_outfile=conftest.$ac_objext
  7225. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7226. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7227. # Insert the option either (1) after the last *FLAGS variable, or
  7228. # (2) before a word containing "conftest.", or (3) at the end.
  7229. # Note that $ac_compile itself does not contain backslashes and begins
  7230. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7231. # The option is referenced via a variable to avoid confusing sed.
  7232. lt_compile=`echo "$ac_compile" | $SED \
  7233. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7234. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7235. -e 's:$: $lt_compiler_flag:'`
  7236. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7237. (eval "$lt_compile" 2>conftest.err)
  7238. ac_status=$?
  7239. cat conftest.err >&5
  7240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7241. if (exit $ac_status) && test -s "$ac_outfile"; then
  7242. # The compiler can only warn and ignore the option if not recognized
  7243. # So say no if there are warnings other than the usual output.
  7244. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7245. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7246. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7247. lt_cv_prog_compiler_pic_works=yes
  7248. fi
  7249. fi
  7250. $RM conftest*
  7251. fi
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7253. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7254. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7255. case $lt_prog_compiler_pic in
  7256. "" | " "*) ;;
  7257. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7258. esac
  7259. else
  7260. lt_prog_compiler_pic=
  7261. lt_prog_compiler_can_build_shared=no
  7262. fi
  7263. fi
  7264. #
  7265. # Check to make sure the static flag actually works.
  7266. #
  7267. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7269. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7270. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. lt_cv_prog_compiler_static_works=no
  7274. save_LDFLAGS="$LDFLAGS"
  7275. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7276. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7277. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7278. # The linker can only warn and ignore the option if not recognized
  7279. # So say no if there are warnings
  7280. if test -s conftest.err; then
  7281. # Append any errors to the config.log.
  7282. cat conftest.err 1>&5
  7283. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7284. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7285. if diff conftest.exp conftest.er2 >/dev/null; then
  7286. lt_cv_prog_compiler_static_works=yes
  7287. fi
  7288. else
  7289. lt_cv_prog_compiler_static_works=yes
  7290. fi
  7291. fi
  7292. $RM -r conftest*
  7293. LDFLAGS="$save_LDFLAGS"
  7294. fi
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7296. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7297. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7298. :
  7299. else
  7300. lt_prog_compiler_static=
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7303. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7304. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7305. $as_echo_n "(cached) " >&6
  7306. else
  7307. lt_cv_prog_compiler_c_o=no
  7308. $RM -r conftest 2>/dev/null
  7309. mkdir conftest
  7310. cd conftest
  7311. mkdir out
  7312. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7313. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7314. # Insert the option either (1) after the last *FLAGS variable, or
  7315. # (2) before a word containing "conftest.", or (3) at the end.
  7316. # Note that $ac_compile itself does not contain backslashes and begins
  7317. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7318. lt_compile=`echo "$ac_compile" | $SED \
  7319. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7320. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7321. -e 's:$: $lt_compiler_flag:'`
  7322. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7323. (eval "$lt_compile" 2>out/conftest.err)
  7324. ac_status=$?
  7325. cat out/conftest.err >&5
  7326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7327. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7328. then
  7329. # The compiler can only warn and ignore the option if not recognized
  7330. # So say no if there are warnings
  7331. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7332. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7333. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7334. lt_cv_prog_compiler_c_o=yes
  7335. fi
  7336. fi
  7337. chmod u+w . 2>&5
  7338. $RM conftest*
  7339. # SGI C++ compiler will create directory out/ii_files/ for
  7340. # template instantiation
  7341. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7342. $RM out/* && rmdir out
  7343. cd ..
  7344. $RM -r conftest
  7345. $RM conftest*
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7348. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7350. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7351. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7352. $as_echo_n "(cached) " >&6
  7353. else
  7354. lt_cv_prog_compiler_c_o=no
  7355. $RM -r conftest 2>/dev/null
  7356. mkdir conftest
  7357. cd conftest
  7358. mkdir out
  7359. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7360. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7361. # Insert the option either (1) after the last *FLAGS variable, or
  7362. # (2) before a word containing "conftest.", or (3) at the end.
  7363. # Note that $ac_compile itself does not contain backslashes and begins
  7364. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7365. lt_compile=`echo "$ac_compile" | $SED \
  7366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7368. -e 's:$: $lt_compiler_flag:'`
  7369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7370. (eval "$lt_compile" 2>out/conftest.err)
  7371. ac_status=$?
  7372. cat out/conftest.err >&5
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7375. then
  7376. # The compiler can only warn and ignore the option if not recognized
  7377. # So say no if there are warnings
  7378. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7379. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7380. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7381. lt_cv_prog_compiler_c_o=yes
  7382. fi
  7383. fi
  7384. chmod u+w . 2>&5
  7385. $RM conftest*
  7386. # SGI C++ compiler will create directory out/ii_files/ for
  7387. # template instantiation
  7388. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7389. $RM out/* && rmdir out
  7390. cd ..
  7391. $RM -r conftest
  7392. $RM conftest*
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7395. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7396. hard_links="nottested"
  7397. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7398. # do not overwrite the value of need_locks provided by the user
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7400. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7401. hard_links=yes
  7402. $RM conftest*
  7403. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7404. touch conftest.a
  7405. ln conftest.a conftest.b 2>&5 || hard_links=no
  7406. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7408. $as_echo "$hard_links" >&6; }
  7409. if test "$hard_links" = no; then
  7410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7411. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7412. need_locks=warn
  7413. fi
  7414. else
  7415. need_locks=no
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7418. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7419. runpath_var=
  7420. allow_undefined_flag=
  7421. always_export_symbols=no
  7422. archive_cmds=
  7423. archive_expsym_cmds=
  7424. compiler_needs_object=no
  7425. enable_shared_with_static_runtimes=no
  7426. export_dynamic_flag_spec=
  7427. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7428. hardcode_automatic=no
  7429. hardcode_direct=no
  7430. hardcode_direct_absolute=no
  7431. hardcode_libdir_flag_spec=
  7432. hardcode_libdir_separator=
  7433. hardcode_minus_L=no
  7434. hardcode_shlibpath_var=unsupported
  7435. inherit_rpath=no
  7436. link_all_deplibs=unknown
  7437. module_cmds=
  7438. module_expsym_cmds=
  7439. old_archive_from_new_cmds=
  7440. old_archive_from_expsyms_cmds=
  7441. thread_safe_flag_spec=
  7442. whole_archive_flag_spec=
  7443. # include_expsyms should be a list of space-separated symbols to be *always*
  7444. # included in the symbol list
  7445. include_expsyms=
  7446. # exclude_expsyms can be an extended regexp of symbols to exclude
  7447. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7448. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7449. # as well as any symbol that contains `d'.
  7450. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7451. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7452. # platforms (ab)use it in PIC code, but their linkers get confused if
  7453. # the symbol is explicitly referenced. Since portable code cannot
  7454. # rely on this symbol name, it's probably fine to never include it in
  7455. # preloaded symbol tables.
  7456. # Exclude shared library initialization/finalization symbols.
  7457. extract_expsyms_cmds=
  7458. case $host_os in
  7459. cygwin* | mingw* | pw32* | cegcc*)
  7460. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7461. # When not using gcc, we currently assume that we are using
  7462. # Microsoft Visual C++.
  7463. if test "$GCC" != yes; then
  7464. with_gnu_ld=no
  7465. fi
  7466. ;;
  7467. interix*)
  7468. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7469. with_gnu_ld=yes
  7470. ;;
  7471. openbsd*)
  7472. with_gnu_ld=no
  7473. ;;
  7474. esac
  7475. ld_shlibs=yes
  7476. # On some targets, GNU ld is compatible enough with the native linker
  7477. # that we're better off using the native interface for both.
  7478. lt_use_gnu_ld_interface=no
  7479. if test "$with_gnu_ld" = yes; then
  7480. case $host_os in
  7481. aix*)
  7482. # The AIX port of GNU ld has always aspired to compatibility
  7483. # with the native linker. However, as the warning in the GNU ld
  7484. # block says, versions before 2.19.5* couldn't really create working
  7485. # shared libraries, regardless of the interface used.
  7486. case `$LD -v 2>&1` in
  7487. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7488. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7489. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7490. *)
  7491. lt_use_gnu_ld_interface=yes
  7492. ;;
  7493. esac
  7494. ;;
  7495. *)
  7496. lt_use_gnu_ld_interface=yes
  7497. ;;
  7498. esac
  7499. fi
  7500. if test "$lt_use_gnu_ld_interface" = yes; then
  7501. # If archive_cmds runs LD, not CC, wlarc should be empty
  7502. wlarc='${wl}'
  7503. # Set some defaults for GNU ld with shared library support. These
  7504. # are reset later if shared libraries are not supported. Putting them
  7505. # here allows them to be overridden if necessary.
  7506. runpath_var=LD_RUN_PATH
  7507. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7508. export_dynamic_flag_spec='${wl}--export-dynamic'
  7509. # ancient GNU ld didn't support --whole-archive et. al.
  7510. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7511. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7512. else
  7513. whole_archive_flag_spec=
  7514. fi
  7515. supports_anon_versioning=no
  7516. case `$LD -v 2>&1` in
  7517. *GNU\ gold*) supports_anon_versioning=yes ;;
  7518. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7519. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7520. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7521. *\ 2.11.*) ;; # other 2.11 versions
  7522. *) supports_anon_versioning=yes ;;
  7523. esac
  7524. # See if GNU ld supports shared libraries.
  7525. case $host_os in
  7526. aix[3-9]*)
  7527. # On AIX/PPC, the GNU linker is very broken
  7528. if test "$host_cpu" != ia64; then
  7529. ld_shlibs=no
  7530. cat <<_LT_EOF 1>&2
  7531. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7532. *** to be unable to reliably create shared libraries on AIX.
  7533. *** Therefore, libtool is disabling shared libraries support. If you
  7534. *** really care for shared libraries, you may want to install binutils
  7535. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7536. *** You will then need to restart the configuration process.
  7537. _LT_EOF
  7538. fi
  7539. ;;
  7540. amigaos*)
  7541. case $host_cpu in
  7542. powerpc)
  7543. # see comment about AmigaOS4 .so support
  7544. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7545. archive_expsym_cmds=''
  7546. ;;
  7547. m68k)
  7548. 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)'
  7549. hardcode_libdir_flag_spec='-L$libdir'
  7550. hardcode_minus_L=yes
  7551. ;;
  7552. esac
  7553. ;;
  7554. beos*)
  7555. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7556. allow_undefined_flag=unsupported
  7557. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7558. # support --undefined. This deserves some investigation. FIXME
  7559. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7560. else
  7561. ld_shlibs=no
  7562. fi
  7563. ;;
  7564. cygwin* | mingw* | pw32* | cegcc*)
  7565. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7566. # as there is no search path for DLLs.
  7567. hardcode_libdir_flag_spec='-L$libdir'
  7568. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7569. allow_undefined_flag=unsupported
  7570. always_export_symbols=no
  7571. enable_shared_with_static_runtimes=yes
  7572. 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'
  7573. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7574. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7575. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7576. # If the export-symbols file already is a .def file (1st line
  7577. # is EXPORTS), use it as is; otherwise, prepend...
  7578. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7579. cp $export_symbols $output_objdir/$soname.def;
  7580. else
  7581. echo EXPORTS > $output_objdir/$soname.def;
  7582. cat $export_symbols >> $output_objdir/$soname.def;
  7583. fi~
  7584. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7585. else
  7586. ld_shlibs=no
  7587. fi
  7588. ;;
  7589. haiku*)
  7590. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7591. link_all_deplibs=yes
  7592. ;;
  7593. interix[3-9]*)
  7594. hardcode_direct=no
  7595. hardcode_shlibpath_var=no
  7596. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7597. export_dynamic_flag_spec='${wl}-E'
  7598. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7599. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7600. # default) and relocated if they conflict, which is a slow very memory
  7601. # consuming and fragmenting process. To avoid this, we pick a random,
  7602. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7603. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7604. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7605. 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'
  7606. ;;
  7607. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7608. tmp_diet=no
  7609. if test "$host_os" = linux-dietlibc; then
  7610. case $cc_basename in
  7611. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7612. esac
  7613. fi
  7614. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7615. && test "$tmp_diet" = no
  7616. then
  7617. tmp_addflag=' $pic_flag'
  7618. tmp_sharedflag='-shared'
  7619. case $cc_basename,$host_cpu in
  7620. pgcc*) # Portland Group C compiler
  7621. 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'
  7622. tmp_addflag=' $pic_flag'
  7623. ;;
  7624. pgf77* | pgf90* | pgf95* | pgfortran*)
  7625. # Portland Group f77 and f90 compilers
  7626. 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'
  7627. tmp_addflag=' $pic_flag -Mnomain' ;;
  7628. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7629. tmp_addflag=' -i_dynamic' ;;
  7630. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7631. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7632. ifc* | ifort*) # Intel Fortran compiler
  7633. tmp_addflag=' -nofor_main' ;;
  7634. lf95*) # Lahey Fortran 8.1
  7635. whole_archive_flag_spec=
  7636. tmp_sharedflag='--shared' ;;
  7637. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7638. tmp_sharedflag='-qmkshrobj'
  7639. tmp_addflag= ;;
  7640. nvcc*) # Cuda Compiler Driver 2.2
  7641. 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'
  7642. compiler_needs_object=yes
  7643. ;;
  7644. esac
  7645. case `$CC -V 2>&1 | sed 5q` in
  7646. *Sun\ C*) # Sun C 5.9
  7647. 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'
  7648. compiler_needs_object=yes
  7649. tmp_sharedflag='-G' ;;
  7650. *Sun\ F*) # Sun Fortran 8.3
  7651. tmp_sharedflag='-G' ;;
  7652. esac
  7653. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7654. if test "x$supports_anon_versioning" = xyes; then
  7655. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7656. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7657. echo "local: *; };" >> $output_objdir/$libname.ver~
  7658. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7659. fi
  7660. case $cc_basename in
  7661. xlf* | bgf* | bgxlf* | mpixlf*)
  7662. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7663. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7664. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7665. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7666. if test "x$supports_anon_versioning" = xyes; then
  7667. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7668. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7669. echo "local: *; };" >> $output_objdir/$libname.ver~
  7670. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7671. fi
  7672. ;;
  7673. esac
  7674. else
  7675. ld_shlibs=no
  7676. fi
  7677. ;;
  7678. netbsd*)
  7679. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7680. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7681. wlarc=
  7682. else
  7683. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7684. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7685. fi
  7686. ;;
  7687. solaris*)
  7688. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7689. ld_shlibs=no
  7690. cat <<_LT_EOF 1>&2
  7691. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7692. *** create shared libraries on Solaris systems. Therefore, libtool
  7693. *** is disabling shared libraries support. We urge you to upgrade GNU
  7694. *** binutils to release 2.9.1 or newer. Another option is to modify
  7695. *** your PATH or compiler configuration so that the native linker is
  7696. *** used, and then restart.
  7697. _LT_EOF
  7698. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7699. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7700. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7701. else
  7702. ld_shlibs=no
  7703. fi
  7704. ;;
  7705. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7706. case `$LD -v 2>&1` in
  7707. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7708. ld_shlibs=no
  7709. cat <<_LT_EOF 1>&2
  7710. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7711. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7712. *** is disabling shared libraries support. We urge you to upgrade GNU
  7713. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7714. *** your PATH or compiler configuration so that the native linker is
  7715. *** used, and then restart.
  7716. _LT_EOF
  7717. ;;
  7718. *)
  7719. # For security reasons, it is highly recommended that you always
  7720. # use absolute paths for naming shared libraries, and exclude the
  7721. # DT_RUNPATH tag from executables and libraries. But doing so
  7722. # requires that you compile everything twice, which is a pain.
  7723. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7724. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7725. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7726. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7727. else
  7728. ld_shlibs=no
  7729. fi
  7730. ;;
  7731. esac
  7732. ;;
  7733. sunos4*)
  7734. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7735. wlarc=
  7736. hardcode_direct=yes
  7737. hardcode_shlibpath_var=no
  7738. ;;
  7739. *)
  7740. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7741. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7742. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7743. else
  7744. ld_shlibs=no
  7745. fi
  7746. ;;
  7747. esac
  7748. if test "$ld_shlibs" = no; then
  7749. runpath_var=
  7750. hardcode_libdir_flag_spec=
  7751. export_dynamic_flag_spec=
  7752. whole_archive_flag_spec=
  7753. fi
  7754. else
  7755. # PORTME fill in a description of your system's linker (not GNU ld)
  7756. case $host_os in
  7757. aix3*)
  7758. allow_undefined_flag=unsupported
  7759. always_export_symbols=yes
  7760. 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'
  7761. # Note: this linker hardcodes the directories in LIBPATH if there
  7762. # are no directories specified by -L.
  7763. hardcode_minus_L=yes
  7764. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7765. # Neither direct hardcoding nor static linking is supported with a
  7766. # broken collect2.
  7767. hardcode_direct=unsupported
  7768. fi
  7769. ;;
  7770. aix[4-9]*)
  7771. if test "$host_cpu" = ia64; then
  7772. # On IA64, the linker does run time linking by default, so we don't
  7773. # have to do anything special.
  7774. aix_use_runtimelinking=no
  7775. exp_sym_flag='-Bexport'
  7776. no_entry_flag=""
  7777. else
  7778. # If we're using GNU nm, then we don't want the "-C" option.
  7779. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7780. # Also, AIX nm treats weak defined symbols like other global
  7781. # defined symbols, whereas GNU nm marks them as "W".
  7782. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7783. 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'
  7784. else
  7785. 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'
  7786. fi
  7787. aix_use_runtimelinking=no
  7788. # Test if we are trying to use run time linking or normal
  7789. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7790. # need to do runtime linking.
  7791. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7792. for ld_flag in $LDFLAGS; do
  7793. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7794. aix_use_runtimelinking=yes
  7795. break
  7796. fi
  7797. done
  7798. ;;
  7799. esac
  7800. exp_sym_flag='-bexport'
  7801. no_entry_flag='-bnoentry'
  7802. fi
  7803. # When large executables or shared objects are built, AIX ld can
  7804. # have problems creating the table of contents. If linking a library
  7805. # or program results in "error TOC overflow" add -mminimal-toc to
  7806. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7807. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7808. archive_cmds=''
  7809. hardcode_direct=yes
  7810. hardcode_direct_absolute=yes
  7811. hardcode_libdir_separator=':'
  7812. link_all_deplibs=yes
  7813. file_list_spec='${wl}-f,'
  7814. if test "$GCC" = yes; then
  7815. case $host_os in aix4.[012]|aix4.[012].*)
  7816. # We only want to do this on AIX 4.2 and lower, the check
  7817. # below for broken collect2 doesn't work under 4.3+
  7818. collect2name=`${CC} -print-prog-name=collect2`
  7819. if test -f "$collect2name" &&
  7820. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7821. then
  7822. # We have reworked collect2
  7823. :
  7824. else
  7825. # We have old collect2
  7826. hardcode_direct=unsupported
  7827. # It fails to find uninstalled libraries when the uninstalled
  7828. # path is not listed in the libpath. Setting hardcode_minus_L
  7829. # to unsupported forces relinking
  7830. hardcode_minus_L=yes
  7831. hardcode_libdir_flag_spec='-L$libdir'
  7832. hardcode_libdir_separator=
  7833. fi
  7834. ;;
  7835. esac
  7836. shared_flag='-shared'
  7837. if test "$aix_use_runtimelinking" = yes; then
  7838. shared_flag="$shared_flag "'${wl}-G'
  7839. fi
  7840. else
  7841. # not using gcc
  7842. if test "$host_cpu" = ia64; then
  7843. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7844. # chokes on -Wl,-G. The following line is correct:
  7845. shared_flag='-G'
  7846. else
  7847. if test "$aix_use_runtimelinking" = yes; then
  7848. shared_flag='${wl}-G'
  7849. else
  7850. shared_flag='${wl}-bM:SRE'
  7851. fi
  7852. fi
  7853. fi
  7854. export_dynamic_flag_spec='${wl}-bexpall'
  7855. # It seems that -bexpall does not export symbols beginning with
  7856. # underscore (_), so it is better to generate a list of symbols to export.
  7857. always_export_symbols=yes
  7858. if test "$aix_use_runtimelinking" = yes; then
  7859. # Warning - without using the other runtime loading flags (-brtl),
  7860. # -berok will link without error, but may produce a broken library.
  7861. allow_undefined_flag='-berok'
  7862. # Determine the default libpath from the value encoded in an
  7863. # empty executable.
  7864. if test "${lt_cv_aix_libpath+set}" = set; then
  7865. aix_libpath=$lt_cv_aix_libpath
  7866. else
  7867. if ${lt_cv_aix_libpath_+:} false; then :
  7868. $as_echo_n "(cached) " >&6
  7869. else
  7870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7871. /* end confdefs.h. */
  7872. int
  7873. main ()
  7874. {
  7875. ;
  7876. return 0;
  7877. }
  7878. _ACEOF
  7879. if ac_fn_c_try_link "$LINENO"; then :
  7880. lt_aix_libpath_sed='
  7881. /Import File Strings/,/^$/ {
  7882. /^0/ {
  7883. s/^0 *\([^ ]*\) *$/\1/
  7884. p
  7885. }
  7886. }'
  7887. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7888. # Check for a 64-bit object if we didn't find anything.
  7889. if test -z "$lt_cv_aix_libpath_"; then
  7890. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7891. fi
  7892. fi
  7893. rm -f core conftest.err conftest.$ac_objext \
  7894. conftest$ac_exeext conftest.$ac_ext
  7895. if test -z "$lt_cv_aix_libpath_"; then
  7896. lt_cv_aix_libpath_="/usr/lib:/lib"
  7897. fi
  7898. fi
  7899. aix_libpath=$lt_cv_aix_libpath_
  7900. fi
  7901. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7902. 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"
  7903. else
  7904. if test "$host_cpu" = ia64; then
  7905. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7906. allow_undefined_flag="-z nodefs"
  7907. 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"
  7908. else
  7909. # Determine the default libpath from the value encoded in an
  7910. # empty executable.
  7911. if test "${lt_cv_aix_libpath+set}" = set; then
  7912. aix_libpath=$lt_cv_aix_libpath
  7913. else
  7914. if ${lt_cv_aix_libpath_+:} false; then :
  7915. $as_echo_n "(cached) " >&6
  7916. else
  7917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7918. /* end confdefs.h. */
  7919. int
  7920. main ()
  7921. {
  7922. ;
  7923. return 0;
  7924. }
  7925. _ACEOF
  7926. if ac_fn_c_try_link "$LINENO"; then :
  7927. lt_aix_libpath_sed='
  7928. /Import File Strings/,/^$/ {
  7929. /^0/ {
  7930. s/^0 *\([^ ]*\) *$/\1/
  7931. p
  7932. }
  7933. }'
  7934. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7935. # Check for a 64-bit object if we didn't find anything.
  7936. if test -z "$lt_cv_aix_libpath_"; then
  7937. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7938. fi
  7939. fi
  7940. rm -f core conftest.err conftest.$ac_objext \
  7941. conftest$ac_exeext conftest.$ac_ext
  7942. if test -z "$lt_cv_aix_libpath_"; then
  7943. lt_cv_aix_libpath_="/usr/lib:/lib"
  7944. fi
  7945. fi
  7946. aix_libpath=$lt_cv_aix_libpath_
  7947. fi
  7948. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7949. # Warning - without using the other run time loading flags,
  7950. # -berok will link without error, but may produce a broken library.
  7951. no_undefined_flag=' ${wl}-bernotok'
  7952. allow_undefined_flag=' ${wl}-berok'
  7953. if test "$with_gnu_ld" = yes; then
  7954. # We only use this code for GNU lds that support --whole-archive.
  7955. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7956. else
  7957. # Exported symbols can be pulled into shared objects from archives
  7958. whole_archive_flag_spec='$convenience'
  7959. fi
  7960. archive_cmds_need_lc=yes
  7961. # This is similar to how AIX traditionally builds its shared libraries.
  7962. 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'
  7963. fi
  7964. fi
  7965. ;;
  7966. amigaos*)
  7967. case $host_cpu in
  7968. powerpc)
  7969. # see comment about AmigaOS4 .so support
  7970. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7971. archive_expsym_cmds=''
  7972. ;;
  7973. m68k)
  7974. 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)'
  7975. hardcode_libdir_flag_spec='-L$libdir'
  7976. hardcode_minus_L=yes
  7977. ;;
  7978. esac
  7979. ;;
  7980. bsdi[45]*)
  7981. export_dynamic_flag_spec=-rdynamic
  7982. ;;
  7983. cygwin* | mingw* | pw32* | cegcc*)
  7984. # When not using gcc, we currently assume that we are using
  7985. # Microsoft Visual C++.
  7986. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7987. # no search path for DLLs.
  7988. case $cc_basename in
  7989. cl*)
  7990. # Native MSVC
  7991. hardcode_libdir_flag_spec=' '
  7992. allow_undefined_flag=unsupported
  7993. always_export_symbols=yes
  7994. file_list_spec='@'
  7995. # Tell ltmain to make .lib files, not .a files.
  7996. libext=lib
  7997. # Tell ltmain to make .dll files, not .so files.
  7998. shrext_cmds=".dll"
  7999. # FIXME: Setting linknames here is a bad hack.
  8000. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8001. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8002. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8003. else
  8004. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8005. fi~
  8006. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8007. linknames='
  8008. # The linker will not automatically build a static lib if we build a DLL.
  8009. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8010. enable_shared_with_static_runtimes=yes
  8011. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8012. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8013. # Don't use ranlib
  8014. old_postinstall_cmds='chmod 644 $oldlib'
  8015. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8016. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8017. case $lt_outputfile in
  8018. *.exe|*.EXE) ;;
  8019. *)
  8020. lt_outputfile="$lt_outputfile.exe"
  8021. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8022. ;;
  8023. esac~
  8024. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8025. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8026. $RM "$lt_outputfile.manifest";
  8027. fi'
  8028. ;;
  8029. *)
  8030. # Assume MSVC wrapper
  8031. hardcode_libdir_flag_spec=' '
  8032. allow_undefined_flag=unsupported
  8033. # Tell ltmain to make .lib files, not .a files.
  8034. libext=lib
  8035. # Tell ltmain to make .dll files, not .so files.
  8036. shrext_cmds=".dll"
  8037. # FIXME: Setting linknames here is a bad hack.
  8038. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8039. # The linker will automatically build a .lib file if we build a DLL.
  8040. old_archive_from_new_cmds='true'
  8041. # FIXME: Should let the user specify the lib program.
  8042. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8043. enable_shared_with_static_runtimes=yes
  8044. ;;
  8045. esac
  8046. ;;
  8047. darwin* | rhapsody*)
  8048. archive_cmds_need_lc=no
  8049. hardcode_direct=no
  8050. hardcode_automatic=yes
  8051. hardcode_shlibpath_var=unsupported
  8052. if test "$lt_cv_ld_force_load" = "yes"; then
  8053. 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\"`'
  8054. else
  8055. whole_archive_flag_spec=''
  8056. fi
  8057. link_all_deplibs=yes
  8058. allow_undefined_flag="$_lt_dar_allow_undefined"
  8059. case $cc_basename in
  8060. ifort*) _lt_dar_can_shared=yes ;;
  8061. *) _lt_dar_can_shared=$GCC ;;
  8062. esac
  8063. if test "$_lt_dar_can_shared" = "yes"; then
  8064. output_verbose_link_cmd=func_echo_all
  8065. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8066. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8067. 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}"
  8068. 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}"
  8069. else
  8070. ld_shlibs=no
  8071. fi
  8072. ;;
  8073. dgux*)
  8074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8075. hardcode_libdir_flag_spec='-L$libdir'
  8076. hardcode_shlibpath_var=no
  8077. ;;
  8078. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8079. # support. Future versions do this automatically, but an explicit c++rt0.o
  8080. # does not break anything, and helps significantly (at the cost of a little
  8081. # extra space).
  8082. freebsd2.2*)
  8083. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8084. hardcode_libdir_flag_spec='-R$libdir'
  8085. hardcode_direct=yes
  8086. hardcode_shlibpath_var=no
  8087. ;;
  8088. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8089. freebsd2.*)
  8090. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8091. hardcode_direct=yes
  8092. hardcode_minus_L=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8096. freebsd* | dragonfly*)
  8097. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8098. hardcode_libdir_flag_spec='-R$libdir'
  8099. hardcode_direct=yes
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. hpux9*)
  8103. if test "$GCC" = yes; then
  8104. 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'
  8105. else
  8106. 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'
  8107. fi
  8108. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8109. hardcode_libdir_separator=:
  8110. hardcode_direct=yes
  8111. # hardcode_minus_L: Not really in the search PATH,
  8112. # but as the default location of the library.
  8113. hardcode_minus_L=yes
  8114. export_dynamic_flag_spec='${wl}-E'
  8115. ;;
  8116. hpux10*)
  8117. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8118. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8119. else
  8120. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8121. fi
  8122. if test "$with_gnu_ld" = no; then
  8123. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8124. hardcode_libdir_separator=:
  8125. hardcode_direct=yes
  8126. hardcode_direct_absolute=yes
  8127. export_dynamic_flag_spec='${wl}-E'
  8128. # hardcode_minus_L: Not really in the search PATH,
  8129. # but as the default location of the library.
  8130. hardcode_minus_L=yes
  8131. fi
  8132. ;;
  8133. hpux11*)
  8134. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8135. case $host_cpu in
  8136. hppa*64*)
  8137. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8138. ;;
  8139. ia64*)
  8140. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8141. ;;
  8142. *)
  8143. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8144. ;;
  8145. esac
  8146. else
  8147. case $host_cpu in
  8148. hppa*64*)
  8149. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8150. ;;
  8151. ia64*)
  8152. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8153. ;;
  8154. *)
  8155. # Older versions of the 11.00 compiler do not understand -b yet
  8156. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8158. $as_echo_n "checking if $CC understands -b... " >&6; }
  8159. if ${lt_cv_prog_compiler__b+:} false; then :
  8160. $as_echo_n "(cached) " >&6
  8161. else
  8162. lt_cv_prog_compiler__b=no
  8163. save_LDFLAGS="$LDFLAGS"
  8164. LDFLAGS="$LDFLAGS -b"
  8165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8167. # The linker can only warn and ignore the option if not recognized
  8168. # So say no if there are warnings
  8169. if test -s conftest.err; then
  8170. # Append any errors to the config.log.
  8171. cat conftest.err 1>&5
  8172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8174. if diff conftest.exp conftest.er2 >/dev/null; then
  8175. lt_cv_prog_compiler__b=yes
  8176. fi
  8177. else
  8178. lt_cv_prog_compiler__b=yes
  8179. fi
  8180. fi
  8181. $RM -r conftest*
  8182. LDFLAGS="$save_LDFLAGS"
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8185. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8186. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8187. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8188. else
  8189. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8190. fi
  8191. ;;
  8192. esac
  8193. fi
  8194. if test "$with_gnu_ld" = no; then
  8195. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8196. hardcode_libdir_separator=:
  8197. case $host_cpu in
  8198. hppa*64*|ia64*)
  8199. hardcode_direct=no
  8200. hardcode_shlibpath_var=no
  8201. ;;
  8202. *)
  8203. hardcode_direct=yes
  8204. hardcode_direct_absolute=yes
  8205. export_dynamic_flag_spec='${wl}-E'
  8206. # hardcode_minus_L: Not really in the search PATH,
  8207. # but as the default location of the library.
  8208. hardcode_minus_L=yes
  8209. ;;
  8210. esac
  8211. fi
  8212. ;;
  8213. irix5* | irix6* | nonstopux*)
  8214. if test "$GCC" = yes; then
  8215. 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'
  8216. # Try to use the -exported_symbol ld option, if it does not
  8217. # work, assume that -exports_file does not work either and
  8218. # implicitly export all symbols.
  8219. # This should be the same for all languages, so no per-tag cache variable.
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8221. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8222. if ${lt_cv_irix_exported_symbol+:} false; then :
  8223. $as_echo_n "(cached) " >&6
  8224. else
  8225. save_LDFLAGS="$LDFLAGS"
  8226. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8228. /* end confdefs.h. */
  8229. int foo (void) { return 0; }
  8230. _ACEOF
  8231. if ac_fn_c_try_link "$LINENO"; then :
  8232. lt_cv_irix_exported_symbol=yes
  8233. else
  8234. lt_cv_irix_exported_symbol=no
  8235. fi
  8236. rm -f core conftest.err conftest.$ac_objext \
  8237. conftest$ac_exeext conftest.$ac_ext
  8238. LDFLAGS="$save_LDFLAGS"
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8241. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8242. if test "$lt_cv_irix_exported_symbol" = yes; then
  8243. 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'
  8244. fi
  8245. else
  8246. 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'
  8247. 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'
  8248. fi
  8249. archive_cmds_need_lc='no'
  8250. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8251. hardcode_libdir_separator=:
  8252. inherit_rpath=yes
  8253. link_all_deplibs=yes
  8254. ;;
  8255. netbsd*)
  8256. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8257. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8258. else
  8259. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8260. fi
  8261. hardcode_libdir_flag_spec='-R$libdir'
  8262. hardcode_direct=yes
  8263. hardcode_shlibpath_var=no
  8264. ;;
  8265. newsos6)
  8266. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8267. hardcode_direct=yes
  8268. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8269. hardcode_libdir_separator=:
  8270. hardcode_shlibpath_var=no
  8271. ;;
  8272. *nto* | *qnx*)
  8273. ;;
  8274. openbsd*)
  8275. if test -f /usr/libexec/ld.so; then
  8276. hardcode_direct=yes
  8277. hardcode_shlibpath_var=no
  8278. hardcode_direct_absolute=yes
  8279. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8280. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8281. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8282. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8283. export_dynamic_flag_spec='${wl}-E'
  8284. else
  8285. case $host_os in
  8286. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8287. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8288. hardcode_libdir_flag_spec='-R$libdir'
  8289. ;;
  8290. *)
  8291. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8292. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8293. ;;
  8294. esac
  8295. fi
  8296. else
  8297. ld_shlibs=no
  8298. fi
  8299. ;;
  8300. os2*)
  8301. hardcode_libdir_flag_spec='-L$libdir'
  8302. hardcode_minus_L=yes
  8303. allow_undefined_flag=unsupported
  8304. 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'
  8305. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8306. ;;
  8307. osf3*)
  8308. if test "$GCC" = yes; then
  8309. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8310. 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'
  8311. else
  8312. allow_undefined_flag=' -expect_unresolved \*'
  8313. 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'
  8314. fi
  8315. archive_cmds_need_lc='no'
  8316. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8317. hardcode_libdir_separator=:
  8318. ;;
  8319. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8320. if test "$GCC" = yes; then
  8321. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8322. 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'
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. else
  8325. allow_undefined_flag=' -expect_unresolved \*'
  8326. 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'
  8327. 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~
  8328. $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'
  8329. # Both c and cxx compiler support -rpath directly
  8330. hardcode_libdir_flag_spec='-rpath $libdir'
  8331. fi
  8332. archive_cmds_need_lc='no'
  8333. hardcode_libdir_separator=:
  8334. ;;
  8335. solaris*)
  8336. no_undefined_flag=' -z defs'
  8337. if test "$GCC" = yes; then
  8338. wlarc='${wl}'
  8339. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8340. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8341. $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'
  8342. else
  8343. case `$CC -V 2>&1` in
  8344. *"Compilers 5.0"*)
  8345. wlarc=''
  8346. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8347. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8348. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8349. ;;
  8350. *)
  8351. wlarc='${wl}'
  8352. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8353. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8354. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8355. ;;
  8356. esac
  8357. fi
  8358. hardcode_libdir_flag_spec='-R$libdir'
  8359. hardcode_shlibpath_var=no
  8360. case $host_os in
  8361. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8362. *)
  8363. # The compiler driver will combine and reorder linker options,
  8364. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8365. # but is careful enough not to reorder.
  8366. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8367. if test "$GCC" = yes; then
  8368. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8369. else
  8370. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8371. fi
  8372. ;;
  8373. esac
  8374. link_all_deplibs=yes
  8375. ;;
  8376. sunos4*)
  8377. if test "x$host_vendor" = xsequent; then
  8378. # Use $CC to link under sequent, because it throws in some extra .o
  8379. # files that make .init and .fini sections work.
  8380. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8381. else
  8382. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8383. fi
  8384. hardcode_libdir_flag_spec='-L$libdir'
  8385. hardcode_direct=yes
  8386. hardcode_minus_L=yes
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. sysv4)
  8390. case $host_vendor in
  8391. sni)
  8392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8393. hardcode_direct=yes # is this really true???
  8394. ;;
  8395. siemens)
  8396. ## LD is ld it makes a PLAMLIB
  8397. ## CC just makes a GrossModule.
  8398. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8399. reload_cmds='$CC -r -o $output$reload_objs'
  8400. hardcode_direct=no
  8401. ;;
  8402. motorola)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8405. ;;
  8406. esac
  8407. runpath_var='LD_RUN_PATH'
  8408. hardcode_shlibpath_var=no
  8409. ;;
  8410. sysv4.3*)
  8411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_shlibpath_var=no
  8413. export_dynamic_flag_spec='-Bexport'
  8414. ;;
  8415. sysv4*MP*)
  8416. if test -d /usr/nec; then
  8417. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8418. hardcode_shlibpath_var=no
  8419. runpath_var=LD_RUN_PATH
  8420. hardcode_runpath_var=yes
  8421. ld_shlibs=yes
  8422. fi
  8423. ;;
  8424. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8425. no_undefined_flag='${wl}-z,text'
  8426. archive_cmds_need_lc=no
  8427. hardcode_shlibpath_var=no
  8428. runpath_var='LD_RUN_PATH'
  8429. if test "$GCC" = yes; then
  8430. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8432. else
  8433. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. fi
  8436. ;;
  8437. sysv5* | sco3.2v5* | sco5v6*)
  8438. # Note: We can NOT use -z defs as we might desire, because we do not
  8439. # link with -lc, and that would cause any symbols used from libc to
  8440. # always be unresolved, which means just about no library would
  8441. # ever link correctly. If we're not using GNU ld we use -z text
  8442. # though, which does catch some bad symbols but isn't as heavy-handed
  8443. # as -z defs.
  8444. no_undefined_flag='${wl}-z,text'
  8445. allow_undefined_flag='${wl}-z,nodefs'
  8446. archive_cmds_need_lc=no
  8447. hardcode_shlibpath_var=no
  8448. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8449. hardcode_libdir_separator=':'
  8450. link_all_deplibs=yes
  8451. export_dynamic_flag_spec='${wl}-Bexport'
  8452. runpath_var='LD_RUN_PATH'
  8453. if test "$GCC" = yes; then
  8454. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8455. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8456. else
  8457. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8458. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. fi
  8460. ;;
  8461. uts4*)
  8462. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8463. hardcode_libdir_flag_spec='-L$libdir'
  8464. hardcode_shlibpath_var=no
  8465. ;;
  8466. *)
  8467. ld_shlibs=no
  8468. ;;
  8469. esac
  8470. if test x$host_vendor = xsni; then
  8471. case $host in
  8472. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8473. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8474. ;;
  8475. esac
  8476. fi
  8477. fi
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8479. $as_echo "$ld_shlibs" >&6; }
  8480. test "$ld_shlibs" = no && can_build_shared=no
  8481. with_gnu_ld=$with_gnu_ld
  8482. #
  8483. # Do we need to explicitly link libc?
  8484. #
  8485. case "x$archive_cmds_need_lc" in
  8486. x|xyes)
  8487. # Assume -lc should be added
  8488. archive_cmds_need_lc=yes
  8489. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8490. case $archive_cmds in
  8491. *'~'*)
  8492. # FIXME: we may have to deal with multi-command sequences.
  8493. ;;
  8494. '$CC '*)
  8495. # Test whether the compiler implicitly links with -lc since on some
  8496. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8497. # to ld, don't add -lc before -lgcc.
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8499. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8500. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8501. $as_echo_n "(cached) " >&6
  8502. else
  8503. $RM conftest*
  8504. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8505. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8506. (eval $ac_compile) 2>&5
  8507. ac_status=$?
  8508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8509. test $ac_status = 0; } 2>conftest.err; then
  8510. soname=conftest
  8511. lib=conftest
  8512. libobjs=conftest.$ac_objext
  8513. deplibs=
  8514. wl=$lt_prog_compiler_wl
  8515. pic_flag=$lt_prog_compiler_pic
  8516. compiler_flags=-v
  8517. linker_flags=-v
  8518. verstring=
  8519. output_objdir=.
  8520. libname=conftest
  8521. lt_save_allow_undefined_flag=$allow_undefined_flag
  8522. allow_undefined_flag=
  8523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8524. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8525. ac_status=$?
  8526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8527. test $ac_status = 0; }
  8528. then
  8529. lt_cv_archive_cmds_need_lc=no
  8530. else
  8531. lt_cv_archive_cmds_need_lc=yes
  8532. fi
  8533. allow_undefined_flag=$lt_save_allow_undefined_flag
  8534. else
  8535. cat conftest.err 1>&5
  8536. fi
  8537. $RM conftest*
  8538. fi
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8540. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8541. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8542. ;;
  8543. esac
  8544. fi
  8545. ;;
  8546. esac
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8548. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8549. if test "$GCC" = yes; then
  8550. case $host_os in
  8551. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8552. *) lt_awk_arg="/^libraries:/" ;;
  8553. esac
  8554. case $host_os in
  8555. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8556. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8557. esac
  8558. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8559. case $lt_search_path_spec in
  8560. *\;*)
  8561. # if the path contains ";" then we assume it to be the separator
  8562. # otherwise default to the standard path separator (i.e. ":") - it is
  8563. # assumed that no part of a normal pathname contains ";" but that should
  8564. # okay in the real world where ";" in dirpaths is itself problematic.
  8565. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8566. ;;
  8567. *)
  8568. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8569. ;;
  8570. esac
  8571. # Ok, now we have the path, separated by spaces, we can step through it
  8572. # and add multilib dir if necessary...
  8573. lt_tmp_lt_search_path_spec=
  8574. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8575. # ...but if some path already ends with the multilib dir we assume
  8576. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8577. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8578. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8579. lt_multi_os_dir=
  8580. ;;
  8581. esac
  8582. for lt_sys_path in $lt_search_path_spec; do
  8583. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8584. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8585. elif test -n "$lt_multi_os_dir"; then
  8586. test -d "$lt_sys_path" && \
  8587. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8588. fi
  8589. done
  8590. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8591. BEGIN {RS=" "; FS="/|\n";} {
  8592. lt_foo="";
  8593. lt_count=0;
  8594. for (lt_i = NF; lt_i > 0; lt_i--) {
  8595. if ($lt_i != "" && $lt_i != ".") {
  8596. if ($lt_i == "..") {
  8597. lt_count++;
  8598. } else {
  8599. if (lt_count == 0) {
  8600. lt_foo="/" $lt_i lt_foo;
  8601. } else {
  8602. lt_count--;
  8603. }
  8604. }
  8605. }
  8606. }
  8607. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8608. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8609. }'`
  8610. # AWK program above erroneously prepends '/' to C:/dos/paths
  8611. # for these hosts.
  8612. case $host_os in
  8613. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8614. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8615. esac
  8616. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8617. else
  8618. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8619. fi
  8620. library_names_spec=
  8621. libname_spec='lib$name'
  8622. soname_spec=
  8623. shrext_cmds=".so"
  8624. postinstall_cmds=
  8625. postuninstall_cmds=
  8626. finish_cmds=
  8627. finish_eval=
  8628. shlibpath_var=
  8629. shlibpath_overrides_runpath=unknown
  8630. version_type=none
  8631. dynamic_linker="$host_os ld.so"
  8632. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8633. need_lib_prefix=unknown
  8634. hardcode_into_libs=no
  8635. # when you set need_version to no, make sure it does not cause -set_version
  8636. # flags to be left without arguments
  8637. need_version=unknown
  8638. case $host_os in
  8639. aix3*)
  8640. version_type=linux # correct to gnu/linux during the next big refactor
  8641. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8642. shlibpath_var=LIBPATH
  8643. # AIX 3 has no versioning support, so we append a major version to the name.
  8644. soname_spec='${libname}${release}${shared_ext}$major'
  8645. ;;
  8646. aix[4-9]*)
  8647. version_type=linux # correct to gnu/linux during the next big refactor
  8648. need_lib_prefix=no
  8649. need_version=no
  8650. hardcode_into_libs=yes
  8651. if test "$host_cpu" = ia64; then
  8652. # AIX 5 supports IA64
  8653. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8654. shlibpath_var=LD_LIBRARY_PATH
  8655. else
  8656. # With GCC up to 2.95.x, collect2 would create an import file
  8657. # for dependence libraries. The import file would start with
  8658. # the line `#! .'. This would cause the generated library to
  8659. # depend on `.', always an invalid library. This was fixed in
  8660. # development snapshots of GCC prior to 3.0.
  8661. case $host_os in
  8662. aix4 | aix4.[01] | aix4.[01].*)
  8663. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8664. echo ' yes '
  8665. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8666. :
  8667. else
  8668. can_build_shared=no
  8669. fi
  8670. ;;
  8671. esac
  8672. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8673. # soname into executable. Probably we can add versioning support to
  8674. # collect2, so additional links can be useful in future.
  8675. if test "$aix_use_runtimelinking" = yes; then
  8676. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8677. # instead of lib<name>.a to let people know that these are not
  8678. # typical AIX shared libraries.
  8679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8680. else
  8681. # We preserve .a as extension for shared libraries through AIX4.2
  8682. # and later when we are not doing run time linking.
  8683. library_names_spec='${libname}${release}.a $libname.a'
  8684. soname_spec='${libname}${release}${shared_ext}$major'
  8685. fi
  8686. shlibpath_var=LIBPATH
  8687. fi
  8688. ;;
  8689. amigaos*)
  8690. case $host_cpu in
  8691. powerpc)
  8692. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8693. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8695. ;;
  8696. m68k)
  8697. library_names_spec='$libname.ixlibrary $libname.a'
  8698. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8699. 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'
  8700. ;;
  8701. esac
  8702. ;;
  8703. beos*)
  8704. library_names_spec='${libname}${shared_ext}'
  8705. dynamic_linker="$host_os ld.so"
  8706. shlibpath_var=LIBRARY_PATH
  8707. ;;
  8708. bsdi[45]*)
  8709. version_type=linux # correct to gnu/linux during the next big refactor
  8710. need_version=no
  8711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8712. soname_spec='${libname}${release}${shared_ext}$major'
  8713. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8714. shlibpath_var=LD_LIBRARY_PATH
  8715. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8716. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8717. # the default ld.so.conf also contains /usr/contrib/lib and
  8718. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8719. # libtool to hard-code these into programs
  8720. ;;
  8721. cygwin* | mingw* | pw32* | cegcc*)
  8722. version_type=windows
  8723. shrext_cmds=".dll"
  8724. need_version=no
  8725. need_lib_prefix=no
  8726. case $GCC,$cc_basename in
  8727. yes,*)
  8728. # gcc
  8729. library_names_spec='$libname.dll.a'
  8730. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8731. postinstall_cmds='base_file=`basename \${file}`~
  8732. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8733. dldir=$destdir/`dirname \$dlpath`~
  8734. test -d \$dldir || mkdir -p \$dldir~
  8735. $install_prog $dir/$dlname \$dldir/$dlname~
  8736. chmod a+x \$dldir/$dlname~
  8737. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8738. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8739. fi'
  8740. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8741. dlpath=$dir/\$dldll~
  8742. $RM \$dlpath'
  8743. shlibpath_overrides_runpath=yes
  8744. case $host_os in
  8745. cygwin*)
  8746. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8747. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8748. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8749. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8750. ;;
  8751. mingw* | cegcc*)
  8752. # MinGW DLLs use traditional 'lib' prefix
  8753. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8754. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8755. ;;
  8756. pw32*)
  8757. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8758. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8759. ;;
  8760. esac
  8761. dynamic_linker='Win32 ld.exe'
  8762. ;;
  8763. *,cl*)
  8764. # Native MSVC
  8765. libname_spec='$name'
  8766. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8767. library_names_spec='${libname}.dll.lib'
  8768. case $build_os in
  8769. mingw*)
  8770. sys_lib_search_path_spec=
  8771. lt_save_ifs=$IFS
  8772. IFS=';'
  8773. for lt_path in $LIB
  8774. do
  8775. IFS=$lt_save_ifs
  8776. # Let DOS variable expansion print the short 8.3 style file name.
  8777. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8778. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8779. done
  8780. IFS=$lt_save_ifs
  8781. # Convert to MSYS style.
  8782. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8783. ;;
  8784. cygwin*)
  8785. # Convert to unix form, then to dos form, then back to unix form
  8786. # but this time dos style (no spaces!) so that the unix form looks
  8787. # like /cygdrive/c/PROGRA~1:/cygdr...
  8788. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8789. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8790. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8791. ;;
  8792. *)
  8793. sys_lib_search_path_spec="$LIB"
  8794. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8795. # It is most probably a Windows format PATH.
  8796. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8797. else
  8798. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8799. fi
  8800. # FIXME: find the short name or the path components, as spaces are
  8801. # common. (e.g. "Program Files" -> "PROGRA~1")
  8802. ;;
  8803. esac
  8804. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8805. postinstall_cmds='base_file=`basename \${file}`~
  8806. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8807. dldir=$destdir/`dirname \$dlpath`~
  8808. test -d \$dldir || mkdir -p \$dldir~
  8809. $install_prog $dir/$dlname \$dldir/$dlname'
  8810. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8811. dlpath=$dir/\$dldll~
  8812. $RM \$dlpath'
  8813. shlibpath_overrides_runpath=yes
  8814. dynamic_linker='Win32 link.exe'
  8815. ;;
  8816. *)
  8817. # Assume MSVC wrapper
  8818. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8819. dynamic_linker='Win32 ld.exe'
  8820. ;;
  8821. esac
  8822. # FIXME: first we should search . and the directory the executable is in
  8823. shlibpath_var=PATH
  8824. ;;
  8825. darwin* | rhapsody*)
  8826. dynamic_linker="$host_os dyld"
  8827. version_type=darwin
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8831. soname_spec='${libname}${release}${major}$shared_ext'
  8832. shlibpath_overrides_runpath=yes
  8833. shlibpath_var=DYLD_LIBRARY_PATH
  8834. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8835. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8836. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8837. ;;
  8838. dgux*)
  8839. version_type=linux # correct to gnu/linux during the next big refactor
  8840. need_lib_prefix=no
  8841. need_version=no
  8842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8843. soname_spec='${libname}${release}${shared_ext}$major'
  8844. shlibpath_var=LD_LIBRARY_PATH
  8845. ;;
  8846. freebsd* | dragonfly*)
  8847. # DragonFly does not have aout. When/if they implement a new
  8848. # versioning mechanism, adjust this.
  8849. if test -x /usr/bin/objformat; then
  8850. objformat=`/usr/bin/objformat`
  8851. else
  8852. case $host_os in
  8853. freebsd[23].*) objformat=aout ;;
  8854. *) objformat=elf ;;
  8855. esac
  8856. fi
  8857. version_type=freebsd-$objformat
  8858. case $version_type in
  8859. freebsd-elf*)
  8860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8861. need_version=no
  8862. need_lib_prefix=no
  8863. ;;
  8864. freebsd-*)
  8865. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8866. need_version=yes
  8867. ;;
  8868. esac
  8869. shlibpath_var=LD_LIBRARY_PATH
  8870. case $host_os in
  8871. freebsd2.*)
  8872. shlibpath_overrides_runpath=yes
  8873. ;;
  8874. freebsd3.[01]* | freebsdelf3.[01]*)
  8875. shlibpath_overrides_runpath=yes
  8876. hardcode_into_libs=yes
  8877. ;;
  8878. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8879. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8880. shlibpath_overrides_runpath=no
  8881. hardcode_into_libs=yes
  8882. ;;
  8883. *) # from 4.6 on, and DragonFly
  8884. shlibpath_overrides_runpath=yes
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. esac
  8888. ;;
  8889. gnu*)
  8890. version_type=linux # correct to gnu/linux during the next big refactor
  8891. need_lib_prefix=no
  8892. need_version=no
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8894. soname_spec='${libname}${release}${shared_ext}$major'
  8895. shlibpath_var=LD_LIBRARY_PATH
  8896. shlibpath_overrides_runpath=no
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. haiku*)
  8900. version_type=linux # correct to gnu/linux during the next big refactor
  8901. need_lib_prefix=no
  8902. need_version=no
  8903. dynamic_linker="$host_os runtime_loader"
  8904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8905. soname_spec='${libname}${release}${shared_ext}$major'
  8906. shlibpath_var=LIBRARY_PATH
  8907. shlibpath_overrides_runpath=yes
  8908. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8909. hardcode_into_libs=yes
  8910. ;;
  8911. hpux9* | hpux10* | hpux11*)
  8912. # Give a soname corresponding to the major version so that dld.sl refuses to
  8913. # link against other versions.
  8914. version_type=sunos
  8915. need_lib_prefix=no
  8916. need_version=no
  8917. case $host_cpu in
  8918. ia64*)
  8919. shrext_cmds='.so'
  8920. hardcode_into_libs=yes
  8921. dynamic_linker="$host_os dld.so"
  8922. shlibpath_var=LD_LIBRARY_PATH
  8923. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8925. soname_spec='${libname}${release}${shared_ext}$major'
  8926. if test "X$HPUX_IA64_MODE" = X32; then
  8927. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8928. else
  8929. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8930. fi
  8931. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8932. ;;
  8933. hppa*64*)
  8934. shrext_cmds='.sl'
  8935. hardcode_into_libs=yes
  8936. dynamic_linker="$host_os dld.sl"
  8937. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8938. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8940. soname_spec='${libname}${release}${shared_ext}$major'
  8941. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8942. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8943. ;;
  8944. *)
  8945. shrext_cmds='.sl'
  8946. dynamic_linker="$host_os dld.sl"
  8947. shlibpath_var=SHLIB_PATH
  8948. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8950. soname_spec='${libname}${release}${shared_ext}$major'
  8951. ;;
  8952. esac
  8953. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8954. postinstall_cmds='chmod 555 $lib'
  8955. # or fails outright, so override atomically:
  8956. install_override_mode=555
  8957. ;;
  8958. interix[3-9]*)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8965. shlibpath_var=LD_LIBRARY_PATH
  8966. shlibpath_overrides_runpath=no
  8967. hardcode_into_libs=yes
  8968. ;;
  8969. irix5* | irix6* | nonstopux*)
  8970. case $host_os in
  8971. nonstopux*) version_type=nonstopux ;;
  8972. *)
  8973. if test "$lt_cv_prog_gnu_ld" = yes; then
  8974. version_type=linux # correct to gnu/linux during the next big refactor
  8975. else
  8976. version_type=irix
  8977. fi ;;
  8978. esac
  8979. need_lib_prefix=no
  8980. need_version=no
  8981. soname_spec='${libname}${release}${shared_ext}$major'
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8983. case $host_os in
  8984. irix5* | nonstopux*)
  8985. libsuff= shlibsuff=
  8986. ;;
  8987. *)
  8988. case $LD in # libtool.m4 will add one of these switches to LD
  8989. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8990. libsuff= shlibsuff= libmagic=32-bit;;
  8991. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8992. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8993. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8994. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8995. *) libsuff= shlibsuff= libmagic=never-match;;
  8996. esac
  8997. ;;
  8998. esac
  8999. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9000. shlibpath_overrides_runpath=no
  9001. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9002. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. # No shared lib support for Linux oldld, aout, or coff.
  9006. linux*oldld* | linux*aout* | linux*coff*)
  9007. dynamic_linker=no
  9008. ;;
  9009. # This must be glibc/ELF.
  9010. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9011. version_type=linux # correct to gnu/linux during the next big refactor
  9012. need_lib_prefix=no
  9013. need_version=no
  9014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9015. soname_spec='${libname}${release}${shared_ext}$major'
  9016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9017. shlibpath_var=LD_LIBRARY_PATH
  9018. shlibpath_overrides_runpath=no
  9019. # Some binutils ld are patched to set DT_RUNPATH
  9020. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9021. $as_echo_n "(cached) " >&6
  9022. else
  9023. lt_cv_shlibpath_overrides_runpath=no
  9024. save_LDFLAGS=$LDFLAGS
  9025. save_libdir=$libdir
  9026. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9027. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9029. /* end confdefs.h. */
  9030. int
  9031. main ()
  9032. {
  9033. ;
  9034. return 0;
  9035. }
  9036. _ACEOF
  9037. if ac_fn_c_try_link "$LINENO"; then :
  9038. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9039. lt_cv_shlibpath_overrides_runpath=yes
  9040. fi
  9041. fi
  9042. rm -f core conftest.err conftest.$ac_objext \
  9043. conftest$ac_exeext conftest.$ac_ext
  9044. LDFLAGS=$save_LDFLAGS
  9045. libdir=$save_libdir
  9046. fi
  9047. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9048. # This implies no fast_install, which is unacceptable.
  9049. # Some rework will be needed to allow for fast_install
  9050. # before this can be enabled.
  9051. hardcode_into_libs=yes
  9052. # Append ld.so.conf contents to the search path
  9053. if test -f /etc/ld.so.conf; then
  9054. 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' ' '`
  9055. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9056. fi
  9057. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9058. # powerpc, because MkLinux only supported shared libraries with the
  9059. # GNU dynamic linker. Since this was broken with cross compilers,
  9060. # most powerpc-linux boxes support dynamic linking these days and
  9061. # people can always --disable-shared, the test was removed, and we
  9062. # assume the GNU/Linux dynamic linker is in use.
  9063. dynamic_linker='GNU/Linux ld.so'
  9064. ;;
  9065. netbsd*)
  9066. version_type=sunos
  9067. need_lib_prefix=no
  9068. need_version=no
  9069. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9071. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9072. dynamic_linker='NetBSD (a.out) ld.so'
  9073. else
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. dynamic_linker='NetBSD ld.elf_so'
  9077. fi
  9078. shlibpath_var=LD_LIBRARY_PATH
  9079. shlibpath_overrides_runpath=yes
  9080. hardcode_into_libs=yes
  9081. ;;
  9082. newsos6)
  9083. version_type=linux # correct to gnu/linux during the next big refactor
  9084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. shlibpath_overrides_runpath=yes
  9087. ;;
  9088. *nto* | *qnx*)
  9089. version_type=qnx
  9090. need_lib_prefix=no
  9091. need_version=no
  9092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. shlibpath_var=LD_LIBRARY_PATH
  9095. shlibpath_overrides_runpath=no
  9096. hardcode_into_libs=yes
  9097. dynamic_linker='ldqnx.so'
  9098. ;;
  9099. openbsd*)
  9100. version_type=sunos
  9101. sys_lib_dlsearch_path_spec="/usr/lib"
  9102. need_lib_prefix=no
  9103. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9104. case $host_os in
  9105. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9106. *) need_version=no ;;
  9107. esac
  9108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9109. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9110. shlibpath_var=LD_LIBRARY_PATH
  9111. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9112. case $host_os in
  9113. openbsd2.[89] | openbsd2.[89].*)
  9114. shlibpath_overrides_runpath=no
  9115. ;;
  9116. *)
  9117. shlibpath_overrides_runpath=yes
  9118. ;;
  9119. esac
  9120. else
  9121. shlibpath_overrides_runpath=yes
  9122. fi
  9123. ;;
  9124. os2*)
  9125. libname_spec='$name'
  9126. shrext_cmds=".dll"
  9127. need_lib_prefix=no
  9128. library_names_spec='$libname${shared_ext} $libname.a'
  9129. dynamic_linker='OS/2 ld.exe'
  9130. shlibpath_var=LIBPATH
  9131. ;;
  9132. osf3* | osf4* | osf5*)
  9133. version_type=osf
  9134. need_lib_prefix=no
  9135. need_version=no
  9136. soname_spec='${libname}${release}${shared_ext}$major'
  9137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9138. shlibpath_var=LD_LIBRARY_PATH
  9139. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9140. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9141. ;;
  9142. rdos*)
  9143. dynamic_linker=no
  9144. ;;
  9145. solaris*)
  9146. version_type=linux # correct to gnu/linux during the next big refactor
  9147. need_lib_prefix=no
  9148. need_version=no
  9149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9150. soname_spec='${libname}${release}${shared_ext}$major'
  9151. shlibpath_var=LD_LIBRARY_PATH
  9152. shlibpath_overrides_runpath=yes
  9153. hardcode_into_libs=yes
  9154. # ldd complains unless libraries are executable
  9155. postinstall_cmds='chmod +x $lib'
  9156. ;;
  9157. sunos4*)
  9158. version_type=sunos
  9159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9160. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9161. shlibpath_var=LD_LIBRARY_PATH
  9162. shlibpath_overrides_runpath=yes
  9163. if test "$with_gnu_ld" = yes; then
  9164. need_lib_prefix=no
  9165. fi
  9166. need_version=yes
  9167. ;;
  9168. sysv4 | sysv4.3*)
  9169. version_type=linux # correct to gnu/linux during the next big refactor
  9170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9171. soname_spec='${libname}${release}${shared_ext}$major'
  9172. shlibpath_var=LD_LIBRARY_PATH
  9173. case $host_vendor in
  9174. sni)
  9175. shlibpath_overrides_runpath=no
  9176. need_lib_prefix=no
  9177. runpath_var=LD_RUN_PATH
  9178. ;;
  9179. siemens)
  9180. need_lib_prefix=no
  9181. ;;
  9182. motorola)
  9183. need_lib_prefix=no
  9184. need_version=no
  9185. shlibpath_overrides_runpath=no
  9186. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9187. ;;
  9188. esac
  9189. ;;
  9190. sysv4*MP*)
  9191. if test -d /usr/nec ;then
  9192. version_type=linux # correct to gnu/linux during the next big refactor
  9193. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9194. soname_spec='$libname${shared_ext}.$major'
  9195. shlibpath_var=LD_LIBRARY_PATH
  9196. fi
  9197. ;;
  9198. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9199. version_type=freebsd-elf
  9200. need_lib_prefix=no
  9201. need_version=no
  9202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9203. soname_spec='${libname}${release}${shared_ext}$major'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=yes
  9206. hardcode_into_libs=yes
  9207. if test "$with_gnu_ld" = yes; then
  9208. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9209. else
  9210. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9211. case $host_os in
  9212. sco3.2v5*)
  9213. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9214. ;;
  9215. esac
  9216. fi
  9217. sys_lib_dlsearch_path_spec='/usr/lib'
  9218. ;;
  9219. tpf*)
  9220. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9221. version_type=linux # correct to gnu/linux during the next big refactor
  9222. need_lib_prefix=no
  9223. need_version=no
  9224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9225. shlibpath_var=LD_LIBRARY_PATH
  9226. shlibpath_overrides_runpath=no
  9227. hardcode_into_libs=yes
  9228. ;;
  9229. uts4*)
  9230. version_type=linux # correct to gnu/linux during the next big refactor
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. soname_spec='${libname}${release}${shared_ext}$major'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. ;;
  9235. *)
  9236. dynamic_linker=no
  9237. ;;
  9238. esac
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9240. $as_echo "$dynamic_linker" >&6; }
  9241. test "$dynamic_linker" = no && can_build_shared=no
  9242. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9243. if test "$GCC" = yes; then
  9244. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9245. fi
  9246. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9247. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9248. fi
  9249. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9250. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9251. fi
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9253. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9254. hardcode_action=
  9255. if test -n "$hardcode_libdir_flag_spec" ||
  9256. test -n "$runpath_var" ||
  9257. test "X$hardcode_automatic" = "Xyes" ; then
  9258. # We can hardcode non-existent directories.
  9259. if test "$hardcode_direct" != no &&
  9260. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9261. # have to relink, otherwise we might link with an installed library
  9262. # when we should be linking with a yet-to-be-installed one
  9263. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9264. test "$hardcode_minus_L" != no; then
  9265. # Linking always hardcodes the temporary library directory.
  9266. hardcode_action=relink
  9267. else
  9268. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9269. hardcode_action=immediate
  9270. fi
  9271. else
  9272. # We cannot hardcode anything, or else we can only hardcode existing
  9273. # directories.
  9274. hardcode_action=unsupported
  9275. fi
  9276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9277. $as_echo "$hardcode_action" >&6; }
  9278. if test "$hardcode_action" = relink ||
  9279. test "$inherit_rpath" = yes; then
  9280. # Fast installation is not supported
  9281. enable_fast_install=no
  9282. elif test "$shlibpath_overrides_runpath" = yes ||
  9283. test "$enable_shared" = no; then
  9284. # Fast installation is not necessary
  9285. enable_fast_install=needless
  9286. fi
  9287. if test "x$enable_dlopen" != xyes; then
  9288. enable_dlopen=unknown
  9289. enable_dlopen_self=unknown
  9290. enable_dlopen_self_static=unknown
  9291. else
  9292. lt_cv_dlopen=no
  9293. lt_cv_dlopen_libs=
  9294. case $host_os in
  9295. beos*)
  9296. lt_cv_dlopen="load_add_on"
  9297. lt_cv_dlopen_libs=
  9298. lt_cv_dlopen_self=yes
  9299. ;;
  9300. mingw* | pw32* | cegcc*)
  9301. lt_cv_dlopen="LoadLibrary"
  9302. lt_cv_dlopen_libs=
  9303. ;;
  9304. cygwin*)
  9305. lt_cv_dlopen="dlopen"
  9306. lt_cv_dlopen_libs=
  9307. ;;
  9308. darwin*)
  9309. # if libdl is installed we need to link against it
  9310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9311. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9312. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9313. $as_echo_n "(cached) " >&6
  9314. else
  9315. ac_check_lib_save_LIBS=$LIBS
  9316. LIBS="-ldl $LIBS"
  9317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9318. /* end confdefs.h. */
  9319. /* Override any GCC internal prototype to avoid an error.
  9320. Use char because int might match the return type of a GCC
  9321. builtin and then its argument prototype would still apply. */
  9322. #ifdef __cplusplus
  9323. extern "C"
  9324. #endif
  9325. char dlopen ();
  9326. int
  9327. main ()
  9328. {
  9329. return dlopen ();
  9330. ;
  9331. return 0;
  9332. }
  9333. _ACEOF
  9334. if ac_fn_c_try_link "$LINENO"; then :
  9335. ac_cv_lib_dl_dlopen=yes
  9336. else
  9337. ac_cv_lib_dl_dlopen=no
  9338. fi
  9339. rm -f core conftest.err conftest.$ac_objext \
  9340. conftest$ac_exeext conftest.$ac_ext
  9341. LIBS=$ac_check_lib_save_LIBS
  9342. fi
  9343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9344. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9345. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9346. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9347. else
  9348. lt_cv_dlopen="dyld"
  9349. lt_cv_dlopen_libs=
  9350. lt_cv_dlopen_self=yes
  9351. fi
  9352. ;;
  9353. *)
  9354. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9355. if test "x$ac_cv_func_shl_load" = xyes; then :
  9356. lt_cv_dlopen="shl_load"
  9357. else
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9359. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9360. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9361. $as_echo_n "(cached) " >&6
  9362. else
  9363. ac_check_lib_save_LIBS=$LIBS
  9364. LIBS="-ldld $LIBS"
  9365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9366. /* end confdefs.h. */
  9367. /* Override any GCC internal prototype to avoid an error.
  9368. Use char because int might match the return type of a GCC
  9369. builtin and then its argument prototype would still apply. */
  9370. #ifdef __cplusplus
  9371. extern "C"
  9372. #endif
  9373. char shl_load ();
  9374. int
  9375. main ()
  9376. {
  9377. return shl_load ();
  9378. ;
  9379. return 0;
  9380. }
  9381. _ACEOF
  9382. if ac_fn_c_try_link "$LINENO"; then :
  9383. ac_cv_lib_dld_shl_load=yes
  9384. else
  9385. ac_cv_lib_dld_shl_load=no
  9386. fi
  9387. rm -f core conftest.err conftest.$ac_objext \
  9388. conftest$ac_exeext conftest.$ac_ext
  9389. LIBS=$ac_check_lib_save_LIBS
  9390. fi
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9392. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9393. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9394. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9395. else
  9396. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9397. if test "x$ac_cv_func_dlopen" = xyes; then :
  9398. lt_cv_dlopen="dlopen"
  9399. else
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9401. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9402. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9403. $as_echo_n "(cached) " >&6
  9404. else
  9405. ac_check_lib_save_LIBS=$LIBS
  9406. LIBS="-ldl $LIBS"
  9407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9408. /* end confdefs.h. */
  9409. /* Override any GCC internal prototype to avoid an error.
  9410. Use char because int might match the return type of a GCC
  9411. builtin and then its argument prototype would still apply. */
  9412. #ifdef __cplusplus
  9413. extern "C"
  9414. #endif
  9415. char dlopen ();
  9416. int
  9417. main ()
  9418. {
  9419. return dlopen ();
  9420. ;
  9421. return 0;
  9422. }
  9423. _ACEOF
  9424. if ac_fn_c_try_link "$LINENO"; then :
  9425. ac_cv_lib_dl_dlopen=yes
  9426. else
  9427. ac_cv_lib_dl_dlopen=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LIBS=$ac_check_lib_save_LIBS
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9434. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9435. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9436. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9437. else
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9439. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9440. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9441. $as_echo_n "(cached) " >&6
  9442. else
  9443. ac_check_lib_save_LIBS=$LIBS
  9444. LIBS="-lsvld $LIBS"
  9445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9446. /* end confdefs.h. */
  9447. /* Override any GCC internal prototype to avoid an error.
  9448. Use char because int might match the return type of a GCC
  9449. builtin and then its argument prototype would still apply. */
  9450. #ifdef __cplusplus
  9451. extern "C"
  9452. #endif
  9453. char dlopen ();
  9454. int
  9455. main ()
  9456. {
  9457. return dlopen ();
  9458. ;
  9459. return 0;
  9460. }
  9461. _ACEOF
  9462. if ac_fn_c_try_link "$LINENO"; then :
  9463. ac_cv_lib_svld_dlopen=yes
  9464. else
  9465. ac_cv_lib_svld_dlopen=no
  9466. fi
  9467. rm -f core conftest.err conftest.$ac_objext \
  9468. conftest$ac_exeext conftest.$ac_ext
  9469. LIBS=$ac_check_lib_save_LIBS
  9470. fi
  9471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9472. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9473. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9474. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9475. else
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9477. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9478. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9479. $as_echo_n "(cached) " >&6
  9480. else
  9481. ac_check_lib_save_LIBS=$LIBS
  9482. LIBS="-ldld $LIBS"
  9483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9484. /* end confdefs.h. */
  9485. /* Override any GCC internal prototype to avoid an error.
  9486. Use char because int might match the return type of a GCC
  9487. builtin and then its argument prototype would still apply. */
  9488. #ifdef __cplusplus
  9489. extern "C"
  9490. #endif
  9491. char dld_link ();
  9492. int
  9493. main ()
  9494. {
  9495. return dld_link ();
  9496. ;
  9497. return 0;
  9498. }
  9499. _ACEOF
  9500. if ac_fn_c_try_link "$LINENO"; then :
  9501. ac_cv_lib_dld_dld_link=yes
  9502. else
  9503. ac_cv_lib_dld_dld_link=no
  9504. fi
  9505. rm -f core conftest.err conftest.$ac_objext \
  9506. conftest$ac_exeext conftest.$ac_ext
  9507. LIBS=$ac_check_lib_save_LIBS
  9508. fi
  9509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9510. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9511. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9512. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9513. fi
  9514. fi
  9515. fi
  9516. fi
  9517. fi
  9518. fi
  9519. ;;
  9520. esac
  9521. if test "x$lt_cv_dlopen" != xno; then
  9522. enable_dlopen=yes
  9523. else
  9524. enable_dlopen=no
  9525. fi
  9526. case $lt_cv_dlopen in
  9527. dlopen)
  9528. save_CPPFLAGS="$CPPFLAGS"
  9529. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9530. save_LDFLAGS="$LDFLAGS"
  9531. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9532. save_LIBS="$LIBS"
  9533. LIBS="$lt_cv_dlopen_libs $LIBS"
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9535. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9536. if ${lt_cv_dlopen_self+:} false; then :
  9537. $as_echo_n "(cached) " >&6
  9538. else
  9539. if test "$cross_compiling" = yes; then :
  9540. lt_cv_dlopen_self=cross
  9541. else
  9542. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9543. lt_status=$lt_dlunknown
  9544. cat > conftest.$ac_ext <<_LT_EOF
  9545. #line $LINENO "configure"
  9546. #include "confdefs.h"
  9547. #if HAVE_DLFCN_H
  9548. #include <dlfcn.h>
  9549. #endif
  9550. #include <stdio.h>
  9551. #ifdef RTLD_GLOBAL
  9552. # define LT_DLGLOBAL RTLD_GLOBAL
  9553. #else
  9554. # ifdef DL_GLOBAL
  9555. # define LT_DLGLOBAL DL_GLOBAL
  9556. # else
  9557. # define LT_DLGLOBAL 0
  9558. # endif
  9559. #endif
  9560. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9561. find out it does not work in some platform. */
  9562. #ifndef LT_DLLAZY_OR_NOW
  9563. # ifdef RTLD_LAZY
  9564. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9565. # else
  9566. # ifdef DL_LAZY
  9567. # define LT_DLLAZY_OR_NOW DL_LAZY
  9568. # else
  9569. # ifdef RTLD_NOW
  9570. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9571. # else
  9572. # ifdef DL_NOW
  9573. # define LT_DLLAZY_OR_NOW DL_NOW
  9574. # else
  9575. # define LT_DLLAZY_OR_NOW 0
  9576. # endif
  9577. # endif
  9578. # endif
  9579. # endif
  9580. #endif
  9581. /* When -fvisbility=hidden is used, assume the code has been annotated
  9582. correspondingly for the symbols needed. */
  9583. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9584. int fnord () __attribute__((visibility("default")));
  9585. #endif
  9586. int fnord () { return 42; }
  9587. int main ()
  9588. {
  9589. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9590. int status = $lt_dlunknown;
  9591. if (self)
  9592. {
  9593. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9594. else
  9595. {
  9596. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9597. else puts (dlerror ());
  9598. }
  9599. /* dlclose (self); */
  9600. }
  9601. else
  9602. puts (dlerror ());
  9603. return status;
  9604. }
  9605. _LT_EOF
  9606. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9607. (eval $ac_link) 2>&5
  9608. ac_status=$?
  9609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9610. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9611. (./conftest; exit; ) >&5 2>/dev/null
  9612. lt_status=$?
  9613. case x$lt_status in
  9614. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9615. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9616. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9617. esac
  9618. else :
  9619. # compilation failed
  9620. lt_cv_dlopen_self=no
  9621. fi
  9622. fi
  9623. rm -fr conftest*
  9624. fi
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9626. $as_echo "$lt_cv_dlopen_self" >&6; }
  9627. if test "x$lt_cv_dlopen_self" = xyes; then
  9628. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9630. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9631. if ${lt_cv_dlopen_self_static+:} false; then :
  9632. $as_echo_n "(cached) " >&6
  9633. else
  9634. if test "$cross_compiling" = yes; then :
  9635. lt_cv_dlopen_self_static=cross
  9636. else
  9637. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9638. lt_status=$lt_dlunknown
  9639. cat > conftest.$ac_ext <<_LT_EOF
  9640. #line $LINENO "configure"
  9641. #include "confdefs.h"
  9642. #if HAVE_DLFCN_H
  9643. #include <dlfcn.h>
  9644. #endif
  9645. #include <stdio.h>
  9646. #ifdef RTLD_GLOBAL
  9647. # define LT_DLGLOBAL RTLD_GLOBAL
  9648. #else
  9649. # ifdef DL_GLOBAL
  9650. # define LT_DLGLOBAL DL_GLOBAL
  9651. # else
  9652. # define LT_DLGLOBAL 0
  9653. # endif
  9654. #endif
  9655. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9656. find out it does not work in some platform. */
  9657. #ifndef LT_DLLAZY_OR_NOW
  9658. # ifdef RTLD_LAZY
  9659. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9660. # else
  9661. # ifdef DL_LAZY
  9662. # define LT_DLLAZY_OR_NOW DL_LAZY
  9663. # else
  9664. # ifdef RTLD_NOW
  9665. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9666. # else
  9667. # ifdef DL_NOW
  9668. # define LT_DLLAZY_OR_NOW DL_NOW
  9669. # else
  9670. # define LT_DLLAZY_OR_NOW 0
  9671. # endif
  9672. # endif
  9673. # endif
  9674. # endif
  9675. #endif
  9676. /* When -fvisbility=hidden is used, assume the code has been annotated
  9677. correspondingly for the symbols needed. */
  9678. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9679. int fnord () __attribute__((visibility("default")));
  9680. #endif
  9681. int fnord () { return 42; }
  9682. int main ()
  9683. {
  9684. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9685. int status = $lt_dlunknown;
  9686. if (self)
  9687. {
  9688. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9689. else
  9690. {
  9691. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9692. else puts (dlerror ());
  9693. }
  9694. /* dlclose (self); */
  9695. }
  9696. else
  9697. puts (dlerror ());
  9698. return status;
  9699. }
  9700. _LT_EOF
  9701. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9702. (eval $ac_link) 2>&5
  9703. ac_status=$?
  9704. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9705. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9706. (./conftest; exit; ) >&5 2>/dev/null
  9707. lt_status=$?
  9708. case x$lt_status in
  9709. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9710. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9711. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9712. esac
  9713. else :
  9714. # compilation failed
  9715. lt_cv_dlopen_self_static=no
  9716. fi
  9717. fi
  9718. rm -fr conftest*
  9719. fi
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9721. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9722. fi
  9723. CPPFLAGS="$save_CPPFLAGS"
  9724. LDFLAGS="$save_LDFLAGS"
  9725. LIBS="$save_LIBS"
  9726. ;;
  9727. esac
  9728. case $lt_cv_dlopen_self in
  9729. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9730. *) enable_dlopen_self=unknown ;;
  9731. esac
  9732. case $lt_cv_dlopen_self_static in
  9733. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9734. *) enable_dlopen_self_static=unknown ;;
  9735. esac
  9736. fi
  9737. striplib=
  9738. old_striplib=
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9740. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9741. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9742. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9743. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9745. $as_echo "yes" >&6; }
  9746. else
  9747. # FIXME - insert some real tests, host_os isn't really good enough
  9748. case $host_os in
  9749. darwin*)
  9750. if test -n "$STRIP" ; then
  9751. striplib="$STRIP -x"
  9752. old_striplib="$STRIP -S"
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9754. $as_echo "yes" >&6; }
  9755. else
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9757. $as_echo "no" >&6; }
  9758. fi
  9759. ;;
  9760. *)
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9762. $as_echo "no" >&6; }
  9763. ;;
  9764. esac
  9765. fi
  9766. # Report which library types will actually be built
  9767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9768. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9770. $as_echo "$can_build_shared" >&6; }
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9772. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9773. test "$can_build_shared" = "no" && enable_shared=no
  9774. # On AIX, shared libraries and static libraries use the same namespace, and
  9775. # are all built from PIC.
  9776. case $host_os in
  9777. aix3*)
  9778. test "$enable_shared" = yes && enable_static=no
  9779. if test -n "$RANLIB"; then
  9780. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9781. postinstall_cmds='$RANLIB $lib'
  9782. fi
  9783. ;;
  9784. aix[4-9]*)
  9785. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9786. test "$enable_shared" = yes && enable_static=no
  9787. fi
  9788. ;;
  9789. esac
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9791. $as_echo "$enable_shared" >&6; }
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9793. $as_echo_n "checking whether to build static libraries... " >&6; }
  9794. # Make sure either enable_shared or enable_static is yes.
  9795. test "$enable_shared" = yes || enable_static=yes
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9797. $as_echo "$enable_static" >&6; }
  9798. fi
  9799. ac_ext=c
  9800. ac_cpp='$CPP $CPPFLAGS'
  9801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9804. CC="$lt_save_CC"
  9805. ac_config_commands="$ac_config_commands libtool"
  9806. # Only expand once:
  9807. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9808. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9809. LT_REVISION=$SDL_INTERFACE_AGE
  9810. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9811. ac_ext=c
  9812. ac_cpp='$CPP $CPPFLAGS'
  9813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9816. if test -n "$ac_tool_prefix"; then
  9817. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9818. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9820. $as_echo_n "checking for $ac_word... " >&6; }
  9821. if ${ac_cv_prog_CC+:} false; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. if test -n "$CC"; then
  9825. ac_cv_prog_CC="$CC" # Let the user override the test.
  9826. else
  9827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9828. for as_dir in $PATH
  9829. do
  9830. IFS=$as_save_IFS
  9831. test -z "$as_dir" && as_dir=.
  9832. for ac_exec_ext in '' $ac_executable_extensions; do
  9833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9834. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9836. break 2
  9837. fi
  9838. done
  9839. done
  9840. IFS=$as_save_IFS
  9841. fi
  9842. fi
  9843. CC=$ac_cv_prog_CC
  9844. if test -n "$CC"; then
  9845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9846. $as_echo "$CC" >&6; }
  9847. else
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9849. $as_echo "no" >&6; }
  9850. fi
  9851. fi
  9852. if test -z "$ac_cv_prog_CC"; then
  9853. ac_ct_CC=$CC
  9854. # Extract the first word of "gcc", so it can be a program name with args.
  9855. set dummy gcc; ac_word=$2
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9857. $as_echo_n "checking for $ac_word... " >&6; }
  9858. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9859. $as_echo_n "(cached) " >&6
  9860. else
  9861. if test -n "$ac_ct_CC"; then
  9862. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9863. else
  9864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9865. for as_dir in $PATH
  9866. do
  9867. IFS=$as_save_IFS
  9868. test -z "$as_dir" && as_dir=.
  9869. for ac_exec_ext in '' $ac_executable_extensions; do
  9870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9871. ac_cv_prog_ac_ct_CC="gcc"
  9872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9873. break 2
  9874. fi
  9875. done
  9876. done
  9877. IFS=$as_save_IFS
  9878. fi
  9879. fi
  9880. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9881. if test -n "$ac_ct_CC"; then
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9883. $as_echo "$ac_ct_CC" >&6; }
  9884. else
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. $as_echo "no" >&6; }
  9887. fi
  9888. if test "x$ac_ct_CC" = x; then
  9889. CC=""
  9890. else
  9891. case $cross_compiling:$ac_tool_warned in
  9892. yes:)
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9895. ac_tool_warned=yes ;;
  9896. esac
  9897. CC=$ac_ct_CC
  9898. fi
  9899. else
  9900. CC="$ac_cv_prog_CC"
  9901. fi
  9902. if test -z "$CC"; then
  9903. if test -n "$ac_tool_prefix"; then
  9904. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9905. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9907. $as_echo_n "checking for $ac_word... " >&6; }
  9908. if ${ac_cv_prog_CC+:} false; then :
  9909. $as_echo_n "(cached) " >&6
  9910. else
  9911. if test -n "$CC"; then
  9912. ac_cv_prog_CC="$CC" # Let the user override the test.
  9913. else
  9914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9915. for as_dir in $PATH
  9916. do
  9917. IFS=$as_save_IFS
  9918. test -z "$as_dir" && as_dir=.
  9919. for ac_exec_ext in '' $ac_executable_extensions; do
  9920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9921. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9923. break 2
  9924. fi
  9925. done
  9926. done
  9927. IFS=$as_save_IFS
  9928. fi
  9929. fi
  9930. CC=$ac_cv_prog_CC
  9931. if test -n "$CC"; then
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9933. $as_echo "$CC" >&6; }
  9934. else
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9936. $as_echo "no" >&6; }
  9937. fi
  9938. fi
  9939. fi
  9940. if test -z "$CC"; then
  9941. # Extract the first word of "cc", so it can be a program name with args.
  9942. set dummy cc; ac_word=$2
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9944. $as_echo_n "checking for $ac_word... " >&6; }
  9945. if ${ac_cv_prog_CC+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. if test -n "$CC"; then
  9949. ac_cv_prog_CC="$CC" # Let the user override the test.
  9950. else
  9951. ac_prog_rejected=no
  9952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9953. for as_dir in $PATH
  9954. do
  9955. IFS=$as_save_IFS
  9956. test -z "$as_dir" && as_dir=.
  9957. for ac_exec_ext in '' $ac_executable_extensions; do
  9958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9959. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9960. ac_prog_rejected=yes
  9961. continue
  9962. fi
  9963. ac_cv_prog_CC="cc"
  9964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9965. break 2
  9966. fi
  9967. done
  9968. done
  9969. IFS=$as_save_IFS
  9970. if test $ac_prog_rejected = yes; then
  9971. # We found a bogon in the path, so make sure we never use it.
  9972. set dummy $ac_cv_prog_CC
  9973. shift
  9974. if test $# != 0; then
  9975. # We chose a different compiler from the bogus one.
  9976. # However, it has the same basename, so the bogon will be chosen
  9977. # first if we set CC to just the basename; use the full file name.
  9978. shift
  9979. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9980. fi
  9981. fi
  9982. fi
  9983. fi
  9984. CC=$ac_cv_prog_CC
  9985. if test -n "$CC"; then
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9987. $as_echo "$CC" >&6; }
  9988. else
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9990. $as_echo "no" >&6; }
  9991. fi
  9992. fi
  9993. if test -z "$CC"; then
  9994. if test -n "$ac_tool_prefix"; then
  9995. for ac_prog in cl.exe
  9996. do
  9997. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9998. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10000. $as_echo_n "checking for $ac_word... " >&6; }
  10001. if ${ac_cv_prog_CC+:} false; then :
  10002. $as_echo_n "(cached) " >&6
  10003. else
  10004. if test -n "$CC"; then
  10005. ac_cv_prog_CC="$CC" # Let the user override the test.
  10006. else
  10007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10008. for as_dir in $PATH
  10009. do
  10010. IFS=$as_save_IFS
  10011. test -z "$as_dir" && as_dir=.
  10012. for ac_exec_ext in '' $ac_executable_extensions; do
  10013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10014. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10016. break 2
  10017. fi
  10018. done
  10019. done
  10020. IFS=$as_save_IFS
  10021. fi
  10022. fi
  10023. CC=$ac_cv_prog_CC
  10024. if test -n "$CC"; then
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10026. $as_echo "$CC" >&6; }
  10027. else
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10029. $as_echo "no" >&6; }
  10030. fi
  10031. test -n "$CC" && break
  10032. done
  10033. fi
  10034. if test -z "$CC"; then
  10035. ac_ct_CC=$CC
  10036. for ac_prog in cl.exe
  10037. do
  10038. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10039. set dummy $ac_prog; ac_word=$2
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10041. $as_echo_n "checking for $ac_word... " >&6; }
  10042. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10043. $as_echo_n "(cached) " >&6
  10044. else
  10045. if test -n "$ac_ct_CC"; then
  10046. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10047. else
  10048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10049. for as_dir in $PATH
  10050. do
  10051. IFS=$as_save_IFS
  10052. test -z "$as_dir" && as_dir=.
  10053. for ac_exec_ext in '' $ac_executable_extensions; do
  10054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10055. ac_cv_prog_ac_ct_CC="$ac_prog"
  10056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10057. break 2
  10058. fi
  10059. done
  10060. done
  10061. IFS=$as_save_IFS
  10062. fi
  10063. fi
  10064. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10065. if test -n "$ac_ct_CC"; then
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10067. $as_echo "$ac_ct_CC" >&6; }
  10068. else
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10070. $as_echo "no" >&6; }
  10071. fi
  10072. test -n "$ac_ct_CC" && break
  10073. done
  10074. if test "x$ac_ct_CC" = x; then
  10075. CC=""
  10076. else
  10077. case $cross_compiling:$ac_tool_warned in
  10078. yes:)
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10080. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10081. ac_tool_warned=yes ;;
  10082. esac
  10083. CC=$ac_ct_CC
  10084. fi
  10085. fi
  10086. fi
  10087. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10088. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10089. as_fn_error $? "no acceptable C compiler found in \$PATH
  10090. See \`config.log' for more details" "$LINENO" 5; }
  10091. # Provide some information about the compiler.
  10092. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10093. set X $ac_compile
  10094. ac_compiler=$2
  10095. for ac_option in --version -v -V -qversion; do
  10096. { { ac_try="$ac_compiler $ac_option >&5"
  10097. case "(($ac_try" in
  10098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10099. *) ac_try_echo=$ac_try;;
  10100. esac
  10101. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10102. $as_echo "$ac_try_echo"; } >&5
  10103. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10104. ac_status=$?
  10105. if test -s conftest.err; then
  10106. sed '10a\
  10107. ... rest of stderr output deleted ...
  10108. 10q' conftest.err >conftest.er1
  10109. cat conftest.er1 >&5
  10110. fi
  10111. rm -f conftest.er1 conftest.err
  10112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10113. test $ac_status = 0; }
  10114. done
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10116. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10117. if ${ac_cv_c_compiler_gnu+:} false; then :
  10118. $as_echo_n "(cached) " >&6
  10119. else
  10120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10121. /* end confdefs.h. */
  10122. int
  10123. main ()
  10124. {
  10125. #ifndef __GNUC__
  10126. choke me
  10127. #endif
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_c_try_compile "$LINENO"; then :
  10133. ac_compiler_gnu=yes
  10134. else
  10135. ac_compiler_gnu=no
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10138. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10139. fi
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10141. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10142. if test $ac_compiler_gnu = yes; then
  10143. GCC=yes
  10144. else
  10145. GCC=
  10146. fi
  10147. ac_test_CFLAGS=${CFLAGS+set}
  10148. ac_save_CFLAGS=$CFLAGS
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10150. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10151. if ${ac_cv_prog_cc_g+:} false; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. ac_save_c_werror_flag=$ac_c_werror_flag
  10155. ac_c_werror_flag=yes
  10156. ac_cv_prog_cc_g=no
  10157. CFLAGS="-g"
  10158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10159. /* end confdefs.h. */
  10160. int
  10161. main ()
  10162. {
  10163. ;
  10164. return 0;
  10165. }
  10166. _ACEOF
  10167. if ac_fn_c_try_compile "$LINENO"; then :
  10168. ac_cv_prog_cc_g=yes
  10169. else
  10170. CFLAGS=""
  10171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10172. /* end confdefs.h. */
  10173. int
  10174. main ()
  10175. {
  10176. ;
  10177. return 0;
  10178. }
  10179. _ACEOF
  10180. if ac_fn_c_try_compile "$LINENO"; then :
  10181. else
  10182. ac_c_werror_flag=$ac_save_c_werror_flag
  10183. CFLAGS="-g"
  10184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10185. /* end confdefs.h. */
  10186. int
  10187. main ()
  10188. {
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. if ac_fn_c_try_compile "$LINENO"; then :
  10194. ac_cv_prog_cc_g=yes
  10195. fi
  10196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10197. fi
  10198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. ac_c_werror_flag=$ac_save_c_werror_flag
  10202. fi
  10203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10204. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10205. if test "$ac_test_CFLAGS" = set; then
  10206. CFLAGS=$ac_save_CFLAGS
  10207. elif test $ac_cv_prog_cc_g = yes; then
  10208. if test "$GCC" = yes; then
  10209. CFLAGS="-g -O2"
  10210. else
  10211. CFLAGS="-g"
  10212. fi
  10213. else
  10214. if test "$GCC" = yes; then
  10215. CFLAGS="-O2"
  10216. else
  10217. CFLAGS=
  10218. fi
  10219. fi
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10221. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10222. if ${ac_cv_prog_cc_c89+:} false; then :
  10223. $as_echo_n "(cached) " >&6
  10224. else
  10225. ac_cv_prog_cc_c89=no
  10226. ac_save_CC=$CC
  10227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10228. /* end confdefs.h. */
  10229. #include <stdarg.h>
  10230. #include <stdio.h>
  10231. struct stat;
  10232. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10233. struct buf { int x; };
  10234. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10235. static char *e (p, i)
  10236. char **p;
  10237. int i;
  10238. {
  10239. return p[i];
  10240. }
  10241. static char *f (char * (*g) (char **, int), char **p, ...)
  10242. {
  10243. char *s;
  10244. va_list v;
  10245. va_start (v,p);
  10246. s = g (p, va_arg (v,int));
  10247. va_end (v);
  10248. return s;
  10249. }
  10250. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10251. function prototypes and stuff, but not '\xHH' hex character constants.
  10252. These don't provoke an error unfortunately, instead are silently treated
  10253. as 'x'. The following induces an error, until -std is added to get
  10254. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10255. array size at least. It's necessary to write '\x00'==0 to get something
  10256. that's true only with -std. */
  10257. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10258. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10259. inside strings and character constants. */
  10260. #define FOO(x) 'x'
  10261. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10262. int test (int i, double x);
  10263. struct s1 {int (*f) (int a);};
  10264. struct s2 {int (*f) (double a);};
  10265. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10266. int argc;
  10267. char **argv;
  10268. int
  10269. main ()
  10270. {
  10271. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10277. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10278. do
  10279. CC="$ac_save_CC $ac_arg"
  10280. if ac_fn_c_try_compile "$LINENO"; then :
  10281. ac_cv_prog_cc_c89=$ac_arg
  10282. fi
  10283. rm -f core conftest.err conftest.$ac_objext
  10284. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10285. done
  10286. rm -f conftest.$ac_ext
  10287. CC=$ac_save_CC
  10288. fi
  10289. # AC_CACHE_VAL
  10290. case "x$ac_cv_prog_cc_c89" in
  10291. x)
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10293. $as_echo "none needed" >&6; } ;;
  10294. xno)
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10296. $as_echo "unsupported" >&6; } ;;
  10297. *)
  10298. CC="$CC $ac_cv_prog_cc_c89"
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10300. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10301. esac
  10302. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10303. fi
  10304. ac_ext=c
  10305. ac_cpp='$CPP $CPPFLAGS'
  10306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10309. ac_ext=cpp
  10310. ac_cpp='$CXXCPP $CPPFLAGS'
  10311. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10312. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10313. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10314. if test -z "$CXX"; then
  10315. if test -n "$CCC"; then
  10316. CXX=$CCC
  10317. else
  10318. if test -n "$ac_tool_prefix"; then
  10319. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10320. do
  10321. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10322. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10324. $as_echo_n "checking for $ac_word... " >&6; }
  10325. if ${ac_cv_prog_CXX+:} false; then :
  10326. $as_echo_n "(cached) " >&6
  10327. else
  10328. if test -n "$CXX"; then
  10329. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10330. else
  10331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10332. for as_dir in $PATH
  10333. do
  10334. IFS=$as_save_IFS
  10335. test -z "$as_dir" && as_dir=.
  10336. for ac_exec_ext in '' $ac_executable_extensions; do
  10337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10338. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10340. break 2
  10341. fi
  10342. done
  10343. done
  10344. IFS=$as_save_IFS
  10345. fi
  10346. fi
  10347. CXX=$ac_cv_prog_CXX
  10348. if test -n "$CXX"; then
  10349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10350. $as_echo "$CXX" >&6; }
  10351. else
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10353. $as_echo "no" >&6; }
  10354. fi
  10355. test -n "$CXX" && break
  10356. done
  10357. fi
  10358. if test -z "$CXX"; then
  10359. ac_ct_CXX=$CXX
  10360. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10361. do
  10362. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10363. set dummy $ac_prog; ac_word=$2
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10365. $as_echo_n "checking for $ac_word... " >&6; }
  10366. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. if test -n "$ac_ct_CXX"; then
  10370. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10371. else
  10372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10373. for as_dir in $PATH
  10374. do
  10375. IFS=$as_save_IFS
  10376. test -z "$as_dir" && as_dir=.
  10377. for ac_exec_ext in '' $ac_executable_extensions; do
  10378. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10379. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10380. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10381. break 2
  10382. fi
  10383. done
  10384. done
  10385. IFS=$as_save_IFS
  10386. fi
  10387. fi
  10388. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10389. if test -n "$ac_ct_CXX"; then
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10391. $as_echo "$ac_ct_CXX" >&6; }
  10392. else
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10394. $as_echo "no" >&6; }
  10395. fi
  10396. test -n "$ac_ct_CXX" && break
  10397. done
  10398. if test "x$ac_ct_CXX" = x; then
  10399. CXX="g++"
  10400. else
  10401. case $cross_compiling:$ac_tool_warned in
  10402. yes:)
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10405. ac_tool_warned=yes ;;
  10406. esac
  10407. CXX=$ac_ct_CXX
  10408. fi
  10409. fi
  10410. fi
  10411. fi
  10412. # Provide some information about the compiler.
  10413. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10414. set X $ac_compile
  10415. ac_compiler=$2
  10416. for ac_option in --version -v -V -qversion; do
  10417. { { ac_try="$ac_compiler $ac_option >&5"
  10418. case "(($ac_try" in
  10419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10420. *) ac_try_echo=$ac_try;;
  10421. esac
  10422. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10423. $as_echo "$ac_try_echo"; } >&5
  10424. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10425. ac_status=$?
  10426. if test -s conftest.err; then
  10427. sed '10a\
  10428. ... rest of stderr output deleted ...
  10429. 10q' conftest.err >conftest.er1
  10430. cat conftest.er1 >&5
  10431. fi
  10432. rm -f conftest.er1 conftest.err
  10433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10434. test $ac_status = 0; }
  10435. done
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10437. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10438. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10439. $as_echo_n "(cached) " >&6
  10440. else
  10441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10442. /* end confdefs.h. */
  10443. int
  10444. main ()
  10445. {
  10446. #ifndef __GNUC__
  10447. choke me
  10448. #endif
  10449. ;
  10450. return 0;
  10451. }
  10452. _ACEOF
  10453. if ac_fn_cxx_try_compile "$LINENO"; then :
  10454. ac_compiler_gnu=yes
  10455. else
  10456. ac_compiler_gnu=no
  10457. fi
  10458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10459. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10460. fi
  10461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10462. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10463. if test $ac_compiler_gnu = yes; then
  10464. GXX=yes
  10465. else
  10466. GXX=
  10467. fi
  10468. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10469. ac_save_CXXFLAGS=$CXXFLAGS
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10471. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10472. if ${ac_cv_prog_cxx_g+:} false; then :
  10473. $as_echo_n "(cached) " >&6
  10474. else
  10475. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10476. ac_cxx_werror_flag=yes
  10477. ac_cv_prog_cxx_g=no
  10478. CXXFLAGS="-g"
  10479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10480. /* end confdefs.h. */
  10481. int
  10482. main ()
  10483. {
  10484. ;
  10485. return 0;
  10486. }
  10487. _ACEOF
  10488. if ac_fn_cxx_try_compile "$LINENO"; then :
  10489. ac_cv_prog_cxx_g=yes
  10490. else
  10491. CXXFLAGS=""
  10492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10493. /* end confdefs.h. */
  10494. int
  10495. main ()
  10496. {
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_cxx_try_compile "$LINENO"; then :
  10502. else
  10503. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10504. CXXFLAGS="-g"
  10505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10506. /* end confdefs.h. */
  10507. int
  10508. main ()
  10509. {
  10510. ;
  10511. return 0;
  10512. }
  10513. _ACEOF
  10514. if ac_fn_cxx_try_compile "$LINENO"; then :
  10515. ac_cv_prog_cxx_g=yes
  10516. fi
  10517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10523. fi
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10525. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10526. if test "$ac_test_CXXFLAGS" = set; then
  10527. CXXFLAGS=$ac_save_CXXFLAGS
  10528. elif test $ac_cv_prog_cxx_g = yes; then
  10529. if test "$GXX" = yes; then
  10530. CXXFLAGS="-g -O2"
  10531. else
  10532. CXXFLAGS="-g"
  10533. fi
  10534. else
  10535. if test "$GXX" = yes; then
  10536. CXXFLAGS="-O2"
  10537. else
  10538. CXXFLAGS=
  10539. fi
  10540. fi
  10541. ac_ext=c
  10542. ac_cpp='$CPP $CPPFLAGS'
  10543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10546. func_stripname_cnf ()
  10547. {
  10548. case ${2} in
  10549. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10550. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10551. esac
  10552. } # func_stripname_cnf
  10553. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10554. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10555. (test "X$CXX" != "Xg++"))) ; then
  10556. ac_ext=cpp
  10557. ac_cpp='$CXXCPP $CPPFLAGS'
  10558. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10559. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10560. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10562. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10563. if test -z "$CXXCPP"; then
  10564. if ${ac_cv_prog_CXXCPP+:} false; then :
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. # Double quotes because CXXCPP needs to be expanded
  10568. for CXXCPP in "$CXX -E" "/lib/cpp"
  10569. do
  10570. ac_preproc_ok=false
  10571. for ac_cxx_preproc_warn_flag in '' yes
  10572. do
  10573. # Use a header file that comes with gcc, so configuring glibc
  10574. # with a fresh cross-compiler works.
  10575. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10576. # <limits.h> exists even on freestanding compilers.
  10577. # On the NeXT, cc -E runs the code through the compiler's parser,
  10578. # not just through cpp. "Syntax error" is here to catch this case.
  10579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10580. /* end confdefs.h. */
  10581. #ifdef __STDC__
  10582. # include <limits.h>
  10583. #else
  10584. # include <assert.h>
  10585. #endif
  10586. Syntax error
  10587. _ACEOF
  10588. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10589. else
  10590. # Broken: fails on valid input.
  10591. continue
  10592. fi
  10593. rm -f conftest.err conftest.i conftest.$ac_ext
  10594. # OK, works on sane cases. Now check whether nonexistent headers
  10595. # can be detected and how.
  10596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10597. /* end confdefs.h. */
  10598. #include <ac_nonexistent.h>
  10599. _ACEOF
  10600. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10601. # Broken: success on invalid input.
  10602. continue
  10603. else
  10604. # Passes both tests.
  10605. ac_preproc_ok=:
  10606. break
  10607. fi
  10608. rm -f conftest.err conftest.i conftest.$ac_ext
  10609. done
  10610. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10611. rm -f conftest.i conftest.err conftest.$ac_ext
  10612. if $ac_preproc_ok; then :
  10613. break
  10614. fi
  10615. done
  10616. ac_cv_prog_CXXCPP=$CXXCPP
  10617. fi
  10618. CXXCPP=$ac_cv_prog_CXXCPP
  10619. else
  10620. ac_cv_prog_CXXCPP=$CXXCPP
  10621. fi
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10623. $as_echo "$CXXCPP" >&6; }
  10624. ac_preproc_ok=false
  10625. for ac_cxx_preproc_warn_flag in '' yes
  10626. do
  10627. # Use a header file that comes with gcc, so configuring glibc
  10628. # with a fresh cross-compiler works.
  10629. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10630. # <limits.h> exists even on freestanding compilers.
  10631. # On the NeXT, cc -E runs the code through the compiler's parser,
  10632. # not just through cpp. "Syntax error" is here to catch this case.
  10633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10634. /* end confdefs.h. */
  10635. #ifdef __STDC__
  10636. # include <limits.h>
  10637. #else
  10638. # include <assert.h>
  10639. #endif
  10640. Syntax error
  10641. _ACEOF
  10642. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10643. else
  10644. # Broken: fails on valid input.
  10645. continue
  10646. fi
  10647. rm -f conftest.err conftest.i conftest.$ac_ext
  10648. # OK, works on sane cases. Now check whether nonexistent headers
  10649. # can be detected and how.
  10650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10651. /* end confdefs.h. */
  10652. #include <ac_nonexistent.h>
  10653. _ACEOF
  10654. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10655. # Broken: success on invalid input.
  10656. continue
  10657. else
  10658. # Passes both tests.
  10659. ac_preproc_ok=:
  10660. break
  10661. fi
  10662. rm -f conftest.err conftest.i conftest.$ac_ext
  10663. done
  10664. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10665. rm -f conftest.i conftest.err conftest.$ac_ext
  10666. if $ac_preproc_ok; then :
  10667. else
  10668. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10669. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10670. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10671. See \`config.log' for more details" "$LINENO" 5; }
  10672. fi
  10673. ac_ext=c
  10674. ac_cpp='$CPP $CPPFLAGS'
  10675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10678. else
  10679. _lt_caught_CXX_error=yes
  10680. fi
  10681. ac_ext=cpp
  10682. ac_cpp='$CXXCPP $CPPFLAGS'
  10683. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10684. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10685. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10686. archive_cmds_need_lc_CXX=no
  10687. allow_undefined_flag_CXX=
  10688. always_export_symbols_CXX=no
  10689. archive_expsym_cmds_CXX=
  10690. compiler_needs_object_CXX=no
  10691. export_dynamic_flag_spec_CXX=
  10692. hardcode_direct_CXX=no
  10693. hardcode_direct_absolute_CXX=no
  10694. hardcode_libdir_flag_spec_CXX=
  10695. hardcode_libdir_separator_CXX=
  10696. hardcode_minus_L_CXX=no
  10697. hardcode_shlibpath_var_CXX=unsupported
  10698. hardcode_automatic_CXX=no
  10699. inherit_rpath_CXX=no
  10700. module_cmds_CXX=
  10701. module_expsym_cmds_CXX=
  10702. link_all_deplibs_CXX=unknown
  10703. old_archive_cmds_CXX=$old_archive_cmds
  10704. reload_flag_CXX=$reload_flag
  10705. reload_cmds_CXX=$reload_cmds
  10706. no_undefined_flag_CXX=
  10707. whole_archive_flag_spec_CXX=
  10708. enable_shared_with_static_runtimes_CXX=no
  10709. # Source file extension for C++ test sources.
  10710. ac_ext=cpp
  10711. # Object file extension for compiled C++ test sources.
  10712. objext=o
  10713. objext_CXX=$objext
  10714. # No sense in running all these tests if we already determined that
  10715. # the CXX compiler isn't working. Some variables (like enable_shared)
  10716. # are currently assumed to apply to all compilers on this platform,
  10717. # and will be corrupted by setting them based on a non-working compiler.
  10718. if test "$_lt_caught_CXX_error" != yes; then
  10719. # Code to be used in simple compile tests
  10720. lt_simple_compile_test_code="int some_variable = 0;"
  10721. # Code to be used in simple link tests
  10722. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10723. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10724. # If no C compiler was specified, use CC.
  10725. LTCC=${LTCC-"$CC"}
  10726. # If no C compiler flags were specified, use CFLAGS.
  10727. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10728. # Allow CC to be a program name with arguments.
  10729. compiler=$CC
  10730. # save warnings/boilerplate of simple test code
  10731. ac_outfile=conftest.$ac_objext
  10732. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10733. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10734. _lt_compiler_boilerplate=`cat conftest.err`
  10735. $RM conftest*
  10736. ac_outfile=conftest.$ac_objext
  10737. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10738. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10739. _lt_linker_boilerplate=`cat conftest.err`
  10740. $RM -r conftest*
  10741. # Allow CC to be a program name with arguments.
  10742. lt_save_CC=$CC
  10743. lt_save_CFLAGS=$CFLAGS
  10744. lt_save_LD=$LD
  10745. lt_save_GCC=$GCC
  10746. GCC=$GXX
  10747. lt_save_with_gnu_ld=$with_gnu_ld
  10748. lt_save_path_LD=$lt_cv_path_LD
  10749. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10750. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10751. else
  10752. $as_unset lt_cv_prog_gnu_ld
  10753. fi
  10754. if test -n "${lt_cv_path_LDCXX+set}"; then
  10755. lt_cv_path_LD=$lt_cv_path_LDCXX
  10756. else
  10757. $as_unset lt_cv_path_LD
  10758. fi
  10759. test -z "${LDCXX+set}" || LD=$LDCXX
  10760. CC=${CXX-"c++"}
  10761. CFLAGS=$CXXFLAGS
  10762. compiler=$CC
  10763. compiler_CXX=$CC
  10764. for cc_temp in $compiler""; do
  10765. case $cc_temp in
  10766. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10767. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10768. \-*) ;;
  10769. *) break;;
  10770. esac
  10771. done
  10772. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10773. if test -n "$compiler"; then
  10774. # We don't want -fno-exception when compiling C++ code, so set the
  10775. # no_builtin_flag separately
  10776. if test "$GXX" = yes; then
  10777. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10778. else
  10779. lt_prog_compiler_no_builtin_flag_CXX=
  10780. fi
  10781. if test "$GXX" = yes; then
  10782. # Set up default GNU C++ configuration
  10783. # Check whether --with-gnu-ld was given.
  10784. if test "${with_gnu_ld+set}" = set; then :
  10785. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10786. else
  10787. with_gnu_ld=no
  10788. fi
  10789. ac_prog=ld
  10790. if test "$GCC" = yes; then
  10791. # Check if gcc -print-prog-name=ld gives a path.
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10793. $as_echo_n "checking for ld used by $CC... " >&6; }
  10794. case $host in
  10795. *-*-mingw*)
  10796. # gcc leaves a trailing carriage return which upsets mingw
  10797. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10798. *)
  10799. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10800. esac
  10801. case $ac_prog in
  10802. # Accept absolute paths.
  10803. [\\/]* | ?:[\\/]*)
  10804. re_direlt='/[^/][^/]*/\.\./'
  10805. # Canonicalize the pathname of ld
  10806. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10807. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10808. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10809. done
  10810. test -z "$LD" && LD="$ac_prog"
  10811. ;;
  10812. "")
  10813. # If it fails, then pretend we aren't using GCC.
  10814. ac_prog=ld
  10815. ;;
  10816. *)
  10817. # If it is relative, then search for the first ld in PATH.
  10818. with_gnu_ld=unknown
  10819. ;;
  10820. esac
  10821. elif test "$with_gnu_ld" = yes; then
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10823. $as_echo_n "checking for GNU ld... " >&6; }
  10824. else
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10826. $as_echo_n "checking for non-GNU ld... " >&6; }
  10827. fi
  10828. if ${lt_cv_path_LD+:} false; then :
  10829. $as_echo_n "(cached) " >&6
  10830. else
  10831. if test -z "$LD"; then
  10832. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10833. for ac_dir in $PATH; do
  10834. IFS="$lt_save_ifs"
  10835. test -z "$ac_dir" && ac_dir=.
  10836. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10837. lt_cv_path_LD="$ac_dir/$ac_prog"
  10838. # Check to see if the program is GNU ld. I'd rather use --version,
  10839. # but apparently some variants of GNU ld only accept -v.
  10840. # Break only if it was the GNU/non-GNU ld that we prefer.
  10841. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10842. *GNU* | *'with BFD'*)
  10843. test "$with_gnu_ld" != no && break
  10844. ;;
  10845. *)
  10846. test "$with_gnu_ld" != yes && break
  10847. ;;
  10848. esac
  10849. fi
  10850. done
  10851. IFS="$lt_save_ifs"
  10852. else
  10853. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10854. fi
  10855. fi
  10856. LD="$lt_cv_path_LD"
  10857. if test -n "$LD"; then
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10859. $as_echo "$LD" >&6; }
  10860. else
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10862. $as_echo "no" >&6; }
  10863. fi
  10864. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10866. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10867. if ${lt_cv_prog_gnu_ld+:} false; then :
  10868. $as_echo_n "(cached) " >&6
  10869. else
  10870. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10871. case `$LD -v 2>&1 </dev/null` in
  10872. *GNU* | *'with BFD'*)
  10873. lt_cv_prog_gnu_ld=yes
  10874. ;;
  10875. *)
  10876. lt_cv_prog_gnu_ld=no
  10877. ;;
  10878. esac
  10879. fi
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10881. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10882. with_gnu_ld=$lt_cv_prog_gnu_ld
  10883. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10884. # archiving commands below assume that GNU ld is being used.
  10885. if test "$with_gnu_ld" = yes; then
  10886. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10887. 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'
  10888. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10889. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10890. # If archive_cmds runs LD, not CC, wlarc should be empty
  10891. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10892. # investigate it a little bit more. (MM)
  10893. wlarc='${wl}'
  10894. # ancient GNU ld didn't support --whole-archive et. al.
  10895. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10896. $GREP 'no-whole-archive' > /dev/null; then
  10897. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10898. else
  10899. whole_archive_flag_spec_CXX=
  10900. fi
  10901. else
  10902. with_gnu_ld=no
  10903. wlarc=
  10904. # A generic and very simple default shared library creation
  10905. # command for GNU C++ for the case where it uses the native
  10906. # linker, instead of GNU ld. If possible, this setting should
  10907. # overridden to take advantage of the native linker features on
  10908. # the platform it is being used on.
  10909. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10910. fi
  10911. # Commands to make compiler produce verbose output that lists
  10912. # what "hidden" libraries, object files and flags are used when
  10913. # linking a shared library.
  10914. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10915. else
  10916. GXX=no
  10917. with_gnu_ld=no
  10918. wlarc=
  10919. fi
  10920. # PORTME: fill in a description of your system's C++ link characteristics
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10922. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10923. ld_shlibs_CXX=yes
  10924. case $host_os in
  10925. aix3*)
  10926. # FIXME: insert proper C++ library support
  10927. ld_shlibs_CXX=no
  10928. ;;
  10929. aix[4-9]*)
  10930. if test "$host_cpu" = ia64; then
  10931. # On IA64, the linker does run time linking by default, so we don't
  10932. # have to do anything special.
  10933. aix_use_runtimelinking=no
  10934. exp_sym_flag='-Bexport'
  10935. no_entry_flag=""
  10936. else
  10937. aix_use_runtimelinking=no
  10938. # Test if we are trying to use run time linking or normal
  10939. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10940. # need to do runtime linking.
  10941. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10942. for ld_flag in $LDFLAGS; do
  10943. case $ld_flag in
  10944. *-brtl*)
  10945. aix_use_runtimelinking=yes
  10946. break
  10947. ;;
  10948. esac
  10949. done
  10950. ;;
  10951. esac
  10952. exp_sym_flag='-bexport'
  10953. no_entry_flag='-bnoentry'
  10954. fi
  10955. # When large executables or shared objects are built, AIX ld can
  10956. # have problems creating the table of contents. If linking a library
  10957. # or program results in "error TOC overflow" add -mminimal-toc to
  10958. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10959. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10960. archive_cmds_CXX=''
  10961. hardcode_direct_CXX=yes
  10962. hardcode_direct_absolute_CXX=yes
  10963. hardcode_libdir_separator_CXX=':'
  10964. link_all_deplibs_CXX=yes
  10965. file_list_spec_CXX='${wl}-f,'
  10966. if test "$GXX" = yes; then
  10967. case $host_os in aix4.[012]|aix4.[012].*)
  10968. # We only want to do this on AIX 4.2 and lower, the check
  10969. # below for broken collect2 doesn't work under 4.3+
  10970. collect2name=`${CC} -print-prog-name=collect2`
  10971. if test -f "$collect2name" &&
  10972. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10973. then
  10974. # We have reworked collect2
  10975. :
  10976. else
  10977. # We have old collect2
  10978. hardcode_direct_CXX=unsupported
  10979. # It fails to find uninstalled libraries when the uninstalled
  10980. # path is not listed in the libpath. Setting hardcode_minus_L
  10981. # to unsupported forces relinking
  10982. hardcode_minus_L_CXX=yes
  10983. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10984. hardcode_libdir_separator_CXX=
  10985. fi
  10986. esac
  10987. shared_flag='-shared'
  10988. if test "$aix_use_runtimelinking" = yes; then
  10989. shared_flag="$shared_flag "'${wl}-G'
  10990. fi
  10991. else
  10992. # not using gcc
  10993. if test "$host_cpu" = ia64; then
  10994. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10995. # chokes on -Wl,-G. The following line is correct:
  10996. shared_flag='-G'
  10997. else
  10998. if test "$aix_use_runtimelinking" = yes; then
  10999. shared_flag='${wl}-G'
  11000. else
  11001. shared_flag='${wl}-bM:SRE'
  11002. fi
  11003. fi
  11004. fi
  11005. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11006. # It seems that -bexpall does not export symbols beginning with
  11007. # underscore (_), so it is better to generate a list of symbols to
  11008. # export.
  11009. always_export_symbols_CXX=yes
  11010. if test "$aix_use_runtimelinking" = yes; then
  11011. # Warning - without using the other runtime loading flags (-brtl),
  11012. # -berok will link without error, but may produce a broken library.
  11013. allow_undefined_flag_CXX='-berok'
  11014. # Determine the default libpath from the value encoded in an empty
  11015. # executable.
  11016. if test "${lt_cv_aix_libpath+set}" = set; then
  11017. aix_libpath=$lt_cv_aix_libpath
  11018. else
  11019. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11020. $as_echo_n "(cached) " >&6
  11021. else
  11022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11023. /* end confdefs.h. */
  11024. int
  11025. main ()
  11026. {
  11027. ;
  11028. return 0;
  11029. }
  11030. _ACEOF
  11031. if ac_fn_cxx_try_link "$LINENO"; then :
  11032. lt_aix_libpath_sed='
  11033. /Import File Strings/,/^$/ {
  11034. /^0/ {
  11035. s/^0 *\([^ ]*\) *$/\1/
  11036. p
  11037. }
  11038. }'
  11039. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11040. # Check for a 64-bit object if we didn't find anything.
  11041. if test -z "$lt_cv_aix_libpath__CXX"; then
  11042. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11043. fi
  11044. fi
  11045. rm -f core conftest.err conftest.$ac_objext \
  11046. conftest$ac_exeext conftest.$ac_ext
  11047. if test -z "$lt_cv_aix_libpath__CXX"; then
  11048. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11049. fi
  11050. fi
  11051. aix_libpath=$lt_cv_aix_libpath__CXX
  11052. fi
  11053. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11054. 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"
  11055. else
  11056. if test "$host_cpu" = ia64; then
  11057. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11058. allow_undefined_flag_CXX="-z nodefs"
  11059. 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"
  11060. else
  11061. # Determine the default libpath from the value encoded in an
  11062. # empty executable.
  11063. if test "${lt_cv_aix_libpath+set}" = set; then
  11064. aix_libpath=$lt_cv_aix_libpath
  11065. else
  11066. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11067. $as_echo_n "(cached) " >&6
  11068. else
  11069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11070. /* end confdefs.h. */
  11071. int
  11072. main ()
  11073. {
  11074. ;
  11075. return 0;
  11076. }
  11077. _ACEOF
  11078. if ac_fn_cxx_try_link "$LINENO"; then :
  11079. lt_aix_libpath_sed='
  11080. /Import File Strings/,/^$/ {
  11081. /^0/ {
  11082. s/^0 *\([^ ]*\) *$/\1/
  11083. p
  11084. }
  11085. }'
  11086. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11087. # Check for a 64-bit object if we didn't find anything.
  11088. if test -z "$lt_cv_aix_libpath__CXX"; then
  11089. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11090. fi
  11091. fi
  11092. rm -f core conftest.err conftest.$ac_objext \
  11093. conftest$ac_exeext conftest.$ac_ext
  11094. if test -z "$lt_cv_aix_libpath__CXX"; then
  11095. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11096. fi
  11097. fi
  11098. aix_libpath=$lt_cv_aix_libpath__CXX
  11099. fi
  11100. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11101. # Warning - without using the other run time loading flags,
  11102. # -berok will link without error, but may produce a broken library.
  11103. no_undefined_flag_CXX=' ${wl}-bernotok'
  11104. allow_undefined_flag_CXX=' ${wl}-berok'
  11105. if test "$with_gnu_ld" = yes; then
  11106. # We only use this code for GNU lds that support --whole-archive.
  11107. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11108. else
  11109. # Exported symbols can be pulled into shared objects from archives
  11110. whole_archive_flag_spec_CXX='$convenience'
  11111. fi
  11112. archive_cmds_need_lc_CXX=yes
  11113. # This is similar to how AIX traditionally builds its shared
  11114. # libraries.
  11115. 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'
  11116. fi
  11117. fi
  11118. ;;
  11119. beos*)
  11120. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11121. allow_undefined_flag_CXX=unsupported
  11122. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11123. # support --undefined. This deserves some investigation. FIXME
  11124. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11125. else
  11126. ld_shlibs_CXX=no
  11127. fi
  11128. ;;
  11129. chorus*)
  11130. case $cc_basename in
  11131. *)
  11132. # FIXME: insert proper C++ library support
  11133. ld_shlibs_CXX=no
  11134. ;;
  11135. esac
  11136. ;;
  11137. cygwin* | mingw* | pw32* | cegcc*)
  11138. case $GXX,$cc_basename in
  11139. ,cl* | no,cl*)
  11140. # Native MSVC
  11141. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11142. # no search path for DLLs.
  11143. hardcode_libdir_flag_spec_CXX=' '
  11144. allow_undefined_flag_CXX=unsupported
  11145. always_export_symbols_CXX=yes
  11146. file_list_spec_CXX='@'
  11147. # Tell ltmain to make .lib files, not .a files.
  11148. libext=lib
  11149. # Tell ltmain to make .dll files, not .so files.
  11150. shrext_cmds=".dll"
  11151. # FIXME: Setting linknames here is a bad hack.
  11152. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11153. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11154. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11155. else
  11156. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11157. fi~
  11158. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11159. linknames='
  11160. # The linker will not automatically build a static lib if we build a DLL.
  11161. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11162. enable_shared_with_static_runtimes_CXX=yes
  11163. # Don't use ranlib
  11164. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11165. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11166. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11167. case $lt_outputfile in
  11168. *.exe|*.EXE) ;;
  11169. *)
  11170. lt_outputfile="$lt_outputfile.exe"
  11171. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11172. ;;
  11173. esac~
  11174. func_to_tool_file "$lt_outputfile"~
  11175. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11176. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11177. $RM "$lt_outputfile.manifest";
  11178. fi'
  11179. ;;
  11180. *)
  11181. # g++
  11182. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11183. # as there is no search path for DLLs.
  11184. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11185. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11186. allow_undefined_flag_CXX=unsupported
  11187. always_export_symbols_CXX=no
  11188. enable_shared_with_static_runtimes_CXX=yes
  11189. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11190. 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'
  11191. # If the export-symbols file already is a .def file (1st line
  11192. # is EXPORTS), use it as is; otherwise, prepend...
  11193. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11194. cp $export_symbols $output_objdir/$soname.def;
  11195. else
  11196. echo EXPORTS > $output_objdir/$soname.def;
  11197. cat $export_symbols >> $output_objdir/$soname.def;
  11198. fi~
  11199. $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'
  11200. else
  11201. ld_shlibs_CXX=no
  11202. fi
  11203. ;;
  11204. esac
  11205. ;;
  11206. darwin* | rhapsody*)
  11207. archive_cmds_need_lc_CXX=no
  11208. hardcode_direct_CXX=no
  11209. hardcode_automatic_CXX=yes
  11210. hardcode_shlibpath_var_CXX=unsupported
  11211. if test "$lt_cv_ld_force_load" = "yes"; then
  11212. 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\"`'
  11213. else
  11214. whole_archive_flag_spec_CXX=''
  11215. fi
  11216. link_all_deplibs_CXX=yes
  11217. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11218. case $cc_basename in
  11219. ifort*) _lt_dar_can_shared=yes ;;
  11220. *) _lt_dar_can_shared=$GCC ;;
  11221. esac
  11222. if test "$_lt_dar_can_shared" = "yes"; then
  11223. output_verbose_link_cmd=func_echo_all
  11224. 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}"
  11225. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11226. 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}"
  11227. 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}"
  11228. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11229. 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}"
  11230. 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}"
  11231. fi
  11232. else
  11233. ld_shlibs_CXX=no
  11234. fi
  11235. ;;
  11236. dgux*)
  11237. case $cc_basename in
  11238. ec++*)
  11239. # FIXME: insert proper C++ library support
  11240. ld_shlibs_CXX=no
  11241. ;;
  11242. ghcx*)
  11243. # Green Hills C++ Compiler
  11244. # FIXME: insert proper C++ library support
  11245. ld_shlibs_CXX=no
  11246. ;;
  11247. *)
  11248. # FIXME: insert proper C++ library support
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. esac
  11252. ;;
  11253. freebsd2.*)
  11254. # C++ shared libraries reported to be fairly broken before
  11255. # switch to ELF
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. freebsd-elf*)
  11259. archive_cmds_need_lc_CXX=no
  11260. ;;
  11261. freebsd* | dragonfly*)
  11262. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11263. # conventions
  11264. ld_shlibs_CXX=yes
  11265. ;;
  11266. gnu*)
  11267. ;;
  11268. haiku*)
  11269. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11270. link_all_deplibs_CXX=yes
  11271. ;;
  11272. hpux9*)
  11273. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11274. hardcode_libdir_separator_CXX=:
  11275. export_dynamic_flag_spec_CXX='${wl}-E'
  11276. hardcode_direct_CXX=yes
  11277. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11278. # but as the default
  11279. # location of the library.
  11280. case $cc_basename in
  11281. CC*)
  11282. # FIXME: insert proper C++ library support
  11283. ld_shlibs_CXX=no
  11284. ;;
  11285. aCC*)
  11286. 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'
  11287. # Commands to make compiler produce verbose output that lists
  11288. # what "hidden" libraries, object files and flags are used when
  11289. # linking a shared library.
  11290. #
  11291. # There doesn't appear to be a way to prevent this compiler from
  11292. # explicitly linking system object files so we need to strip them
  11293. # from the output so that they don't get included in the library
  11294. # dependencies.
  11295. 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"'
  11296. ;;
  11297. *)
  11298. if test "$GXX" = yes; then
  11299. 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'
  11300. else
  11301. # FIXME: insert proper C++ library support
  11302. ld_shlibs_CXX=no
  11303. fi
  11304. ;;
  11305. esac
  11306. ;;
  11307. hpux10*|hpux11*)
  11308. if test $with_gnu_ld = no; then
  11309. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11310. hardcode_libdir_separator_CXX=:
  11311. case $host_cpu in
  11312. hppa*64*|ia64*)
  11313. ;;
  11314. *)
  11315. export_dynamic_flag_spec_CXX='${wl}-E'
  11316. ;;
  11317. esac
  11318. fi
  11319. case $host_cpu in
  11320. hppa*64*|ia64*)
  11321. hardcode_direct_CXX=no
  11322. hardcode_shlibpath_var_CXX=no
  11323. ;;
  11324. *)
  11325. hardcode_direct_CXX=yes
  11326. hardcode_direct_absolute_CXX=yes
  11327. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11328. # but as the default
  11329. # location of the library.
  11330. ;;
  11331. esac
  11332. case $cc_basename in
  11333. CC*)
  11334. # FIXME: insert proper C++ library support
  11335. ld_shlibs_CXX=no
  11336. ;;
  11337. aCC*)
  11338. case $host_cpu in
  11339. hppa*64*)
  11340. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11341. ;;
  11342. ia64*)
  11343. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11344. ;;
  11345. *)
  11346. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11347. ;;
  11348. esac
  11349. # Commands to make compiler produce verbose output that lists
  11350. # what "hidden" libraries, object files and flags are used when
  11351. # linking a shared library.
  11352. #
  11353. # There doesn't appear to be a way to prevent this compiler from
  11354. # explicitly linking system object files so we need to strip them
  11355. # from the output so that they don't get included in the library
  11356. # dependencies.
  11357. 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"'
  11358. ;;
  11359. *)
  11360. if test "$GXX" = yes; then
  11361. if test $with_gnu_ld = no; then
  11362. case $host_cpu in
  11363. hppa*64*)
  11364. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11365. ;;
  11366. ia64*)
  11367. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11368. ;;
  11369. *)
  11370. 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'
  11371. ;;
  11372. esac
  11373. fi
  11374. else
  11375. # FIXME: insert proper C++ library support
  11376. ld_shlibs_CXX=no
  11377. fi
  11378. ;;
  11379. esac
  11380. ;;
  11381. interix[3-9]*)
  11382. hardcode_direct_CXX=no
  11383. hardcode_shlibpath_var_CXX=no
  11384. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11385. export_dynamic_flag_spec_CXX='${wl}-E'
  11386. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11387. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11388. # default) and relocated if they conflict, which is a slow very memory
  11389. # consuming and fragmenting process. To avoid this, we pick a random,
  11390. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11391. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11392. 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'
  11393. 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'
  11394. ;;
  11395. irix5* | irix6*)
  11396. case $cc_basename in
  11397. CC*)
  11398. # SGI C++
  11399. 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'
  11400. # Archives containing C++ object files must be created using
  11401. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11402. # necessary to make sure instantiated templates are included
  11403. # in the archive.
  11404. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11405. ;;
  11406. *)
  11407. if test "$GXX" = yes; then
  11408. if test "$with_gnu_ld" = no; then
  11409. 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'
  11410. else
  11411. 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'
  11412. fi
  11413. fi
  11414. link_all_deplibs_CXX=yes
  11415. ;;
  11416. esac
  11417. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11418. hardcode_libdir_separator_CXX=:
  11419. inherit_rpath_CXX=yes
  11420. ;;
  11421. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11422. case $cc_basename in
  11423. KCC*)
  11424. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11425. # KCC will only create a shared library if the output file
  11426. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11427. # to its proper name (with version) after linking.
  11428. 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'
  11429. 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'
  11430. # Commands to make compiler produce verbose output that lists
  11431. # what "hidden" libraries, object files and flags are used when
  11432. # linking a shared library.
  11433. #
  11434. # There doesn't appear to be a way to prevent this compiler from
  11435. # explicitly linking system object files so we need to strip them
  11436. # from the output so that they don't get included in the library
  11437. # dependencies.
  11438. 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"'
  11439. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11440. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11441. # Archives containing C++ object files must be created using
  11442. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11443. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11444. ;;
  11445. icpc* | ecpc* )
  11446. # Intel C++
  11447. with_gnu_ld=yes
  11448. # version 8.0 and above of icpc choke on multiply defined symbols
  11449. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11450. # earlier do not add the objects themselves.
  11451. case `$CC -V 2>&1` in
  11452. *"Version 7."*)
  11453. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11454. 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'
  11455. ;;
  11456. *) # Version 8.0 or newer
  11457. tmp_idyn=
  11458. case $host_cpu in
  11459. ia64*) tmp_idyn=' -i_dynamic';;
  11460. esac
  11461. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11462. 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'
  11463. ;;
  11464. esac
  11465. archive_cmds_need_lc_CXX=no
  11466. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11467. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11468. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11469. ;;
  11470. pgCC* | pgcpp*)
  11471. # Portland Group C++ compiler
  11472. case `$CC -V` in
  11473. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11474. prelink_cmds_CXX='tpldir=Template.dir~
  11475. rm -rf $tpldir~
  11476. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11477. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11478. old_archive_cmds_CXX='tpldir=Template.dir~
  11479. rm -rf $tpldir~
  11480. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11481. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11482. $RANLIB $oldlib'
  11483. archive_cmds_CXX='tpldir=Template.dir~
  11484. rm -rf $tpldir~
  11485. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11486. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11487. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11488. rm -rf $tpldir~
  11489. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11490. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11491. ;;
  11492. *) # Version 6 and above use weak symbols
  11493. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11494. 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'
  11495. ;;
  11496. esac
  11497. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11498. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11499. 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'
  11500. ;;
  11501. cxx*)
  11502. # Compaq C++
  11503. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11504. 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'
  11505. runpath_var=LD_RUN_PATH
  11506. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11507. hardcode_libdir_separator_CXX=:
  11508. # Commands to make compiler produce verbose output that lists
  11509. # what "hidden" libraries, object files and flags are used when
  11510. # linking a shared library.
  11511. #
  11512. # There doesn't appear to be a way to prevent this compiler from
  11513. # explicitly linking system object files so we need to strip them
  11514. # from the output so that they don't get included in the library
  11515. # dependencies.
  11516. 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'
  11517. ;;
  11518. xl* | mpixl* | bgxl*)
  11519. # IBM XL 8.0 on PPC, with GNU ld
  11520. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11521. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11522. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11523. if test "x$supports_anon_versioning" = xyes; then
  11524. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11525. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11526. echo "local: *; };" >> $output_objdir/$libname.ver~
  11527. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11528. fi
  11529. ;;
  11530. *)
  11531. case `$CC -V 2>&1 | sed 5q` in
  11532. *Sun\ C*)
  11533. # Sun C++ 5.9
  11534. no_undefined_flag_CXX=' -zdefs'
  11535. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11536. 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'
  11537. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11538. 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'
  11539. compiler_needs_object_CXX=yes
  11540. # Not sure whether something based on
  11541. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11542. # would be better.
  11543. output_verbose_link_cmd='func_echo_all'
  11544. # Archives containing C++ object files must be created using
  11545. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11546. # necessary to make sure instantiated templates are included
  11547. # in the archive.
  11548. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11549. ;;
  11550. esac
  11551. ;;
  11552. esac
  11553. ;;
  11554. lynxos*)
  11555. # FIXME: insert proper C++ library support
  11556. ld_shlibs_CXX=no
  11557. ;;
  11558. m88k*)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. mvs*)
  11563. case $cc_basename in
  11564. cxx*)
  11565. # FIXME: insert proper C++ library support
  11566. ld_shlibs_CXX=no
  11567. ;;
  11568. *)
  11569. # FIXME: insert proper C++ library support
  11570. ld_shlibs_CXX=no
  11571. ;;
  11572. esac
  11573. ;;
  11574. netbsd*)
  11575. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11576. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11577. wlarc=
  11578. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11579. hardcode_direct_CXX=yes
  11580. hardcode_shlibpath_var_CXX=no
  11581. fi
  11582. # Workaround some broken pre-1.5 toolchains
  11583. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11584. ;;
  11585. *nto* | *qnx*)
  11586. ld_shlibs_CXX=yes
  11587. ;;
  11588. openbsd2*)
  11589. # C++ shared libraries are fairly broken
  11590. ld_shlibs_CXX=no
  11591. ;;
  11592. openbsd*)
  11593. if test -f /usr/libexec/ld.so; then
  11594. hardcode_direct_CXX=yes
  11595. hardcode_shlibpath_var_CXX=no
  11596. hardcode_direct_absolute_CXX=yes
  11597. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11598. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11599. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11600. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11601. export_dynamic_flag_spec_CXX='${wl}-E'
  11602. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11603. fi
  11604. output_verbose_link_cmd=func_echo_all
  11605. else
  11606. ld_shlibs_CXX=no
  11607. fi
  11608. ;;
  11609. osf3* | osf4* | osf5*)
  11610. case $cc_basename in
  11611. KCC*)
  11612. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11613. # KCC will only create a shared library if the output file
  11614. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11615. # to its proper name (with version) after linking.
  11616. 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'
  11617. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11618. hardcode_libdir_separator_CXX=:
  11619. # Archives containing C++ object files must be created using
  11620. # the KAI C++ compiler.
  11621. case $host in
  11622. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11623. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11624. esac
  11625. ;;
  11626. RCC*)
  11627. # Rational C++ 2.4.1
  11628. # FIXME: insert proper C++ library support
  11629. ld_shlibs_CXX=no
  11630. ;;
  11631. cxx*)
  11632. case $host in
  11633. osf3*)
  11634. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11635. 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'
  11636. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11637. ;;
  11638. *)
  11639. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11640. 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'
  11641. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11642. echo "-hidden">> $lib.exp~
  11643. $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~
  11644. $RM $lib.exp'
  11645. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11646. ;;
  11647. esac
  11648. hardcode_libdir_separator_CXX=:
  11649. # Commands to make compiler produce verbose output that lists
  11650. # what "hidden" libraries, object files and flags are used when
  11651. # linking a shared library.
  11652. #
  11653. # There doesn't appear to be a way to prevent this compiler from
  11654. # explicitly linking system object files so we need to strip them
  11655. # from the output so that they don't get included in the library
  11656. # dependencies.
  11657. 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"'
  11658. ;;
  11659. *)
  11660. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11661. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11662. case $host in
  11663. osf3*)
  11664. 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'
  11665. ;;
  11666. *)
  11667. 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'
  11668. ;;
  11669. esac
  11670. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11671. hardcode_libdir_separator_CXX=:
  11672. # Commands to make compiler produce verbose output that lists
  11673. # what "hidden" libraries, object files and flags are used when
  11674. # linking a shared library.
  11675. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11676. else
  11677. # FIXME: insert proper C++ library support
  11678. ld_shlibs_CXX=no
  11679. fi
  11680. ;;
  11681. esac
  11682. ;;
  11683. psos*)
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. ;;
  11687. sunos4*)
  11688. case $cc_basename in
  11689. CC*)
  11690. # Sun C++ 4.x
  11691. # FIXME: insert proper C++ library support
  11692. ld_shlibs_CXX=no
  11693. ;;
  11694. lcc*)
  11695. # Lucid
  11696. # FIXME: insert proper C++ library support
  11697. ld_shlibs_CXX=no
  11698. ;;
  11699. *)
  11700. # FIXME: insert proper C++ library support
  11701. ld_shlibs_CXX=no
  11702. ;;
  11703. esac
  11704. ;;
  11705. solaris*)
  11706. case $cc_basename in
  11707. CC* | sunCC*)
  11708. # Sun C++ 4.2, 5.x and Centerline C++
  11709. archive_cmds_need_lc_CXX=yes
  11710. no_undefined_flag_CXX=' -zdefs'
  11711. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11712. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11713. $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'
  11714. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11715. hardcode_shlibpath_var_CXX=no
  11716. case $host_os in
  11717. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11718. *)
  11719. # The compiler driver will combine and reorder linker options,
  11720. # but understands `-z linker_flag'.
  11721. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11722. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11723. ;;
  11724. esac
  11725. link_all_deplibs_CXX=yes
  11726. output_verbose_link_cmd='func_echo_all'
  11727. # Archives containing C++ object files must be created using
  11728. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11729. # necessary to make sure instantiated templates are included
  11730. # in the archive.
  11731. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11732. ;;
  11733. gcx*)
  11734. # Green Hills C++ Compiler
  11735. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11736. # The C++ compiler must be used to create the archive.
  11737. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11738. ;;
  11739. *)
  11740. # GNU C++ compiler with Solaris linker
  11741. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11742. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11743. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11744. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11745. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11746. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11747. # Commands to make compiler produce verbose output that lists
  11748. # what "hidden" libraries, object files and flags are used when
  11749. # linking a shared library.
  11750. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11751. else
  11752. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11753. # platform.
  11754. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11755. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11756. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  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. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11761. fi
  11762. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11763. case $host_os in
  11764. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11765. *)
  11766. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11767. ;;
  11768. esac
  11769. fi
  11770. ;;
  11771. esac
  11772. ;;
  11773. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11774. no_undefined_flag_CXX='${wl}-z,text'
  11775. archive_cmds_need_lc_CXX=no
  11776. hardcode_shlibpath_var_CXX=no
  11777. runpath_var='LD_RUN_PATH'
  11778. case $cc_basename in
  11779. CC*)
  11780. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11781. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11782. ;;
  11783. *)
  11784. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11785. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11786. ;;
  11787. esac
  11788. ;;
  11789. sysv5* | sco3.2v5* | sco5v6*)
  11790. # Note: We can NOT use -z defs as we might desire, because we do not
  11791. # link with -lc, and that would cause any symbols used from libc to
  11792. # always be unresolved, which means just about no library would
  11793. # ever link correctly. If we're not using GNU ld we use -z text
  11794. # though, which does catch some bad symbols but isn't as heavy-handed
  11795. # as -z defs.
  11796. no_undefined_flag_CXX='${wl}-z,text'
  11797. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11798. archive_cmds_need_lc_CXX=no
  11799. hardcode_shlibpath_var_CXX=no
  11800. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11801. hardcode_libdir_separator_CXX=':'
  11802. link_all_deplibs_CXX=yes
  11803. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11804. runpath_var='LD_RUN_PATH'
  11805. case $cc_basename in
  11806. CC*)
  11807. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11808. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11809. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11810. '"$old_archive_cmds_CXX"
  11811. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11812. '"$reload_cmds_CXX"
  11813. ;;
  11814. *)
  11815. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11816. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11817. ;;
  11818. esac
  11819. ;;
  11820. tandem*)
  11821. case $cc_basename in
  11822. NCC*)
  11823. # NonStop-UX NCC 3.20
  11824. # FIXME: insert proper C++ library support
  11825. ld_shlibs_CXX=no
  11826. ;;
  11827. *)
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. esac
  11832. ;;
  11833. vxworks*)
  11834. # FIXME: insert proper C++ library support
  11835. ld_shlibs_CXX=no
  11836. ;;
  11837. *)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. esac
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11843. $as_echo "$ld_shlibs_CXX" >&6; }
  11844. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11845. GCC_CXX="$GXX"
  11846. LD_CXX="$LD"
  11847. ## CAVEAT EMPTOR:
  11848. ## There is no encapsulation within the following macros, do not change
  11849. ## the running order or otherwise move them around unless you know exactly
  11850. ## what you are doing...
  11851. # Dependencies to place before and after the object being linked:
  11852. predep_objects_CXX=
  11853. postdep_objects_CXX=
  11854. predeps_CXX=
  11855. postdeps_CXX=
  11856. compiler_lib_search_path_CXX=
  11857. cat > conftest.$ac_ext <<_LT_EOF
  11858. class Foo
  11859. {
  11860. public:
  11861. Foo (void) { a = 0; }
  11862. private:
  11863. int a;
  11864. };
  11865. _LT_EOF
  11866. _lt_libdeps_save_CFLAGS=$CFLAGS
  11867. case "$CC $CFLAGS " in #(
  11868. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11869. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11870. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11871. esac
  11872. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11873. (eval $ac_compile) 2>&5
  11874. ac_status=$?
  11875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11876. test $ac_status = 0; }; then
  11877. # Parse the compiler output and extract the necessary
  11878. # objects, libraries and library flags.
  11879. # Sentinel used to keep track of whether or not we are before
  11880. # the conftest object file.
  11881. pre_test_object_deps_done=no
  11882. for p in `eval "$output_verbose_link_cmd"`; do
  11883. case ${prev}${p} in
  11884. -L* | -R* | -l*)
  11885. # Some compilers place space between "-{L,R}" and the path.
  11886. # Remove the space.
  11887. if test $p = "-L" ||
  11888. test $p = "-R"; then
  11889. prev=$p
  11890. continue
  11891. fi
  11892. # Expand the sysroot to ease extracting the directories later.
  11893. if test -z "$prev"; then
  11894. case $p in
  11895. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11896. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11897. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11898. esac
  11899. fi
  11900. case $p in
  11901. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11902. esac
  11903. if test "$pre_test_object_deps_done" = no; then
  11904. case ${prev} in
  11905. -L | -R)
  11906. # Internal compiler library paths should come after those
  11907. # provided the user. The postdeps already come after the
  11908. # user supplied libs so there is no need to process them.
  11909. if test -z "$compiler_lib_search_path_CXX"; then
  11910. compiler_lib_search_path_CXX="${prev}${p}"
  11911. else
  11912. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11913. fi
  11914. ;;
  11915. # The "-l" case would never come before the object being
  11916. # linked, so don't bother handling this case.
  11917. esac
  11918. else
  11919. if test -z "$postdeps_CXX"; then
  11920. postdeps_CXX="${prev}${p}"
  11921. else
  11922. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11923. fi
  11924. fi
  11925. prev=
  11926. ;;
  11927. *.lto.$objext) ;; # Ignore GCC LTO objects
  11928. *.$objext)
  11929. # This assumes that the test object file only shows up
  11930. # once in the compiler output.
  11931. if test "$p" = "conftest.$objext"; then
  11932. pre_test_object_deps_done=yes
  11933. continue
  11934. fi
  11935. if test "$pre_test_object_deps_done" = no; then
  11936. if test -z "$predep_objects_CXX"; then
  11937. predep_objects_CXX="$p"
  11938. else
  11939. predep_objects_CXX="$predep_objects_CXX $p"
  11940. fi
  11941. else
  11942. if test -z "$postdep_objects_CXX"; then
  11943. postdep_objects_CXX="$p"
  11944. else
  11945. postdep_objects_CXX="$postdep_objects_CXX $p"
  11946. fi
  11947. fi
  11948. ;;
  11949. *) ;; # Ignore the rest.
  11950. esac
  11951. done
  11952. # Clean up.
  11953. rm -f a.out a.exe
  11954. else
  11955. echo "libtool.m4: error: problem compiling CXX test program"
  11956. fi
  11957. $RM -f confest.$objext
  11958. CFLAGS=$_lt_libdeps_save_CFLAGS
  11959. # PORTME: override above test on systems where it is broken
  11960. case $host_os in
  11961. interix[3-9]*)
  11962. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11963. # hack all around it, let's just trust "g++" to DTRT.
  11964. predep_objects_CXX=
  11965. postdep_objects_CXX=
  11966. postdeps_CXX=
  11967. ;;
  11968. linux*)
  11969. case `$CC -V 2>&1 | sed 5q` in
  11970. *Sun\ C*)
  11971. # Sun C++ 5.9
  11972. # The more standards-conforming stlport4 library is
  11973. # incompatible with the Cstd library. Avoid specifying
  11974. # it if it's in CXXFLAGS. Ignore libCrun as
  11975. # -library=stlport4 depends on it.
  11976. case " $CXX $CXXFLAGS " in
  11977. *" -library=stlport4 "*)
  11978. solaris_use_stlport4=yes
  11979. ;;
  11980. esac
  11981. if test "$solaris_use_stlport4" != yes; then
  11982. postdeps_CXX='-library=Cstd -library=Crun'
  11983. fi
  11984. ;;
  11985. esac
  11986. ;;
  11987. solaris*)
  11988. case $cc_basename in
  11989. CC* | sunCC*)
  11990. # The more standards-conforming stlport4 library is
  11991. # incompatible with the Cstd library. Avoid specifying
  11992. # it if it's in CXXFLAGS. Ignore libCrun as
  11993. # -library=stlport4 depends on it.
  11994. case " $CXX $CXXFLAGS " in
  11995. *" -library=stlport4 "*)
  11996. solaris_use_stlport4=yes
  11997. ;;
  11998. esac
  11999. # Adding this requires a known-good setup of shared libraries for
  12000. # Sun compiler versions before 5.6, else PIC objects from an old
  12001. # archive will be linked into the output, leading to subtle bugs.
  12002. if test "$solaris_use_stlport4" != yes; then
  12003. postdeps_CXX='-library=Cstd -library=Crun'
  12004. fi
  12005. ;;
  12006. esac
  12007. ;;
  12008. esac
  12009. case " $postdeps_CXX " in
  12010. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12011. esac
  12012. compiler_lib_search_dirs_CXX=
  12013. if test -n "${compiler_lib_search_path_CXX}"; then
  12014. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12015. fi
  12016. lt_prog_compiler_wl_CXX=
  12017. lt_prog_compiler_pic_CXX=
  12018. lt_prog_compiler_static_CXX=
  12019. # C++ specific cases for pic, static, wl, etc.
  12020. if test "$GXX" = yes; then
  12021. lt_prog_compiler_wl_CXX='-Wl,'
  12022. lt_prog_compiler_static_CXX='-static'
  12023. case $host_os in
  12024. aix*)
  12025. # All AIX code is PIC.
  12026. if test "$host_cpu" = ia64; then
  12027. # AIX 5 now supports IA64 processor
  12028. lt_prog_compiler_static_CXX='-Bstatic'
  12029. fi
  12030. ;;
  12031. amigaos*)
  12032. case $host_cpu in
  12033. powerpc)
  12034. # see comment about AmigaOS4 .so support
  12035. lt_prog_compiler_pic_CXX='-fPIC'
  12036. ;;
  12037. m68k)
  12038. # FIXME: we need at least 68020 code to build shared libraries, but
  12039. # adding the `-m68020' flag to GCC prevents building anything better,
  12040. # like `-m68040'.
  12041. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12042. ;;
  12043. esac
  12044. ;;
  12045. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12046. # PIC is the default for these OSes.
  12047. ;;
  12048. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12049. # This hack is so that the source file can tell whether it is being
  12050. # built for inclusion in a dll (and should export symbols for example).
  12051. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12052. # (--disable-auto-import) libraries
  12053. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12054. ;;
  12055. darwin* | rhapsody*)
  12056. # PIC is the default on this platform
  12057. # Common symbols not allowed in MH_DYLIB files
  12058. lt_prog_compiler_pic_CXX='-fno-common'
  12059. ;;
  12060. *djgpp*)
  12061. # DJGPP does not support shared libraries at all
  12062. lt_prog_compiler_pic_CXX=
  12063. ;;
  12064. haiku*)
  12065. # PIC is the default for Haiku.
  12066. # The "-static" flag exists, but is broken.
  12067. lt_prog_compiler_static_CXX=
  12068. ;;
  12069. interix[3-9]*)
  12070. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12071. # Instead, we relocate shared libraries at runtime.
  12072. ;;
  12073. sysv4*MP*)
  12074. if test -d /usr/nec; then
  12075. lt_prog_compiler_pic_CXX=-Kconform_pic
  12076. fi
  12077. ;;
  12078. hpux*)
  12079. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12080. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12081. # sets the default TLS model and affects inlining.
  12082. case $host_cpu in
  12083. hppa*64*)
  12084. ;;
  12085. *)
  12086. lt_prog_compiler_pic_CXX='-fPIC'
  12087. ;;
  12088. esac
  12089. ;;
  12090. *qnx* | *nto*)
  12091. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12092. # it will coredump.
  12093. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12094. ;;
  12095. *)
  12096. lt_prog_compiler_pic_CXX='-fPIC'
  12097. ;;
  12098. esac
  12099. else
  12100. case $host_os in
  12101. aix[4-9]*)
  12102. # All AIX code is PIC.
  12103. if test "$host_cpu" = ia64; then
  12104. # AIX 5 now supports IA64 processor
  12105. lt_prog_compiler_static_CXX='-Bstatic'
  12106. else
  12107. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12108. fi
  12109. ;;
  12110. chorus*)
  12111. case $cc_basename in
  12112. cxch68*)
  12113. # Green Hills C++ Compiler
  12114. # _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"
  12115. ;;
  12116. esac
  12117. ;;
  12118. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12119. # This hack is so that the source file can tell whether it is being
  12120. # built for inclusion in a dll (and should export symbols for example).
  12121. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12122. ;;
  12123. dgux*)
  12124. case $cc_basename in
  12125. ec++*)
  12126. lt_prog_compiler_pic_CXX='-KPIC'
  12127. ;;
  12128. ghcx*)
  12129. # Green Hills C++ Compiler
  12130. lt_prog_compiler_pic_CXX='-pic'
  12131. ;;
  12132. *)
  12133. ;;
  12134. esac
  12135. ;;
  12136. freebsd* | dragonfly*)
  12137. # FreeBSD uses GNU C++
  12138. ;;
  12139. hpux9* | hpux10* | hpux11*)
  12140. case $cc_basename in
  12141. CC*)
  12142. lt_prog_compiler_wl_CXX='-Wl,'
  12143. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12144. if test "$host_cpu" != ia64; then
  12145. lt_prog_compiler_pic_CXX='+Z'
  12146. fi
  12147. ;;
  12148. aCC*)
  12149. lt_prog_compiler_wl_CXX='-Wl,'
  12150. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12151. case $host_cpu in
  12152. hppa*64*|ia64*)
  12153. # +Z the default
  12154. ;;
  12155. *)
  12156. lt_prog_compiler_pic_CXX='+Z'
  12157. ;;
  12158. esac
  12159. ;;
  12160. *)
  12161. ;;
  12162. esac
  12163. ;;
  12164. interix*)
  12165. # This is c89, which is MS Visual C++ (no shared libs)
  12166. # Anyone wants to do a port?
  12167. ;;
  12168. irix5* | irix6* | nonstopux*)
  12169. case $cc_basename in
  12170. CC*)
  12171. lt_prog_compiler_wl_CXX='-Wl,'
  12172. lt_prog_compiler_static_CXX='-non_shared'
  12173. # CC pic flag -KPIC is the default.
  12174. ;;
  12175. *)
  12176. ;;
  12177. esac
  12178. ;;
  12179. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12180. case $cc_basename in
  12181. KCC*)
  12182. # KAI C++ Compiler
  12183. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12184. lt_prog_compiler_pic_CXX='-fPIC'
  12185. ;;
  12186. ecpc* )
  12187. # old Intel C++ for x86_64 which still supported -KPIC.
  12188. lt_prog_compiler_wl_CXX='-Wl,'
  12189. lt_prog_compiler_pic_CXX='-KPIC'
  12190. lt_prog_compiler_static_CXX='-static'
  12191. ;;
  12192. icpc* )
  12193. # Intel C++, used to be incompatible with GCC.
  12194. # ICC 10 doesn't accept -KPIC any more.
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_pic_CXX='-fPIC'
  12197. lt_prog_compiler_static_CXX='-static'
  12198. ;;
  12199. pgCC* | pgcpp*)
  12200. # Portland Group C++ compiler
  12201. lt_prog_compiler_wl_CXX='-Wl,'
  12202. lt_prog_compiler_pic_CXX='-fpic'
  12203. lt_prog_compiler_static_CXX='-Bstatic'
  12204. ;;
  12205. cxx*)
  12206. # Compaq C++
  12207. # Make sure the PIC flag is empty. It appears that all Alpha
  12208. # Linux and Compaq Tru64 Unix objects are PIC.
  12209. lt_prog_compiler_pic_CXX=
  12210. lt_prog_compiler_static_CXX='-non_shared'
  12211. ;;
  12212. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12213. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12214. lt_prog_compiler_wl_CXX='-Wl,'
  12215. lt_prog_compiler_pic_CXX='-qpic'
  12216. lt_prog_compiler_static_CXX='-qstaticlink'
  12217. ;;
  12218. *)
  12219. case `$CC -V 2>&1 | sed 5q` in
  12220. *Sun\ C*)
  12221. # Sun C++ 5.9
  12222. lt_prog_compiler_pic_CXX='-KPIC'
  12223. lt_prog_compiler_static_CXX='-Bstatic'
  12224. lt_prog_compiler_wl_CXX='-Qoption ld '
  12225. ;;
  12226. esac
  12227. ;;
  12228. esac
  12229. ;;
  12230. lynxos*)
  12231. ;;
  12232. m88k*)
  12233. ;;
  12234. mvs*)
  12235. case $cc_basename in
  12236. cxx*)
  12237. lt_prog_compiler_pic_CXX='-W c,exportall'
  12238. ;;
  12239. *)
  12240. ;;
  12241. esac
  12242. ;;
  12243. netbsd*)
  12244. ;;
  12245. *qnx* | *nto*)
  12246. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12247. # it will coredump.
  12248. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12249. ;;
  12250. osf3* | osf4* | osf5*)
  12251. case $cc_basename in
  12252. KCC*)
  12253. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12254. ;;
  12255. RCC*)
  12256. # Rational C++ 2.4.1
  12257. lt_prog_compiler_pic_CXX='-pic'
  12258. ;;
  12259. cxx*)
  12260. # Digital/Compaq C++
  12261. lt_prog_compiler_wl_CXX='-Wl,'
  12262. # Make sure the PIC flag is empty. It appears that all Alpha
  12263. # Linux and Compaq Tru64 Unix objects are PIC.
  12264. lt_prog_compiler_pic_CXX=
  12265. lt_prog_compiler_static_CXX='-non_shared'
  12266. ;;
  12267. *)
  12268. ;;
  12269. esac
  12270. ;;
  12271. psos*)
  12272. ;;
  12273. solaris*)
  12274. case $cc_basename in
  12275. CC* | sunCC*)
  12276. # Sun C++ 4.2, 5.x and Centerline C++
  12277. lt_prog_compiler_pic_CXX='-KPIC'
  12278. lt_prog_compiler_static_CXX='-Bstatic'
  12279. lt_prog_compiler_wl_CXX='-Qoption ld '
  12280. ;;
  12281. gcx*)
  12282. # Green Hills C++ Compiler
  12283. lt_prog_compiler_pic_CXX='-PIC'
  12284. ;;
  12285. *)
  12286. ;;
  12287. esac
  12288. ;;
  12289. sunos4*)
  12290. case $cc_basename in
  12291. CC*)
  12292. # Sun C++ 4.x
  12293. lt_prog_compiler_pic_CXX='-pic'
  12294. lt_prog_compiler_static_CXX='-Bstatic'
  12295. ;;
  12296. lcc*)
  12297. # Lucid
  12298. lt_prog_compiler_pic_CXX='-pic'
  12299. ;;
  12300. *)
  12301. ;;
  12302. esac
  12303. ;;
  12304. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12305. case $cc_basename in
  12306. CC*)
  12307. lt_prog_compiler_wl_CXX='-Wl,'
  12308. lt_prog_compiler_pic_CXX='-KPIC'
  12309. lt_prog_compiler_static_CXX='-Bstatic'
  12310. ;;
  12311. esac
  12312. ;;
  12313. tandem*)
  12314. case $cc_basename in
  12315. NCC*)
  12316. # NonStop-UX NCC 3.20
  12317. lt_prog_compiler_pic_CXX='-KPIC'
  12318. ;;
  12319. *)
  12320. ;;
  12321. esac
  12322. ;;
  12323. vxworks*)
  12324. ;;
  12325. *)
  12326. lt_prog_compiler_can_build_shared_CXX=no
  12327. ;;
  12328. esac
  12329. fi
  12330. case $host_os in
  12331. # For platforms which do not support PIC, -DPIC is meaningless:
  12332. *djgpp*)
  12333. lt_prog_compiler_pic_CXX=
  12334. ;;
  12335. *)
  12336. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12337. ;;
  12338. esac
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12340. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12341. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12342. $as_echo_n "(cached) " >&6
  12343. else
  12344. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12345. fi
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12347. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12348. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12349. #
  12350. # Check to make sure the PIC flag actually works.
  12351. #
  12352. if test -n "$lt_prog_compiler_pic_CXX"; then
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12354. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12355. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12356. $as_echo_n "(cached) " >&6
  12357. else
  12358. lt_cv_prog_compiler_pic_works_CXX=no
  12359. ac_outfile=conftest.$ac_objext
  12360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12361. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12362. # Insert the option either (1) after the last *FLAGS variable, or
  12363. # (2) before a word containing "conftest.", or (3) at the end.
  12364. # Note that $ac_compile itself does not contain backslashes and begins
  12365. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12366. # The option is referenced via a variable to avoid confusing sed.
  12367. lt_compile=`echo "$ac_compile" | $SED \
  12368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12370. -e 's:$: $lt_compiler_flag:'`
  12371. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12372. (eval "$lt_compile" 2>conftest.err)
  12373. ac_status=$?
  12374. cat conftest.err >&5
  12375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12376. if (exit $ac_status) && test -s "$ac_outfile"; then
  12377. # The compiler can only warn and ignore the option if not recognized
  12378. # So say no if there are warnings other than the usual output.
  12379. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12381. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12382. lt_cv_prog_compiler_pic_works_CXX=yes
  12383. fi
  12384. fi
  12385. $RM conftest*
  12386. fi
  12387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12388. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12389. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12390. case $lt_prog_compiler_pic_CXX in
  12391. "" | " "*) ;;
  12392. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12393. esac
  12394. else
  12395. lt_prog_compiler_pic_CXX=
  12396. lt_prog_compiler_can_build_shared_CXX=no
  12397. fi
  12398. fi
  12399. #
  12400. # Check to make sure the static flag actually works.
  12401. #
  12402. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12404. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12405. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12406. $as_echo_n "(cached) " >&6
  12407. else
  12408. lt_cv_prog_compiler_static_works_CXX=no
  12409. save_LDFLAGS="$LDFLAGS"
  12410. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12411. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12412. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12413. # The linker can only warn and ignore the option if not recognized
  12414. # So say no if there are warnings
  12415. if test -s conftest.err; then
  12416. # Append any errors to the config.log.
  12417. cat conftest.err 1>&5
  12418. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12419. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12420. if diff conftest.exp conftest.er2 >/dev/null; then
  12421. lt_cv_prog_compiler_static_works_CXX=yes
  12422. fi
  12423. else
  12424. lt_cv_prog_compiler_static_works_CXX=yes
  12425. fi
  12426. fi
  12427. $RM -r conftest*
  12428. LDFLAGS="$save_LDFLAGS"
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12431. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12432. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12433. :
  12434. else
  12435. lt_prog_compiler_static_CXX=
  12436. fi
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12438. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12439. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12440. $as_echo_n "(cached) " >&6
  12441. else
  12442. lt_cv_prog_compiler_c_o_CXX=no
  12443. $RM -r conftest 2>/dev/null
  12444. mkdir conftest
  12445. cd conftest
  12446. mkdir out
  12447. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12448. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12449. # Insert the option either (1) after the last *FLAGS variable, or
  12450. # (2) before a word containing "conftest.", or (3) at the end.
  12451. # Note that $ac_compile itself does not contain backslashes and begins
  12452. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12453. lt_compile=`echo "$ac_compile" | $SED \
  12454. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12455. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12456. -e 's:$: $lt_compiler_flag:'`
  12457. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12458. (eval "$lt_compile" 2>out/conftest.err)
  12459. ac_status=$?
  12460. cat out/conftest.err >&5
  12461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12462. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12463. then
  12464. # The compiler can only warn and ignore the option if not recognized
  12465. # So say no if there are warnings
  12466. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12467. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12468. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12469. lt_cv_prog_compiler_c_o_CXX=yes
  12470. fi
  12471. fi
  12472. chmod u+w . 2>&5
  12473. $RM conftest*
  12474. # SGI C++ compiler will create directory out/ii_files/ for
  12475. # template instantiation
  12476. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12477. $RM out/* && rmdir out
  12478. cd ..
  12479. $RM -r conftest
  12480. $RM conftest*
  12481. fi
  12482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12483. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12485. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12486. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12487. $as_echo_n "(cached) " >&6
  12488. else
  12489. lt_cv_prog_compiler_c_o_CXX=no
  12490. $RM -r conftest 2>/dev/null
  12491. mkdir conftest
  12492. cd conftest
  12493. mkdir out
  12494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12495. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12496. # Insert the option either (1) after the last *FLAGS variable, or
  12497. # (2) before a word containing "conftest.", or (3) at the end.
  12498. # Note that $ac_compile itself does not contain backslashes and begins
  12499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12500. lt_compile=`echo "$ac_compile" | $SED \
  12501. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12502. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12503. -e 's:$: $lt_compiler_flag:'`
  12504. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12505. (eval "$lt_compile" 2>out/conftest.err)
  12506. ac_status=$?
  12507. cat out/conftest.err >&5
  12508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12509. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12510. then
  12511. # The compiler can only warn and ignore the option if not recognized
  12512. # So say no if there are warnings
  12513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12514. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12515. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12516. lt_cv_prog_compiler_c_o_CXX=yes
  12517. fi
  12518. fi
  12519. chmod u+w . 2>&5
  12520. $RM conftest*
  12521. # SGI C++ compiler will create directory out/ii_files/ for
  12522. # template instantiation
  12523. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12524. $RM out/* && rmdir out
  12525. cd ..
  12526. $RM -r conftest
  12527. $RM conftest*
  12528. fi
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12530. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12531. hard_links="nottested"
  12532. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12533. # do not overwrite the value of need_locks provided by the user
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12535. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12536. hard_links=yes
  12537. $RM conftest*
  12538. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12539. touch conftest.a
  12540. ln conftest.a conftest.b 2>&5 || hard_links=no
  12541. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12543. $as_echo "$hard_links" >&6; }
  12544. if test "$hard_links" = no; then
  12545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12546. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12547. need_locks=warn
  12548. fi
  12549. else
  12550. need_locks=no
  12551. fi
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12553. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12554. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12555. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12556. case $host_os in
  12557. aix[4-9]*)
  12558. # If we're using GNU nm, then we don't want the "-C" option.
  12559. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12560. # Also, AIX nm treats weak defined symbols like other global defined
  12561. # symbols, whereas GNU nm marks them as "W".
  12562. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12563. 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'
  12564. else
  12565. 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'
  12566. fi
  12567. ;;
  12568. pw32*)
  12569. export_symbols_cmds_CXX="$ltdll_cmds"
  12570. ;;
  12571. cygwin* | mingw* | cegcc*)
  12572. case $cc_basename in
  12573. cl*)
  12574. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12575. ;;
  12576. *)
  12577. 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'
  12578. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12579. ;;
  12580. esac
  12581. ;;
  12582. *)
  12583. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12584. ;;
  12585. esac
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12587. $as_echo "$ld_shlibs_CXX" >&6; }
  12588. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12589. with_gnu_ld_CXX=$with_gnu_ld
  12590. #
  12591. # Do we need to explicitly link libc?
  12592. #
  12593. case "x$archive_cmds_need_lc_CXX" in
  12594. x|xyes)
  12595. # Assume -lc should be added
  12596. archive_cmds_need_lc_CXX=yes
  12597. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12598. case $archive_cmds_CXX in
  12599. *'~'*)
  12600. # FIXME: we may have to deal with multi-command sequences.
  12601. ;;
  12602. '$CC '*)
  12603. # Test whether the compiler implicitly links with -lc since on some
  12604. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12605. # to ld, don't add -lc before -lgcc.
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12607. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12608. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12609. $as_echo_n "(cached) " >&6
  12610. else
  12611. $RM conftest*
  12612. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12614. (eval $ac_compile) 2>&5
  12615. ac_status=$?
  12616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12617. test $ac_status = 0; } 2>conftest.err; then
  12618. soname=conftest
  12619. lib=conftest
  12620. libobjs=conftest.$ac_objext
  12621. deplibs=
  12622. wl=$lt_prog_compiler_wl_CXX
  12623. pic_flag=$lt_prog_compiler_pic_CXX
  12624. compiler_flags=-v
  12625. linker_flags=-v
  12626. verstring=
  12627. output_objdir=.
  12628. libname=conftest
  12629. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12630. allow_undefined_flag_CXX=
  12631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12632. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12633. ac_status=$?
  12634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12635. test $ac_status = 0; }
  12636. then
  12637. lt_cv_archive_cmds_need_lc_CXX=no
  12638. else
  12639. lt_cv_archive_cmds_need_lc_CXX=yes
  12640. fi
  12641. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12642. else
  12643. cat conftest.err 1>&5
  12644. fi
  12645. $RM conftest*
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12648. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12649. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12650. ;;
  12651. esac
  12652. fi
  12653. ;;
  12654. esac
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12656. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12657. library_names_spec=
  12658. libname_spec='lib$name'
  12659. soname_spec=
  12660. shrext_cmds=".so"
  12661. postinstall_cmds=
  12662. postuninstall_cmds=
  12663. finish_cmds=
  12664. finish_eval=
  12665. shlibpath_var=
  12666. shlibpath_overrides_runpath=unknown
  12667. version_type=none
  12668. dynamic_linker="$host_os ld.so"
  12669. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12670. need_lib_prefix=unknown
  12671. hardcode_into_libs=no
  12672. # when you set need_version to no, make sure it does not cause -set_version
  12673. # flags to be left without arguments
  12674. need_version=unknown
  12675. case $host_os in
  12676. aix3*)
  12677. version_type=linux # correct to gnu/linux during the next big refactor
  12678. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12679. shlibpath_var=LIBPATH
  12680. # AIX 3 has no versioning support, so we append a major version to the name.
  12681. soname_spec='${libname}${release}${shared_ext}$major'
  12682. ;;
  12683. aix[4-9]*)
  12684. version_type=linux # correct to gnu/linux during the next big refactor
  12685. need_lib_prefix=no
  12686. need_version=no
  12687. hardcode_into_libs=yes
  12688. if test "$host_cpu" = ia64; then
  12689. # AIX 5 supports IA64
  12690. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12691. shlibpath_var=LD_LIBRARY_PATH
  12692. else
  12693. # With GCC up to 2.95.x, collect2 would create an import file
  12694. # for dependence libraries. The import file would start with
  12695. # the line `#! .'. This would cause the generated library to
  12696. # depend on `.', always an invalid library. This was fixed in
  12697. # development snapshots of GCC prior to 3.0.
  12698. case $host_os in
  12699. aix4 | aix4.[01] | aix4.[01].*)
  12700. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12701. echo ' yes '
  12702. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12703. :
  12704. else
  12705. can_build_shared=no
  12706. fi
  12707. ;;
  12708. esac
  12709. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12710. # soname into executable. Probably we can add versioning support to
  12711. # collect2, so additional links can be useful in future.
  12712. if test "$aix_use_runtimelinking" = yes; then
  12713. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12714. # instead of lib<name>.a to let people know that these are not
  12715. # typical AIX shared libraries.
  12716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12717. else
  12718. # We preserve .a as extension for shared libraries through AIX4.2
  12719. # and later when we are not doing run time linking.
  12720. library_names_spec='${libname}${release}.a $libname.a'
  12721. soname_spec='${libname}${release}${shared_ext}$major'
  12722. fi
  12723. shlibpath_var=LIBPATH
  12724. fi
  12725. ;;
  12726. amigaos*)
  12727. case $host_cpu in
  12728. powerpc)
  12729. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12730. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12732. ;;
  12733. m68k)
  12734. library_names_spec='$libname.ixlibrary $libname.a'
  12735. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12736. 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'
  12737. ;;
  12738. esac
  12739. ;;
  12740. beos*)
  12741. library_names_spec='${libname}${shared_ext}'
  12742. dynamic_linker="$host_os ld.so"
  12743. shlibpath_var=LIBRARY_PATH
  12744. ;;
  12745. bsdi[45]*)
  12746. version_type=linux # correct to gnu/linux during the next big refactor
  12747. need_version=no
  12748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12749. soname_spec='${libname}${release}${shared_ext}$major'
  12750. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12751. shlibpath_var=LD_LIBRARY_PATH
  12752. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12753. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12754. # the default ld.so.conf also contains /usr/contrib/lib and
  12755. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12756. # libtool to hard-code these into programs
  12757. ;;
  12758. cygwin* | mingw* | pw32* | cegcc*)
  12759. version_type=windows
  12760. shrext_cmds=".dll"
  12761. need_version=no
  12762. need_lib_prefix=no
  12763. case $GCC,$cc_basename in
  12764. yes,*)
  12765. # gcc
  12766. library_names_spec='$libname.dll.a'
  12767. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12768. postinstall_cmds='base_file=`basename \${file}`~
  12769. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12770. dldir=$destdir/`dirname \$dlpath`~
  12771. test -d \$dldir || mkdir -p \$dldir~
  12772. $install_prog $dir/$dlname \$dldir/$dlname~
  12773. chmod a+x \$dldir/$dlname~
  12774. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12775. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12776. fi'
  12777. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12778. dlpath=$dir/\$dldll~
  12779. $RM \$dlpath'
  12780. shlibpath_overrides_runpath=yes
  12781. case $host_os in
  12782. cygwin*)
  12783. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12784. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12785. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12786. ;;
  12787. mingw* | cegcc*)
  12788. # MinGW DLLs use traditional 'lib' prefix
  12789. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12790. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12791. ;;
  12792. pw32*)
  12793. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12794. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12795. ;;
  12796. esac
  12797. dynamic_linker='Win32 ld.exe'
  12798. ;;
  12799. *,cl*)
  12800. # Native MSVC
  12801. libname_spec='$name'
  12802. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12803. library_names_spec='${libname}.dll.lib'
  12804. case $build_os in
  12805. mingw*)
  12806. sys_lib_search_path_spec=
  12807. lt_save_ifs=$IFS
  12808. IFS=';'
  12809. for lt_path in $LIB
  12810. do
  12811. IFS=$lt_save_ifs
  12812. # Let DOS variable expansion print the short 8.3 style file name.
  12813. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12814. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12815. done
  12816. IFS=$lt_save_ifs
  12817. # Convert to MSYS style.
  12818. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12819. ;;
  12820. cygwin*)
  12821. # Convert to unix form, then to dos form, then back to unix form
  12822. # but this time dos style (no spaces!) so that the unix form looks
  12823. # like /cygdrive/c/PROGRA~1:/cygdr...
  12824. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12825. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12826. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12827. ;;
  12828. *)
  12829. sys_lib_search_path_spec="$LIB"
  12830. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12831. # It is most probably a Windows format PATH.
  12832. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12833. else
  12834. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12835. fi
  12836. # FIXME: find the short name or the path components, as spaces are
  12837. # common. (e.g. "Program Files" -> "PROGRA~1")
  12838. ;;
  12839. esac
  12840. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12841. postinstall_cmds='base_file=`basename \${file}`~
  12842. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12843. dldir=$destdir/`dirname \$dlpath`~
  12844. test -d \$dldir || mkdir -p \$dldir~
  12845. $install_prog $dir/$dlname \$dldir/$dlname'
  12846. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12847. dlpath=$dir/\$dldll~
  12848. $RM \$dlpath'
  12849. shlibpath_overrides_runpath=yes
  12850. dynamic_linker='Win32 link.exe'
  12851. ;;
  12852. *)
  12853. # Assume MSVC wrapper
  12854. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12855. dynamic_linker='Win32 ld.exe'
  12856. ;;
  12857. esac
  12858. # FIXME: first we should search . and the directory the executable is in
  12859. shlibpath_var=PATH
  12860. ;;
  12861. darwin* | rhapsody*)
  12862. dynamic_linker="$host_os dyld"
  12863. version_type=darwin
  12864. need_lib_prefix=no
  12865. need_version=no
  12866. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12867. soname_spec='${libname}${release}${major}$shared_ext'
  12868. shlibpath_overrides_runpath=yes
  12869. shlibpath_var=DYLD_LIBRARY_PATH
  12870. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12871. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12872. ;;
  12873. dgux*)
  12874. version_type=linux # correct to gnu/linux during the next big refactor
  12875. need_lib_prefix=no
  12876. need_version=no
  12877. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12878. soname_spec='${libname}${release}${shared_ext}$major'
  12879. shlibpath_var=LD_LIBRARY_PATH
  12880. ;;
  12881. freebsd* | dragonfly*)
  12882. # DragonFly does not have aout. When/if they implement a new
  12883. # versioning mechanism, adjust this.
  12884. if test -x /usr/bin/objformat; then
  12885. objformat=`/usr/bin/objformat`
  12886. else
  12887. case $host_os in
  12888. freebsd[23].*) objformat=aout ;;
  12889. *) objformat=elf ;;
  12890. esac
  12891. fi
  12892. version_type=freebsd-$objformat
  12893. case $version_type in
  12894. freebsd-elf*)
  12895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12896. need_version=no
  12897. need_lib_prefix=no
  12898. ;;
  12899. freebsd-*)
  12900. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12901. need_version=yes
  12902. ;;
  12903. esac
  12904. shlibpath_var=LD_LIBRARY_PATH
  12905. case $host_os in
  12906. freebsd2.*)
  12907. shlibpath_overrides_runpath=yes
  12908. ;;
  12909. freebsd3.[01]* | freebsdelf3.[01]*)
  12910. shlibpath_overrides_runpath=yes
  12911. hardcode_into_libs=yes
  12912. ;;
  12913. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12914. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12915. shlibpath_overrides_runpath=no
  12916. hardcode_into_libs=yes
  12917. ;;
  12918. *) # from 4.6 on, and DragonFly
  12919. shlibpath_overrides_runpath=yes
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. esac
  12923. ;;
  12924. gnu*)
  12925. version_type=linux # correct to gnu/linux during the next big refactor
  12926. need_lib_prefix=no
  12927. need_version=no
  12928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12929. soname_spec='${libname}${release}${shared_ext}$major'
  12930. shlibpath_var=LD_LIBRARY_PATH
  12931. shlibpath_overrides_runpath=no
  12932. hardcode_into_libs=yes
  12933. ;;
  12934. haiku*)
  12935. version_type=linux # correct to gnu/linux during the next big refactor
  12936. need_lib_prefix=no
  12937. need_version=no
  12938. dynamic_linker="$host_os runtime_loader"
  12939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12940. soname_spec='${libname}${release}${shared_ext}$major'
  12941. shlibpath_var=LIBRARY_PATH
  12942. shlibpath_overrides_runpath=yes
  12943. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12944. hardcode_into_libs=yes
  12945. ;;
  12946. hpux9* | hpux10* | hpux11*)
  12947. # Give a soname corresponding to the major version so that dld.sl refuses to
  12948. # link against other versions.
  12949. version_type=sunos
  12950. need_lib_prefix=no
  12951. need_version=no
  12952. case $host_cpu in
  12953. ia64*)
  12954. shrext_cmds='.so'
  12955. hardcode_into_libs=yes
  12956. dynamic_linker="$host_os dld.so"
  12957. shlibpath_var=LD_LIBRARY_PATH
  12958. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. if test "X$HPUX_IA64_MODE" = X32; then
  12962. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12963. else
  12964. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12965. fi
  12966. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12967. ;;
  12968. hppa*64*)
  12969. shrext_cmds='.sl'
  12970. hardcode_into_libs=yes
  12971. dynamic_linker="$host_os dld.sl"
  12972. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12973. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12975. soname_spec='${libname}${release}${shared_ext}$major'
  12976. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12977. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12978. ;;
  12979. *)
  12980. shrext_cmds='.sl'
  12981. dynamic_linker="$host_os dld.sl"
  12982. shlibpath_var=SHLIB_PATH
  12983. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12985. soname_spec='${libname}${release}${shared_ext}$major'
  12986. ;;
  12987. esac
  12988. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12989. postinstall_cmds='chmod 555 $lib'
  12990. # or fails outright, so override atomically:
  12991. install_override_mode=555
  12992. ;;
  12993. interix[3-9]*)
  12994. version_type=linux # correct to gnu/linux during the next big refactor
  12995. need_lib_prefix=no
  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. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13000. shlibpath_var=LD_LIBRARY_PATH
  13001. shlibpath_overrides_runpath=no
  13002. hardcode_into_libs=yes
  13003. ;;
  13004. irix5* | irix6* | nonstopux*)
  13005. case $host_os in
  13006. nonstopux*) version_type=nonstopux ;;
  13007. *)
  13008. if test "$lt_cv_prog_gnu_ld" = yes; then
  13009. version_type=linux # correct to gnu/linux during the next big refactor
  13010. else
  13011. version_type=irix
  13012. fi ;;
  13013. esac
  13014. need_lib_prefix=no
  13015. need_version=no
  13016. soname_spec='${libname}${release}${shared_ext}$major'
  13017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13018. case $host_os in
  13019. irix5* | nonstopux*)
  13020. libsuff= shlibsuff=
  13021. ;;
  13022. *)
  13023. case $LD in # libtool.m4 will add one of these switches to LD
  13024. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13025. libsuff= shlibsuff= libmagic=32-bit;;
  13026. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13027. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13028. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13029. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13030. *) libsuff= shlibsuff= libmagic=never-match;;
  13031. esac
  13032. ;;
  13033. esac
  13034. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13035. shlibpath_overrides_runpath=no
  13036. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13037. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13038. hardcode_into_libs=yes
  13039. ;;
  13040. # No shared lib support for Linux oldld, aout, or coff.
  13041. linux*oldld* | linux*aout* | linux*coff*)
  13042. dynamic_linker=no
  13043. ;;
  13044. # This must be glibc/ELF.
  13045. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13046. version_type=linux # correct to gnu/linux during the next big refactor
  13047. need_lib_prefix=no
  13048. need_version=no
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13050. soname_spec='${libname}${release}${shared_ext}$major'
  13051. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13052. shlibpath_var=LD_LIBRARY_PATH
  13053. shlibpath_overrides_runpath=no
  13054. # Some binutils ld are patched to set DT_RUNPATH
  13055. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13056. $as_echo_n "(cached) " >&6
  13057. else
  13058. lt_cv_shlibpath_overrides_runpath=no
  13059. save_LDFLAGS=$LDFLAGS
  13060. save_libdir=$libdir
  13061. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13062. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13064. /* end confdefs.h. */
  13065. int
  13066. main ()
  13067. {
  13068. ;
  13069. return 0;
  13070. }
  13071. _ACEOF
  13072. if ac_fn_cxx_try_link "$LINENO"; then :
  13073. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13074. lt_cv_shlibpath_overrides_runpath=yes
  13075. fi
  13076. fi
  13077. rm -f core conftest.err conftest.$ac_objext \
  13078. conftest$ac_exeext conftest.$ac_ext
  13079. LDFLAGS=$save_LDFLAGS
  13080. libdir=$save_libdir
  13081. fi
  13082. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13083. # This implies no fast_install, which is unacceptable.
  13084. # Some rework will be needed to allow for fast_install
  13085. # before this can be enabled.
  13086. hardcode_into_libs=yes
  13087. # Append ld.so.conf contents to the search path
  13088. if test -f /etc/ld.so.conf; then
  13089. 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' ' '`
  13090. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13091. fi
  13092. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13093. # powerpc, because MkLinux only supported shared libraries with the
  13094. # GNU dynamic linker. Since this was broken with cross compilers,
  13095. # most powerpc-linux boxes support dynamic linking these days and
  13096. # people can always --disable-shared, the test was removed, and we
  13097. # assume the GNU/Linux dynamic linker is in use.
  13098. dynamic_linker='GNU/Linux ld.so'
  13099. ;;
  13100. netbsd*)
  13101. version_type=sunos
  13102. need_lib_prefix=no
  13103. need_version=no
  13104. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13106. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13107. dynamic_linker='NetBSD (a.out) ld.so'
  13108. else
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. dynamic_linker='NetBSD ld.elf_so'
  13112. fi
  13113. shlibpath_var=LD_LIBRARY_PATH
  13114. shlibpath_overrides_runpath=yes
  13115. hardcode_into_libs=yes
  13116. ;;
  13117. newsos6)
  13118. version_type=linux # correct to gnu/linux during the next big refactor
  13119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. shlibpath_overrides_runpath=yes
  13122. ;;
  13123. *nto* | *qnx*)
  13124. version_type=qnx
  13125. need_lib_prefix=no
  13126. need_version=no
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13128. soname_spec='${libname}${release}${shared_ext}$major'
  13129. shlibpath_var=LD_LIBRARY_PATH
  13130. shlibpath_overrides_runpath=no
  13131. hardcode_into_libs=yes
  13132. dynamic_linker='ldqnx.so'
  13133. ;;
  13134. openbsd*)
  13135. version_type=sunos
  13136. sys_lib_dlsearch_path_spec="/usr/lib"
  13137. need_lib_prefix=no
  13138. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13139. case $host_os in
  13140. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13141. *) need_version=no ;;
  13142. esac
  13143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13144. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13145. shlibpath_var=LD_LIBRARY_PATH
  13146. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13147. case $host_os in
  13148. openbsd2.[89] | openbsd2.[89].*)
  13149. shlibpath_overrides_runpath=no
  13150. ;;
  13151. *)
  13152. shlibpath_overrides_runpath=yes
  13153. ;;
  13154. esac
  13155. else
  13156. shlibpath_overrides_runpath=yes
  13157. fi
  13158. ;;
  13159. os2*)
  13160. libname_spec='$name'
  13161. shrext_cmds=".dll"
  13162. need_lib_prefix=no
  13163. library_names_spec='$libname${shared_ext} $libname.a'
  13164. dynamic_linker='OS/2 ld.exe'
  13165. shlibpath_var=LIBPATH
  13166. ;;
  13167. osf3* | osf4* | osf5*)
  13168. version_type=osf
  13169. need_lib_prefix=no
  13170. need_version=no
  13171. soname_spec='${libname}${release}${shared_ext}$major'
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13173. shlibpath_var=LD_LIBRARY_PATH
  13174. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13175. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13176. ;;
  13177. rdos*)
  13178. dynamic_linker=no
  13179. ;;
  13180. solaris*)
  13181. version_type=linux # correct to gnu/linux during the next big refactor
  13182. need_lib_prefix=no
  13183. need_version=no
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13185. soname_spec='${libname}${release}${shared_ext}$major'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. shlibpath_overrides_runpath=yes
  13188. hardcode_into_libs=yes
  13189. # ldd complains unless libraries are executable
  13190. postinstall_cmds='chmod +x $lib'
  13191. ;;
  13192. sunos4*)
  13193. version_type=sunos
  13194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13195. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13196. shlibpath_var=LD_LIBRARY_PATH
  13197. shlibpath_overrides_runpath=yes
  13198. if test "$with_gnu_ld" = yes; then
  13199. need_lib_prefix=no
  13200. fi
  13201. need_version=yes
  13202. ;;
  13203. sysv4 | sysv4.3*)
  13204. version_type=linux # correct to gnu/linux during the next big refactor
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13206. soname_spec='${libname}${release}${shared_ext}$major'
  13207. shlibpath_var=LD_LIBRARY_PATH
  13208. case $host_vendor in
  13209. sni)
  13210. shlibpath_overrides_runpath=no
  13211. need_lib_prefix=no
  13212. runpath_var=LD_RUN_PATH
  13213. ;;
  13214. siemens)
  13215. need_lib_prefix=no
  13216. ;;
  13217. motorola)
  13218. need_lib_prefix=no
  13219. need_version=no
  13220. shlibpath_overrides_runpath=no
  13221. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13222. ;;
  13223. esac
  13224. ;;
  13225. sysv4*MP*)
  13226. if test -d /usr/nec ;then
  13227. version_type=linux # correct to gnu/linux during the next big refactor
  13228. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13229. soname_spec='$libname${shared_ext}.$major'
  13230. shlibpath_var=LD_LIBRARY_PATH
  13231. fi
  13232. ;;
  13233. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13234. version_type=freebsd-elf
  13235. need_lib_prefix=no
  13236. need_version=no
  13237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13238. soname_spec='${libname}${release}${shared_ext}$major'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. shlibpath_overrides_runpath=yes
  13241. hardcode_into_libs=yes
  13242. if test "$with_gnu_ld" = yes; then
  13243. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13244. else
  13245. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13246. case $host_os in
  13247. sco3.2v5*)
  13248. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13249. ;;
  13250. esac
  13251. fi
  13252. sys_lib_dlsearch_path_spec='/usr/lib'
  13253. ;;
  13254. tpf*)
  13255. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13256. version_type=linux # correct to gnu/linux during the next big refactor
  13257. need_lib_prefix=no
  13258. need_version=no
  13259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. shlibpath_overrides_runpath=no
  13262. hardcode_into_libs=yes
  13263. ;;
  13264. uts4*)
  13265. version_type=linux # correct to gnu/linux during the next big refactor
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13267. soname_spec='${libname}${release}${shared_ext}$major'
  13268. shlibpath_var=LD_LIBRARY_PATH
  13269. ;;
  13270. *)
  13271. dynamic_linker=no
  13272. ;;
  13273. esac
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13275. $as_echo "$dynamic_linker" >&6; }
  13276. test "$dynamic_linker" = no && can_build_shared=no
  13277. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13278. if test "$GCC" = yes; then
  13279. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13280. fi
  13281. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13282. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13283. fi
  13284. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13285. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13286. fi
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13288. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13289. hardcode_action_CXX=
  13290. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13291. test -n "$runpath_var_CXX" ||
  13292. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13293. # We can hardcode non-existent directories.
  13294. if test "$hardcode_direct_CXX" != no &&
  13295. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13296. # have to relink, otherwise we might link with an installed library
  13297. # when we should be linking with a yet-to-be-installed one
  13298. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13299. test "$hardcode_minus_L_CXX" != no; then
  13300. # Linking always hardcodes the temporary library directory.
  13301. hardcode_action_CXX=relink
  13302. else
  13303. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13304. hardcode_action_CXX=immediate
  13305. fi
  13306. else
  13307. # We cannot hardcode anything, or else we can only hardcode existing
  13308. # directories.
  13309. hardcode_action_CXX=unsupported
  13310. fi
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13312. $as_echo "$hardcode_action_CXX" >&6; }
  13313. if test "$hardcode_action_CXX" = relink ||
  13314. test "$inherit_rpath_CXX" = yes; then
  13315. # Fast installation is not supported
  13316. enable_fast_install=no
  13317. elif test "$shlibpath_overrides_runpath" = yes ||
  13318. test "$enable_shared" = no; then
  13319. # Fast installation is not necessary
  13320. enable_fast_install=needless
  13321. fi
  13322. fi # test -n "$compiler"
  13323. CC=$lt_save_CC
  13324. CFLAGS=$lt_save_CFLAGS
  13325. LDCXX=$LD
  13326. LD=$lt_save_LD
  13327. GCC=$lt_save_GCC
  13328. with_gnu_ld=$lt_save_with_gnu_ld
  13329. lt_cv_path_LDCXX=$lt_cv_path_LD
  13330. lt_cv_path_LD=$lt_save_path_LD
  13331. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13332. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13333. fi # test "$_lt_caught_CXX_error" != yes
  13334. ac_ext=c
  13335. ac_cpp='$CPP $CPPFLAGS'
  13336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13339. # Find a good install program. We prefer a C program (faster),
  13340. # so one script is as good as another. But avoid the broken or
  13341. # incompatible versions:
  13342. # SysV /etc/install, /usr/sbin/install
  13343. # SunOS /usr/etc/install
  13344. # IRIX /sbin/install
  13345. # AIX /bin/install
  13346. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13347. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13348. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13349. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13350. # OS/2's system install, which has a completely different semantic
  13351. # ./install, which can be erroneously created by make from ./install.sh.
  13352. # Reject install programs that cannot install multiple files.
  13353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13354. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13355. if test -z "$INSTALL"; then
  13356. if ${ac_cv_path_install+:} false; then :
  13357. $as_echo_n "(cached) " >&6
  13358. else
  13359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13360. for as_dir in $PATH
  13361. do
  13362. IFS=$as_save_IFS
  13363. test -z "$as_dir" && as_dir=.
  13364. # Account for people who put trailing slashes in PATH elements.
  13365. case $as_dir/ in #((
  13366. ./ | .// | /[cC]/* | \
  13367. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13368. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13369. /usr/ucb/* ) ;;
  13370. *)
  13371. # OSF1 and SCO ODT 3.0 have their own names for install.
  13372. # Don't use installbsd from OSF since it installs stuff as root
  13373. # by default.
  13374. for ac_prog in ginstall scoinst install; do
  13375. for ac_exec_ext in '' $ac_executable_extensions; do
  13376. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13377. if test $ac_prog = install &&
  13378. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13379. # AIX install. It has an incompatible calling convention.
  13380. :
  13381. elif test $ac_prog = install &&
  13382. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13383. # program-specific install script used by HP pwplus--don't use.
  13384. :
  13385. else
  13386. rm -rf conftest.one conftest.two conftest.dir
  13387. echo one > conftest.one
  13388. echo two > conftest.two
  13389. mkdir conftest.dir
  13390. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13391. test -s conftest.one && test -s conftest.two &&
  13392. test -s conftest.dir/conftest.one &&
  13393. test -s conftest.dir/conftest.two
  13394. then
  13395. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13396. break 3
  13397. fi
  13398. fi
  13399. fi
  13400. done
  13401. done
  13402. ;;
  13403. esac
  13404. done
  13405. IFS=$as_save_IFS
  13406. rm -rf conftest.one conftest.two conftest.dir
  13407. fi
  13408. if test "${ac_cv_path_install+set}" = set; then
  13409. INSTALL=$ac_cv_path_install
  13410. else
  13411. # As a last resort, use the slow shell script. Don't cache a
  13412. # value for INSTALL within a source directory, because that will
  13413. # break other packages using the cache if that directory is
  13414. # removed, or if the value is a relative name.
  13415. INSTALL=$ac_install_sh
  13416. fi
  13417. fi
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13419. $as_echo "$INSTALL" >&6; }
  13420. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13421. # It thinks the first close brace ends the variable substitution.
  13422. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13423. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13424. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13426. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13427. set x ${MAKE-make}
  13428. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13429. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13430. $as_echo_n "(cached) " >&6
  13431. else
  13432. cat >conftest.make <<\_ACEOF
  13433. SHELL = /bin/sh
  13434. all:
  13435. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13436. _ACEOF
  13437. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13438. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13439. *@@@%%%=?*=@@@%%%*)
  13440. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13441. *)
  13442. eval ac_cv_prog_make_${ac_make}_set=no;;
  13443. esac
  13444. rm -f conftest.make
  13445. fi
  13446. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13448. $as_echo "yes" >&6; }
  13449. SET_MAKE=
  13450. else
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13452. $as_echo "no" >&6; }
  13453. SET_MAKE="MAKE=${MAKE-make}"
  13454. fi
  13455. if test -n "$ac_tool_prefix"; then
  13456. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13457. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13459. $as_echo_n "checking for $ac_word... " >&6; }
  13460. if ${ac_cv_prog_WINDRES+:} false; then :
  13461. $as_echo_n "(cached) " >&6
  13462. else
  13463. if test -n "$WINDRES"; then
  13464. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13465. else
  13466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13467. for as_dir in $PATH
  13468. do
  13469. IFS=$as_save_IFS
  13470. test -z "$as_dir" && as_dir=.
  13471. for ac_exec_ext in '' $ac_executable_extensions; do
  13472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13473. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13475. break 2
  13476. fi
  13477. done
  13478. done
  13479. IFS=$as_save_IFS
  13480. fi
  13481. fi
  13482. WINDRES=$ac_cv_prog_WINDRES
  13483. if test -n "$WINDRES"; then
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13485. $as_echo "$WINDRES" >&6; }
  13486. else
  13487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13488. $as_echo "no" >&6; }
  13489. fi
  13490. fi
  13491. if test -z "$ac_cv_prog_WINDRES"; then
  13492. ac_ct_WINDRES=$WINDRES
  13493. # Extract the first word of "windres", so it can be a program name with args.
  13494. set dummy windres; ac_word=$2
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13496. $as_echo_n "checking for $ac_word... " >&6; }
  13497. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13498. $as_echo_n "(cached) " >&6
  13499. else
  13500. if test -n "$ac_ct_WINDRES"; then
  13501. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13502. else
  13503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13504. for as_dir in $PATH
  13505. do
  13506. IFS=$as_save_IFS
  13507. test -z "$as_dir" && as_dir=.
  13508. for ac_exec_ext in '' $ac_executable_extensions; do
  13509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13510. ac_cv_prog_ac_ct_WINDRES="windres"
  13511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13512. break 2
  13513. fi
  13514. done
  13515. done
  13516. IFS=$as_save_IFS
  13517. fi
  13518. fi
  13519. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13520. if test -n "$ac_ct_WINDRES"; then
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13522. $as_echo "$ac_ct_WINDRES" >&6; }
  13523. else
  13524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13525. $as_echo "no" >&6; }
  13526. fi
  13527. if test "x$ac_ct_WINDRES" = x; then
  13528. WINDRES=":"
  13529. else
  13530. case $cross_compiling:$ac_tool_warned in
  13531. yes:)
  13532. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13533. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13534. ac_tool_warned=yes ;;
  13535. esac
  13536. WINDRES=$ac_ct_WINDRES
  13537. fi
  13538. else
  13539. WINDRES="$ac_cv_prog_WINDRES"
  13540. fi
  13541. case "$host" in
  13542. *-*-mingw32*)
  13543. # Except on msys, where make can't handle full pathnames (bug 1972)
  13544. ;;
  13545. *)
  13546. srcdir=`cd $srcdir && pwd`
  13547. ;;
  13548. esac
  13549. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13550. if test x$srcdir != x.; then
  13551. INCLUDE="-Iinclude $INCLUDE"
  13552. elif test -d .hg; then
  13553. as_fn_error $? "
  13554. *** When building from Mercurial you should configure and build in a
  13555. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13556. " "$LINENO" 5
  13557. fi
  13558. BASE_CFLAGS=""
  13559. BASE_LDFLAGS=""
  13560. case "$host" in
  13561. *-*-cygwin*)
  13562. # We build SDL on cygwin without the UNIX emulation layer
  13563. save_CFLAGS="$CFLAGS"
  13564. have_no_cygwin=no
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13566. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13567. CFLAGS="$save_CFLAGS -mno-cygwin"
  13568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13569. /* end confdefs.h. */
  13570. int
  13571. main ()
  13572. {
  13573. ;
  13574. return 0;
  13575. }
  13576. _ACEOF
  13577. if ac_fn_c_try_compile "$LINENO"; then :
  13578. have_no_cygwin=yes
  13579. fi
  13580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13582. $as_echo "$have_no_cygwin" >&6; }
  13583. CFLAGS="$save_CFLAGS"
  13584. if test x$have_no_cygwin = xyes; then
  13585. BASE_CFLAGS="-mno-cygwin"
  13586. BASE_LDFLAGS="-mno-cygwin"
  13587. fi
  13588. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13589. ;;
  13590. esac
  13591. # Uncomment the following line if you want to force SDL and applications
  13592. # built with it to be compiled for a particular architecture.
  13593. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13594. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13595. # The default optimization for SDL is -O3 (Bug #31)
  13596. if test "x$orig_CFLAGS" = x; then
  13597. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13598. fi
  13599. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13600. BUILD_LDFLAGS="$LDFLAGS"
  13601. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13602. ## These are common directories to find software packages
  13603. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13604. # if test -d $path/include; then
  13605. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13606. # fi
  13607. # if test -d $path/lib; then
  13608. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13609. # fi
  13610. #done
  13611. SDL_CFLAGS="$BASE_CFLAGS"
  13612. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13613. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13614. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13615. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13616. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13617. find_lib()
  13618. {
  13619. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13620. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13621. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13622. if test "$cross_compiling" = yes; then
  13623. host_lib_path=""
  13624. else
  13625. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13626. fi
  13627. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13628. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13629. if test x$lib != x; then
  13630. echo $lib
  13631. return
  13632. fi
  13633. done
  13634. }
  13635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13636. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13637. if ${ac_cv_c_const+:} false; then :
  13638. $as_echo_n "(cached) " >&6
  13639. else
  13640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13641. /* end confdefs.h. */
  13642. int
  13643. main ()
  13644. {
  13645. #ifndef __cplusplus
  13646. /* Ultrix mips cc rejects this sort of thing. */
  13647. typedef int charset[2];
  13648. const charset cs = { 0, 0 };
  13649. /* SunOS 4.1.1 cc rejects this. */
  13650. char const *const *pcpcc;
  13651. char **ppc;
  13652. /* NEC SVR4.0.2 mips cc rejects this. */
  13653. struct point {int x, y;};
  13654. static struct point const zero = {0,0};
  13655. /* AIX XL C 1.02.0.0 rejects this.
  13656. It does not let you subtract one const X* pointer from another in
  13657. an arm of an if-expression whose if-part is not a constant
  13658. expression */
  13659. const char *g = "string";
  13660. pcpcc = &g + (g ? g-g : 0);
  13661. /* HPUX 7.0 cc rejects these. */
  13662. ++pcpcc;
  13663. ppc = (char**) pcpcc;
  13664. pcpcc = (char const *const *) ppc;
  13665. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13666. char tx;
  13667. char *t = &tx;
  13668. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13669. *t++ = 0;
  13670. if (s) return 0;
  13671. }
  13672. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13673. int x[] = {25, 17};
  13674. const int *foo = &x[0];
  13675. ++foo;
  13676. }
  13677. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13678. typedef const int *iptr;
  13679. iptr p = 0;
  13680. ++p;
  13681. }
  13682. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13683. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13684. struct s { int j; const int *ap[3]; } bx;
  13685. struct s *b = &bx; b->j = 5;
  13686. }
  13687. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13688. const int foo = 10;
  13689. if (!foo) return 0;
  13690. }
  13691. return !cs[0] && !zero.x;
  13692. #endif
  13693. ;
  13694. return 0;
  13695. }
  13696. _ACEOF
  13697. if ac_fn_c_try_compile "$LINENO"; then :
  13698. ac_cv_c_const=yes
  13699. else
  13700. ac_cv_c_const=no
  13701. fi
  13702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13703. fi
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13705. $as_echo "$ac_cv_c_const" >&6; }
  13706. if test $ac_cv_c_const = no; then
  13707. $as_echo "#define const /**/" >>confdefs.h
  13708. fi
  13709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13710. $as_echo_n "checking for inline... " >&6; }
  13711. if ${ac_cv_c_inline+:} false; then :
  13712. $as_echo_n "(cached) " >&6
  13713. else
  13714. ac_cv_c_inline=no
  13715. for ac_kw in inline __inline__ __inline; do
  13716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13717. /* end confdefs.h. */
  13718. #ifndef __cplusplus
  13719. typedef int foo_t;
  13720. static $ac_kw foo_t static_foo () {return 0; }
  13721. $ac_kw foo_t foo () {return 0; }
  13722. #endif
  13723. _ACEOF
  13724. if ac_fn_c_try_compile "$LINENO"; then :
  13725. ac_cv_c_inline=$ac_kw
  13726. fi
  13727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13728. test "$ac_cv_c_inline" != no && break
  13729. done
  13730. fi
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13732. $as_echo "$ac_cv_c_inline" >&6; }
  13733. case $ac_cv_c_inline in
  13734. inline | yes) ;;
  13735. *)
  13736. case $ac_cv_c_inline in
  13737. no) ac_val=;;
  13738. *) ac_val=$ac_cv_c_inline;;
  13739. esac
  13740. cat >>confdefs.h <<_ACEOF
  13741. #ifndef __cplusplus
  13742. #define inline $ac_val
  13743. #endif
  13744. _ACEOF
  13745. ;;
  13746. esac
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13748. $as_echo_n "checking for working volatile... " >&6; }
  13749. if ${ac_cv_c_volatile+:} false; then :
  13750. $as_echo_n "(cached) " >&6
  13751. else
  13752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13753. /* end confdefs.h. */
  13754. int
  13755. main ()
  13756. {
  13757. volatile int x;
  13758. int * volatile y = (int *) 0;
  13759. return !x && !y;
  13760. ;
  13761. return 0;
  13762. }
  13763. _ACEOF
  13764. if ac_fn_c_try_compile "$LINENO"; then :
  13765. ac_cv_c_volatile=yes
  13766. else
  13767. ac_cv_c_volatile=no
  13768. fi
  13769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13770. fi
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13772. $as_echo "$ac_cv_c_volatile" >&6; }
  13773. if test $ac_cv_c_volatile = no; then
  13774. $as_echo "#define volatile /**/" >>confdefs.h
  13775. fi
  13776. # Check whether --enable-assertions was given.
  13777. if test "${enable_assertions+set}" = set; then :
  13778. enableval=$enable_assertions;
  13779. else
  13780. enable_assertions=auto
  13781. fi
  13782. case "$enable_assertions" in
  13783. auto) # Use optimization settings to determine assertion level
  13784. ;;
  13785. disabled)
  13786. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13787. ;;
  13788. release)
  13789. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13790. ;;
  13791. enabled)
  13792. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13793. ;;
  13794. paranoid)
  13795. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13796. ;;
  13797. *)
  13798. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13799. ;;
  13800. esac
  13801. # Check whether --enable-dependency-tracking was given.
  13802. if test "${enable_dependency_tracking+set}" = set; then :
  13803. enableval=$enable_dependency_tracking;
  13804. else
  13805. enable_dependency_tracking=yes
  13806. fi
  13807. if test x$enable_dependency_tracking = xyes; then
  13808. have_gcc_mmd_mt=no
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13810. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13812. /* end confdefs.h. */
  13813. #if !defined(__GNUC__) || __GNUC__ < 3
  13814. #error Dependency tracking requires GCC 3.0 or newer
  13815. #endif
  13816. int
  13817. main ()
  13818. {
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_c_try_compile "$LINENO"; then :
  13824. have_gcc_mmd_mt=yes
  13825. fi
  13826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13828. $as_echo "$have_gcc_mmd_mt" >&6; }
  13829. if test x$have_gcc_mmd_mt = xyes; then
  13830. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13831. fi
  13832. fi
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13834. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13835. have_no_undefined=no
  13836. case "$host" in
  13837. *-*-openbsd*)
  13838. ;;
  13839. *)
  13840. save_LDFLAGS="$LDFLAGS"
  13841. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13843. /* end confdefs.h. */
  13844. int
  13845. main ()
  13846. {
  13847. ;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. if ac_fn_c_try_link "$LINENO"; then :
  13852. have_no_undefined=yes
  13853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13854. fi
  13855. rm -f core conftest.err conftest.$ac_objext \
  13856. conftest$ac_exeext conftest.$ac_ext
  13857. LDFLAGS="$save_LDFLAGS"
  13858. ;;
  13859. esac
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13861. $as_echo "$have_no_undefined" >&6; }
  13862. # Check whether --enable-libc was given.
  13863. if test "${enable_libc+set}" = set; then :
  13864. enableval=$enable_libc;
  13865. else
  13866. enable_libc=yes
  13867. fi
  13868. if test x$enable_libc = xyes; then
  13869. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13871. $as_echo_n "checking for ANSI C header files... " >&6; }
  13872. if ${ac_cv_header_stdc+:} false; then :
  13873. $as_echo_n "(cached) " >&6
  13874. else
  13875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13876. /* end confdefs.h. */
  13877. #include <stdlib.h>
  13878. #include <stdarg.h>
  13879. #include <string.h>
  13880. #include <float.h>
  13881. int
  13882. main ()
  13883. {
  13884. ;
  13885. return 0;
  13886. }
  13887. _ACEOF
  13888. if ac_fn_c_try_compile "$LINENO"; then :
  13889. ac_cv_header_stdc=yes
  13890. else
  13891. ac_cv_header_stdc=no
  13892. fi
  13893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13894. if test $ac_cv_header_stdc = yes; then
  13895. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13897. /* end confdefs.h. */
  13898. #include <string.h>
  13899. _ACEOF
  13900. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13901. $EGREP "memchr" >/dev/null 2>&1; then :
  13902. else
  13903. ac_cv_header_stdc=no
  13904. fi
  13905. rm -f conftest*
  13906. fi
  13907. if test $ac_cv_header_stdc = yes; then
  13908. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13910. /* end confdefs.h. */
  13911. #include <stdlib.h>
  13912. _ACEOF
  13913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13914. $EGREP "free" >/dev/null 2>&1; then :
  13915. else
  13916. ac_cv_header_stdc=no
  13917. fi
  13918. rm -f conftest*
  13919. fi
  13920. if test $ac_cv_header_stdc = yes; then
  13921. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13922. if test "$cross_compiling" = yes; then :
  13923. :
  13924. else
  13925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13926. /* end confdefs.h. */
  13927. #include <ctype.h>
  13928. #include <stdlib.h>
  13929. #if ((' ' & 0x0FF) == 0x020)
  13930. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13931. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13932. #else
  13933. # define ISLOWER(c) \
  13934. (('a' <= (c) && (c) <= 'i') \
  13935. || ('j' <= (c) && (c) <= 'r') \
  13936. || ('s' <= (c) && (c) <= 'z'))
  13937. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13938. #endif
  13939. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13940. int
  13941. main ()
  13942. {
  13943. int i;
  13944. for (i = 0; i < 256; i++)
  13945. if (XOR (islower (i), ISLOWER (i))
  13946. || toupper (i) != TOUPPER (i))
  13947. return 2;
  13948. return 0;
  13949. }
  13950. _ACEOF
  13951. if ac_fn_c_try_run "$LINENO"; then :
  13952. else
  13953. ac_cv_header_stdc=no
  13954. fi
  13955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13956. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13957. fi
  13958. fi
  13959. fi
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13961. $as_echo "$ac_cv_header_stdc" >&6; }
  13962. if test $ac_cv_header_stdc = yes; then
  13963. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13964. fi
  13965. 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 ctype.h math.h iconv.h signal.h
  13966. do :
  13967. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13968. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13969. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13970. cat >>confdefs.h <<_ACEOF
  13971. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13972. _ACEOF
  13973. fi
  13974. done
  13975. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13976. if test "x$ac_cv_type_size_t" = xyes; then :
  13977. else
  13978. cat >>confdefs.h <<_ACEOF
  13979. #define size_t unsigned int
  13980. _ACEOF
  13981. fi
  13982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13983. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13984. if ${ac_cv_define_M_PI+:} false; then :
  13985. $as_echo_n "(cached) " >&6
  13986. else
  13987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13988. /* end confdefs.h. */
  13989. #include <math.h>
  13990. #ifdef M_PI
  13991. YES_IS_DEFINED
  13992. #endif
  13993. _ACEOF
  13994. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13995. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  13996. ac_cv_define_M_PI=yes
  13997. else
  13998. ac_cv_define_M_PI=no
  13999. fi
  14000. rm -f conftest*
  14001. fi
  14002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14003. $as_echo "$ac_cv_define_M_PI" >&6; }
  14004. if test "$ac_cv_define_M_PI" = "yes" ; then
  14005. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14006. fi
  14007. case "$host" in
  14008. *-*-cygwin* | *-*-mingw32*)
  14009. ;;
  14010. *)
  14011. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14012. # for constant arguments. Useless!
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14014. $as_echo_n "checking for working alloca.h... " >&6; }
  14015. if ${ac_cv_working_alloca_h+:} false; then :
  14016. $as_echo_n "(cached) " >&6
  14017. else
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. #include <alloca.h>
  14021. int
  14022. main ()
  14023. {
  14024. char *p = (char *) alloca (2 * sizeof (int));
  14025. if (p) return 0;
  14026. ;
  14027. return 0;
  14028. }
  14029. _ACEOF
  14030. if ac_fn_c_try_link "$LINENO"; then :
  14031. ac_cv_working_alloca_h=yes
  14032. else
  14033. ac_cv_working_alloca_h=no
  14034. fi
  14035. rm -f core conftest.err conftest.$ac_objext \
  14036. conftest$ac_exeext conftest.$ac_ext
  14037. fi
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14039. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14040. if test $ac_cv_working_alloca_h = yes; then
  14041. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14042. fi
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14044. $as_echo_n "checking for alloca... " >&6; }
  14045. if ${ac_cv_func_alloca_works+:} false; then :
  14046. $as_echo_n "(cached) " >&6
  14047. else
  14048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14049. /* end confdefs.h. */
  14050. #ifdef __GNUC__
  14051. # define alloca __builtin_alloca
  14052. #else
  14053. # ifdef _MSC_VER
  14054. # include <malloc.h>
  14055. # define alloca _alloca
  14056. # else
  14057. # ifdef HAVE_ALLOCA_H
  14058. # include <alloca.h>
  14059. # else
  14060. # ifdef _AIX
  14061. #pragma alloca
  14062. # else
  14063. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14064. void *alloca (size_t);
  14065. # endif
  14066. # endif
  14067. # endif
  14068. # endif
  14069. #endif
  14070. int
  14071. main ()
  14072. {
  14073. char *p = (char *) alloca (1);
  14074. if (p) return 0;
  14075. ;
  14076. return 0;
  14077. }
  14078. _ACEOF
  14079. if ac_fn_c_try_link "$LINENO"; then :
  14080. ac_cv_func_alloca_works=yes
  14081. else
  14082. ac_cv_func_alloca_works=no
  14083. fi
  14084. rm -f core conftest.err conftest.$ac_objext \
  14085. conftest$ac_exeext conftest.$ac_ext
  14086. fi
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14088. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14089. if test $ac_cv_func_alloca_works = yes; then
  14090. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14091. else
  14092. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14093. # that cause trouble. Some versions do not even contain alloca or
  14094. # contain a buggy version. If you still want to use their alloca,
  14095. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14096. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14097. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14099. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14100. if ${ac_cv_os_cray+:} false; then :
  14101. $as_echo_n "(cached) " >&6
  14102. else
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. #if defined CRAY && ! defined CRAY2
  14106. webecray
  14107. #else
  14108. wenotbecray
  14109. #endif
  14110. _ACEOF
  14111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14112. $EGREP "webecray" >/dev/null 2>&1; then :
  14113. ac_cv_os_cray=yes
  14114. else
  14115. ac_cv_os_cray=no
  14116. fi
  14117. rm -f conftest*
  14118. fi
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14120. $as_echo "$ac_cv_os_cray" >&6; }
  14121. if test $ac_cv_os_cray = yes; then
  14122. for ac_func in _getb67 GETB67 getb67; do
  14123. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14124. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14125. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14126. cat >>confdefs.h <<_ACEOF
  14127. #define CRAY_STACKSEG_END $ac_func
  14128. _ACEOF
  14129. break
  14130. fi
  14131. done
  14132. fi
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14134. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14135. if ${ac_cv_c_stack_direction+:} false; then :
  14136. $as_echo_n "(cached) " >&6
  14137. else
  14138. if test "$cross_compiling" = yes; then :
  14139. ac_cv_c_stack_direction=0
  14140. else
  14141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14142. /* end confdefs.h. */
  14143. $ac_includes_default
  14144. int
  14145. find_stack_direction (int *addr, int depth)
  14146. {
  14147. int dir, dummy = 0;
  14148. if (! addr)
  14149. addr = &dummy;
  14150. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14151. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14152. return dir + dummy;
  14153. }
  14154. int
  14155. main (int argc, char **argv)
  14156. {
  14157. return find_stack_direction (0, argc + !argv + 20) < 0;
  14158. }
  14159. _ACEOF
  14160. if ac_fn_c_try_run "$LINENO"; then :
  14161. ac_cv_c_stack_direction=1
  14162. else
  14163. ac_cv_c_stack_direction=-1
  14164. fi
  14165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14166. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14167. fi
  14168. fi
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14170. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14171. cat >>confdefs.h <<_ACEOF
  14172. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14173. _ACEOF
  14174. fi
  14175. ;;
  14176. esac
  14177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14178. $as_echo_n "checking for working memcmp... " >&6; }
  14179. if ${ac_cv_func_memcmp_working+:} false; then :
  14180. $as_echo_n "(cached) " >&6
  14181. else
  14182. if test "$cross_compiling" = yes; then :
  14183. ac_cv_func_memcmp_working=no
  14184. else
  14185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14186. /* end confdefs.h. */
  14187. $ac_includes_default
  14188. int
  14189. main ()
  14190. {
  14191. /* Some versions of memcmp are not 8-bit clean. */
  14192. char c0 = '\100', c1 = '\200', c2 = '\201';
  14193. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14194. return 1;
  14195. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14196. or more and with at least one buffer not starting on a 4-byte boundary.
  14197. William Lewis provided this test program. */
  14198. {
  14199. char foo[21];
  14200. char bar[21];
  14201. int i;
  14202. for (i = 0; i < 4; i++)
  14203. {
  14204. char *a = foo + i;
  14205. char *b = bar + i;
  14206. strcpy (a, "--------01111111");
  14207. strcpy (b, "--------10000000");
  14208. if (memcmp (a, b, 16) >= 0)
  14209. return 1;
  14210. }
  14211. return 0;
  14212. }
  14213. ;
  14214. return 0;
  14215. }
  14216. _ACEOF
  14217. if ac_fn_c_try_run "$LINENO"; then :
  14218. ac_cv_func_memcmp_working=yes
  14219. else
  14220. ac_cv_func_memcmp_working=no
  14221. fi
  14222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14223. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14224. fi
  14225. fi
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14227. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14228. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14229. *" memcmp.$ac_objext "* ) ;;
  14230. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14231. ;;
  14232. esac
  14233. if test x$ac_cv_func_memcmp_working = xyes; then
  14234. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14235. fi
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14237. $as_echo_n "checking for working strtod... " >&6; }
  14238. if ${ac_cv_func_strtod+:} false; then :
  14239. $as_echo_n "(cached) " >&6
  14240. else
  14241. if test "$cross_compiling" = yes; then :
  14242. ac_cv_func_strtod=no
  14243. else
  14244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14245. /* end confdefs.h. */
  14246. $ac_includes_default
  14247. #ifndef strtod
  14248. double strtod ();
  14249. #endif
  14250. int
  14251. main()
  14252. {
  14253. {
  14254. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14255. char *string = " +69";
  14256. char *term;
  14257. double value;
  14258. value = strtod (string, &term);
  14259. if (value != 69 || term != (string + 4))
  14260. return 1;
  14261. }
  14262. {
  14263. /* Under Solaris 2.4, strtod returns the wrong value for the
  14264. terminating character under some conditions. */
  14265. char *string = "NaN";
  14266. char *term;
  14267. strtod (string, &term);
  14268. if (term != string && *(term - 1) == 0)
  14269. return 1;
  14270. }
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_run "$LINENO"; then :
  14275. ac_cv_func_strtod=yes
  14276. else
  14277. ac_cv_func_strtod=no
  14278. fi
  14279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14280. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14281. fi
  14282. fi
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14284. $as_echo "$ac_cv_func_strtod" >&6; }
  14285. if test $ac_cv_func_strtod = no; then
  14286. case " $LIBOBJS " in
  14287. *" strtod.$ac_objext "* ) ;;
  14288. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14289. ;;
  14290. esac
  14291. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14292. if test "x$ac_cv_func_pow" = xyes; then :
  14293. fi
  14294. if test $ac_cv_func_pow = no; then
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14296. $as_echo_n "checking for pow in -lm... " >&6; }
  14297. if ${ac_cv_lib_m_pow+:} false; then :
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. ac_check_lib_save_LIBS=$LIBS
  14301. LIBS="-lm $LIBS"
  14302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14303. /* end confdefs.h. */
  14304. /* Override any GCC internal prototype to avoid an error.
  14305. Use char because int might match the return type of a GCC
  14306. builtin and then its argument prototype would still apply. */
  14307. #ifdef __cplusplus
  14308. extern "C"
  14309. #endif
  14310. char pow ();
  14311. int
  14312. main ()
  14313. {
  14314. return pow ();
  14315. ;
  14316. return 0;
  14317. }
  14318. _ACEOF
  14319. if ac_fn_c_try_link "$LINENO"; then :
  14320. ac_cv_lib_m_pow=yes
  14321. else
  14322. ac_cv_lib_m_pow=no
  14323. fi
  14324. rm -f core conftest.err conftest.$ac_objext \
  14325. conftest$ac_exeext conftest.$ac_ext
  14326. LIBS=$ac_check_lib_save_LIBS
  14327. fi
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14329. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14330. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14331. POW_LIB=-lm
  14332. else
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14334. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14335. fi
  14336. fi
  14337. fi
  14338. if test x$ac_cv_func_strtod = xyes; then
  14339. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14340. fi
  14341. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14342. if test "x$ac_cv_func_mprotect" = xyes; then :
  14343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14344. /* end confdefs.h. */
  14345. #include <sys/types.h>
  14346. #include <sys/mman.h>
  14347. int
  14348. main ()
  14349. {
  14350. ;
  14351. return 0;
  14352. }
  14353. _ACEOF
  14354. if ac_fn_c_try_compile "$LINENO"; then :
  14355. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14356. fi
  14357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14358. fi
  14359. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14360. do :
  14361. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14362. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14363. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14364. cat >>confdefs.h <<_ACEOF
  14365. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14366. _ACEOF
  14367. fi
  14368. done
  14369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14370. $as_echo_n "checking for pow in -lm... " >&6; }
  14371. if ${ac_cv_lib_m_pow+:} false; then :
  14372. $as_echo_n "(cached) " >&6
  14373. else
  14374. ac_check_lib_save_LIBS=$LIBS
  14375. LIBS="-lm $LIBS"
  14376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14377. /* end confdefs.h. */
  14378. /* Override any GCC internal prototype to avoid an error.
  14379. Use char because int might match the return type of a GCC
  14380. builtin and then its argument prototype would still apply. */
  14381. #ifdef __cplusplus
  14382. extern "C"
  14383. #endif
  14384. char pow ();
  14385. int
  14386. main ()
  14387. {
  14388. return pow ();
  14389. ;
  14390. return 0;
  14391. }
  14392. _ACEOF
  14393. if ac_fn_c_try_link "$LINENO"; then :
  14394. ac_cv_lib_m_pow=yes
  14395. else
  14396. ac_cv_lib_m_pow=no
  14397. fi
  14398. rm -f core conftest.err conftest.$ac_objext \
  14399. conftest$ac_exeext conftest.$ac_ext
  14400. LIBS=$ac_check_lib_save_LIBS
  14401. fi
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14403. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14404. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14405. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14406. fi
  14407. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14408. do :
  14409. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14410. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14411. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14412. cat >>confdefs.h <<_ACEOF
  14413. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14414. _ACEOF
  14415. fi
  14416. done
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14418. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14419. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. ac_check_lib_save_LIBS=$LIBS
  14423. LIBS="-liconv $LIBS"
  14424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14425. /* end confdefs.h. */
  14426. /* Override any GCC internal prototype to avoid an error.
  14427. Use char because int might match the return type of a GCC
  14428. builtin and then its argument prototype would still apply. */
  14429. #ifdef __cplusplus
  14430. extern "C"
  14431. #endif
  14432. char iconv_open ();
  14433. int
  14434. main ()
  14435. {
  14436. return iconv_open ();
  14437. ;
  14438. return 0;
  14439. }
  14440. _ACEOF
  14441. if ac_fn_c_try_link "$LINENO"; then :
  14442. ac_cv_lib_iconv_iconv_open=yes
  14443. else
  14444. ac_cv_lib_iconv_iconv_open=no
  14445. fi
  14446. rm -f core conftest.err conftest.$ac_objext \
  14447. conftest$ac_exeext conftest.$ac_ext
  14448. LIBS=$ac_check_lib_save_LIBS
  14449. fi
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14451. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14452. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14453. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14454. fi
  14455. for ac_func in iconv
  14456. do :
  14457. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14458. if test "x$ac_cv_func_iconv" = xyes; then :
  14459. cat >>confdefs.h <<_ACEOF
  14460. #define HAVE_ICONV 1
  14461. _ACEOF
  14462. fi
  14463. done
  14464. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14465. "
  14466. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14467. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14468. fi
  14469. fi
  14470. # Check whether --enable-gcc-atomics was given.
  14471. if test "${enable_gcc_atomics+set}" = set; then :
  14472. enableval=$enable_gcc_atomics;
  14473. else
  14474. enable_gcc_atomics=yes
  14475. fi
  14476. if test x$enable_gcc_atomics = xyes; then
  14477. have_gcc_atomics=no
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14479. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14481. /* end confdefs.h. */
  14482. int
  14483. main ()
  14484. {
  14485. int a;
  14486. void *x, *y, *z;
  14487. __sync_lock_test_and_set(&a, 4);
  14488. __sync_lock_test_and_set(&x, y);
  14489. __sync_fetch_and_add(&a, 1);
  14490. __sync_bool_compare_and_swap(&a, 5, 10);
  14491. __sync_bool_compare_and_swap(&x, y, z);
  14492. ;
  14493. return 0;
  14494. }
  14495. _ACEOF
  14496. if ac_fn_c_try_link "$LINENO"; then :
  14497. have_gcc_atomics=yes
  14498. fi
  14499. rm -f core conftest.err conftest.$ac_objext \
  14500. conftest$ac_exeext conftest.$ac_ext
  14501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14502. $as_echo "$have_gcc_atomics" >&6; }
  14503. if test x$have_gcc_atomics = xyes; then
  14504. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14505. else
  14506. # See if we have the minimum operation needed for GCC atomics
  14507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14508. /* end confdefs.h. */
  14509. int
  14510. main ()
  14511. {
  14512. int a;
  14513. __sync_lock_test_and_set(&a, 1);
  14514. __sync_lock_release(&a);
  14515. ;
  14516. return 0;
  14517. }
  14518. _ACEOF
  14519. if ac_fn_c_try_link "$LINENO"; then :
  14520. have_gcc_sync_lock_test_and_set=yes
  14521. fi
  14522. rm -f core conftest.err conftest.$ac_objext \
  14523. conftest$ac_exeext conftest.$ac_ext
  14524. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14525. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14526. fi
  14527. fi
  14528. fi
  14529. # Standard C sources
  14530. SOURCES="$SOURCES $srcdir/src/*.c"
  14531. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14532. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14533. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14534. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14535. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14536. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14537. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14538. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14539. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14540. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14541. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14542. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14543. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14548. # Check whether --enable-atomic was given.
  14549. if test "${enable_atomic+set}" = set; then :
  14550. enableval=$enable_atomic;
  14551. else
  14552. enable_atomic=yes
  14553. fi
  14554. if test x$enable_atomic != xyes; then
  14555. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14556. else
  14557. SUMMARY_modules="${SUMMARY_modules} atomic"
  14558. fi
  14559. # Check whether --enable-audio was given.
  14560. if test "${enable_audio+set}" = set; then :
  14561. enableval=$enable_audio;
  14562. else
  14563. enable_audio=yes
  14564. fi
  14565. if test x$enable_audio != xyes; then
  14566. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14567. else
  14568. SUMMARY_modules="${SUMMARY_modules} audio"
  14569. fi
  14570. # Check whether --enable-video was given.
  14571. if test "${enable_video+set}" = set; then :
  14572. enableval=$enable_video;
  14573. else
  14574. enable_video=yes
  14575. fi
  14576. if test x$enable_video != xyes; then
  14577. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14578. else
  14579. SUMMARY_modules="${SUMMARY_modules} video"
  14580. fi
  14581. # Check whether --enable-render was given.
  14582. if test "${enable_render+set}" = set; then :
  14583. enableval=$enable_render;
  14584. else
  14585. enable_render=yes
  14586. fi
  14587. if test x$enable_render != xyes; then
  14588. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14589. else
  14590. SUMMARY_modules="${SUMMARY_modules} render"
  14591. fi
  14592. # Check whether --enable-events was given.
  14593. if test "${enable_events+set}" = set; then :
  14594. enableval=$enable_events;
  14595. else
  14596. enable_events=yes
  14597. fi
  14598. if test x$enable_events != xyes; then
  14599. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14600. else
  14601. SUMMARY_modules="${SUMMARY_modules} events"
  14602. fi
  14603. # Check whether --enable-joystick was given.
  14604. if test "${enable_joystick+set}" = set; then :
  14605. enableval=$enable_joystick;
  14606. else
  14607. enable_joystick=yes
  14608. fi
  14609. if test x$enable_joystick != xyes; then
  14610. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14611. else
  14612. SUMMARY_modules="${SUMMARY_modules} joystick"
  14613. fi
  14614. # Check whether --enable-haptic was given.
  14615. if test "${enable_haptic+set}" = set; then :
  14616. enableval=$enable_haptic;
  14617. else
  14618. enable_haptic=yes
  14619. fi
  14620. if test x$enable_haptic != xyes; then
  14621. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14622. else
  14623. SUMMARY_modules="${SUMMARY_modules} haptic"
  14624. fi
  14625. # Check whether --enable-power was given.
  14626. if test "${enable_power+set}" = set; then :
  14627. enableval=$enable_power;
  14628. else
  14629. enable_power=yes
  14630. fi
  14631. if test x$enable_power != xyes; then
  14632. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14633. else
  14634. SUMMARY_modules="${SUMMARY_modules} power"
  14635. fi
  14636. # Check whether --enable-filesystem was given.
  14637. if test "${enable_filesystem+set}" = set; then :
  14638. enableval=$enable_filesystem;
  14639. else
  14640. enable_filesystem=yes
  14641. fi
  14642. if test x$enable_filesystem != xyes; then
  14643. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14644. else
  14645. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14646. fi
  14647. # Check whether --enable-threads was given.
  14648. if test "${enable_threads+set}" = set; then :
  14649. enableval=$enable_threads;
  14650. else
  14651. enable_threads=yes
  14652. fi
  14653. if test x$enable_threads != xyes; then
  14654. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14655. else
  14656. SUMMARY_modules="${SUMMARY_modules} threads"
  14657. fi
  14658. # Check whether --enable-timers was given.
  14659. if test "${enable_timers+set}" = set; then :
  14660. enableval=$enable_timers;
  14661. else
  14662. enable_timers=yes
  14663. fi
  14664. if test x$enable_timers != xyes; then
  14665. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14666. else
  14667. SUMMARY_modules="${SUMMARY_modules} timers"
  14668. fi
  14669. # Check whether --enable-file was given.
  14670. if test "${enable_file+set}" = set; then :
  14671. enableval=$enable_file;
  14672. else
  14673. enable_file=yes
  14674. fi
  14675. if test x$enable_file != xyes; then
  14676. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14677. else
  14678. SUMMARY_modules="${SUMMARY_modules} file"
  14679. fi
  14680. # Check whether --enable-loadso was given.
  14681. if test "${enable_loadso+set}" = set; then :
  14682. enableval=$enable_loadso;
  14683. else
  14684. enable_loadso=yes
  14685. fi
  14686. if test x$enable_loadso != xyes; then
  14687. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14688. else
  14689. SUMMARY_modules="${SUMMARY_modules} loadso"
  14690. fi
  14691. # Check whether --enable-cpuinfo was given.
  14692. if test "${enable_cpuinfo+set}" = set; then :
  14693. enableval=$enable_cpuinfo;
  14694. else
  14695. enable_cpuinfo=yes
  14696. fi
  14697. if test x$enable_cpuinfo != xyes; then
  14698. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14699. else
  14700. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14701. fi
  14702. # Check whether --enable-assembly was given.
  14703. if test "${enable_assembly+set}" = set; then :
  14704. enableval=$enable_assembly;
  14705. else
  14706. enable_assembly=yes
  14707. fi
  14708. if test x$enable_assembly = xyes; then
  14709. SUMMARY_modules="${SUMMARY_modules} assembly"
  14710. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14711. # Make sure that we don't generate floating point code that would
  14712. # cause illegal instruction exceptions on older processors
  14713. case "$host" in
  14714. *-*-darwin*)
  14715. # Don't need to worry about Apple hardware, it's all SSE capable
  14716. default_ssemath=yes
  14717. ;;
  14718. *64-*-*)
  14719. # x86 64-bit architectures all have SSE instructions
  14720. default_ssemath=yes
  14721. ;;
  14722. *)
  14723. default_ssemath=no
  14724. ;;
  14725. esac
  14726. # Check whether --enable-ssemath was given.
  14727. if test "${enable_ssemath+set}" = set; then :
  14728. enableval=$enable_ssemath;
  14729. else
  14730. enable_ssemath=$default_ssemath
  14731. fi
  14732. if test x$enable_ssemath = xno; then
  14733. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14734. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14735. fi
  14736. fi
  14737. # Check whether --enable-mmx was given.
  14738. if test "${enable_mmx+set}" = set; then :
  14739. enableval=$enable_mmx;
  14740. else
  14741. enable_mmx=yes
  14742. fi
  14743. if test x$enable_mmx = xyes; then
  14744. save_CFLAGS="$CFLAGS"
  14745. have_gcc_mmx=no
  14746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14747. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14748. mmx_CFLAGS="-mmmx"
  14749. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14751. /* end confdefs.h. */
  14752. #ifdef __MINGW32__
  14753. #include <_mingw.h>
  14754. #ifdef __MINGW64_VERSION_MAJOR
  14755. #include <intrin.h>
  14756. #else
  14757. #include <mmintrin.h>
  14758. #endif
  14759. #else
  14760. #include <mmintrin.h>
  14761. #endif
  14762. #ifndef __MMX__
  14763. #error Assembler CPP flag not enabled
  14764. #endif
  14765. int
  14766. main ()
  14767. {
  14768. ;
  14769. return 0;
  14770. }
  14771. _ACEOF
  14772. if ac_fn_c_try_compile "$LINENO"; then :
  14773. have_gcc_mmx=yes
  14774. fi
  14775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14777. $as_echo "$have_gcc_mmx" >&6; }
  14778. CFLAGS="$save_CFLAGS"
  14779. if test x$have_gcc_mmx = xyes; then
  14780. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14781. SUMMARY_math="${SUMMARY_math} mmx"
  14782. fi
  14783. fi
  14784. # Check whether --enable-3dnow was given.
  14785. if test "${enable_3dnow+set}" = set; then :
  14786. enableval=$enable_3dnow;
  14787. else
  14788. enable_3dnow=yes
  14789. fi
  14790. if test x$enable_3dnow = xyes; then
  14791. save_CFLAGS="$CFLAGS"
  14792. have_gcc_3dnow=no
  14793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14794. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14795. amd3dnow_CFLAGS="-m3dnow"
  14796. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. #include <mm3dnow.h>
  14800. #ifndef __3dNOW__
  14801. #error Assembler CPP flag not enabled
  14802. #endif
  14803. int
  14804. main ()
  14805. {
  14806. void *p = 0;
  14807. _m_prefetch(p);
  14808. ;
  14809. return 0;
  14810. }
  14811. _ACEOF
  14812. if ac_fn_c_try_link "$LINENO"; then :
  14813. have_gcc_3dnow=yes
  14814. fi
  14815. rm -f core conftest.err conftest.$ac_objext \
  14816. conftest$ac_exeext conftest.$ac_ext
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14818. $as_echo "$have_gcc_3dnow" >&6; }
  14819. CFLAGS="$save_CFLAGS"
  14820. if test x$have_gcc_3dnow = xyes; then
  14821. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14822. SUMMARY_math="${SUMMARY_math} 3dnow"
  14823. fi
  14824. fi
  14825. # Check whether --enable-sse was given.
  14826. if test "${enable_sse+set}" = set; then :
  14827. enableval=$enable_sse;
  14828. else
  14829. enable_sse=yes
  14830. fi
  14831. if test x$enable_sse = xyes; then
  14832. save_CFLAGS="$CFLAGS"
  14833. have_gcc_sse=no
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14835. $as_echo_n "checking for GCC -msse option... " >&6; }
  14836. sse_CFLAGS="-msse"
  14837. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. #ifdef __MINGW32__
  14841. #include <_mingw.h>
  14842. #ifdef __MINGW64_VERSION_MAJOR
  14843. #include <intrin.h>
  14844. #else
  14845. #include <xmmintrin.h>
  14846. #endif
  14847. #else
  14848. #include <xmmintrin.h>
  14849. #endif
  14850. #ifndef __SSE__
  14851. #error Assembler CPP flag not enabled
  14852. #endif
  14853. int
  14854. main ()
  14855. {
  14856. ;
  14857. return 0;
  14858. }
  14859. _ACEOF
  14860. if ac_fn_c_try_compile "$LINENO"; then :
  14861. have_gcc_sse=yes
  14862. fi
  14863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14865. $as_echo "$have_gcc_sse" >&6; }
  14866. CFLAGS="$save_CFLAGS"
  14867. if test x$have_gcc_sse = xyes; then
  14868. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14869. SUMMARY_math="${SUMMARY_math} sse"
  14870. fi
  14871. fi
  14872. # Check whether --enable-sse2 was given.
  14873. if test "${enable_sse2+set}" = set; then :
  14874. enableval=$enable_sse2;
  14875. else
  14876. enable_sse2=$default_ssemath
  14877. fi
  14878. if test x$enable_sse2 = xyes; then
  14879. save_CFLAGS="$CFLAGS"
  14880. have_gcc_sse2=no
  14881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14882. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14883. sse2_CFLAGS="-msse2"
  14884. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14886. /* end confdefs.h. */
  14887. #ifdef __MINGW32__
  14888. #include <_mingw.h>
  14889. #ifdef __MINGW64_VERSION_MAJOR
  14890. #include <intrin.h>
  14891. #else
  14892. #include <emmintrin.h>
  14893. #endif
  14894. #else
  14895. #include <emmintrin.h>
  14896. #endif
  14897. #ifndef __SSE2__
  14898. #error Assembler CPP flag not enabled
  14899. #endif
  14900. int
  14901. main ()
  14902. {
  14903. ;
  14904. return 0;
  14905. }
  14906. _ACEOF
  14907. if ac_fn_c_try_compile "$LINENO"; then :
  14908. have_gcc_sse2=yes
  14909. fi
  14910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14912. $as_echo "$have_gcc_sse2" >&6; }
  14913. CFLAGS="$save_CFLAGS"
  14914. if test x$have_gcc_sse2 = xyes; then
  14915. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14916. SUMMARY_math="${SUMMARY_math} sse2"
  14917. fi
  14918. fi
  14919. # Check whether --enable-sse3 was given.
  14920. if test "${enable_sse3+set}" = set; then :
  14921. enableval=$enable_sse3;
  14922. else
  14923. enable_sse3=$default_ssemath
  14924. fi
  14925. if test x$enable_sse3 = xyes; then
  14926. save_CFLAGS="$CFLAGS"
  14927. have_gcc_sse3=no
  14928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14929. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14930. sse3_CFLAGS="-msse3"
  14931. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14933. /* end confdefs.h. */
  14934. #ifdef __MINGW32__
  14935. #include <_mingw.h>
  14936. #ifdef __MINGW64_VERSION_MAJOR
  14937. #include <intrin.h>
  14938. #else
  14939. #include <pmmintrin.h>
  14940. #endif
  14941. #else
  14942. #include <pmmintrin.h>
  14943. #endif
  14944. #ifndef __SSE2__
  14945. #error Assembler CPP flag not enabled
  14946. #endif
  14947. int
  14948. main ()
  14949. {
  14950. ;
  14951. return 0;
  14952. }
  14953. _ACEOF
  14954. if ac_fn_c_try_compile "$LINENO"; then :
  14955. have_gcc_sse3=yes
  14956. fi
  14957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14959. $as_echo "$have_gcc_sse3" >&6; }
  14960. CFLAGS="$save_CFLAGS"
  14961. if test x$have_gcc_sse3 = xyes; then
  14962. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14963. SUMMARY_math="${SUMMARY_math} sse3"
  14964. fi
  14965. fi
  14966. # Check whether --enable-altivec was given.
  14967. if test "${enable_altivec+set}" = set; then :
  14968. enableval=$enable_altivec;
  14969. else
  14970. enable_altivec=yes
  14971. fi
  14972. if test x$enable_altivec = xyes; then
  14973. save_CFLAGS="$CFLAGS"
  14974. have_gcc_altivec=no
  14975. have_altivec_h_hdr=no
  14976. altivec_CFLAGS="-maltivec"
  14977. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14979. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14981. /* end confdefs.h. */
  14982. #include <altivec.h>
  14983. vector unsigned int vzero() {
  14984. return vec_splat_u32(0);
  14985. }
  14986. int
  14987. main ()
  14988. {
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. if ac_fn_c_try_compile "$LINENO"; then :
  14994. have_gcc_altivec=yes
  14995. have_altivec_h_hdr=yes
  14996. fi
  14997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  14999. $as_echo "$have_gcc_altivec" >&6; }
  15000. if test x$have_gcc_altivec = xno; then
  15001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15002. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15004. /* end confdefs.h. */
  15005. vector unsigned int vzero() {
  15006. return vec_splat_u32(0);
  15007. }
  15008. int
  15009. main ()
  15010. {
  15011. ;
  15012. return 0;
  15013. }
  15014. _ACEOF
  15015. if ac_fn_c_try_compile "$LINENO"; then :
  15016. have_gcc_altivec=yes
  15017. fi
  15018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15020. $as_echo "$have_gcc_altivec" >&6; }
  15021. fi
  15022. if test x$have_gcc_altivec = xno; then
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15024. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15025. altivec_CFLAGS="-faltivec"
  15026. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15028. /* end confdefs.h. */
  15029. #include <altivec.h>
  15030. vector unsigned int vzero() {
  15031. return vec_splat_u32(0);
  15032. }
  15033. int
  15034. main ()
  15035. {
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_compile "$LINENO"; then :
  15041. have_gcc_altivec=yes
  15042. have_altivec_h_hdr=yes
  15043. fi
  15044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15046. $as_echo "$have_gcc_altivec" >&6; }
  15047. fi
  15048. if test x$have_gcc_altivec = xno; then
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15050. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15052. /* end confdefs.h. */
  15053. vector unsigned int vzero() {
  15054. return vec_splat_u32(0);
  15055. }
  15056. int
  15057. main ()
  15058. {
  15059. ;
  15060. return 0;
  15061. }
  15062. _ACEOF
  15063. if ac_fn_c_try_compile "$LINENO"; then :
  15064. have_gcc_altivec=yes
  15065. fi
  15066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15068. $as_echo "$have_gcc_altivec" >&6; }
  15069. fi
  15070. CFLAGS="$save_CFLAGS"
  15071. if test x$have_gcc_altivec = xyes; then
  15072. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15073. if test x$have_altivec_h_hdr = xyes; then
  15074. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15075. fi
  15076. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15077. SUMMARY_math="${SUMMARY_math} altivec"
  15078. fi
  15079. fi
  15080. fi
  15081. CheckOSS()
  15082. {
  15083. # Check whether --enable-oss was given.
  15084. if test "${enable_oss+set}" = set; then :
  15085. enableval=$enable_oss;
  15086. else
  15087. enable_oss=maybe
  15088. fi
  15089. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15090. # use sndio instead. So on there, we default to disabled. You can force
  15091. # it on if you really want, though.
  15092. if test x$enable_oss = xmaybe; then
  15093. enable_oss=yes
  15094. case "$host" in
  15095. *-*-openbsd*)
  15096. enable_oss=no;;
  15097. esac
  15098. fi
  15099. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15101. $as_echo_n "checking for OSS audio support... " >&6; }
  15102. have_oss=no
  15103. if test x$have_oss != xyes; then
  15104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15105. /* end confdefs.h. */
  15106. #include <sys/soundcard.h>
  15107. int
  15108. main ()
  15109. {
  15110. int arg = SNDCTL_DSP_SETFRAGMENT;
  15111. ;
  15112. return 0;
  15113. }
  15114. _ACEOF
  15115. if ac_fn_c_try_compile "$LINENO"; then :
  15116. have_oss=yes
  15117. fi
  15118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15119. fi
  15120. if test x$have_oss != xyes; then
  15121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15122. /* end confdefs.h. */
  15123. #include <soundcard.h>
  15124. int
  15125. main ()
  15126. {
  15127. int arg = SNDCTL_DSP_SETFRAGMENT;
  15128. ;
  15129. return 0;
  15130. }
  15131. _ACEOF
  15132. if ac_fn_c_try_compile "$LINENO"; then :
  15133. have_oss=yes
  15134. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15135. fi
  15136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15137. fi
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15139. $as_echo "$have_oss" >&6; }
  15140. if test x$have_oss = xyes; then
  15141. SUMMARY_audio="${SUMMARY_audio} oss"
  15142. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15143. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15144. have_audio=yes
  15145. # We may need to link with ossaudio emulation library
  15146. case "$host" in
  15147. *-*-openbsd*|*-*-netbsd*)
  15148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15149. esac
  15150. fi
  15151. fi
  15152. }
  15153. CheckALSA()
  15154. {
  15155. # Check whether --enable-alsa was given.
  15156. if test "${enable_alsa+set}" = set; then :
  15157. enableval=$enable_alsa;
  15158. else
  15159. enable_alsa=yes
  15160. fi
  15161. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15162. alsa_save_CFLAGS="$CFLAGS"
  15163. alsa_save_LDFLAGS="$LDFLAGS"
  15164. alsa_save_LIBS="$LIBS"
  15165. alsa_found=yes
  15166. # Check whether --with-alsa-prefix was given.
  15167. if test "${with_alsa_prefix+set}" = set; then :
  15168. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15169. else
  15170. alsa_prefix=""
  15171. fi
  15172. # Check whether --with-alsa-inc-prefix was given.
  15173. if test "${with_alsa_inc_prefix+set}" = set; then :
  15174. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15175. else
  15176. alsa_inc_prefix=""
  15177. fi
  15178. # Check whether --enable-alsatest was given.
  15179. if test "${enable_alsatest+set}" = set; then :
  15180. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15181. else
  15182. enable_alsatest=yes
  15183. fi
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15185. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15186. if test "$alsa_inc_prefix" != "" ; then
  15187. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15188. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15189. fi
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15191. $as_echo "$ALSA_CFLAGS" >&6; }
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15193. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15194. if test "$alsa_prefix" != "" ; then
  15195. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15196. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15197. fi
  15198. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15199. LIBS=`echo $LIBS | sed 's/-lm//'`
  15200. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15201. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15202. LIBS=`echo $LIBS | sed 's/ //'`
  15203. LIBS="$ALSA_LIBS $LIBS"
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15205. $as_echo "$ALSA_LIBS" >&6; }
  15206. min_alsa_version=1.0.11
  15207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15208. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15209. no_alsa=""
  15210. alsa_min_major_version=`echo $min_alsa_version | \
  15211. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15212. alsa_min_minor_version=`echo $min_alsa_version | \
  15213. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15214. alsa_min_micro_version=`echo $min_alsa_version | \
  15215. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15216. ac_ext=c
  15217. ac_cpp='$CPP $CPPFLAGS'
  15218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15222. /* end confdefs.h. */
  15223. #include <alsa/asoundlib.h>
  15224. int
  15225. main ()
  15226. {
  15227. /* ensure backward compatibility */
  15228. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15229. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15230. #endif
  15231. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15232. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15233. #endif
  15234. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15235. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15236. #endif
  15237. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15238. exit(0);
  15239. # else
  15240. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15241. # error not present
  15242. # endif
  15243. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15244. exit(0);
  15245. # else
  15246. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15247. # error not present
  15248. # endif
  15249. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15250. # error not present
  15251. # endif
  15252. # endif
  15253. # endif
  15254. exit(0);
  15255. ;
  15256. return 0;
  15257. }
  15258. _ACEOF
  15259. if ac_fn_c_try_compile "$LINENO"; then :
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15261. $as_echo "found." >&6; }
  15262. else
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15264. $as_echo "not present." >&6; }
  15265. alsa_found=no
  15266. fi
  15267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15268. ac_ext=c
  15269. ac_cpp='$CPP $CPPFLAGS'
  15270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15273. if test "x$enable_alsatest" = "xyes"; then
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15275. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15276. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15277. $as_echo_n "(cached) " >&6
  15278. else
  15279. ac_check_lib_save_LIBS=$LIBS
  15280. LIBS="-lasound $LIBS"
  15281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15282. /* end confdefs.h. */
  15283. /* Override any GCC internal prototype to avoid an error.
  15284. Use char because int might match the return type of a GCC
  15285. builtin and then its argument prototype would still apply. */
  15286. #ifdef __cplusplus
  15287. extern "C"
  15288. #endif
  15289. char snd_ctl_open ();
  15290. int
  15291. main ()
  15292. {
  15293. return snd_ctl_open ();
  15294. ;
  15295. return 0;
  15296. }
  15297. _ACEOF
  15298. if ac_fn_c_try_link "$LINENO"; then :
  15299. ac_cv_lib_asound_snd_ctl_open=yes
  15300. else
  15301. ac_cv_lib_asound_snd_ctl_open=no
  15302. fi
  15303. rm -f core conftest.err conftest.$ac_objext \
  15304. conftest$ac_exeext conftest.$ac_ext
  15305. LIBS=$ac_check_lib_save_LIBS
  15306. fi
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15308. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15309. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15310. cat >>confdefs.h <<_ACEOF
  15311. #define HAVE_LIBASOUND 1
  15312. _ACEOF
  15313. LIBS="-lasound $LIBS"
  15314. else
  15315. alsa_found=no
  15316. fi
  15317. fi
  15318. if test "x$alsa_found" = "xyes" ; then
  15319. have_alsa=yes
  15320. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15321. LIBS=`echo $LIBS | sed 's/ //'`
  15322. LIBS="-lasound $LIBS"
  15323. fi
  15324. if test "x$alsa_found" = "xno" ; then
  15325. have_alsa=no
  15326. CFLAGS="$alsa_save_CFLAGS"
  15327. LDFLAGS="$alsa_save_LDFLAGS"
  15328. LIBS="$alsa_save_LIBS"
  15329. ALSA_CFLAGS=""
  15330. ALSA_LIBS=""
  15331. fi
  15332. # Restore all flags from before the ALSA detection runs
  15333. CFLAGS="$alsa_save_CFLAGS"
  15334. LDFLAGS="$alsa_save_LDFLAGS"
  15335. LIBS="$alsa_save_LIBS"
  15336. if test x$have_alsa = xyes; then
  15337. # Check whether --enable-alsa-shared was given.
  15338. if test "${enable_alsa_shared+set}" = set; then :
  15339. enableval=$enable_alsa_shared;
  15340. else
  15341. enable_alsa_shared=yes
  15342. fi
  15343. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15344. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15345. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15346. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15347. if test x$have_loadso != xyes && \
  15348. test x$enable_alsa_shared = xyes; then
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15350. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15351. fi
  15352. if test x$have_loadso = xyes && \
  15353. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15354. echo "-- dynamic libasound -> $alsa_lib"
  15355. cat >>confdefs.h <<_ACEOF
  15356. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15357. _ACEOF
  15358. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15359. else
  15360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15361. SUMMARY_audio="${SUMMARY_audio} alsa"
  15362. fi
  15363. have_audio=yes
  15364. fi
  15365. fi
  15366. }
  15367. CheckJACK()
  15368. {
  15369. # Check whether --enable-jack was given.
  15370. if test "${enable_jack+set}" = set; then :
  15371. enableval=$enable_jack;
  15372. else
  15373. enable_jack=yes
  15374. fi
  15375. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15376. audio_jack=no
  15377. JACK_REQUIRED_VERSION=0.125
  15378. # Extract the first word of "pkg-config", so it can be a program name with args.
  15379. set dummy pkg-config; ac_word=$2
  15380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15381. $as_echo_n "checking for $ac_word... " >&6; }
  15382. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15383. $as_echo_n "(cached) " >&6
  15384. else
  15385. case $PKG_CONFIG in
  15386. [\\/]* | ?:[\\/]*)
  15387. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15388. ;;
  15389. *)
  15390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15391. for as_dir in $PATH
  15392. do
  15393. IFS=$as_save_IFS
  15394. test -z "$as_dir" && as_dir=.
  15395. for ac_exec_ext in '' $ac_executable_extensions; do
  15396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15397. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15399. break 2
  15400. fi
  15401. done
  15402. done
  15403. IFS=$as_save_IFS
  15404. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15405. ;;
  15406. esac
  15407. fi
  15408. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15409. if test -n "$PKG_CONFIG"; then
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15411. $as_echo "$PKG_CONFIG" >&6; }
  15412. else
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15414. $as_echo "no" >&6; }
  15415. fi
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15417. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15418. if test x$PKG_CONFIG != xno; then
  15419. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15420. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15421. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15422. audio_jack=yes
  15423. fi
  15424. fi
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15426. $as_echo "$audio_jack" >&6; }
  15427. if test x$audio_jack = xyes; then
  15428. # Check whether --enable-jack-shared was given.
  15429. if test "${enable_jack_shared+set}" = set; then :
  15430. enableval=$enable_jack_shared;
  15431. else
  15432. enable_jack_shared=yes
  15433. fi
  15434. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15435. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15436. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15437. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15438. if test x$have_loadso != xyes && \
  15439. test x$enable_jack_shared = xyes; then
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15441. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15442. fi
  15443. if test x$have_loadso = xyes && \
  15444. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15445. echo "-- dynamic libjack -> $jack_lib"
  15446. cat >>confdefs.h <<_ACEOF
  15447. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15448. _ACEOF
  15449. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15450. case "$host" in
  15451. # On Solaris, jack must be linked deferred explicitly
  15452. # to prevent undefined symbol failures.
  15453. *-*-solaris*)
  15454. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15456. esac
  15457. else
  15458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15459. SUMMARY_audio="${SUMMARY_audio} jack"
  15460. fi
  15461. have_audio=yes
  15462. fi
  15463. fi
  15464. }
  15465. CheckESD()
  15466. {
  15467. # Check whether --enable-esd was given.
  15468. if test "${enable_esd+set}" = set; then :
  15469. enableval=$enable_esd;
  15470. else
  15471. enable_esd=yes
  15472. fi
  15473. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15474. # Check whether --with-esd-prefix was given.
  15475. if test "${with_esd_prefix+set}" = set; then :
  15476. withval=$with_esd_prefix; esd_prefix="$withval"
  15477. else
  15478. esd_prefix=""
  15479. fi
  15480. # Check whether --with-esd-exec-prefix was given.
  15481. if test "${with_esd_exec_prefix+set}" = set; then :
  15482. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15483. else
  15484. esd_exec_prefix=""
  15485. fi
  15486. # Check whether --enable-esdtest was given.
  15487. if test "${enable_esdtest+set}" = set; then :
  15488. enableval=$enable_esdtest;
  15489. else
  15490. enable_esdtest=yes
  15491. fi
  15492. if test x$esd_exec_prefix != x ; then
  15493. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15494. if test x${ESD_CONFIG+set} != xset ; then
  15495. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15496. fi
  15497. fi
  15498. if test x$esd_prefix != x ; then
  15499. esd_args="$esd_args --prefix=$esd_prefix"
  15500. if test x${ESD_CONFIG+set} != xset ; then
  15501. ESD_CONFIG=$esd_prefix/bin/esd-config
  15502. fi
  15503. fi
  15504. # Extract the first word of "esd-config", so it can be a program name with args.
  15505. set dummy esd-config; ac_word=$2
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15507. $as_echo_n "checking for $ac_word... " >&6; }
  15508. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15509. $as_echo_n "(cached) " >&6
  15510. else
  15511. case $ESD_CONFIG in
  15512. [\\/]* | ?:[\\/]*)
  15513. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15514. ;;
  15515. *)
  15516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15517. for as_dir in $PATH
  15518. do
  15519. IFS=$as_save_IFS
  15520. test -z "$as_dir" && as_dir=.
  15521. for ac_exec_ext in '' $ac_executable_extensions; do
  15522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15523. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15525. break 2
  15526. fi
  15527. done
  15528. done
  15529. IFS=$as_save_IFS
  15530. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15531. ;;
  15532. esac
  15533. fi
  15534. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15535. if test -n "$ESD_CONFIG"; then
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15537. $as_echo "$ESD_CONFIG" >&6; }
  15538. else
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15540. $as_echo "no" >&6; }
  15541. fi
  15542. min_esd_version=0.2.8
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15544. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15545. no_esd=""
  15546. if test "$ESD_CONFIG" = "no" ; then
  15547. no_esd=yes
  15548. else
  15549. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15550. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15551. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15552. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15553. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15554. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15555. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15556. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15557. if test "x$enable_esdtest" = "xyes" ; then
  15558. ac_save_CFLAGS="$CFLAGS"
  15559. ac_save_LIBS="$LIBS"
  15560. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15561. LIBS="$LIBS $ESD_LIBS"
  15562. rm -f conf.esdtest
  15563. if test "$cross_compiling" = yes; then :
  15564. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15565. else
  15566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15567. /* end confdefs.h. */
  15568. #include <stdio.h>
  15569. #include <stdlib.h>
  15570. #include <string.h>
  15571. #include <esd.h>
  15572. char*
  15573. my_strdup (char *str)
  15574. {
  15575. char *new_str;
  15576. if (str)
  15577. {
  15578. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15579. strcpy (new_str, str);
  15580. }
  15581. else
  15582. new_str = NULL;
  15583. return new_str;
  15584. }
  15585. int main ()
  15586. {
  15587. int major, minor, micro;
  15588. char *tmp_version;
  15589. system ("touch conf.esdtest");
  15590. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15591. tmp_version = my_strdup("$min_esd_version");
  15592. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15593. printf("%s, bad version string\n", "$min_esd_version");
  15594. exit(1);
  15595. }
  15596. if (($esd_major_version > major) ||
  15597. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15598. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15599. {
  15600. return 0;
  15601. }
  15602. else
  15603. {
  15604. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15605. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15606. printf("*** best to upgrade to the required version.\n");
  15607. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15608. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15609. printf("*** config.cache before re-running configure\n");
  15610. return 1;
  15611. }
  15612. }
  15613. _ACEOF
  15614. if ac_fn_c_try_run "$LINENO"; then :
  15615. else
  15616. no_esd=yes
  15617. fi
  15618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15619. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15620. fi
  15621. CFLAGS="$ac_save_CFLAGS"
  15622. LIBS="$ac_save_LIBS"
  15623. fi
  15624. fi
  15625. if test "x$no_esd" = x ; then
  15626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15627. $as_echo "yes" >&6; }
  15628. have_esd=yes
  15629. else
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15631. $as_echo "no" >&6; }
  15632. if test "$ESD_CONFIG" = "no" ; then
  15633. echo "*** The esd-config script installed by ESD could not be found"
  15634. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15635. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15636. echo "*** full path to esd-config."
  15637. else
  15638. if test -f conf.esdtest ; then
  15639. :
  15640. else
  15641. echo "*** Could not run ESD test program, checking why..."
  15642. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15643. LIBS="$LIBS $ESD_LIBS"
  15644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15645. /* end confdefs.h. */
  15646. #include <stdio.h>
  15647. #include <esd.h>
  15648. int
  15649. main ()
  15650. {
  15651. return 0;
  15652. ;
  15653. return 0;
  15654. }
  15655. _ACEOF
  15656. if ac_fn_c_try_link "$LINENO"; then :
  15657. echo "*** The test program compiled, but did not run. This usually means"
  15658. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15659. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15660. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15661. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15662. echo "*** is required on your system"
  15663. echo "***"
  15664. echo "*** If you have an old version installed, it is best to remove it, although"
  15665. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15666. else
  15667. echo "*** The test program failed to compile or link. See the file config.log for the"
  15668. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15669. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15670. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15671. fi
  15672. rm -f core conftest.err conftest.$ac_objext \
  15673. conftest$ac_exeext conftest.$ac_ext
  15674. CFLAGS="$ac_save_CFLAGS"
  15675. LIBS="$ac_save_LIBS"
  15676. fi
  15677. fi
  15678. ESD_CFLAGS=""
  15679. ESD_LIBS=""
  15680. have_esd=no
  15681. fi
  15682. rm -f conf.esdtest
  15683. if test x$have_esd = xyes; then
  15684. # Check whether --enable-esd-shared was given.
  15685. if test "${enable_esd_shared+set}" = set; then :
  15686. enableval=$enable_esd_shared;
  15687. else
  15688. enable_esd_shared=yes
  15689. fi
  15690. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15691. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15692. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15693. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15694. if test x$have_loadso != xyes && \
  15695. test x$enable_esd_shared = xyes; then
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15697. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15698. fi
  15699. if test x$have_loadso = xyes && \
  15700. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15701. echo "-- dynamic libesd -> $esd_lib"
  15702. cat >>confdefs.h <<_ACEOF
  15703. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15704. _ACEOF
  15705. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15706. else
  15707. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15708. SUMMARY_audio="${SUMMARY_audio} esd"
  15709. fi
  15710. have_audio=yes
  15711. fi
  15712. fi
  15713. }
  15714. CheckPulseAudio()
  15715. {
  15716. # Check whether --enable-pulseaudio was given.
  15717. if test "${enable_pulseaudio+set}" = set; then :
  15718. enableval=$enable_pulseaudio;
  15719. else
  15720. enable_pulseaudio=yes
  15721. fi
  15722. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15723. audio_pulseaudio=no
  15724. PULSEAUDIO_REQUIRED_VERSION=0.9
  15725. # Extract the first word of "pkg-config", so it can be a program name with args.
  15726. set dummy pkg-config; ac_word=$2
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15728. $as_echo_n "checking for $ac_word... " >&6; }
  15729. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15730. $as_echo_n "(cached) " >&6
  15731. else
  15732. case $PKG_CONFIG in
  15733. [\\/]* | ?:[\\/]*)
  15734. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15735. ;;
  15736. *)
  15737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15738. for as_dir in $PATH
  15739. do
  15740. IFS=$as_save_IFS
  15741. test -z "$as_dir" && as_dir=.
  15742. for ac_exec_ext in '' $ac_executable_extensions; do
  15743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15744. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15746. break 2
  15747. fi
  15748. done
  15749. done
  15750. IFS=$as_save_IFS
  15751. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15752. ;;
  15753. esac
  15754. fi
  15755. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15756. if test -n "$PKG_CONFIG"; then
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15758. $as_echo "$PKG_CONFIG" >&6; }
  15759. else
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15761. $as_echo "no" >&6; }
  15762. fi
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15764. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15765. if test x$PKG_CONFIG != xno; then
  15766. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15767. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15768. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15769. audio_pulseaudio=yes
  15770. fi
  15771. fi
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15773. $as_echo "$audio_pulseaudio" >&6; }
  15774. if test x$audio_pulseaudio = xyes; then
  15775. # Check whether --enable-pulseaudio-shared was given.
  15776. if test "${enable_pulseaudio_shared+set}" = set; then :
  15777. enableval=$enable_pulseaudio_shared;
  15778. else
  15779. enable_pulseaudio_shared=yes
  15780. fi
  15781. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15782. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15783. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15784. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15785. if test x$have_loadso != xyes && \
  15786. test x$enable_pulseaudio_shared = xyes; then
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15788. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15789. fi
  15790. if test x$have_loadso = xyes && \
  15791. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15792. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15793. cat >>confdefs.h <<_ACEOF
  15794. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15795. _ACEOF
  15796. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15797. case "$host" in
  15798. # On Solaris, pulseaudio must be linked deferred explicitly
  15799. # to prevent undefined symbol failures.
  15800. *-*-solaris*)
  15801. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15802. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15803. esac
  15804. else
  15805. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15806. SUMMARY_audio="${SUMMARY_audio} pulse"
  15807. fi
  15808. have_audio=yes
  15809. fi
  15810. fi
  15811. }
  15812. CheckARTSC()
  15813. {
  15814. # Check whether --enable-arts was given.
  15815. if test "${enable_arts+set}" = set; then :
  15816. enableval=$enable_arts;
  15817. else
  15818. enable_arts=yes
  15819. fi
  15820. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15821. # Extract the first word of "artsc-config", so it can be a program name with args.
  15822. set dummy artsc-config; ac_word=$2
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15824. $as_echo_n "checking for $ac_word... " >&6; }
  15825. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15826. $as_echo_n "(cached) " >&6
  15827. else
  15828. case $ARTSCONFIG in
  15829. [\\/]* | ?:[\\/]*)
  15830. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15831. ;;
  15832. *)
  15833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15834. for as_dir in $PATH
  15835. do
  15836. IFS=$as_save_IFS
  15837. test -z "$as_dir" && as_dir=.
  15838. for ac_exec_ext in '' $ac_executable_extensions; do
  15839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15840. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15842. break 2
  15843. fi
  15844. done
  15845. done
  15846. IFS=$as_save_IFS
  15847. ;;
  15848. esac
  15849. fi
  15850. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15851. if test -n "$ARTSCONFIG"; then
  15852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15853. $as_echo "$ARTSCONFIG" >&6; }
  15854. else
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15856. $as_echo "no" >&6; }
  15857. fi
  15858. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15859. : # arts isn't installed
  15860. else
  15861. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15862. ARTS_LIBS=`$ARTSCONFIG --libs`
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15864. $as_echo_n "checking for aRts development environment... " >&6; }
  15865. audio_arts=no
  15866. save_CFLAGS="$CFLAGS"
  15867. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15869. /* end confdefs.h. */
  15870. #include <artsc.h>
  15871. int
  15872. main ()
  15873. {
  15874. arts_stream_t stream;
  15875. ;
  15876. return 0;
  15877. }
  15878. _ACEOF
  15879. if ac_fn_c_try_compile "$LINENO"; then :
  15880. audio_arts=yes
  15881. fi
  15882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15883. CFLAGS="$save_CFLAGS"
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15885. $as_echo "$audio_arts" >&6; }
  15886. if test x$audio_arts = xyes; then
  15887. # Check whether --enable-arts-shared was given.
  15888. if test "${enable_arts_shared+set}" = set; then :
  15889. enableval=$enable_arts_shared;
  15890. else
  15891. enable_arts_shared=yes
  15892. fi
  15893. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15894. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15895. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15896. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15897. if test x$have_loadso != xyes && \
  15898. test x$enable_arts_shared = xyes; then
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15900. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15901. fi
  15902. if test x$have_loadso = xyes && \
  15903. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15904. echo "-- dynamic libartsc -> $arts_lib"
  15905. cat >>confdefs.h <<_ACEOF
  15906. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15907. _ACEOF
  15908. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15909. else
  15910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15911. SUMMARY_audio="${SUMMARY_audio} arts"
  15912. fi
  15913. have_audio=yes
  15914. fi
  15915. fi
  15916. fi
  15917. }
  15918. CheckNAS()
  15919. {
  15920. # Check whether --enable-nas was given.
  15921. if test "${enable_nas+set}" = set; then :
  15922. enableval=$enable_nas;
  15923. else
  15924. enable_nas=yes
  15925. fi
  15926. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15927. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15928. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15929. have_nas_hdr=yes
  15930. fi
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15932. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15933. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15934. $as_echo_n "(cached) " >&6
  15935. else
  15936. ac_check_lib_save_LIBS=$LIBS
  15937. LIBS="-laudio $LIBS"
  15938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15939. /* end confdefs.h. */
  15940. /* Override any GCC internal prototype to avoid an error.
  15941. Use char because int might match the return type of a GCC
  15942. builtin and then its argument prototype would still apply. */
  15943. #ifdef __cplusplus
  15944. extern "C"
  15945. #endif
  15946. char AuOpenServer ();
  15947. int
  15948. main ()
  15949. {
  15950. return AuOpenServer ();
  15951. ;
  15952. return 0;
  15953. }
  15954. _ACEOF
  15955. if ac_fn_c_try_link "$LINENO"; then :
  15956. ac_cv_lib_audio_AuOpenServer=yes
  15957. else
  15958. ac_cv_lib_audio_AuOpenServer=no
  15959. fi
  15960. rm -f core conftest.err conftest.$ac_objext \
  15961. conftest$ac_exeext conftest.$ac_ext
  15962. LIBS=$ac_check_lib_save_LIBS
  15963. fi
  15964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15965. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15966. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15967. have_nas_lib=yes
  15968. fi
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15970. $as_echo_n "checking for NAS audio support... " >&6; }
  15971. have_nas=no
  15972. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15973. have_nas=yes
  15974. NAS_LIBS="-laudio"
  15975. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15976. have_nas=yes
  15977. NAS_CFLAGS="-I/usr/X11R6/include/"
  15978. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15981. $as_echo "$have_nas" >&6; }
  15982. if test x$have_nas = xyes; then
  15983. # Check whether --enable-nas-shared was given.
  15984. if test "${enable_nas_shared+set}" = set; then :
  15985. enableval=$enable_nas_shared;
  15986. else
  15987. enable_nas_shared=yes
  15988. fi
  15989. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15990. if test x$have_loadso != xyes && \
  15991. test x$enable_nas_shared = xyes; then
  15992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  15993. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  15994. fi
  15995. if test x$have_loadso = xyes && \
  15996. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  15997. echo "-- dynamic libaudio -> $nas_lib"
  15998. cat >>confdefs.h <<_ACEOF
  15999. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16000. _ACEOF
  16001. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16002. else
  16003. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16004. SUMMARY_audio="${SUMMARY_audio} nas"
  16005. fi
  16006. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16007. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16008. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16009. have_audio=yes
  16010. fi
  16011. fi
  16012. }
  16013. CheckSNDIO()
  16014. {
  16015. # Check whether --enable-sndio was given.
  16016. if test "${enable_sndio+set}" = set; then :
  16017. enableval=$enable_sndio;
  16018. else
  16019. enable_sndio=yes
  16020. fi
  16021. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16022. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16023. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16024. have_sndio_hdr=yes
  16025. fi
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16027. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16028. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16029. $as_echo_n "(cached) " >&6
  16030. else
  16031. ac_check_lib_save_LIBS=$LIBS
  16032. LIBS="-lsndio $LIBS"
  16033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16034. /* end confdefs.h. */
  16035. /* Override any GCC internal prototype to avoid an error.
  16036. Use char because int might match the return type of a GCC
  16037. builtin and then its argument prototype would still apply. */
  16038. #ifdef __cplusplus
  16039. extern "C"
  16040. #endif
  16041. char sio_open ();
  16042. int
  16043. main ()
  16044. {
  16045. return sio_open ();
  16046. ;
  16047. return 0;
  16048. }
  16049. _ACEOF
  16050. if ac_fn_c_try_link "$LINENO"; then :
  16051. ac_cv_lib_sndio_sio_open=yes
  16052. else
  16053. ac_cv_lib_sndio_sio_open=no
  16054. fi
  16055. rm -f core conftest.err conftest.$ac_objext \
  16056. conftest$ac_exeext conftest.$ac_ext
  16057. LIBS=$ac_check_lib_save_LIBS
  16058. fi
  16059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16060. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16061. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16062. have_sndio_lib=yes
  16063. fi
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16065. $as_echo_n "checking for sndio audio support... " >&6; }
  16066. have_sndio=no
  16067. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16068. have_sndio=yes
  16069. SNDIO_LIBS="-lsndio"
  16070. fi
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16072. $as_echo "$have_sndio" >&6; }
  16073. if test x$have_sndio = xyes; then
  16074. # Check whether --enable-sndio-shared was given.
  16075. if test "${enable_sndio_shared+set}" = set; then :
  16076. enableval=$enable_sndio_shared;
  16077. else
  16078. enable_sndio_shared=yes
  16079. fi
  16080. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16081. if test x$have_loadso != xyes && \
  16082. test x$enable_sndio_shared = xyes; then
  16083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16084. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16085. fi
  16086. if test x$have_loadso = xyes && \
  16087. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16088. echo "-- dynamic libsndio -> $sndio_lib"
  16089. cat >>confdefs.h <<_ACEOF
  16090. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16091. _ACEOF
  16092. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16093. else
  16094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16095. SUMMARY_audio="${SUMMARY_audio} sndio"
  16096. fi
  16097. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16098. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16099. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16100. have_audio=yes
  16101. fi
  16102. fi
  16103. }
  16104. CheckFusionSound()
  16105. {
  16106. # Check whether --enable-fusionsound was given.
  16107. if test "${enable_fusionsound+set}" = set; then :
  16108. enableval=$enable_fusionsound;
  16109. else
  16110. enable_fusionsound=no
  16111. fi
  16112. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16113. fusionsound=no
  16114. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16115. # Extract the first word of "pkg-config", so it can be a program name with args.
  16116. set dummy pkg-config; ac_word=$2
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16118. $as_echo_n "checking for $ac_word... " >&6; }
  16119. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16120. $as_echo_n "(cached) " >&6
  16121. else
  16122. case $PKG_CONFIG in
  16123. [\\/]* | ?:[\\/]*)
  16124. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16125. ;;
  16126. *)
  16127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16128. for as_dir in $PATH
  16129. do
  16130. IFS=$as_save_IFS
  16131. test -z "$as_dir" && as_dir=.
  16132. for ac_exec_ext in '' $ac_executable_extensions; do
  16133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16134. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16136. break 2
  16137. fi
  16138. done
  16139. done
  16140. IFS=$as_save_IFS
  16141. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16142. ;;
  16143. esac
  16144. fi
  16145. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16146. if test -n "$PKG_CONFIG"; then
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16148. $as_echo "$PKG_CONFIG" >&6; }
  16149. else
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16151. $as_echo "no" >&6; }
  16152. fi
  16153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16154. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16155. if test x$PKG_CONFIG != xno; then
  16156. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16157. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16158. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16159. fusionsound=yes
  16160. fi
  16161. fi
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16163. $as_echo "$fusionsound" >&6; }
  16164. if test x$fusionsound = xyes; then
  16165. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16166. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16167. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16168. # Check whether --enable-fusionsound-shared was given.
  16169. if test "${enable_fusionsound_shared+set}" = set; then :
  16170. enableval=$enable_fusionsound_shared;
  16171. else
  16172. enable_fusionsound_shared=yes
  16173. fi
  16174. fusionsound_shared=no
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16176. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16177. if test x$have_loadso != xyes && \
  16178. test x$enable_fusionsound_shared = xyes; then
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16180. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16181. fi
  16182. if test x$have_loadso = xyes && \
  16183. test x$enable_fusionsound_shared = xyes; then
  16184. cat >>confdefs.h <<_ACEOF
  16185. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16186. _ACEOF
  16187. fusionsound_shared=yes
  16188. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16189. else
  16190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16191. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16192. fi
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16194. $as_echo "$fusionsound_shared" >&6; }
  16195. have_audio=yes
  16196. fi
  16197. fi
  16198. }
  16199. CheckDiskAudio()
  16200. {
  16201. # Check whether --enable-diskaudio was given.
  16202. if test "${enable_diskaudio+set}" = set; then :
  16203. enableval=$enable_diskaudio;
  16204. else
  16205. enable_diskaudio=yes
  16206. fi
  16207. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16208. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16209. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16210. SUMMARY_audio="${SUMMARY_audio} disk"
  16211. fi
  16212. }
  16213. CheckDummyAudio()
  16214. {
  16215. # Check whether --enable-dummyaudio was given.
  16216. if test "${enable_dummyaudio+set}" = set; then :
  16217. enableval=$enable_dummyaudio;
  16218. else
  16219. enable_dummyaudio=yes
  16220. fi
  16221. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16222. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16223. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16224. SUMMARY_audio="${SUMMARY_audio} dummy"
  16225. fi
  16226. }
  16227. CheckLibSampleRate()
  16228. {
  16229. # Check whether --enable-libsamplerate was given.
  16230. if test "${enable_libsamplerate+set}" = set; then :
  16231. enableval=$enable_libsamplerate;
  16232. else
  16233. enable_libsamplerate=yes
  16234. fi
  16235. if test x$enable_libsamplerate = xyes; then
  16236. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16237. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16238. have_samplerate_h_hdr=yes
  16239. else
  16240. have_samplerate_h_hdr=no
  16241. fi
  16242. if test x$have_samplerate_h_hdr = xyes; then
  16243. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16244. # Check whether --enable-libsamplerate-shared was given.
  16245. if test "${enable_libsamplerate_shared+set}" = set; then :
  16246. enableval=$enable_libsamplerate_shared;
  16247. else
  16248. enable_libsamplerate_shared=yes
  16249. fi
  16250. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16251. if test x$have_loadso != xyes && \
  16252. test x$enable_libsamplerate_shared = xyes; then
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16254. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16255. fi
  16256. if test x$have_loadso = xyes && \
  16257. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16258. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16259. cat >>confdefs.h <<_ACEOF
  16260. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16261. _ACEOF
  16262. else
  16263. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16264. fi
  16265. fi
  16266. fi
  16267. }
  16268. CheckVisibilityHidden()
  16269. {
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16271. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16272. have_gcc_fvisibility=no
  16273. visibility_CFLAGS="-fvisibility=hidden"
  16274. save_CFLAGS="$CFLAGS"
  16275. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16277. /* end confdefs.h. */
  16278. #if !defined(__GNUC__) || __GNUC__ < 4
  16279. #error SDL only uses visibility attributes in GCC 4 or newer
  16280. #endif
  16281. int
  16282. main ()
  16283. {
  16284. ;
  16285. return 0;
  16286. }
  16287. _ACEOF
  16288. if ac_fn_c_try_compile "$LINENO"; then :
  16289. have_gcc_fvisibility=yes
  16290. fi
  16291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16293. $as_echo "$have_gcc_fvisibility" >&6; }
  16294. CFLAGS="$save_CFLAGS"
  16295. if test x$have_gcc_fvisibility = xyes; then
  16296. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16297. fi
  16298. }
  16299. CheckStackBoundary()
  16300. {
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16302. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16303. have_gcc_preferred_stack_boundary=no
  16304. save_CFLAGS="$CFLAGS"
  16305. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16307. /* end confdefs.h. */
  16308. int x = 0;
  16309. int
  16310. main ()
  16311. {
  16312. ;
  16313. return 0;
  16314. }
  16315. _ACEOF
  16316. if ac_fn_c_try_compile "$LINENO"; then :
  16317. have_gcc_preferred_stack_boundary=yes
  16318. fi
  16319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16321. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16322. CFLAGS="$save_CFLAGS"
  16323. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16324. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16325. fi
  16326. }
  16327. CheckDeclarationAfterStatement()
  16328. {
  16329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16330. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16331. have_gcc_declaration_after_statement=no
  16332. save_CFLAGS="$CFLAGS"
  16333. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16335. /* end confdefs.h. */
  16336. int x = 0;
  16337. int
  16338. main ()
  16339. {
  16340. ;
  16341. return 0;
  16342. }
  16343. _ACEOF
  16344. if ac_fn_c_try_compile "$LINENO"; then :
  16345. have_gcc_declaration_after_statement=yes
  16346. fi
  16347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16349. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16350. CFLAGS="$save_CFLAGS"
  16351. if test x$have_gcc_declaration_after_statement = xyes; then
  16352. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16353. fi
  16354. }
  16355. CheckWarnAll()
  16356. {
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16358. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16359. have_gcc_Wall=no
  16360. save_CFLAGS="$CFLAGS"
  16361. CFLAGS="$save_CFLAGS -Wall"
  16362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16363. /* end confdefs.h. */
  16364. int x = 0;
  16365. int
  16366. main ()
  16367. {
  16368. ;
  16369. return 0;
  16370. }
  16371. _ACEOF
  16372. if ac_fn_c_try_compile "$LINENO"; then :
  16373. have_gcc_Wall=yes
  16374. fi
  16375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16377. $as_echo "$have_gcc_Wall" >&6; }
  16378. CFLAGS="$save_CFLAGS"
  16379. if test x$have_gcc_Wall = xyes; then
  16380. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16382. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16383. need_gcc_Wno_multichar=no
  16384. case "$host" in
  16385. *-*-haiku*)
  16386. need_gcc_Wno_multichar=yes
  16387. ;;
  16388. esac
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16390. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16391. if test x$need_gcc_Wno_multichar = xyes; then
  16392. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16393. fi
  16394. fi
  16395. }
  16396. CheckWayland()
  16397. {
  16398. # Check whether --enable-video-wayland was given.
  16399. if test "${enable_video_wayland+set}" = set; then :
  16400. enableval=$enable_video_wayland;
  16401. else
  16402. enable_video_wayland=yes
  16403. fi
  16404. # Check whether --enable-video-wayland-qt-touch was given.
  16405. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16406. enableval=$enable_video_wayland_qt_touch;
  16407. else
  16408. enable_video_wayland_qt_touch=yes
  16409. fi
  16410. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16411. # Extract the first word of "pkg-config", so it can be a program name with args.
  16412. set dummy pkg-config; ac_word=$2
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16414. $as_echo_n "checking for $ac_word... " >&6; }
  16415. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16416. $as_echo_n "(cached) " >&6
  16417. else
  16418. case $PKG_CONFIG in
  16419. [\\/]* | ?:[\\/]*)
  16420. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16421. ;;
  16422. *)
  16423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16424. for as_dir in $PATH
  16425. do
  16426. IFS=$as_save_IFS
  16427. test -z "$as_dir" && as_dir=.
  16428. for ac_exec_ext in '' $ac_executable_extensions; do
  16429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16430. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16432. break 2
  16433. fi
  16434. done
  16435. done
  16436. IFS=$as_save_IFS
  16437. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16438. ;;
  16439. esac
  16440. fi
  16441. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16442. if test -n "$PKG_CONFIG"; then
  16443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16444. $as_echo "$PKG_CONFIG" >&6; }
  16445. else
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16447. $as_echo "no" >&6; }
  16448. fi
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16450. $as_echo_n "checking for Wayland support... " >&6; }
  16451. video_wayland=no
  16452. if test x$PKG_CONFIG != xno && \
  16453. test x$video_opengl_egl = xyes && \
  16454. test x$video_opengles_v2 = xyes; then
  16455. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16456. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16457. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16458. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16459. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16460. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16461. video_wayland=yes
  16462. fi
  16463. fi
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16465. $as_echo "$video_wayland" >&6; }
  16466. if test x$video_wayland = xyes; then
  16467. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16468. if test x$enable_video_wayland_qt_touch = xyes; then
  16469. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16470. fi
  16471. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16472. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16473. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16474. # Check whether --enable-wayland-shared was given.
  16475. if test "${enable_wayland_shared+set}" = set; then :
  16476. enableval=$enable_wayland_shared;
  16477. else
  16478. enable_wayland_shared=maybe
  16479. fi
  16480. case "$host" in
  16481. *)
  16482. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16483. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16484. if test x$wayland_egl_lib = x; then
  16485. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16486. fi
  16487. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16488. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16489. ;;
  16490. esac
  16491. if test x$enable_wayland_shared = xmaybe; then
  16492. enable_wayland_shared=yes
  16493. fi
  16494. if test x$have_loadso != xyes && \
  16495. test x$enable_wayland_shared = xyes; then
  16496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16497. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16498. enable_wayland_shared=no
  16499. fi
  16500. if test x$have_loadso = xyes && \
  16501. test x$enable_wayland_shared = xyes && \
  16502. test x$wayland_client_lib != x && \
  16503. test x$wayland_egl_lib != x && \
  16504. test x$wayland_cursor_lib != x && \
  16505. test x$xkbcommon_lib != x; then
  16506. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16507. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16508. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16509. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16510. cat >>confdefs.h <<_ACEOF
  16511. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16512. _ACEOF
  16513. cat >>confdefs.h <<_ACEOF
  16514. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16515. _ACEOF
  16516. cat >>confdefs.h <<_ACEOF
  16517. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16518. _ACEOF
  16519. cat >>confdefs.h <<_ACEOF
  16520. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16521. _ACEOF
  16522. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16523. else
  16524. enable_wayland_shared=no
  16525. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16526. SUMMARY_video="${SUMMARY_video} wayland"
  16527. fi
  16528. have_video=yes
  16529. fi
  16530. fi
  16531. }
  16532. CheckMir()
  16533. {
  16534. # Check whether --enable-video-mir was given.
  16535. if test "${enable_video_mir+set}" = set; then :
  16536. enableval=$enable_video_mir;
  16537. else
  16538. enable_video_mir=yes
  16539. fi
  16540. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16541. # Extract the first word of "pkg-config", so it can be a program name with args.
  16542. set dummy pkg-config; ac_word=$2
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16544. $as_echo_n "checking for $ac_word... " >&6; }
  16545. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16546. $as_echo_n "(cached) " >&6
  16547. else
  16548. case $PKG_CONFIG in
  16549. [\\/]* | ?:[\\/]*)
  16550. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16551. ;;
  16552. *)
  16553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16554. for as_dir in $PATH
  16555. do
  16556. IFS=$as_save_IFS
  16557. test -z "$as_dir" && as_dir=.
  16558. for ac_exec_ext in '' $ac_executable_extensions; do
  16559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16560. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16562. break 2
  16563. fi
  16564. done
  16565. done
  16566. IFS=$as_save_IFS
  16567. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16568. ;;
  16569. esac
  16570. fi
  16571. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16572. if test -n "$PKG_CONFIG"; then
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16574. $as_echo "$PKG_CONFIG" >&6; }
  16575. else
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16577. $as_echo "no" >&6; }
  16578. fi
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16580. $as_echo_n "checking for Mir support... " >&6; }
  16581. video_mir=no
  16582. if test x$PKG_CONFIG != xno; then
  16583. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16584. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16585. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16586. save_CFLAGS="$CFLAGS"
  16587. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16589. /* end confdefs.h. */
  16590. #include <mir_toolkit/mir_client_library.h>
  16591. int
  16592. main ()
  16593. {
  16594. MirWindowAttrib attrib = mir_window_attrib_state
  16595. ;
  16596. return 0;
  16597. }
  16598. _ACEOF
  16599. if ac_fn_c_try_compile "$LINENO"; then :
  16600. video_mir=yes
  16601. fi
  16602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16603. CFLAGS="$save_CFLAGS"
  16604. fi
  16605. fi
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16607. $as_echo "$video_mir" >&6; }
  16608. if test x$video_mir = xyes; then
  16609. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16610. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16611. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16612. # Check whether --enable-mir-shared was given.
  16613. if test "${enable_mir_shared+set}" = set; then :
  16614. enableval=$enable_mir_shared;
  16615. else
  16616. enable_mir_shared=maybe
  16617. fi
  16618. case "$host" in
  16619. *)
  16620. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16621. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16622. ;;
  16623. esac
  16624. if test x$enable_mir_shared = xmaybe; then
  16625. enable_mir_shared=yes
  16626. fi
  16627. if test x$have_loadso != xyes && \
  16628. test x$enable_mir_shared = xyes; then
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16630. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16631. enable_mir_shared=no
  16632. fi
  16633. if test x$have_loadso = xyes && \
  16634. test x$enable_mir_shared = xyes && \
  16635. test x$mirclient_lib != x && \
  16636. test x$xkbcommon_lib != x; then
  16637. echo "-- dynamic libmirclient -> $mirclient_lib"
  16638. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16639. cat >>confdefs.h <<_ACEOF
  16640. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16641. _ACEOF
  16642. cat >>confdefs.h <<_ACEOF
  16643. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16644. _ACEOF
  16645. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16646. else
  16647. enable_mir_shared=no
  16648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16649. SUMMARY_video="${SUMMARY_video} mir"
  16650. fi
  16651. have_video=yes
  16652. fi
  16653. fi
  16654. }
  16655. CheckNativeClient()
  16656. {
  16657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16658. /* end confdefs.h. */
  16659. #if !defined(__native_client__)
  16660. #error "NO NACL"
  16661. #endif
  16662. int
  16663. main ()
  16664. {
  16665. ;
  16666. return 0;
  16667. }
  16668. _ACEOF
  16669. if ac_fn_c_try_compile "$LINENO"; then :
  16670. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16671. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16672. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16673. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16674. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16675. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16676. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16677. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16678. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16679. SUMMARY_audio="${SUMMARY_audio} nacl"
  16680. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16681. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16682. fi
  16683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16684. }
  16685. CheckX11()
  16686. {
  16687. # Check whether --enable-video-x11 was given.
  16688. if test "${enable_video_x11+set}" = set; then :
  16689. enableval=$enable_video_x11;
  16690. else
  16691. enable_video_x11=yes
  16692. fi
  16693. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16694. case "$host" in
  16695. *-*-darwin*)
  16696. # This isn't necessary for X11, but fixes GLX detection
  16697. if test "x$x_includes" = xNONE && \
  16698. test "x$x_libraries" = xNONE && \
  16699. test -d /usr/X11R6/include && \
  16700. test -d /usr/X11R6/lib; then
  16701. x_includes="/usr/X11R6/include"
  16702. x_libraries="/usr/X11R6/lib"
  16703. fi
  16704. ;;
  16705. esac
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16707. $as_echo_n "checking for X... " >&6; }
  16708. # Check whether --with-x was given.
  16709. if test "${with_x+set}" = set; then :
  16710. withval=$with_x;
  16711. fi
  16712. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16713. if test "x$with_x" = xno; then
  16714. # The user explicitly disabled X.
  16715. have_x=disabled
  16716. else
  16717. case $x_includes,$x_libraries in #(
  16718. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16719. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16720. $as_echo_n "(cached) " >&6
  16721. else
  16722. # One or both of the vars are not set, and there is no cached value.
  16723. ac_x_includes=no ac_x_libraries=no
  16724. rm -f -r conftest.dir
  16725. if mkdir conftest.dir; then
  16726. cd conftest.dir
  16727. cat >Imakefile <<'_ACEOF'
  16728. incroot:
  16729. @echo incroot='${INCROOT}'
  16730. usrlibdir:
  16731. @echo usrlibdir='${USRLIBDIR}'
  16732. libdir:
  16733. @echo libdir='${LIBDIR}'
  16734. _ACEOF
  16735. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16736. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16737. for ac_var in incroot usrlibdir libdir; do
  16738. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16739. done
  16740. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16741. for ac_extension in a so sl dylib la dll; do
  16742. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16743. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16744. ac_im_usrlibdir=$ac_im_libdir; break
  16745. fi
  16746. done
  16747. # Screen out bogus values from the imake configuration. They are
  16748. # bogus both because they are the default anyway, and because
  16749. # using them would break gcc on systems where it needs fixed includes.
  16750. case $ac_im_incroot in
  16751. /usr/include) ac_x_includes= ;;
  16752. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16753. esac
  16754. case $ac_im_usrlibdir in
  16755. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16756. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16757. esac
  16758. fi
  16759. cd ..
  16760. rm -f -r conftest.dir
  16761. fi
  16762. # Standard set of common directories for X headers.
  16763. # Check X11 before X11Rn because it is often a symlink to the current release.
  16764. ac_x_header_dirs='
  16765. /usr/X11/include
  16766. /usr/X11R7/include
  16767. /usr/X11R6/include
  16768. /usr/X11R5/include
  16769. /usr/X11R4/include
  16770. /usr/include/X11
  16771. /usr/include/X11R7
  16772. /usr/include/X11R6
  16773. /usr/include/X11R5
  16774. /usr/include/X11R4
  16775. /usr/local/X11/include
  16776. /usr/local/X11R7/include
  16777. /usr/local/X11R6/include
  16778. /usr/local/X11R5/include
  16779. /usr/local/X11R4/include
  16780. /usr/local/include/X11
  16781. /usr/local/include/X11R7
  16782. /usr/local/include/X11R6
  16783. /usr/local/include/X11R5
  16784. /usr/local/include/X11R4
  16785. /usr/X386/include
  16786. /usr/x386/include
  16787. /usr/XFree86/include/X11
  16788. /usr/include
  16789. /usr/local/include
  16790. /usr/unsupported/include
  16791. /usr/athena/include
  16792. /usr/local/x11r5/include
  16793. /usr/lpp/Xamples/include
  16794. /usr/openwin/include
  16795. /usr/openwin/share/include'
  16796. if test "$ac_x_includes" = no; then
  16797. # Guess where to find include files, by looking for Xlib.h.
  16798. # First, try using that file with no special directory specified.
  16799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16800. /* end confdefs.h. */
  16801. #include <X11/Xlib.h>
  16802. _ACEOF
  16803. if ac_fn_c_try_cpp "$LINENO"; then :
  16804. # We can compile using X headers with no special include directory.
  16805. ac_x_includes=
  16806. else
  16807. for ac_dir in $ac_x_header_dirs; do
  16808. if test -r "$ac_dir/X11/Xlib.h"; then
  16809. ac_x_includes=$ac_dir
  16810. break
  16811. fi
  16812. done
  16813. fi
  16814. rm -f conftest.err conftest.i conftest.$ac_ext
  16815. fi # $ac_x_includes = no
  16816. if test "$ac_x_libraries" = no; then
  16817. # Check for the libraries.
  16818. # See if we find them without any special options.
  16819. # Don't add to $LIBS permanently.
  16820. ac_save_LIBS=$LIBS
  16821. LIBS="-lX11 $LIBS"
  16822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16823. /* end confdefs.h. */
  16824. #include <X11/Xlib.h>
  16825. int
  16826. main ()
  16827. {
  16828. XrmInitialize ()
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_link "$LINENO"; then :
  16834. LIBS=$ac_save_LIBS
  16835. # We can link X programs with no special library path.
  16836. ac_x_libraries=
  16837. else
  16838. LIBS=$ac_save_LIBS
  16839. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16840. do
  16841. # Don't even attempt the hair of trying to link an X program!
  16842. for ac_extension in a so sl dylib la dll; do
  16843. if test -r "$ac_dir/libX11.$ac_extension"; then
  16844. ac_x_libraries=$ac_dir
  16845. break 2
  16846. fi
  16847. done
  16848. done
  16849. fi
  16850. rm -f core conftest.err conftest.$ac_objext \
  16851. conftest$ac_exeext conftest.$ac_ext
  16852. fi # $ac_x_libraries = no
  16853. case $ac_x_includes,$ac_x_libraries in #(
  16854. no,* | *,no | *\'*)
  16855. # Didn't find X, or a directory has "'" in its name.
  16856. ac_cv_have_x="have_x=no";; #(
  16857. *)
  16858. # Record where we found X for the cache.
  16859. ac_cv_have_x="have_x=yes\
  16860. ac_x_includes='$ac_x_includes'\
  16861. ac_x_libraries='$ac_x_libraries'"
  16862. esac
  16863. fi
  16864. ;; #(
  16865. *) have_x=yes;;
  16866. esac
  16867. eval "$ac_cv_have_x"
  16868. fi # $with_x != no
  16869. if test "$have_x" != yes; then
  16870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16871. $as_echo "$have_x" >&6; }
  16872. no_x=yes
  16873. else
  16874. # If each of the values was on the command line, it overrides each guess.
  16875. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16876. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16877. # Update the cache value to reflect the command line values.
  16878. ac_cv_have_x="have_x=yes\
  16879. ac_x_includes='$x_includes'\
  16880. ac_x_libraries='$x_libraries'"
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16882. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16883. fi
  16884. if test "$no_x" = yes; then
  16885. # Not all programs may use this symbol, but it does not hurt to define it.
  16886. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16887. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16888. else
  16889. if test -n "$x_includes"; then
  16890. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16891. fi
  16892. # It would also be nice to do this for all -L options, not just this one.
  16893. if test -n "$x_libraries"; then
  16894. X_LIBS="$X_LIBS -L$x_libraries"
  16895. # For Solaris; some versions of Sun CC require a space after -R and
  16896. # others require no space. Words are not sufficient . . . .
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16898. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16899. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16900. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16901. ac_c_werror_flag=yes
  16902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16903. /* end confdefs.h. */
  16904. int
  16905. main ()
  16906. {
  16907. ;
  16908. return 0;
  16909. }
  16910. _ACEOF
  16911. if ac_fn_c_try_link "$LINENO"; then :
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16913. $as_echo "no" >&6; }
  16914. X_LIBS="$X_LIBS -R$x_libraries"
  16915. else
  16916. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. /* end confdefs.h. */
  16919. int
  16920. main ()
  16921. {
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. if ac_fn_c_try_link "$LINENO"; then :
  16927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16928. $as_echo "yes" >&6; }
  16929. X_LIBS="$X_LIBS -R $x_libraries"
  16930. else
  16931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  16932. $as_echo "neither works" >&6; }
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. fi
  16937. rm -f core conftest.err conftest.$ac_objext \
  16938. conftest$ac_exeext conftest.$ac_ext
  16939. ac_c_werror_flag=$ac_xsave_c_werror_flag
  16940. LIBS=$ac_xsave_LIBS
  16941. fi
  16942. # Check for system-dependent libraries X programs must link with.
  16943. # Do this before checking for the system-independent R6 libraries
  16944. # (-lICE), since we may need -lsocket or whatever for X linking.
  16945. if test "$ISC" = yes; then
  16946. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  16947. else
  16948. # Martyn Johnson says this is needed for Ultrix, if the X
  16949. # libraries were built with DECnet support. And Karl Berry says
  16950. # the Alpha needs dnet_stub (dnet does not exist).
  16951. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  16952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16953. /* end confdefs.h. */
  16954. /* Override any GCC internal prototype to avoid an error.
  16955. Use char because int might match the return type of a GCC
  16956. builtin and then its argument prototype would still apply. */
  16957. #ifdef __cplusplus
  16958. extern "C"
  16959. #endif
  16960. char XOpenDisplay ();
  16961. int
  16962. main ()
  16963. {
  16964. return XOpenDisplay ();
  16965. ;
  16966. return 0;
  16967. }
  16968. _ACEOF
  16969. if ac_fn_c_try_link "$LINENO"; then :
  16970. else
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  16972. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  16973. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  16974. $as_echo_n "(cached) " >&6
  16975. else
  16976. ac_check_lib_save_LIBS=$LIBS
  16977. LIBS="-ldnet $LIBS"
  16978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16979. /* end confdefs.h. */
  16980. /* Override any GCC internal prototype to avoid an error.
  16981. Use char because int might match the return type of a GCC
  16982. builtin and then its argument prototype would still apply. */
  16983. #ifdef __cplusplus
  16984. extern "C"
  16985. #endif
  16986. char dnet_ntoa ();
  16987. int
  16988. main ()
  16989. {
  16990. return dnet_ntoa ();
  16991. ;
  16992. return 0;
  16993. }
  16994. _ACEOF
  16995. if ac_fn_c_try_link "$LINENO"; then :
  16996. ac_cv_lib_dnet_dnet_ntoa=yes
  16997. else
  16998. ac_cv_lib_dnet_dnet_ntoa=no
  16999. fi
  17000. rm -f core conftest.err conftest.$ac_objext \
  17001. conftest$ac_exeext conftest.$ac_ext
  17002. LIBS=$ac_check_lib_save_LIBS
  17003. fi
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17005. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17006. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17007. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17008. fi
  17009. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17011. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17012. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17013. $as_echo_n "(cached) " >&6
  17014. else
  17015. ac_check_lib_save_LIBS=$LIBS
  17016. LIBS="-ldnet_stub $LIBS"
  17017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17018. /* end confdefs.h. */
  17019. /* Override any GCC internal prototype to avoid an error.
  17020. Use char because int might match the return type of a GCC
  17021. builtin and then its argument prototype would still apply. */
  17022. #ifdef __cplusplus
  17023. extern "C"
  17024. #endif
  17025. char dnet_ntoa ();
  17026. int
  17027. main ()
  17028. {
  17029. return dnet_ntoa ();
  17030. ;
  17031. return 0;
  17032. }
  17033. _ACEOF
  17034. if ac_fn_c_try_link "$LINENO"; then :
  17035. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17036. else
  17037. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17038. fi
  17039. rm -f core conftest.err conftest.$ac_objext \
  17040. conftest$ac_exeext conftest.$ac_ext
  17041. LIBS=$ac_check_lib_save_LIBS
  17042. fi
  17043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17044. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17045. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17046. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17047. fi
  17048. fi
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. LIBS="$ac_xsave_LIBS"
  17053. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17054. # to get the SysV transport functions.
  17055. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17056. # needs -lnsl.
  17057. # The nsl library prevents programs from opening the X display
  17058. # on Irix 5.2, according to T.E. Dickey.
  17059. # The functions gethostbyname, getservbyname, and inet_addr are
  17060. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17061. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17062. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17063. fi
  17064. if test $ac_cv_func_gethostbyname = no; then
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17066. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17067. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17068. $as_echo_n "(cached) " >&6
  17069. else
  17070. ac_check_lib_save_LIBS=$LIBS
  17071. LIBS="-lnsl $LIBS"
  17072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17073. /* end confdefs.h. */
  17074. /* Override any GCC internal prototype to avoid an error.
  17075. Use char because int might match the return type of a GCC
  17076. builtin and then its argument prototype would still apply. */
  17077. #ifdef __cplusplus
  17078. extern "C"
  17079. #endif
  17080. char gethostbyname ();
  17081. int
  17082. main ()
  17083. {
  17084. return gethostbyname ();
  17085. ;
  17086. return 0;
  17087. }
  17088. _ACEOF
  17089. if ac_fn_c_try_link "$LINENO"; then :
  17090. ac_cv_lib_nsl_gethostbyname=yes
  17091. else
  17092. ac_cv_lib_nsl_gethostbyname=no
  17093. fi
  17094. rm -f core conftest.err conftest.$ac_objext \
  17095. conftest$ac_exeext conftest.$ac_ext
  17096. LIBS=$ac_check_lib_save_LIBS
  17097. fi
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17099. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17100. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17101. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17102. fi
  17103. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17105. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17106. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17107. $as_echo_n "(cached) " >&6
  17108. else
  17109. ac_check_lib_save_LIBS=$LIBS
  17110. LIBS="-lbsd $LIBS"
  17111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17112. /* end confdefs.h. */
  17113. /* Override any GCC internal prototype to avoid an error.
  17114. Use char because int might match the return type of a GCC
  17115. builtin and then its argument prototype would still apply. */
  17116. #ifdef __cplusplus
  17117. extern "C"
  17118. #endif
  17119. char gethostbyname ();
  17120. int
  17121. main ()
  17122. {
  17123. return gethostbyname ();
  17124. ;
  17125. return 0;
  17126. }
  17127. _ACEOF
  17128. if ac_fn_c_try_link "$LINENO"; then :
  17129. ac_cv_lib_bsd_gethostbyname=yes
  17130. else
  17131. ac_cv_lib_bsd_gethostbyname=no
  17132. fi
  17133. rm -f core conftest.err conftest.$ac_objext \
  17134. conftest$ac_exeext conftest.$ac_ext
  17135. LIBS=$ac_check_lib_save_LIBS
  17136. fi
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17138. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17139. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17140. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17141. fi
  17142. fi
  17143. fi
  17144. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17145. # socket/setsockopt and other routines are undefined under SCO ODT
  17146. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17147. # on later versions), says Simon Leinen: it contains gethostby*
  17148. # variants that don't use the name server (or something). -lsocket
  17149. # must be given before -lnsl if both are needed. We assume that
  17150. # if connect needs -lnsl, so does gethostbyname.
  17151. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17152. if test "x$ac_cv_func_connect" = xyes; then :
  17153. fi
  17154. if test $ac_cv_func_connect = no; then
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17156. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17157. if ${ac_cv_lib_socket_connect+:} false; then :
  17158. $as_echo_n "(cached) " >&6
  17159. else
  17160. ac_check_lib_save_LIBS=$LIBS
  17161. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17163. /* end confdefs.h. */
  17164. /* Override any GCC internal prototype to avoid an error.
  17165. Use char because int might match the return type of a GCC
  17166. builtin and then its argument prototype would still apply. */
  17167. #ifdef __cplusplus
  17168. extern "C"
  17169. #endif
  17170. char connect ();
  17171. int
  17172. main ()
  17173. {
  17174. return connect ();
  17175. ;
  17176. return 0;
  17177. }
  17178. _ACEOF
  17179. if ac_fn_c_try_link "$LINENO"; then :
  17180. ac_cv_lib_socket_connect=yes
  17181. else
  17182. ac_cv_lib_socket_connect=no
  17183. fi
  17184. rm -f core conftest.err conftest.$ac_objext \
  17185. conftest$ac_exeext conftest.$ac_ext
  17186. LIBS=$ac_check_lib_save_LIBS
  17187. fi
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17189. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17190. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17191. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17192. fi
  17193. fi
  17194. # Guillermo Gomez says -lposix is necessary on A/UX.
  17195. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17196. if test "x$ac_cv_func_remove" = xyes; then :
  17197. fi
  17198. if test $ac_cv_func_remove = no; then
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17200. $as_echo_n "checking for remove in -lposix... " >&6; }
  17201. if ${ac_cv_lib_posix_remove+:} false; then :
  17202. $as_echo_n "(cached) " >&6
  17203. else
  17204. ac_check_lib_save_LIBS=$LIBS
  17205. LIBS="-lposix $LIBS"
  17206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17207. /* end confdefs.h. */
  17208. /* Override any GCC internal prototype to avoid an error.
  17209. Use char because int might match the return type of a GCC
  17210. builtin and then its argument prototype would still apply. */
  17211. #ifdef __cplusplus
  17212. extern "C"
  17213. #endif
  17214. char remove ();
  17215. int
  17216. main ()
  17217. {
  17218. return remove ();
  17219. ;
  17220. return 0;
  17221. }
  17222. _ACEOF
  17223. if ac_fn_c_try_link "$LINENO"; then :
  17224. ac_cv_lib_posix_remove=yes
  17225. else
  17226. ac_cv_lib_posix_remove=no
  17227. fi
  17228. rm -f core conftest.err conftest.$ac_objext \
  17229. conftest$ac_exeext conftest.$ac_ext
  17230. LIBS=$ac_check_lib_save_LIBS
  17231. fi
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17233. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17234. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17235. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17236. fi
  17237. fi
  17238. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17239. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17240. if test "x$ac_cv_func_shmat" = xyes; then :
  17241. fi
  17242. if test $ac_cv_func_shmat = no; then
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17244. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17245. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17246. $as_echo_n "(cached) " >&6
  17247. else
  17248. ac_check_lib_save_LIBS=$LIBS
  17249. LIBS="-lipc $LIBS"
  17250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17251. /* end confdefs.h. */
  17252. /* Override any GCC internal prototype to avoid an error.
  17253. Use char because int might match the return type of a GCC
  17254. builtin and then its argument prototype would still apply. */
  17255. #ifdef __cplusplus
  17256. extern "C"
  17257. #endif
  17258. char shmat ();
  17259. int
  17260. main ()
  17261. {
  17262. return shmat ();
  17263. ;
  17264. return 0;
  17265. }
  17266. _ACEOF
  17267. if ac_fn_c_try_link "$LINENO"; then :
  17268. ac_cv_lib_ipc_shmat=yes
  17269. else
  17270. ac_cv_lib_ipc_shmat=no
  17271. fi
  17272. rm -f core conftest.err conftest.$ac_objext \
  17273. conftest$ac_exeext conftest.$ac_ext
  17274. LIBS=$ac_check_lib_save_LIBS
  17275. fi
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17277. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17278. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17279. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17280. fi
  17281. fi
  17282. fi
  17283. # Check for libraries that X11R6 Xt/Xaw programs need.
  17284. ac_save_LDFLAGS=$LDFLAGS
  17285. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17286. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17287. # check for ICE first), but we must link in the order -lSM -lICE or
  17288. # we get undefined symbols. So assume we have SM if we have ICE.
  17289. # These have to be linked with before -lX11, unlike the other
  17290. # libraries we check for below, so use a different variable.
  17291. # John Interrante, Karl Berry
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17293. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17294. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17295. $as_echo_n "(cached) " >&6
  17296. else
  17297. ac_check_lib_save_LIBS=$LIBS
  17298. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17300. /* end confdefs.h. */
  17301. /* Override any GCC internal prototype to avoid an error.
  17302. Use char because int might match the return type of a GCC
  17303. builtin and then its argument prototype would still apply. */
  17304. #ifdef __cplusplus
  17305. extern "C"
  17306. #endif
  17307. char IceConnectionNumber ();
  17308. int
  17309. main ()
  17310. {
  17311. return IceConnectionNumber ();
  17312. ;
  17313. return 0;
  17314. }
  17315. _ACEOF
  17316. if ac_fn_c_try_link "$LINENO"; then :
  17317. ac_cv_lib_ICE_IceConnectionNumber=yes
  17318. else
  17319. ac_cv_lib_ICE_IceConnectionNumber=no
  17320. fi
  17321. rm -f core conftest.err conftest.$ac_objext \
  17322. conftest$ac_exeext conftest.$ac_ext
  17323. LIBS=$ac_check_lib_save_LIBS
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17326. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17327. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17328. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17329. fi
  17330. LDFLAGS=$ac_save_LDFLAGS
  17331. fi
  17332. if test x$have_x = xyes; then
  17333. # Check whether --enable-x11-shared was given.
  17334. if test "${enable_x11_shared+set}" = set; then :
  17335. enableval=$enable_x11_shared;
  17336. else
  17337. enable_x11_shared=maybe
  17338. fi
  17339. case "$host" in
  17340. *-*-darwin*)
  17341. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17342. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17343. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17344. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17345. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17346. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17347. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17348. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17349. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17350. ;;
  17351. *-*-openbsd*)
  17352. x11_lib='libX11.so'
  17353. x11ext_lib='libXext.so'
  17354. xcursor_lib='libXcursor.so'
  17355. xinerama_lib='libXinerama.so'
  17356. xinput_lib='libXi.so'
  17357. xrandr_lib='libXrandr.so'
  17358. xrender_lib='libXrender.so'
  17359. xss_lib='libXss.so'
  17360. xvidmode_lib='libXxf86vm.so'
  17361. ;;
  17362. *)
  17363. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17364. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17365. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17366. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17367. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17368. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17369. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17370. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17371. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17372. ;;
  17373. esac
  17374. if test x$ac_cv_func_shmat != xyes; then
  17375. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17376. fi
  17377. CFLAGS="$CFLAGS $X_CFLAGS"
  17378. LDFLAGS="$LDFLAGS $X_LIBS"
  17379. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17380. #include <X11/Xproto.h>
  17381. "
  17382. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17383. have_xext_h_hdr=yes
  17384. else
  17385. have_xext_h_hdr=no
  17386. fi
  17387. if test x$have_xext_h_hdr != xyes; then
  17388. as_fn_error $? "
  17389. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17390. " "$LINENO" 5
  17391. fi
  17392. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17393. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17394. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17395. # Needed so SDL applications can include SDL_syswm.h
  17396. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17397. if test x$enable_x11_shared = xmaybe; then
  17398. enable_x11_shared=yes
  17399. fi
  17400. if test x$have_loadso != xyes && \
  17401. test x$enable_x11_shared = xyes; then
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17403. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17404. enable_x11_shared=no
  17405. fi
  17406. if test x$have_loadso = xyes && \
  17407. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17408. echo "-- dynamic libX11 -> $x11_lib"
  17409. echo "-- dynamic libX11ext -> $x11ext_lib"
  17410. cat >>confdefs.h <<_ACEOF
  17411. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17412. _ACEOF
  17413. cat >>confdefs.h <<_ACEOF
  17414. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17415. _ACEOF
  17416. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17417. else
  17418. enable_x11_shared=no
  17419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17420. SUMMARY_video="${SUMMARY_video} x11"
  17421. fi
  17422. have_video=yes
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17424. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17425. have_const_param_XextAddDisplay=no
  17426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17427. /* end confdefs.h. */
  17428. #include <X11/Xlib.h>
  17429. #include <X11/Xproto.h>
  17430. #include <X11/extensions/Xext.h>
  17431. #include <X11/extensions/extutil.h>
  17432. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17433. int
  17434. main ()
  17435. {
  17436. ;
  17437. return 0;
  17438. }
  17439. _ACEOF
  17440. if ac_fn_c_try_compile "$LINENO"; then :
  17441. have_const_param_XextAddDisplay=yes
  17442. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17443. fi
  17444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17446. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17448. $as_echo_n "checking for XGenericEvent... " >&6; }
  17449. have_XGenericEvent=no
  17450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17451. /* end confdefs.h. */
  17452. #include <X11/Xlib.h>
  17453. int
  17454. main ()
  17455. {
  17456. Display *display;
  17457. XEvent event;
  17458. XGenericEventCookie *cookie = &event.xcookie;
  17459. XNextEvent(display, &event);
  17460. XGetEventData(display, cookie);
  17461. XFreeEventData(display, cookie);
  17462. ;
  17463. return 0;
  17464. }
  17465. _ACEOF
  17466. if ac_fn_c_try_compile "$LINENO"; then :
  17467. have_XGenericEvent=yes
  17468. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17469. fi
  17470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17472. $as_echo "$have_XGenericEvent" >&6; }
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17474. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17475. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17476. $as_echo_n "(cached) " >&6
  17477. else
  17478. ac_check_lib_save_LIBS=$LIBS
  17479. LIBS="-lX11 $LIBS"
  17480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17481. /* end confdefs.h. */
  17482. /* Override any GCC internal prototype to avoid an error.
  17483. Use char because int might match the return type of a GCC
  17484. builtin and then its argument prototype would still apply. */
  17485. #ifdef __cplusplus
  17486. extern "C"
  17487. #endif
  17488. char XkbKeycodeToKeysym ();
  17489. int
  17490. main ()
  17491. {
  17492. return XkbKeycodeToKeysym ();
  17493. ;
  17494. return 0;
  17495. }
  17496. _ACEOF
  17497. if ac_fn_c_try_link "$LINENO"; then :
  17498. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17499. else
  17500. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17501. fi
  17502. rm -f core conftest.err conftest.$ac_objext \
  17503. conftest$ac_exeext conftest.$ac_ext
  17504. LIBS=$ac_check_lib_save_LIBS
  17505. fi
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17507. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17508. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17509. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17510. fi
  17511. # Check whether --enable-video-x11-xcursor was given.
  17512. if test "${enable_video_x11_xcursor+set}" = set; then :
  17513. enableval=$enable_video_x11_xcursor;
  17514. else
  17515. enable_video_x11_xcursor=yes
  17516. fi
  17517. if test x$enable_video_x11_xcursor = xyes; then
  17518. definitely_enable_video_x11_xcursor=no
  17519. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17520. "
  17521. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17522. have_xcursor_h_hdr=yes
  17523. else
  17524. have_xcursor_h_hdr=no
  17525. fi
  17526. if test x$have_xcursor_h_hdr = xyes; then
  17527. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17528. echo "-- dynamic libXcursor -> $xcursor_lib"
  17529. cat >>confdefs.h <<_ACEOF
  17530. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17531. _ACEOF
  17532. definitely_enable_video_x11_xcursor=yes
  17533. else
  17534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17535. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17536. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17537. $as_echo_n "(cached) " >&6
  17538. else
  17539. ac_check_lib_save_LIBS=$LIBS
  17540. LIBS="-lXcursor $LIBS"
  17541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17542. /* end confdefs.h. */
  17543. /* Override any GCC internal prototype to avoid an error.
  17544. Use char because int might match the return type of a GCC
  17545. builtin and then its argument prototype would still apply. */
  17546. #ifdef __cplusplus
  17547. extern "C"
  17548. #endif
  17549. char XcursorImageCreate ();
  17550. int
  17551. main ()
  17552. {
  17553. return XcursorImageCreate ();
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. if ac_fn_c_try_link "$LINENO"; then :
  17559. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17560. else
  17561. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17562. fi
  17563. rm -f core conftest.err conftest.$ac_objext \
  17564. conftest$ac_exeext conftest.$ac_ext
  17565. LIBS=$ac_check_lib_save_LIBS
  17566. fi
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17568. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17569. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17570. have_xcursor_lib=yes
  17571. fi
  17572. if test x$have_xcursor_lib = xyes ; then
  17573. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17574. definitely_enable_video_x11_xcursor=yes
  17575. fi
  17576. fi
  17577. fi
  17578. fi
  17579. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17580. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17581. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17582. fi
  17583. # Check whether --enable-video-x11-xdbe was given.
  17584. if test "${enable_video_x11_xdbe+set}" = set; then :
  17585. enableval=$enable_video_x11_xdbe;
  17586. else
  17587. enable_video_x11_xdbe=yes
  17588. fi
  17589. if test x$enable_video_x11_xdbe = xyes; then
  17590. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17591. "
  17592. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17593. have_dbe_h_hdr=yes
  17594. else
  17595. have_dbe_h_hdr=no
  17596. fi
  17597. if test x$have_dbe_h_hdr = xyes; then
  17598. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17599. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17600. fi
  17601. fi
  17602. # Check whether --enable-video-x11-xinerama was given.
  17603. if test "${enable_video_x11_xinerama+set}" = set; then :
  17604. enableval=$enable_video_x11_xinerama;
  17605. else
  17606. enable_video_x11_xinerama=yes
  17607. fi
  17608. if test x$enable_video_x11_xinerama = xyes; then
  17609. definitely_enable_video_x11_xinerama=no
  17610. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17611. "
  17612. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17613. have_xinerama_h_hdr=yes
  17614. else
  17615. have_xinerama_h_hdr=no
  17616. fi
  17617. if test x$have_xinerama_h_hdr = xyes; then
  17618. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17619. echo "-- dynamic libXinerama -> $xinerama_lib"
  17620. cat >>confdefs.h <<_ACEOF
  17621. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17622. _ACEOF
  17623. definitely_enable_video_x11_xinerama=yes
  17624. else
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17626. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17627. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17628. $as_echo_n "(cached) " >&6
  17629. else
  17630. ac_check_lib_save_LIBS=$LIBS
  17631. LIBS="-lXinerama $LIBS"
  17632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17633. /* end confdefs.h. */
  17634. /* Override any GCC internal prototype to avoid an error.
  17635. Use char because int might match the return type of a GCC
  17636. builtin and then its argument prototype would still apply. */
  17637. #ifdef __cplusplus
  17638. extern "C"
  17639. #endif
  17640. char XineramaQueryExtension ();
  17641. int
  17642. main ()
  17643. {
  17644. return XineramaQueryExtension ();
  17645. ;
  17646. return 0;
  17647. }
  17648. _ACEOF
  17649. if ac_fn_c_try_link "$LINENO"; then :
  17650. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17651. else
  17652. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17653. fi
  17654. rm -f core conftest.err conftest.$ac_objext \
  17655. conftest$ac_exeext conftest.$ac_ext
  17656. LIBS=$ac_check_lib_save_LIBS
  17657. fi
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17659. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17660. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17661. have_xinerama_lib=yes
  17662. fi
  17663. if test x$have_xinerama_lib = xyes ; then
  17664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17665. definitely_enable_video_x11_xinerama=yes
  17666. fi
  17667. fi
  17668. fi
  17669. fi
  17670. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17671. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17672. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17673. fi
  17674. # Check whether --enable-video-x11-xinput was given.
  17675. if test "${enable_video_x11_xinput+set}" = set; then :
  17676. enableval=$enable_video_x11_xinput;
  17677. else
  17678. enable_video_x11_xinput=yes
  17679. fi
  17680. if test x$enable_video_x11_xinput = xyes; then
  17681. definitely_enable_video_x11_xinput=no
  17682. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17683. "
  17684. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17685. have_xinput_h_hdr=yes
  17686. else
  17687. have_xinput_h_hdr=no
  17688. fi
  17689. if test x$have_xinput_h_hdr = xyes; then
  17690. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17691. echo "-- dynamic libXi -> $xinput_lib"
  17692. cat >>confdefs.h <<_ACEOF
  17693. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17694. _ACEOF
  17695. definitely_enable_video_x11_xinput=yes
  17696. else
  17697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17698. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17699. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17700. $as_echo_n "(cached) " >&6
  17701. else
  17702. ac_check_lib_save_LIBS=$LIBS
  17703. LIBS="-lXi $LIBS"
  17704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17705. /* end confdefs.h. */
  17706. /* Override any GCC internal prototype to avoid an error.
  17707. Use char because int might match the return type of a GCC
  17708. builtin and then its argument prototype would still apply. */
  17709. #ifdef __cplusplus
  17710. extern "C"
  17711. #endif
  17712. char XOpenDevice ();
  17713. int
  17714. main ()
  17715. {
  17716. return XOpenDevice ();
  17717. ;
  17718. return 0;
  17719. }
  17720. _ACEOF
  17721. if ac_fn_c_try_link "$LINENO"; then :
  17722. ac_cv_lib_Xi_XOpenDevice=yes
  17723. else
  17724. ac_cv_lib_Xi_XOpenDevice=no
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext \
  17727. conftest$ac_exeext conftest.$ac_ext
  17728. LIBS=$ac_check_lib_save_LIBS
  17729. fi
  17730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17731. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17732. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17733. have_xinput_lib=yes
  17734. fi
  17735. if test x$have_xinput_lib = xyes ; then
  17736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17737. definitely_enable_video_x11_xinput=yes
  17738. fi
  17739. fi
  17740. fi
  17741. fi
  17742. if test x$definitely_enable_video_x11_xinput = xyes; then
  17743. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17744. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17746. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17747. have_xinput2_multitouch=no
  17748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17749. /* end confdefs.h. */
  17750. #include <X11/Xlib.h>
  17751. #include <X11/Xproto.h>
  17752. #include <X11/extensions/XInput2.h>
  17753. int
  17754. main ()
  17755. {
  17756. int event_type = XI_TouchBegin;
  17757. XITouchClassInfo *t;
  17758. ;
  17759. return 0;
  17760. }
  17761. _ACEOF
  17762. if ac_fn_c_try_compile "$LINENO"; then :
  17763. have_xinput2_multitouch=yes
  17764. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17765. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17766. fi
  17767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17769. $as_echo "$have_xinput2_multitouch" >&6; }
  17770. fi
  17771. # Check whether --enable-video-x11-xrandr was given.
  17772. if test "${enable_video_x11_xrandr+set}" = set; then :
  17773. enableval=$enable_video_x11_xrandr;
  17774. else
  17775. enable_video_x11_xrandr=yes
  17776. fi
  17777. if test x$enable_video_x11_xrandr = xyes; then
  17778. definitely_enable_video_x11_xrandr=no
  17779. have_xrandr_h_hdr=no
  17780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17781. /* end confdefs.h. */
  17782. #include <X11/Xlib.h>
  17783. #include <X11/extensions/Xrandr.h>
  17784. int
  17785. main ()
  17786. {
  17787. XRRScreenResources *res = NULL;
  17788. ;
  17789. return 0;
  17790. }
  17791. _ACEOF
  17792. if ac_fn_c_try_compile "$LINENO"; then :
  17793. have_xrandr_h_hdr=yes
  17794. fi
  17795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17796. if test x$have_xrandr_h_hdr = xyes; then
  17797. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17798. echo "-- dynamic libXrandr -> $xrandr_lib"
  17799. cat >>confdefs.h <<_ACEOF
  17800. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17801. _ACEOF
  17802. definitely_enable_video_x11_xrandr=yes
  17803. else
  17804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17805. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17806. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17807. $as_echo_n "(cached) " >&6
  17808. else
  17809. ac_check_lib_save_LIBS=$LIBS
  17810. LIBS="-lXrandr $LIBS"
  17811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17812. /* end confdefs.h. */
  17813. /* Override any GCC internal prototype to avoid an error.
  17814. Use char because int might match the return type of a GCC
  17815. builtin and then its argument prototype would still apply. */
  17816. #ifdef __cplusplus
  17817. extern "C"
  17818. #endif
  17819. char XRRQueryExtension ();
  17820. int
  17821. main ()
  17822. {
  17823. return XRRQueryExtension ();
  17824. ;
  17825. return 0;
  17826. }
  17827. _ACEOF
  17828. if ac_fn_c_try_link "$LINENO"; then :
  17829. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17830. else
  17831. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17832. fi
  17833. rm -f core conftest.err conftest.$ac_objext \
  17834. conftest$ac_exeext conftest.$ac_ext
  17835. LIBS=$ac_check_lib_save_LIBS
  17836. fi
  17837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17838. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17839. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17840. have_xrandr_lib=yes
  17841. fi
  17842. if test x$have_xrandr_lib = xyes ; then
  17843. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17844. definitely_enable_video_x11_xrandr=yes
  17845. fi
  17846. fi
  17847. fi
  17848. fi
  17849. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17850. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17851. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17852. fi
  17853. # Check whether --enable-video-x11-scrnsaver was given.
  17854. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17855. enableval=$enable_video_x11_scrnsaver;
  17856. else
  17857. enable_video_x11_scrnsaver=yes
  17858. fi
  17859. if test x$enable_video_x11_scrnsaver = xyes; then
  17860. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17861. "
  17862. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17863. have_scrnsaver_h_hdr=yes
  17864. else
  17865. have_scrnsaver_h_hdr=no
  17866. fi
  17867. if test x$have_scrnsaver_h_hdr = xyes; then
  17868. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17869. echo "-- dynamic libXss -> $xss_lib"
  17870. cat >>confdefs.h <<_ACEOF
  17871. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17872. _ACEOF
  17873. definitely_enable_video_x11_scrnsaver=yes
  17874. else
  17875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17876. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17877. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17878. $as_echo_n "(cached) " >&6
  17879. else
  17880. ac_check_lib_save_LIBS=$LIBS
  17881. LIBS="-lXss $LIBS"
  17882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17883. /* end confdefs.h. */
  17884. /* Override any GCC internal prototype to avoid an error.
  17885. Use char because int might match the return type of a GCC
  17886. builtin and then its argument prototype would still apply. */
  17887. #ifdef __cplusplus
  17888. extern "C"
  17889. #endif
  17890. char XScreenSaverSuspend ();
  17891. int
  17892. main ()
  17893. {
  17894. return XScreenSaverSuspend ();
  17895. ;
  17896. return 0;
  17897. }
  17898. _ACEOF
  17899. if ac_fn_c_try_link "$LINENO"; then :
  17900. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17901. else
  17902. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17903. fi
  17904. rm -f core conftest.err conftest.$ac_objext \
  17905. conftest$ac_exeext conftest.$ac_ext
  17906. LIBS=$ac_check_lib_save_LIBS
  17907. fi
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17909. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17910. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17911. have_xss_lib=yes
  17912. fi
  17913. if test x$have_xss_lib = xyes ; then
  17914. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17915. definitely_enable_video_x11_scrnsaver=yes
  17916. fi
  17917. fi
  17918. fi
  17919. fi
  17920. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17921. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17922. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17923. fi
  17924. # Check whether --enable-video-x11-xshape was given.
  17925. if test "${enable_video_x11_xshape+set}" = set; then :
  17926. enableval=$enable_video_x11_xshape;
  17927. else
  17928. enable_video_x11_xshape=yes
  17929. fi
  17930. if test x$enable_video_x11_xshape = xyes; then
  17931. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  17932. "
  17933. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  17934. have_shape_h_hdr=yes
  17935. else
  17936. have_shape_h_hdr=no
  17937. fi
  17938. if test x$have_shape_h_hdr = xyes; then
  17939. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  17940. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  17941. fi
  17942. fi
  17943. # Check whether --enable-video-x11-vm was given.
  17944. if test "${enable_video_x11_vm+set}" = set; then :
  17945. enableval=$enable_video_x11_vm;
  17946. else
  17947. enable_video_x11_vm=yes
  17948. fi
  17949. if test x$enable_video_x11_vm = xyes; then
  17950. definitely_enable_video_x11_vm=no
  17951. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  17952. "
  17953. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  17954. have_vm_h_hdr=yes
  17955. else
  17956. have_vm_h_hdr=no
  17957. fi
  17958. if test x$have_vm_h_hdr = xyes; then
  17959. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  17960. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  17961. cat >>confdefs.h <<_ACEOF
  17962. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  17963. _ACEOF
  17964. definitely_enable_video_x11_vm=yes
  17965. else
  17966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  17967. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  17968. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  17969. $as_echo_n "(cached) " >&6
  17970. else
  17971. ac_check_lib_save_LIBS=$LIBS
  17972. LIBS="-lXxf86vm $LIBS"
  17973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17974. /* end confdefs.h. */
  17975. /* Override any GCC internal prototype to avoid an error.
  17976. Use char because int might match the return type of a GCC
  17977. builtin and then its argument prototype would still apply. */
  17978. #ifdef __cplusplus
  17979. extern "C"
  17980. #endif
  17981. char XF86VidModeQueryVersion ();
  17982. int
  17983. main ()
  17984. {
  17985. return XF86VidModeQueryVersion ();
  17986. ;
  17987. return 0;
  17988. }
  17989. _ACEOF
  17990. if ac_fn_c_try_link "$LINENO"; then :
  17991. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  17992. else
  17993. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  17994. fi
  17995. rm -f core conftest.err conftest.$ac_objext \
  17996. conftest$ac_exeext conftest.$ac_ext
  17997. LIBS=$ac_check_lib_save_LIBS
  17998. fi
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18000. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18001. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18002. have_vm_lib=yes
  18003. fi
  18004. if test x$have_vm_lib = xyes ; then
  18005. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18006. definitely_enable_video_x11_vm=yes
  18007. fi
  18008. fi
  18009. fi
  18010. fi
  18011. if test x$definitely_enable_video_x11_vm = xyes; then
  18012. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18013. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18014. fi
  18015. fi
  18016. fi
  18017. }
  18018. CheckVivanteVideo()
  18019. {
  18020. # Check whether --enable-video-vivante was given.
  18021. if test "${enable_video_vivante+set}" = set; then :
  18022. enableval=$enable_video_vivante;
  18023. else
  18024. enable_video_vivante=yes
  18025. fi
  18026. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18028. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18029. have_vivante_vdk=no
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #define LINUX
  18033. #define EGL_API_FB
  18034. #include <gc_vdk.h>
  18035. int
  18036. main ()
  18037. {
  18038. ;
  18039. return 0;
  18040. }
  18041. _ACEOF
  18042. if ac_fn_c_try_compile "$LINENO"; then :
  18043. have_vivante_vdk=yes
  18044. fi
  18045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18047. $as_echo "$have_vivante_vdk" >&6; }
  18048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18049. $as_echo_n "checking for Vivante FB API... " >&6; }
  18050. have_vivante_egl=no
  18051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18052. /* end confdefs.h. */
  18053. #define LINUX
  18054. #define EGL_API_FB
  18055. #include <EGL/eglvivante.h>
  18056. int
  18057. main ()
  18058. {
  18059. ;
  18060. return 0;
  18061. }
  18062. _ACEOF
  18063. if ac_fn_c_try_compile "$LINENO"; then :
  18064. have_vivante_egl=yes
  18065. fi
  18066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18068. $as_echo "$have_vivante_egl" >&6; }
  18069. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18070. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18071. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18072. if test x$have_vivante_vdk = xyes; then
  18073. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18074. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18075. fi
  18076. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18077. SUMMARY_video="${SUMMARY_video} vivante"
  18078. have_video=yes
  18079. fi
  18080. fi
  18081. }
  18082. CheckHaikuVideo()
  18083. {
  18084. if test x$enable_video = xyes; then
  18085. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18086. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18087. have_video=yes
  18088. SUMMARY_video="${SUMMARY_video} haiku"
  18089. fi
  18090. }
  18091. CheckCOCOA()
  18092. {
  18093. # Check whether --enable-video-cocoa was given.
  18094. if test "${enable_video_cocoa+set}" = set; then :
  18095. enableval=$enable_video_cocoa;
  18096. else
  18097. enable_video_cocoa=yes
  18098. fi
  18099. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18100. save_CFLAGS="$CFLAGS"
  18101. CFLAGS="$CFLAGS -x objective-c"
  18102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18103. $as_echo_n "checking for Cocoa framework... " >&6; }
  18104. have_cocoa=no
  18105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18106. /* end confdefs.h. */
  18107. #import <Cocoa/Cocoa.h>
  18108. int
  18109. main ()
  18110. {
  18111. ;
  18112. return 0;
  18113. }
  18114. _ACEOF
  18115. if ac_fn_c_try_compile "$LINENO"; then :
  18116. have_cocoa=yes
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18120. $as_echo "$have_cocoa" >&6; }
  18121. CFLAGS="$save_CFLAGS"
  18122. if test x$have_cocoa = xyes; then
  18123. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18124. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18125. SUMMARY_video="${SUMMARY_video} cocoa"
  18126. have_video=yes
  18127. fi
  18128. fi
  18129. }
  18130. CheckDirectFB()
  18131. {
  18132. # Check whether --enable-video-directfb was given.
  18133. if test "${enable_video_directfb+set}" = set; then :
  18134. enableval=$enable_video_directfb;
  18135. else
  18136. enable_video_directfb=no
  18137. fi
  18138. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18139. video_directfb=no
  18140. DIRECTFB_REQUIRED_VERSION=1.0.0
  18141. for ac_prog in directfb-config
  18142. do
  18143. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18144. set dummy $ac_prog; ac_word=$2
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18146. $as_echo_n "checking for $ac_word... " >&6; }
  18147. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18148. $as_echo_n "(cached) " >&6
  18149. else
  18150. case $DIRECTFBCONFIG in
  18151. [\\/]* | ?:[\\/]*)
  18152. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18153. ;;
  18154. *)
  18155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18156. as_dummy="$prefix/bin:$PATH"
  18157. for as_dir in $as_dummy
  18158. do
  18159. IFS=$as_save_IFS
  18160. test -z "$as_dir" && as_dir=.
  18161. for ac_exec_ext in '' $ac_executable_extensions; do
  18162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18163. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18165. break 2
  18166. fi
  18167. done
  18168. done
  18169. IFS=$as_save_IFS
  18170. ;;
  18171. esac
  18172. fi
  18173. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18174. if test -n "$DIRECTFBCONFIG"; then
  18175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18176. $as_echo "$DIRECTFBCONFIG" >&6; }
  18177. else
  18178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18179. $as_echo "no" >&6; }
  18180. fi
  18181. test -n "$DIRECTFBCONFIG" && break
  18182. done
  18183. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18184. if test x$DIRECTFBCONFIG = xno; then
  18185. # Extract the first word of "pkg-config", so it can be a program name with args.
  18186. set dummy pkg-config; ac_word=$2
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18188. $as_echo_n "checking for $ac_word... " >&6; }
  18189. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18190. $as_echo_n "(cached) " >&6
  18191. else
  18192. case $PKG_CONFIG in
  18193. [\\/]* | ?:[\\/]*)
  18194. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18195. ;;
  18196. *)
  18197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18198. for as_dir in $PATH
  18199. do
  18200. IFS=$as_save_IFS
  18201. test -z "$as_dir" && as_dir=.
  18202. for ac_exec_ext in '' $ac_executable_extensions; do
  18203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18204. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18206. break 2
  18207. fi
  18208. done
  18209. done
  18210. IFS=$as_save_IFS
  18211. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18212. ;;
  18213. esac
  18214. fi
  18215. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18216. if test -n "$PKG_CONFIG"; then
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18218. $as_echo "$PKG_CONFIG" >&6; }
  18219. else
  18220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18221. $as_echo "no" >&6; }
  18222. fi
  18223. if test x$PKG_CONFIG != xno; then
  18224. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18225. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18226. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18227. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18228. video_directfb=yes
  18229. fi
  18230. fi
  18231. else
  18232. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18233. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18234. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18235. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18236. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18237. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18238. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18239. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18240. video_directfb=yes
  18241. fi
  18242. fi
  18243. if test x$video_directfb = xyes; then
  18244. # SuSE 11.1 installs directfb-config without directfb-devel
  18245. save_CPPFLAGS="$CPPFLAGS"
  18246. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18247. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18248. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18249. have_directfb_hdr=yes
  18250. else
  18251. have_directfb_hdr=no
  18252. fi
  18253. CPPFLAGS="$save_CPPFLAGS"
  18254. video_directfb=$have_directfb_hdr
  18255. fi
  18256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18257. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18259. $as_echo "$video_directfb" >&6; }
  18260. if test x$video_directfb = xyes; then
  18261. # Check whether --enable-directfb-shared was given.
  18262. if test "${enable_directfb_shared+set}" = set; then :
  18263. enableval=$enable_directfb_shared;
  18264. else
  18265. enable_directfb_shared=yes
  18266. fi
  18267. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18268. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18269. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18270. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18272. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18273. directfb_shared=no
  18274. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18275. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18276. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18277. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18278. if test x$have_loadso != xyes && \
  18279. test x$enable_directfb_shared = xyes; then
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18281. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18282. fi
  18283. if test x$have_loadso = xyes && \
  18284. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18285. directfb_shared=yes
  18286. echo "-- $directfb_lib_spec -> $directfb_lib"
  18287. cat >>confdefs.h <<_ACEOF
  18288. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18289. _ACEOF
  18290. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18291. else
  18292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18293. SUMMARY_video="${SUMMARY_video} directfb"
  18294. fi
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18296. $as_echo "$directfb_shared" >&6; }
  18297. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18298. have_video=yes
  18299. fi
  18300. fi
  18301. }
  18302. CheckKMSDRM()
  18303. {
  18304. # Check whether --enable-video-kmsdrm was given.
  18305. if test "${enable_video_kmsdrm+set}" = set; then :
  18306. enableval=$enable_video_kmsdrm;
  18307. else
  18308. enable_video_kmsdrm=no
  18309. fi
  18310. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18311. video_kmsdrm=no
  18312. libdrm_avail=no
  18313. libgbm_avail=no
  18314. LIBDRM_REQUIRED_VERSION=2.4.46
  18315. LIBGBM_REQUIRED_VERSION=9.0.0
  18316. # Extract the first word of "pkg-config", so it can be a program name with args.
  18317. set dummy pkg-config; ac_word=$2
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18319. $as_echo_n "checking for $ac_word... " >&6; }
  18320. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18321. $as_echo_n "(cached) " >&6
  18322. else
  18323. case $PKG_CONFIG in
  18324. [\\/]* | ?:[\\/]*)
  18325. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18326. ;;
  18327. *)
  18328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18329. for as_dir in $PATH
  18330. do
  18331. IFS=$as_save_IFS
  18332. test -z "$as_dir" && as_dir=.
  18333. for ac_exec_ext in '' $ac_executable_extensions; do
  18334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18335. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18337. break 2
  18338. fi
  18339. done
  18340. done
  18341. IFS=$as_save_IFS
  18342. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18343. ;;
  18344. esac
  18345. fi
  18346. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18347. if test -n "$PKG_CONFIG"; then
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18349. $as_echo "$PKG_CONFIG" >&6; }
  18350. else
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18352. $as_echo "no" >&6; }
  18353. fi
  18354. if test x$PKG_CONFIG != xno; then
  18355. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18356. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18357. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18358. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18359. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18360. libdrm_avail=yes
  18361. fi
  18362. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18363. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18364. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18365. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18366. libgbm_avail=yes
  18367. fi
  18368. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18369. video_kmsdrm=yes
  18370. fi
  18371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18372. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18374. $as_echo "$libdrm_avail" >&6; }
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18376. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18378. $as_echo "$libgbm_avail" >&6; }
  18379. if test x$video_kmsdrm = xyes; then
  18380. # Check whether --enable-kmsdrm-shared was given.
  18381. if test "${enable_kmsdrm_shared+set}" = set; then :
  18382. enableval=$enable_kmsdrm_shared;
  18383. else
  18384. enable_kmsdrm_shared=yes
  18385. fi
  18386. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18387. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18388. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18390. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18391. kmsdrm_shared=no
  18392. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18393. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18394. if test x$have_loadso != xyes && \
  18395. test x$enable_kmsdrm_shared = xyes; then
  18396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18397. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18398. fi
  18399. if test x$have_loadso = xyes && \
  18400. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18401. kmsdrm_shared=yes
  18402. cat >>confdefs.h <<_ACEOF
  18403. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18404. _ACEOF
  18405. cat >>confdefs.h <<_ACEOF
  18406. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18407. _ACEOF
  18408. cat >>confdefs.h <<_ACEOF
  18409. #define HAVE_KMSDRM_SHARED "TRUE"
  18410. _ACEOF
  18411. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18412. else
  18413. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18414. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18415. fi
  18416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18417. $as_echo "$kmsdrm_shared" >&6; }
  18418. have_video=yes
  18419. fi
  18420. fi
  18421. fi
  18422. fi
  18423. }
  18424. CheckDummyVideo()
  18425. {
  18426. # Check whether --enable-video-dummy was given.
  18427. if test "${enable_video_dummy+set}" = set; then :
  18428. enableval=$enable_video_dummy;
  18429. else
  18430. enable_video_dummy=yes
  18431. fi
  18432. if test x$enable_video_dummy = xyes; then
  18433. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18434. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18435. have_video=yes
  18436. SUMMARY_video="${SUMMARY_video} dummy"
  18437. fi
  18438. }
  18439. CheckQNXVideo()
  18440. {
  18441. if test x$enable_video = xyes; then
  18442. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18443. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18444. have_video=yes
  18445. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18446. SUMMARY_video="${SUMMARY_video} qnx"
  18447. fi
  18448. }
  18449. CheckQNXAudio()
  18450. {
  18451. if test x$enable_audio = xyes; then
  18452. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18453. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18454. have_audio=yes
  18455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18456. SUMMARY_audio="${SUMMARY_audio} qsa"
  18457. fi
  18458. }
  18459. # Check whether --enable-video-opengl was given.
  18460. if test "${enable_video_opengl+set}" = set; then :
  18461. enableval=$enable_video_opengl;
  18462. else
  18463. enable_video_opengl=yes
  18464. fi
  18465. CheckOpenGLX11()
  18466. {
  18467. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18469. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18470. video_opengl=no
  18471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18472. /* end confdefs.h. */
  18473. #include <GL/gl.h>
  18474. #include <GL/glx.h>
  18475. int
  18476. main ()
  18477. {
  18478. ;
  18479. return 0;
  18480. }
  18481. _ACEOF
  18482. if ac_fn_c_try_compile "$LINENO"; then :
  18483. video_opengl=yes
  18484. fi
  18485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18487. $as_echo "$video_opengl" >&6; }
  18488. if test x$video_opengl = xyes; then
  18489. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18490. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18491. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18492. SUMMARY_video="${SUMMARY_video} opengl"
  18493. fi
  18494. fi
  18495. }
  18496. # Check whether --enable-video-opengles was given.
  18497. if test "${enable_video_opengles+set}" = set; then :
  18498. enableval=$enable_video_opengles;
  18499. else
  18500. enable_video_opengles=yes
  18501. fi
  18502. # Check whether --enable-video-opengles1 was given.
  18503. if test "${enable_video_opengles1+set}" = set; then :
  18504. enableval=$enable_video_opengles1;
  18505. else
  18506. enable_video_opengles1=yes
  18507. fi
  18508. # Check whether --enable-video-opengles2 was given.
  18509. if test "${enable_video_opengles2+set}" = set; then :
  18510. enableval=$enable_video_opengles2;
  18511. else
  18512. enable_video_opengles2=yes
  18513. fi
  18514. CheckOpenGLESX11()
  18515. {
  18516. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18518. $as_echo_n "checking for EGL support... " >&6; }
  18519. video_opengl_egl=no
  18520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18521. /* end confdefs.h. */
  18522. #define LINUX
  18523. #define EGL_API_FB
  18524. #include <EGL/egl.h>
  18525. #include <EGL/eglext.h>
  18526. int
  18527. main ()
  18528. {
  18529. ;
  18530. return 0;
  18531. }
  18532. _ACEOF
  18533. if ac_fn_c_try_compile "$LINENO"; then :
  18534. video_opengl_egl=yes
  18535. fi
  18536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18538. $as_echo "$video_opengl_egl" >&6; }
  18539. if test x$video_opengl_egl = xyes; then
  18540. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18541. fi
  18542. if test x$enable_video_opengles1 = xyes; then
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18544. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18545. video_opengles_v1=no
  18546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18547. /* end confdefs.h. */
  18548. #include <GLES/gl.h>
  18549. #include <GLES/glext.h>
  18550. int
  18551. main ()
  18552. {
  18553. ;
  18554. return 0;
  18555. }
  18556. _ACEOF
  18557. if ac_fn_c_try_compile "$LINENO"; then :
  18558. video_opengles_v1=yes
  18559. fi
  18560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18562. $as_echo "$video_opengles_v1" >&6; }
  18563. if test x$video_opengles_v1 = xyes; then
  18564. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18565. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18566. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18567. fi
  18568. fi
  18569. if test x$enable_video_opengles2 = xyes; then
  18570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18571. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18572. video_opengles_v2=no
  18573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18574. /* end confdefs.h. */
  18575. #include <GLES2/gl2.h>
  18576. #include <GLES2/gl2ext.h>
  18577. int
  18578. main ()
  18579. {
  18580. ;
  18581. return 0;
  18582. }
  18583. _ACEOF
  18584. if ac_fn_c_try_compile "$LINENO"; then :
  18585. video_opengles_v2=yes
  18586. fi
  18587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18589. $as_echo "$video_opengles_v2" >&6; }
  18590. if test x$video_opengles_v2 = xyes; then
  18591. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18592. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18593. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18594. fi
  18595. fi
  18596. fi
  18597. }
  18598. CheckWINDOWSGL()
  18599. {
  18600. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18601. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18602. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18603. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18604. SUMMARY_video="${SUMMARY_video} opengl"
  18605. fi
  18606. }
  18607. CheckWINDOWSGLES()
  18608. {
  18609. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18611. $as_echo_n "checking for EGL support... " >&6; }
  18612. video_opengl_egl=no
  18613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18614. /* end confdefs.h. */
  18615. #include <EGL/egl.h>
  18616. int
  18617. main ()
  18618. {
  18619. ;
  18620. return 0;
  18621. }
  18622. _ACEOF
  18623. if ac_fn_c_try_compile "$LINENO"; then :
  18624. video_opengl_egl=yes
  18625. fi
  18626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18628. $as_echo "$video_opengl_egl" >&6; }
  18629. if test x$video_opengl_egl = xyes; then
  18630. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18631. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18632. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18633. fi
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18635. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18636. video_opengles_v2=no
  18637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18638. /* end confdefs.h. */
  18639. #include <GLES2/gl2.h>
  18640. #include <GLES2/gl2ext.h>
  18641. int
  18642. main ()
  18643. {
  18644. ;
  18645. return 0;
  18646. }
  18647. _ACEOF
  18648. if ac_fn_c_try_compile "$LINENO"; then :
  18649. video_opengles_v2=yes
  18650. fi
  18651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18653. $as_echo "$video_opengles_v2" >&6; }
  18654. if test x$video_opengles_v2 = xyes; then
  18655. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18656. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18657. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18658. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18659. fi
  18660. fi
  18661. }
  18662. CheckHaikuGL()
  18663. {
  18664. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18665. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18666. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18667. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18668. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18669. SUMMARY_video="${SUMMARY_video} opengl"
  18670. fi
  18671. }
  18672. CheckMacGL()
  18673. {
  18674. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18675. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18676. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18677. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18678. SUMMARY_video="${SUMMARY_video} opengl"
  18679. fi
  18680. }
  18681. CheckEmscriptenGLES()
  18682. {
  18683. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18685. $as_echo_n "checking for EGL support... " >&6; }
  18686. video_opengl_egl=no
  18687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18688. /* end confdefs.h. */
  18689. #include <EGL/egl.h>
  18690. int
  18691. main ()
  18692. {
  18693. ;
  18694. return 0;
  18695. }
  18696. _ACEOF
  18697. if ac_fn_c_try_compile "$LINENO"; then :
  18698. video_opengl_egl=yes
  18699. fi
  18700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18702. $as_echo "$video_opengl_egl" >&6; }
  18703. if test x$video_opengl_egl = xyes; then
  18704. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18705. fi
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18707. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18708. video_opengles_v2=no
  18709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18710. /* end confdefs.h. */
  18711. #include <GLES2/gl2.h>
  18712. #include <GLES2/gl2ext.h>
  18713. int
  18714. main ()
  18715. {
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. if ac_fn_c_try_compile "$LINENO"; then :
  18721. video_opengles_v2=yes
  18722. fi
  18723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18725. $as_echo "$video_opengles_v2" >&6; }
  18726. if test x$video_opengles_v2 = xyes; then
  18727. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18728. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18729. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18730. fi
  18731. fi
  18732. }
  18733. # Check whether --enable-video-vulkan was given.
  18734. if test "${enable_video_vulkan+set}" = set; then :
  18735. enableval=$enable_video_vulkan;
  18736. else
  18737. enable_video_vulkan=yes
  18738. fi
  18739. CheckVulkan()
  18740. {
  18741. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18742. case "$host" in
  18743. *-*-androideabi*)
  18744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18745. /* end confdefs.h. */
  18746. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18747. #error Vulkan doesn't work on this configuration
  18748. #endif
  18749. int
  18750. main ()
  18751. {
  18752. ;
  18753. return 0;
  18754. }
  18755. _ACEOF
  18756. if ac_fn_c_try_compile "$LINENO"; then :
  18757. else
  18758. enable_video_vulkan=no
  18759. fi
  18760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18761. ;;
  18762. *-*-darwin*)
  18763. save_CFLAGS="$CFLAGS"
  18764. CFLAGS="$CFLAGS -x objective-c"
  18765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18766. /* end confdefs.h. */
  18767. #include <Cocoa/Cocoa.h>
  18768. #include <Metal/Metal.h>
  18769. #include <QuartzCore/CAMetalLayer.h>
  18770. #if !TARGET_CPU_X86_64
  18771. #error Vulkan doesn't work on this configuration
  18772. #endif
  18773. int
  18774. main ()
  18775. {
  18776. ;
  18777. return 0;
  18778. }
  18779. _ACEOF
  18780. if ac_fn_c_try_compile "$LINENO"; then :
  18781. else
  18782. enable_video_vulkan=no
  18783. fi
  18784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18785. CFLAGS="$save_CFLAGS"
  18786. ;;
  18787. *)
  18788. ;;
  18789. esac
  18790. if test x$enable_video_vulkan = xno; then
  18791. # For reasons I am totally unable to see, I get an undefined macro error if
  18792. # I put this in the AC_TRY_COMPILE.
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18794. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18795. fi
  18796. fi
  18797. if test x$enable_video_vulkan = xyes; then
  18798. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18799. SUMMARY_video="${SUMMARY_video} vulkan"
  18800. fi
  18801. }
  18802. CheckInputEvents()
  18803. {
  18804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18805. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18806. use_input_events=no
  18807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18808. /* end confdefs.h. */
  18809. #include <linux/input.h>
  18810. int
  18811. main ()
  18812. {
  18813. #ifndef EVIOCGNAME
  18814. #error EVIOCGNAME() ioctl not available
  18815. #endif
  18816. ;
  18817. return 0;
  18818. }
  18819. _ACEOF
  18820. if ac_fn_c_try_compile "$LINENO"; then :
  18821. use_input_events=yes
  18822. fi
  18823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18825. $as_echo "$use_input_events" >&6; }
  18826. if test x$use_input_events = xyes; then
  18827. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18828. SUMMARY_input="${SUMMARY_input} linuxev"
  18829. fi
  18830. }
  18831. CheckInputKD()
  18832. {
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18834. $as_echo_n "checking for Linux kd.h... " >&6; }
  18835. use_input_kd=no
  18836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18837. /* end confdefs.h. */
  18838. #include <linux/kd.h>
  18839. #include <linux/keyboard.h>
  18840. int
  18841. main ()
  18842. {
  18843. struct kbentry kbe;
  18844. kbe.kb_table = KG_CTRL;
  18845. ioctl(0, KDGKBENT, &kbe);
  18846. ;
  18847. return 0;
  18848. }
  18849. _ACEOF
  18850. if ac_fn_c_try_compile "$LINENO"; then :
  18851. use_input_kd=yes
  18852. fi
  18853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18855. $as_echo "$use_input_kd" >&6; }
  18856. if test x$use_input_kd = xyes; then
  18857. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18858. SUMMARY_input="${SUMMARY_input} linuxkd"
  18859. fi
  18860. }
  18861. CheckLibUDev()
  18862. {
  18863. # Check whether --enable-libudev was given.
  18864. if test "${enable_libudev+set}" = set; then :
  18865. enableval=$enable_libudev;
  18866. else
  18867. enable_libudev=yes
  18868. fi
  18869. if test x$enable_libudev = xyes; then
  18870. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18871. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18872. have_libudev_h_hdr=yes
  18873. else
  18874. have_libudev_h_hdr=no
  18875. fi
  18876. if test x$have_libudev_h_hdr = xyes; then
  18877. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18878. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18879. if test x$udev_lib != x; then
  18880. echo "-- dynamic udev -> $udev_lib"
  18881. cat >>confdefs.h <<_ACEOF
  18882. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18883. _ACEOF
  18884. fi
  18885. fi
  18886. fi
  18887. }
  18888. CheckDBus()
  18889. {
  18890. # Check whether --enable-dbus was given.
  18891. if test "${enable_dbus+set}" = set; then :
  18892. enableval=$enable_dbus;
  18893. else
  18894. enable_dbus=yes
  18895. fi
  18896. if test x$enable_dbus = xyes; then
  18897. # Extract the first word of "pkg-config", so it can be a program name with args.
  18898. set dummy pkg-config; ac_word=$2
  18899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18900. $as_echo_n "checking for $ac_word... " >&6; }
  18901. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18902. $as_echo_n "(cached) " >&6
  18903. else
  18904. case $PKG_CONFIG in
  18905. [\\/]* | ?:[\\/]*)
  18906. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18907. ;;
  18908. *)
  18909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18910. for as_dir in $PATH
  18911. do
  18912. IFS=$as_save_IFS
  18913. test -z "$as_dir" && as_dir=.
  18914. for ac_exec_ext in '' $ac_executable_extensions; do
  18915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18916. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18918. break 2
  18919. fi
  18920. done
  18921. done
  18922. IFS=$as_save_IFS
  18923. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18924. ;;
  18925. esac
  18926. fi
  18927. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18928. if test -n "$PKG_CONFIG"; then
  18929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18930. $as_echo "$PKG_CONFIG" >&6; }
  18931. else
  18932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18933. $as_echo "no" >&6; }
  18934. fi
  18935. if test x$PKG_CONFIG != xno; then
  18936. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  18937. save_CFLAGS="$CFLAGS"
  18938. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  18939. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  18940. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  18941. have_dbus_dbus_h_hdr=yes
  18942. else
  18943. have_dbus_dbus_h_hdr=no
  18944. fi
  18945. CFLAGS="$save_CFLAGS"
  18946. if test x$have_dbus_dbus_h_hdr = xyes; then
  18947. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  18948. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  18949. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  18950. fi
  18951. fi
  18952. fi
  18953. }
  18954. CheckIME()
  18955. {
  18956. # Check whether --enable-ime was given.
  18957. if test "${enable_ime+set}" = set; then :
  18958. enableval=$enable_ime;
  18959. else
  18960. enable_ime=yes
  18961. fi
  18962. if test x$enable_ime = xyes; then
  18963. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  18964. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  18965. fi
  18966. }
  18967. CheckIBus()
  18968. {
  18969. # Check whether --enable-ibus was given.
  18970. if test "${enable_ibus+set}" = set; then :
  18971. enableval=$enable_ibus;
  18972. else
  18973. enable_ibus=yes
  18974. fi
  18975. if test x$enable_ibus = xyes; then
  18976. # Extract the first word of "pkg-config", so it can be a program name with args.
  18977. set dummy pkg-config; ac_word=$2
  18978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18979. $as_echo_n "checking for $ac_word... " >&6; }
  18980. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18981. $as_echo_n "(cached) " >&6
  18982. else
  18983. case $PKG_CONFIG in
  18984. [\\/]* | ?:[\\/]*)
  18985. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18986. ;;
  18987. *)
  18988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18989. for as_dir in $PATH
  18990. do
  18991. IFS=$as_save_IFS
  18992. test -z "$as_dir" && as_dir=.
  18993. for ac_exec_ext in '' $ac_executable_extensions; do
  18994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18995. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18997. break 2
  18998. fi
  18999. done
  19000. done
  19001. IFS=$as_save_IFS
  19002. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19003. ;;
  19004. esac
  19005. fi
  19006. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19007. if test -n "$PKG_CONFIG"; then
  19008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19009. $as_echo "$PKG_CONFIG" >&6; }
  19010. else
  19011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19012. $as_echo "no" >&6; }
  19013. fi
  19014. if test x$PKG_CONFIG != xno; then
  19015. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19016. save_CFLAGS="$CFLAGS"
  19017. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19018. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19019. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19020. have_ibus_ibus_h_hdr=yes
  19021. else
  19022. have_ibus_ibus_h_hdr=no
  19023. fi
  19024. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19025. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19026. have_inotify_inotify_h_hdr=yes
  19027. else
  19028. have_inotify_inotify_h_hdr=no
  19029. fi
  19030. CFLAGS="$save_CFLAGS"
  19031. if test x$have_ibus_ibus_h_hdr = xyes; then
  19032. if test x$enable_ime != xyes; then
  19033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19034. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19035. have_ibus_ibus_h_hdr=no
  19036. elif test x$enable_dbus != xyes; then
  19037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19038. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19039. have_ibus_ibus_h_hdr=no
  19040. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19042. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19043. have_ibus_ibus_h_hdr=no
  19044. else
  19045. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19046. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19047. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19048. fi
  19049. fi
  19050. fi
  19051. fi
  19052. }
  19053. CheckFcitx()
  19054. {
  19055. # Check whether --enable-fcitx was given.
  19056. if test "${enable_fcitx+set}" = set; then :
  19057. enableval=$enable_fcitx;
  19058. else
  19059. enable_fcitx=yes
  19060. fi
  19061. if test x$enable_fcitx = xyes; then
  19062. # Extract the first word of "pkg-config", so it can be a program name with args.
  19063. set dummy pkg-config; ac_word=$2
  19064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19065. $as_echo_n "checking for $ac_word... " >&6; }
  19066. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19067. $as_echo_n "(cached) " >&6
  19068. else
  19069. case $PKG_CONFIG in
  19070. [\\/]* | ?:[\\/]*)
  19071. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19072. ;;
  19073. *)
  19074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19075. for as_dir in $PATH
  19076. do
  19077. IFS=$as_save_IFS
  19078. test -z "$as_dir" && as_dir=.
  19079. for ac_exec_ext in '' $ac_executable_extensions; do
  19080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19081. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19083. break 2
  19084. fi
  19085. done
  19086. done
  19087. IFS=$as_save_IFS
  19088. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19089. ;;
  19090. esac
  19091. fi
  19092. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19093. if test -n "$PKG_CONFIG"; then
  19094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19095. $as_echo "$PKG_CONFIG" >&6; }
  19096. else
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19098. $as_echo "no" >&6; }
  19099. fi
  19100. if test x$PKG_CONFIG != xno; then
  19101. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19102. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19103. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19104. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19105. have_fcitx_frontend_h_hdr=yes
  19106. else
  19107. have_fcitx_frontend_h_hdr=no
  19108. fi
  19109. CFLAGS="$save_CFLAGS"
  19110. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19111. if test x$enable_ime != xyes; then
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19113. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19114. have_fcitx_frontend_h_hdr=no
  19115. elif test x$enable_dbus != xyes; then
  19116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19117. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19118. have_fcitx_frontend_h_hdr=no
  19119. else
  19120. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19121. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19122. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19123. fi
  19124. fi
  19125. fi
  19126. fi
  19127. }
  19128. CheckTslib()
  19129. {
  19130. # Check whether --enable-input-tslib was given.
  19131. if test "${enable_input_tslib+set}" = set; then :
  19132. enableval=$enable_input_tslib;
  19133. else
  19134. enable_input_tslib=yes
  19135. fi
  19136. if test x$enable_input_tslib = xyes; then
  19137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19138. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19139. enable_input_tslib=no
  19140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19141. /* end confdefs.h. */
  19142. #include "tslib.h"
  19143. int
  19144. main ()
  19145. {
  19146. ;
  19147. return 0;
  19148. }
  19149. _ACEOF
  19150. if ac_fn_c_try_compile "$LINENO"; then :
  19151. enable_input_tslib=yes
  19152. fi
  19153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19155. $as_echo "$enable_input_tslib" >&6; }
  19156. if test x$enable_input_tslib = xyes; then
  19157. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19158. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19159. SUMMARY_input="${SUMMARY_input} ts"
  19160. fi
  19161. fi
  19162. }
  19163. CheckPTHREAD()
  19164. {
  19165. # Check whether --enable-pthreads was given.
  19166. if test "${enable_pthreads+set}" = set; then :
  19167. enableval=$enable_pthreads;
  19168. else
  19169. enable_pthreads=yes
  19170. fi
  19171. # Check whether --enable-pthread-sem was given.
  19172. if test "${enable_pthread_sem+set}" = set; then :
  19173. enableval=$enable_pthread_sem;
  19174. else
  19175. enable_pthread_sem=yes
  19176. fi
  19177. case "$host" in
  19178. *-*-androideabi*)
  19179. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19180. pthread_lib=""
  19181. ;;
  19182. *-*-linux*|*-*-uclinux*)
  19183. pthread_cflags="-D_REENTRANT"
  19184. pthread_lib="-lpthread"
  19185. ;;
  19186. *-*-bsdi*)
  19187. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19188. pthread_lib=""
  19189. ;;
  19190. *-*-darwin*)
  19191. pthread_cflags="-D_THREAD_SAFE"
  19192. # causes Carbon.p complaints?
  19193. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19194. ;;
  19195. *-*-freebsd*|*-*-dragonfly*)
  19196. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19197. pthread_lib="-pthread"
  19198. ;;
  19199. *-*-netbsd*)
  19200. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19201. pthread_lib="-lpthread"
  19202. ;;
  19203. *-*-openbsd*)
  19204. pthread_cflags="-D_REENTRANT"
  19205. pthread_lib="-pthread"
  19206. ;;
  19207. *-*-solaris2.9)
  19208. # From Solaris 9+, posix4's preferred name is rt.
  19209. pthread_cflags="-D_REENTRANT"
  19210. pthread_lib="-lpthread -lrt"
  19211. ;;
  19212. *-*-solaris2.10)
  19213. # Solaris 10+ merged pthread into libc.
  19214. pthread_cflags="-D_REENTRANT"
  19215. pthread_lib="-lrt"
  19216. ;;
  19217. *-*-solaris*)
  19218. # Solaris 11+ merged rt into libc.
  19219. pthread_cflags="-D_REENTRANT"
  19220. pthread_lib=""
  19221. ;;
  19222. *-*-sysv5*)
  19223. pthread_cflags="-D_REENTRANT -Kthread"
  19224. pthread_lib=""
  19225. ;;
  19226. *-*-aix*)
  19227. pthread_cflags="-D_REENTRANT -mthreads"
  19228. pthread_lib="-lpthread"
  19229. ;;
  19230. *-*-hpux11*)
  19231. pthread_cflags="-D_REENTRANT"
  19232. pthread_lib="-L/usr/lib -lpthread"
  19233. ;;
  19234. *-*-haiku*)
  19235. pthread_cflags="-D_REENTRANT"
  19236. pthread_lib=""
  19237. ;;
  19238. *-*-nto*)
  19239. pthread_cflags="-D_REENTRANT"
  19240. pthread_lib=""
  19241. ;;
  19242. *)
  19243. pthread_cflags="-D_REENTRANT"
  19244. pthread_lib="-lpthread"
  19245. ;;
  19246. esac
  19247. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19248. # Save the original compiler flags and libraries
  19249. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19250. # Add the pthread compiler flags and libraries
  19251. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19252. # Check to see if we have pthread support on this system
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19254. $as_echo_n "checking for pthreads... " >&6; }
  19255. use_pthreads=no
  19256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19257. /* end confdefs.h. */
  19258. #include <pthread.h>
  19259. int
  19260. main ()
  19261. {
  19262. pthread_attr_t type;
  19263. pthread_attr_init(&type);
  19264. ;
  19265. return 0;
  19266. }
  19267. _ACEOF
  19268. if ac_fn_c_try_link "$LINENO"; then :
  19269. use_pthreads=yes
  19270. fi
  19271. rm -f core conftest.err conftest.$ac_objext \
  19272. conftest$ac_exeext conftest.$ac_ext
  19273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19274. $as_echo "$use_pthreads" >&6; }
  19275. # Restore the compiler flags and libraries
  19276. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19277. # Do futher testing if we have pthread support...
  19278. if test x$use_pthreads = xyes; then
  19279. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19280. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19282. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19283. # Save the original compiler flags and libraries
  19284. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19285. # Add the pthread compiler flags and libraries
  19286. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19287. # Check to see if recursive mutexes are available
  19288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19289. $as_echo_n "checking for recursive mutexes... " >&6; }
  19290. has_recursive_mutexes=no
  19291. if test x$has_recursive_mutexes = xno; then
  19292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19293. /* end confdefs.h. */
  19294. #define _GNU_SOURCE 1
  19295. #include <pthread.h>
  19296. int
  19297. main ()
  19298. {
  19299. pthread_mutexattr_t attr;
  19300. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19301. ;
  19302. return 0;
  19303. }
  19304. _ACEOF
  19305. if ac_fn_c_try_link "$LINENO"; then :
  19306. has_recursive_mutexes=yes
  19307. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19308. fi
  19309. rm -f core conftest.err conftest.$ac_objext \
  19310. conftest$ac_exeext conftest.$ac_ext
  19311. fi
  19312. if test x$has_recursive_mutexes = xno; then
  19313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19314. /* end confdefs.h. */
  19315. #define _GNU_SOURCE 1
  19316. #include <pthread.h>
  19317. int
  19318. main ()
  19319. {
  19320. pthread_mutexattr_t attr;
  19321. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. if ac_fn_c_try_link "$LINENO"; then :
  19327. has_recursive_mutexes=yes
  19328. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19329. fi
  19330. rm -f core conftest.err conftest.$ac_objext \
  19331. conftest$ac_exeext conftest.$ac_ext
  19332. fi
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19334. $as_echo "$has_recursive_mutexes" >&6; }
  19335. # Check to see if pthread semaphore support is missing
  19336. if test x$enable_pthread_sem = xyes; then
  19337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19338. $as_echo_n "checking for pthread semaphores... " >&6; }
  19339. have_pthread_sem=no
  19340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19341. /* end confdefs.h. */
  19342. #include <pthread.h>
  19343. #include <semaphore.h>
  19344. int
  19345. main ()
  19346. {
  19347. ;
  19348. return 0;
  19349. }
  19350. _ACEOF
  19351. if ac_fn_c_try_compile "$LINENO"; then :
  19352. have_pthread_sem=yes
  19353. fi
  19354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19356. $as_echo "$have_pthread_sem" >&6; }
  19357. fi
  19358. if test x$have_pthread_sem = xyes; then
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19360. $as_echo_n "checking for sem_timedwait... " >&6; }
  19361. have_sem_timedwait=no
  19362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19363. /* end confdefs.h. */
  19364. #include <pthread.h>
  19365. #include <semaphore.h>
  19366. int
  19367. main ()
  19368. {
  19369. sem_timedwait(NULL, NULL);
  19370. ;
  19371. return 0;
  19372. }
  19373. _ACEOF
  19374. if ac_fn_c_try_link "$LINENO"; then :
  19375. have_sem_timedwait=yes
  19376. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19377. fi
  19378. rm -f core conftest.err conftest.$ac_objext \
  19379. conftest$ac_exeext conftest.$ac_ext
  19380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19381. $as_echo "$have_sem_timedwait" >&6; }
  19382. fi
  19383. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19384. "
  19385. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19386. have_pthread_np_h=yes
  19387. else
  19388. have_pthread_np_h=no
  19389. fi
  19390. if test x$have_pthread_np_h = xyes; then
  19391. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19392. fi
  19393. # Check to see if pthread naming is available
  19394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19395. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19397. /* end confdefs.h. */
  19398. /* Override any GCC internal prototype to avoid an error.
  19399. Use char because int might match the return type of a GCC
  19400. builtin and then its argument prototype would still apply. */
  19401. #ifdef __cplusplus
  19402. extern "C"
  19403. #endif
  19404. char pthread_setname_np ();
  19405. int
  19406. main ()
  19407. {
  19408. return pthread_setname_np ();
  19409. ;
  19410. return 0;
  19411. }
  19412. _ACEOF
  19413. if ac_fn_c_try_link "$LINENO"; then :
  19414. has_pthread_setname_np=yes
  19415. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19416. else
  19417. has_pthread_setname_np=no
  19418. fi
  19419. rm -f core conftest.err conftest.$ac_objext \
  19420. conftest$ac_exeext conftest.$ac_ext
  19421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19422. $as_echo "$has_pthread_setname_np" >&6; }
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19424. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19426. /* end confdefs.h. */
  19427. /* Override any GCC internal prototype to avoid an error.
  19428. Use char because int might match the return type of a GCC
  19429. builtin and then its argument prototype would still apply. */
  19430. #ifdef __cplusplus
  19431. extern "C"
  19432. #endif
  19433. char pthread_set_name_np ();
  19434. int
  19435. main ()
  19436. {
  19437. return pthread_set_name_np ();
  19438. ;
  19439. return 0;
  19440. }
  19441. _ACEOF
  19442. if ac_fn_c_try_link "$LINENO"; then :
  19443. has_pthread_set_name_np=yes
  19444. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19445. else
  19446. has_pthread_set_name_np=no
  19447. fi
  19448. rm -f core conftest.err conftest.$ac_objext \
  19449. conftest$ac_exeext conftest.$ac_ext
  19450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19451. $as_echo "$has_pthread_set_name_np" >&6; }
  19452. # Restore the compiler flags and libraries
  19453. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19454. # Basic thread creation functions
  19455. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19456. # Semaphores
  19457. # We can fake these with mutexes and condition variables if necessary
  19458. if test x$have_pthread_sem = xyes; then
  19459. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19460. else
  19461. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19462. fi
  19463. # Mutexes
  19464. # We can fake these with semaphores if necessary
  19465. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19466. # Condition variables
  19467. # We can fake these with semaphores and mutexes if necessary
  19468. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19469. # Thread local storage
  19470. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19471. have_threads=yes
  19472. fi
  19473. fi
  19474. }
  19475. CheckWINDOWS()
  19476. {
  19477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19478. $as_echo_n "checking Windows compiler... " >&6; }
  19479. have_win32_gcc=no
  19480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19481. /* end confdefs.h. */
  19482. #include <windows.h>
  19483. int
  19484. main ()
  19485. {
  19486. ;
  19487. return 0;
  19488. }
  19489. _ACEOF
  19490. if ac_fn_c_try_compile "$LINENO"; then :
  19491. have_win32_gcc=yes
  19492. fi
  19493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19495. $as_echo "$have_win32_gcc" >&6; }
  19496. if test x$have_win32_gcc != xyes; then
  19497. as_fn_error $? "
  19498. *** Your compiler ($CC) does not produce Windows executables!
  19499. " "$LINENO" 5
  19500. fi
  19501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19502. $as_echo_n "checking Windows CE... " >&6; }
  19503. have_wince=no
  19504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19505. /* end confdefs.h. */
  19506. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19507. #error This is not Windows CE
  19508. #endif
  19509. int
  19510. main ()
  19511. {
  19512. ;
  19513. return 0;
  19514. }
  19515. _ACEOF
  19516. if ac_fn_c_try_compile "$LINENO"; then :
  19517. have_wince=yes
  19518. as_fn_error $? "
  19519. *** Sorry, Windows CE is no longer supported.
  19520. " "$LINENO" 5
  19521. fi
  19522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19524. $as_echo "$have_wince" >&6; }
  19525. # This fixes Windows stack alignment with newer GCC
  19526. CheckStackBoundary
  19527. }
  19528. CheckDIRECTX()
  19529. {
  19530. # Check whether --enable-directx was given.
  19531. if test "${enable_directx+set}" = set; then :
  19532. enableval=$enable_directx;
  19533. else
  19534. enable_directx=yes
  19535. fi
  19536. if test x$enable_directx = xyes; then
  19537. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19538. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19539. have_d3d=yes
  19540. fi
  19541. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19542. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19543. have_d3d11=yes
  19544. fi
  19545. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19546. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19547. have_ddraw=yes
  19548. fi
  19549. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19550. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19551. have_dsound=yes
  19552. fi
  19553. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19554. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19555. have_dinput=yes
  19556. fi
  19557. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19558. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19559. have_dxgi=yes
  19560. fi
  19561. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19562. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19563. have_xaudio2=yes
  19564. fi
  19565. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19566. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19567. have_xinput=yes
  19568. fi
  19569. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19570. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19571. have_wasapi=yes
  19572. fi
  19573. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19574. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19575. else
  19576. have_wasapi=no
  19577. fi
  19578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19579. /* end confdefs.h. */
  19580. #include <windows.h>
  19581. #include <xinput.h>
  19582. XINPUT_GAMEPAD_EX x1;
  19583. int
  19584. main ()
  19585. {
  19586. ;
  19587. return 0;
  19588. }
  19589. _ACEOF
  19590. if ac_fn_c_try_compile "$LINENO"; then :
  19591. have_xinput_gamepadex=yes
  19592. fi
  19593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19595. /* end confdefs.h. */
  19596. #include <windows.h>
  19597. #include <xinput.h>
  19598. XINPUT_STATE_EX s1;
  19599. int
  19600. main ()
  19601. {
  19602. ;
  19603. return 0;
  19604. }
  19605. _ACEOF
  19606. if ac_fn_c_try_compile "$LINENO"; then :
  19607. have_xinput_stateex=yes
  19608. fi
  19609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19610. if test x$have_ddraw = xyes; then
  19611. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19612. fi
  19613. if test x$have_dinput = xyes; then
  19614. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19615. fi
  19616. if test x$have_dsound = xyes; then
  19617. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19618. fi
  19619. if test x$have_dxgi = xyes; then
  19620. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19621. fi
  19622. if test x$have_xinput = xyes; then
  19623. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19624. fi
  19625. if test x$have_xinput_gamepadex = xyes; then
  19626. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19627. fi
  19628. if test x$have_xinput_stateex = xyes; then
  19629. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19630. fi
  19631. SUMMARY_video="${SUMMARY_video} directx"
  19632. SUMMARY_audio="${SUMMARY_audio} directx"
  19633. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19634. # FIXME: ...so force it off for now.
  19635. case "$host" in
  19636. *-*-cygwin*)
  19637. have_dinput=false
  19638. ;;
  19639. esac
  19640. fi
  19641. }
  19642. CheckDLOPEN()
  19643. {
  19644. # Check whether --enable-sdl-dlopen was given.
  19645. if test "${enable_sdl_dlopen+set}" = set; then :
  19646. enableval=$enable_sdl_dlopen;
  19647. else
  19648. enable_sdl_dlopen=yes
  19649. fi
  19650. if test x$enable_sdl_dlopen = xyes; then
  19651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19652. $as_echo_n "checking for dlopen... " >&6; }
  19653. have_dlopen=no
  19654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19655. /* end confdefs.h. */
  19656. #include <dlfcn.h>
  19657. int
  19658. main ()
  19659. {
  19660. void *handle = dlopen("", RTLD_NOW);
  19661. const char *loaderror = (char *) dlerror();
  19662. ;
  19663. return 0;
  19664. }
  19665. _ACEOF
  19666. if ac_fn_c_try_compile "$LINENO"; then :
  19667. have_dlopen=yes
  19668. fi
  19669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19671. $as_echo "$have_dlopen" >&6; }
  19672. if test x$have_dlopen = xyes; then
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19674. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19675. if ${ac_cv_lib_c_dlopen+:} false; then :
  19676. $as_echo_n "(cached) " >&6
  19677. else
  19678. ac_check_lib_save_LIBS=$LIBS
  19679. LIBS="-lc $LIBS"
  19680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19681. /* end confdefs.h. */
  19682. /* Override any GCC internal prototype to avoid an error.
  19683. Use char because int might match the return type of a GCC
  19684. builtin and then its argument prototype would still apply. */
  19685. #ifdef __cplusplus
  19686. extern "C"
  19687. #endif
  19688. char dlopen ();
  19689. int
  19690. main ()
  19691. {
  19692. return dlopen ();
  19693. ;
  19694. return 0;
  19695. }
  19696. _ACEOF
  19697. if ac_fn_c_try_link "$LINENO"; then :
  19698. ac_cv_lib_c_dlopen=yes
  19699. else
  19700. ac_cv_lib_c_dlopen=no
  19701. fi
  19702. rm -f core conftest.err conftest.$ac_objext \
  19703. conftest$ac_exeext conftest.$ac_ext
  19704. LIBS=$ac_check_lib_save_LIBS
  19705. fi
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19707. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19708. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19709. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19710. else
  19711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19712. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19713. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19714. $as_echo_n "(cached) " >&6
  19715. else
  19716. ac_check_lib_save_LIBS=$LIBS
  19717. LIBS="-ldl $LIBS"
  19718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19719. /* end confdefs.h. */
  19720. /* Override any GCC internal prototype to avoid an error.
  19721. Use char because int might match the return type of a GCC
  19722. builtin and then its argument prototype would still apply. */
  19723. #ifdef __cplusplus
  19724. extern "C"
  19725. #endif
  19726. char dlopen ();
  19727. int
  19728. main ()
  19729. {
  19730. return dlopen ();
  19731. ;
  19732. return 0;
  19733. }
  19734. _ACEOF
  19735. if ac_fn_c_try_link "$LINENO"; then :
  19736. ac_cv_lib_dl_dlopen=yes
  19737. else
  19738. ac_cv_lib_dl_dlopen=no
  19739. fi
  19740. rm -f core conftest.err conftest.$ac_objext \
  19741. conftest$ac_exeext conftest.$ac_ext
  19742. LIBS=$ac_check_lib_save_LIBS
  19743. fi
  19744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19745. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19746. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19748. else
  19749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19750. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19751. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19752. $as_echo_n "(cached) " >&6
  19753. else
  19754. ac_check_lib_save_LIBS=$LIBS
  19755. LIBS="-lltdl $LIBS"
  19756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19757. /* end confdefs.h. */
  19758. /* Override any GCC internal prototype to avoid an error.
  19759. Use char because int might match the return type of a GCC
  19760. builtin and then its argument prototype would still apply. */
  19761. #ifdef __cplusplus
  19762. extern "C"
  19763. #endif
  19764. char dlopen ();
  19765. int
  19766. main ()
  19767. {
  19768. return dlopen ();
  19769. ;
  19770. return 0;
  19771. }
  19772. _ACEOF
  19773. if ac_fn_c_try_link "$LINENO"; then :
  19774. ac_cv_lib_ltdl_dlopen=yes
  19775. else
  19776. ac_cv_lib_ltdl_dlopen=no
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext \
  19779. conftest$ac_exeext conftest.$ac_ext
  19780. LIBS=$ac_check_lib_save_LIBS
  19781. fi
  19782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19783. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19784. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19786. fi
  19787. fi
  19788. fi
  19789. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19790. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19791. have_loadso=yes
  19792. fi
  19793. fi
  19794. }
  19795. CheckUSBHID()
  19796. {
  19797. case "$host" in
  19798. *-*-*bsd*)
  19799. if test x$enable_joystick = xyes; then
  19800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19801. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19802. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19803. $as_echo_n "(cached) " >&6
  19804. else
  19805. ac_check_lib_save_LIBS=$LIBS
  19806. LIBS="-lusbhid $LIBS"
  19807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19808. /* end confdefs.h. */
  19809. /* Override any GCC internal prototype to avoid an error.
  19810. Use char because int might match the return type of a GCC
  19811. builtin and then its argument prototype would still apply. */
  19812. #ifdef __cplusplus
  19813. extern "C"
  19814. #endif
  19815. char hid_init ();
  19816. int
  19817. main ()
  19818. {
  19819. return hid_init ();
  19820. ;
  19821. return 0;
  19822. }
  19823. _ACEOF
  19824. if ac_fn_c_try_link "$LINENO"; then :
  19825. ac_cv_lib_usbhid_hid_init=yes
  19826. else
  19827. ac_cv_lib_usbhid_hid_init=no
  19828. fi
  19829. rm -f core conftest.err conftest.$ac_objext \
  19830. conftest$ac_exeext conftest.$ac_ext
  19831. LIBS=$ac_check_lib_save_LIBS
  19832. fi
  19833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19834. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19835. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19836. have_libusbhid=yes
  19837. fi
  19838. if test x$have_libusbhid = xyes; then
  19839. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19840. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19841. USB_CFLAGS="-DHAVE_USBHID_H"
  19842. fi
  19843. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19844. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19845. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19846. fi
  19847. USB_LIBS="$USB_LIBS -lusbhid"
  19848. else
  19849. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19850. if test "x$ac_cv_header_usb_h" = xyes; then :
  19851. USB_CFLAGS="-DHAVE_USB_H"
  19852. fi
  19853. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19854. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19855. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19856. fi
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19858. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19859. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19860. $as_echo_n "(cached) " >&6
  19861. else
  19862. ac_check_lib_save_LIBS=$LIBS
  19863. LIBS="-lusb $LIBS"
  19864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19865. /* end confdefs.h. */
  19866. /* Override any GCC internal prototype to avoid an error.
  19867. Use char because int might match the return type of a GCC
  19868. builtin and then its argument prototype would still apply. */
  19869. #ifdef __cplusplus
  19870. extern "C"
  19871. #endif
  19872. char hid_init ();
  19873. int
  19874. main ()
  19875. {
  19876. return hid_init ();
  19877. ;
  19878. return 0;
  19879. }
  19880. _ACEOF
  19881. if ac_fn_c_try_link "$LINENO"; then :
  19882. ac_cv_lib_usb_hid_init=yes
  19883. else
  19884. ac_cv_lib_usb_hid_init=no
  19885. fi
  19886. rm -f core conftest.err conftest.$ac_objext \
  19887. conftest$ac_exeext conftest.$ac_ext
  19888. LIBS=$ac_check_lib_save_LIBS
  19889. fi
  19890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19891. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19892. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19893. USB_LIBS="$USB_LIBS -lusb"
  19894. fi
  19895. fi
  19896. save_CFLAGS="$CFLAGS"
  19897. CFLAGS="$CFLAGS $USB_CFLAGS"
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19899. $as_echo_n "checking for usbhid... " >&6; }
  19900. have_usbhid=no
  19901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19902. /* end confdefs.h. */
  19903. #include <sys/types.h>
  19904. #if defined(HAVE_USB_H)
  19905. #include <usb.h>
  19906. #endif
  19907. #ifdef __DragonFly__
  19908. # include <bus/usb/usb.h>
  19909. # include <bus/usb/usbhid.h>
  19910. #else
  19911. # include <dev/usb/usb.h>
  19912. # include <dev/usb/usbhid.h>
  19913. #endif
  19914. #if defined(HAVE_USBHID_H)
  19915. #include <usbhid.h>
  19916. #elif defined(HAVE_LIBUSB_H)
  19917. #include <libusb.h>
  19918. #elif defined(HAVE_LIBUSBHID_H)
  19919. #include <libusbhid.h>
  19920. #endif
  19921. int
  19922. main ()
  19923. {
  19924. struct report_desc *repdesc;
  19925. struct usb_ctl_report *repbuf;
  19926. hid_kind_t hidkind;
  19927. ;
  19928. return 0;
  19929. }
  19930. _ACEOF
  19931. if ac_fn_c_try_compile "$LINENO"; then :
  19932. have_usbhid=yes
  19933. fi
  19934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  19936. $as_echo "$have_usbhid" >&6; }
  19937. if test x$have_usbhid = xyes; then
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  19939. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  19940. have_usbhid_ucr_data=no
  19941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19942. /* end confdefs.h. */
  19943. #include <sys/types.h>
  19944. #if defined(HAVE_USB_H)
  19945. #include <usb.h>
  19946. #endif
  19947. #ifdef __DragonFly__
  19948. # include <bus/usb/usb.h>
  19949. # include <bus/usb/usbhid.h>
  19950. #else
  19951. # include <dev/usb/usb.h>
  19952. # include <dev/usb/usbhid.h>
  19953. #endif
  19954. #if defined(HAVE_USBHID_H)
  19955. #include <usbhid.h>
  19956. #elif defined(HAVE_LIBUSB_H)
  19957. #include <libusb.h>
  19958. #elif defined(HAVE_LIBUSBHID_H)
  19959. #include <libusbhid.h>
  19960. #endif
  19961. int
  19962. main ()
  19963. {
  19964. struct usb_ctl_report buf;
  19965. if (buf.ucr_data) { }
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_compile "$LINENO"; then :
  19971. have_usbhid_ucr_data=yes
  19972. fi
  19973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19974. if test x$have_usbhid_ucr_data = xyes; then
  19975. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  19976. fi
  19977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  19978. $as_echo "$have_usbhid_ucr_data" >&6; }
  19979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  19980. $as_echo_n "checking for new usbhid API... " >&6; }
  19981. have_usbhid_new=no
  19982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19983. /* end confdefs.h. */
  19984. #include <sys/types.h>
  19985. #if defined(HAVE_USB_H)
  19986. #include <usb.h>
  19987. #endif
  19988. #ifdef __DragonFly__
  19989. #include <bus/usb/usb.h>
  19990. #include <bus/usb/usbhid.h>
  19991. #else
  19992. #include <dev/usb/usb.h>
  19993. #include <dev/usb/usbhid.h>
  19994. #endif
  19995. #if defined(HAVE_USBHID_H)
  19996. #include <usbhid.h>
  19997. #elif defined(HAVE_LIBUSB_H)
  19998. #include <libusb.h>
  19999. #elif defined(HAVE_LIBUSBHID_H)
  20000. #include <libusbhid.h>
  20001. #endif
  20002. int
  20003. main ()
  20004. {
  20005. report_desc_t d;
  20006. hid_start_parse(d, 1, 1);
  20007. ;
  20008. return 0;
  20009. }
  20010. _ACEOF
  20011. if ac_fn_c_try_compile "$LINENO"; then :
  20012. have_usbhid_new=yes
  20013. fi
  20014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20015. if test x$have_usbhid_new = xyes; then
  20016. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20017. fi
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20019. $as_echo "$have_usbhid_new" >&6; }
  20020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20021. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20022. have_machine_joystick=no
  20023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20024. /* end confdefs.h. */
  20025. #include <machine/joystick.h>
  20026. int
  20027. main ()
  20028. {
  20029. struct joystick t;
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. if ac_fn_c_try_compile "$LINENO"; then :
  20035. have_machine_joystick=yes
  20036. fi
  20037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20038. if test x$have_machine_joystick = xyes; then
  20039. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20040. fi
  20041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20042. $as_echo "$have_machine_joystick" >&6; }
  20043. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20044. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20045. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20046. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20047. have_joystick=yes
  20048. fi
  20049. CFLAGS="$save_CFLAGS"
  20050. fi
  20051. ;;
  20052. esac
  20053. }
  20054. CheckClockGettime()
  20055. {
  20056. # Check whether --enable-clock_gettime was given.
  20057. if test "${enable_clock_gettime+set}" = set; then :
  20058. enableval=$enable_clock_gettime;
  20059. else
  20060. enable_clock_gettime=yes
  20061. fi
  20062. if test x$enable_clock_gettime = xyes; then
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20064. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20065. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20066. $as_echo_n "(cached) " >&6
  20067. else
  20068. ac_check_lib_save_LIBS=$LIBS
  20069. LIBS="-lrt $LIBS"
  20070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20071. /* end confdefs.h. */
  20072. /* Override any GCC internal prototype to avoid an error.
  20073. Use char because int might match the return type of a GCC
  20074. builtin and then its argument prototype would still apply. */
  20075. #ifdef __cplusplus
  20076. extern "C"
  20077. #endif
  20078. char clock_gettime ();
  20079. int
  20080. main ()
  20081. {
  20082. return clock_gettime ();
  20083. ;
  20084. return 0;
  20085. }
  20086. _ACEOF
  20087. if ac_fn_c_try_link "$LINENO"; then :
  20088. ac_cv_lib_rt_clock_gettime=yes
  20089. else
  20090. ac_cv_lib_rt_clock_gettime=no
  20091. fi
  20092. rm -f core conftest.err conftest.$ac_objext \
  20093. conftest$ac_exeext conftest.$ac_ext
  20094. LIBS=$ac_check_lib_save_LIBS
  20095. fi
  20096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20097. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20098. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20099. have_clock_gettime=yes
  20100. fi
  20101. if test x$have_clock_gettime = xyes; then
  20102. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20104. else
  20105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20106. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20107. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20108. $as_echo_n "(cached) " >&6
  20109. else
  20110. ac_check_lib_save_LIBS=$LIBS
  20111. LIBS="-lc $LIBS"
  20112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20113. /* end confdefs.h. */
  20114. /* Override any GCC internal prototype to avoid an error.
  20115. Use char because int might match the return type of a GCC
  20116. builtin and then its argument prototype would still apply. */
  20117. #ifdef __cplusplus
  20118. extern "C"
  20119. #endif
  20120. char clock_gettime ();
  20121. int
  20122. main ()
  20123. {
  20124. return clock_gettime ();
  20125. ;
  20126. return 0;
  20127. }
  20128. _ACEOF
  20129. if ac_fn_c_try_link "$LINENO"; then :
  20130. ac_cv_lib_c_clock_gettime=yes
  20131. else
  20132. ac_cv_lib_c_clock_gettime=no
  20133. fi
  20134. rm -f core conftest.err conftest.$ac_objext \
  20135. conftest$ac_exeext conftest.$ac_ext
  20136. LIBS=$ac_check_lib_save_LIBS
  20137. fi
  20138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20139. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20140. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20141. have_clock_gettime=yes
  20142. fi
  20143. if test x$have_clock_gettime = xyes; then
  20144. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20146. fi
  20147. fi
  20148. fi
  20149. }
  20150. CheckLinuxVersion()
  20151. {
  20152. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20153. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20154. have_linux_version_h=yes
  20155. fi
  20156. if test x$have_linux_version_h = xyes; then
  20157. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20158. fi
  20159. }
  20160. CheckRPATH()
  20161. {
  20162. # Check whether --enable-rpath was given.
  20163. if test "${enable_rpath+set}" = set; then :
  20164. enableval=$enable_rpath;
  20165. else
  20166. enable_rpath=yes
  20167. fi
  20168. }
  20169. CheckWarnAll
  20170. case "$host" in
  20171. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20172. case "$host" in
  20173. *-raspberry-linux*)
  20174. # Raspberry Pi
  20175. ARCH=linux
  20176. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20177. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20178. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20179. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20180. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L/opt/vc/lib -lbcm_host -ldl"
  20181. if test x$enable_video = xyes; then
  20182. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20183. # FIXME: confdefs? Not AC_DEFINE?
  20184. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20185. SUMMARY_video="${SUMMARY_video} rpi"
  20186. fi
  20187. ;;
  20188. *-*-androideabi*)
  20189. # Android
  20190. ARCH=android
  20191. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20192. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20193. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20194. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20196. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20197. if test x$enable_video = xyes; then
  20198. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20199. # FIXME: confdefs? Not AC_DEFINE?
  20200. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20201. SUMMARY_video="${SUMMARY_video} android"
  20202. fi
  20203. ;;
  20204. *-*-linux*) ARCH=linux ;;
  20205. *-*-uclinux*) ARCH=linux ;;
  20206. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20207. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20208. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20209. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20210. *-*-bsdi*) ARCH=bsdi ;;
  20211. *-*-freebsd*) ARCH=freebsd ;;
  20212. *-*-dragonfly*) ARCH=freebsd ;;
  20213. *-raspberry-netbsd*)
  20214. # Raspberry Pi
  20215. ARCH=netbsd
  20216. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20217. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20218. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20219. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host -ldl"
  20221. if test x$enable_video = xyes; then
  20222. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20223. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20224. SUMMARY_video="${SUMMARY_video} raspberry"
  20225. fi
  20226. ;;
  20227. *-*-netbsd*) ARCH=netbsd ;;
  20228. *-*-openbsd*) ARCH=openbsd ;;
  20229. *-*-sysv5*) ARCH=sysv5 ;;
  20230. *-*-solaris*) ARCH=solaris ;;
  20231. *-*-hpux*) ARCH=hpux ;;
  20232. *-*-aix*) ARCH=aix ;;
  20233. *-*-minix*) ARCH=minix ;;
  20234. *-*-nto*) ARCH=nto
  20235. CheckQNXVideo
  20236. ;;
  20237. esac
  20238. CheckVisibilityHidden
  20239. CheckDeclarationAfterStatement
  20240. CheckDummyVideo
  20241. CheckDiskAudio
  20242. CheckDummyAudio
  20243. CheckDLOPEN
  20244. CheckOSS
  20245. CheckALSA
  20246. CheckPulseAudio
  20247. CheckJACK
  20248. CheckARTSC
  20249. CheckESD
  20250. CheckNAS
  20251. CheckSNDIO
  20252. CheckFusionSound
  20253. CheckLibSampleRate
  20254. CheckX11
  20255. CheckDirectFB
  20256. CheckKMSDRM
  20257. CheckOpenGLX11
  20258. CheckOpenGLESX11
  20259. CheckVulkan
  20260. CheckMir
  20261. CheckWayland
  20262. CheckLibUDev
  20263. CheckDBus
  20264. CheckIME
  20265. CheckIBus
  20266. CheckFcitx
  20267. case $ARCH in
  20268. linux)
  20269. CheckInputEvents
  20270. CheckInputKD
  20271. ;;
  20272. esac
  20273. CheckTslib
  20274. CheckUSBHID
  20275. CheckPTHREAD
  20276. CheckClockGettime
  20277. CheckLinuxVersion
  20278. CheckRPATH
  20279. CheckVivanteVideo
  20280. # Set up files for the audio library
  20281. if test x$enable_audio = xyes; then
  20282. case $ARCH in
  20283. sysv5|solaris|hpux)
  20284. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20285. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20286. SUMMARY_audio="${SUMMARY_audio} sun"
  20287. have_audio=yes
  20288. ;;
  20289. netbsd) # Don't use this on OpenBSD, it's busted.
  20290. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20291. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20292. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20293. have_audio=yes
  20294. ;;
  20295. aix)
  20296. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20297. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20298. SUMMARY_audio="${SUMMARY_audio} paudio"
  20299. have_audio=yes
  20300. ;;
  20301. android)
  20302. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20303. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20304. SUMMARY_audio="${SUMMARY_audio} android"
  20305. have_audio=yes
  20306. ;;
  20307. nto)
  20308. CheckQNXAudio
  20309. ;;
  20310. esac
  20311. fi
  20312. # Set up files for the joystick library
  20313. if test x$enable_joystick = xyes; then
  20314. case $ARCH in
  20315. linux)
  20316. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20317. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20318. have_joystick=yes
  20319. ;;
  20320. android)
  20321. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20322. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20323. have_joystick=yes
  20324. ;;
  20325. esac
  20326. fi
  20327. # Set up files for the haptic library
  20328. if test x$enable_haptic = xyes; then
  20329. if test x$use_input_events = xyes; then
  20330. case $ARCH in
  20331. linux)
  20332. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20333. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20334. have_haptic=yes
  20335. ;;
  20336. esac
  20337. fi
  20338. fi
  20339. # Set up files for the power library
  20340. if test x$enable_power = xyes; then
  20341. case $ARCH in
  20342. linux)
  20343. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20344. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20345. have_power=yes
  20346. ;;
  20347. android)
  20348. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20349. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20350. have_power=yes
  20351. ;;
  20352. esac
  20353. fi
  20354. # Set up files for the filesystem library
  20355. if test x$enable_filesystem = xyes; then
  20356. case $ARCH in
  20357. android)
  20358. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20359. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20360. have_filesystem=yes
  20361. ;;
  20362. *)
  20363. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20364. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20365. have_filesystem=yes
  20366. ;;
  20367. esac
  20368. fi
  20369. # Set up files for the timer library
  20370. if test x$enable_timers = xyes; then
  20371. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20372. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20373. have_timers=yes
  20374. fi
  20375. # Set up files for udev hotplugging support
  20376. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20377. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20378. fi
  20379. # Set up files for evdev input
  20380. if test x$use_input_events = xyes; then
  20381. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20382. fi
  20383. # Set up other core UNIX files
  20384. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20385. ;;
  20386. *-*-cygwin* | *-*-mingw32*)
  20387. ARCH=win32
  20388. if test "$build" != "$host"; then # cross-compiling
  20389. # Default cross-compile location
  20390. ac_default_prefix=/usr/local/cross-tools/$host
  20391. else
  20392. # Look for the location of the tools and install there
  20393. if test "$BUILD_PREFIX" != ""; then
  20394. ac_default_prefix=$BUILD_PREFIX
  20395. fi
  20396. fi
  20397. CheckDeclarationAfterStatement
  20398. CheckDummyVideo
  20399. CheckDiskAudio
  20400. CheckDummyAudio
  20401. CheckWINDOWS
  20402. CheckWINDOWSGL
  20403. CheckWINDOWSGLES
  20404. CheckVulkan
  20405. CheckDIRECTX
  20406. # Set up the core platform files
  20407. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20408. # Set up files for the video library
  20409. if test x$enable_video = xyes; then
  20410. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20411. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20412. have_video=yes
  20413. # Check whether --enable-render-d3d was given.
  20414. if test "${enable_render_d3d+set}" = set; then :
  20415. enableval=$enable_render_d3d;
  20416. else
  20417. enable_render_d3d=yes
  20418. fi
  20419. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20420. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20421. fi
  20422. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20423. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20424. fi
  20425. fi
  20426. # Set up files for the audio library
  20427. if test x$enable_audio = xyes; then
  20428. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20429. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20430. if test x$have_dsound = xyes; then
  20431. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20432. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20433. fi
  20434. if test x$have_xaudio2 = xyes; then
  20435. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20436. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20437. fi
  20438. if test x$have_wasapi = xyes; then
  20439. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20440. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20441. fi
  20442. have_audio=yes
  20443. fi
  20444. # Set up files for the joystick library
  20445. if test x$enable_joystick = xyes; then
  20446. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20447. if test x$have_xinput = xyes; then
  20448. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20449. fi
  20450. if test x$have_dinput = xyes; then
  20451. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20453. fi
  20454. else
  20455. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20456. fi
  20457. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20458. have_joystick=yes
  20459. fi
  20460. if test x$enable_haptic = xyes; then
  20461. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20462. if test x$have_xinput = xyes; then
  20463. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20464. fi
  20465. if test x$have_dinput = xyes; then
  20466. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20467. fi
  20468. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20469. have_haptic=yes
  20470. fi
  20471. fi
  20472. if test x$enable_power = xyes; then
  20473. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20474. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20475. have_power=yes
  20476. fi
  20477. if test x$enable_filesystem = xyes; then
  20478. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20479. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20480. have_filesystem=yes
  20481. fi
  20482. # Set up files for the thread library
  20483. if test x$enable_threads = xyes; then
  20484. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20485. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20486. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20487. have_threads=yes
  20488. fi
  20489. # Set up files for the timer library
  20490. if test x$enable_timers = xyes; then
  20491. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20492. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20493. have_timers=yes
  20494. fi
  20495. # Set up files for the shared object loading library
  20496. if test x$enable_loadso = xyes; then
  20497. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20498. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20499. have_loadso=yes
  20500. fi
  20501. # Set up the system libraries we need
  20502. if test -f /lib/w32api/libuuid.a; then
  20503. LIBUUID=/lib/w32api/libuuid.a
  20504. else
  20505. LIBUUID=-luuid
  20506. fi
  20507. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20508. # The Windows platform requires special setup
  20509. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20510. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20511. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20512. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20513. # Check to see if this is a mingw or cygwin build
  20514. have_mingw32=
  20515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20516. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20517. if ${ac_cv_lib_mingw32_main+:} false; then :
  20518. $as_echo_n "(cached) " >&6
  20519. else
  20520. ac_check_lib_save_LIBS=$LIBS
  20521. LIBS="-lmingw32 $LIBS"
  20522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20523. /* end confdefs.h. */
  20524. int
  20525. main ()
  20526. {
  20527. return main ();
  20528. ;
  20529. return 0;
  20530. }
  20531. _ACEOF
  20532. if ac_fn_c_try_link "$LINENO"; then :
  20533. ac_cv_lib_mingw32_main=yes
  20534. else
  20535. ac_cv_lib_mingw32_main=no
  20536. fi
  20537. rm -f core conftest.err conftest.$ac_objext \
  20538. conftest$ac_exeext conftest.$ac_ext
  20539. LIBS=$ac_check_lib_save_LIBS
  20540. fi
  20541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20542. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20543. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20544. have_mingw32=yes
  20545. fi
  20546. if test x$have_mingw32 = xyes; then
  20547. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20548. else
  20549. SDL_LIBS="-lcygwin $SDL_LIBS"
  20550. fi
  20551. ;;
  20552. *-*-beos*)
  20553. as_fn_error $? "
  20554. *** BeOS support has been removed as of SDL 2.0.2.
  20555. " "$LINENO" 5
  20556. ;;
  20557. *-*-haiku*)
  20558. ARCH=haiku
  20559. ac_default_prefix=/boot/system
  20560. CheckDummyVideo
  20561. CheckDiskAudio
  20562. CheckDummyAudio
  20563. CheckDLOPEN
  20564. CheckHaikuVideo
  20565. CheckHaikuGL
  20566. CheckPTHREAD
  20567. # Set up files for the audio library
  20568. if test x$enable_audio = xyes; then
  20569. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20570. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20571. SUMMARY_audio="${SUMMARY_audio} haiku"
  20572. have_audio=yes
  20573. fi
  20574. # Set up files for the joystick library
  20575. if test x$enable_joystick = xyes; then
  20576. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20577. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20578. have_joystick=yes
  20579. fi
  20580. # Set up files for the timer library
  20581. if test x$enable_timers = xyes; then
  20582. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20583. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20584. have_timers=yes
  20585. fi
  20586. # Set up files for the system power library
  20587. if test x$enable_power = xyes; then
  20588. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20589. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20590. have_power=yes
  20591. fi
  20592. # Set up files for the system filesystem library
  20593. if test x$enable_filesystem = xyes; then
  20594. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20595. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20596. have_filesystem=yes
  20597. fi
  20598. # The Haiku platform requires special setup.
  20599. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20600. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20601. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20602. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20603. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20605. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20606. if eval \${$as_ac_File+:} false; then :
  20607. $as_echo_n "(cached) " >&6
  20608. else
  20609. test "$cross_compiling" = yes &&
  20610. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20611. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20612. eval "$as_ac_File=yes"
  20613. else
  20614. eval "$as_ac_File=no"
  20615. fi
  20616. fi
  20617. eval ac_res=\$$as_ac_File
  20618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20619. $as_echo "$ac_res" >&6; }
  20620. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20622. else
  20623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20624. fi
  20625. ;;
  20626. arm*-apple-darwin*|*-ios-*)
  20627. ARCH=ios
  20628. CheckVisibilityHidden
  20629. CheckDeclarationAfterStatement
  20630. CheckDummyVideo
  20631. CheckDiskAudio
  20632. CheckDummyAudio
  20633. CheckDLOPEN
  20634. CheckPTHREAD
  20635. CheckVulkan
  20636. # Set up files for the audio library
  20637. if test x$enable_audio = xyes; then
  20638. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20639. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20640. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20641. have_audio=yes
  20642. fi
  20643. # Set up files for the joystick library
  20644. if test x$enable_joystick = xyes; then
  20645. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20646. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20647. have_joystick=yes
  20648. fi
  20649. # Set up files for the haptic library
  20650. #if test x$enable_haptic = xyes; then
  20651. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20652. # have_haptic=yes
  20653. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20654. #fi
  20655. # Set up files for the power library
  20656. if test x$enable_power = xyes; then
  20657. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20658. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20659. have_power=yes
  20660. fi
  20661. # Set up files for the filesystem library
  20662. if test x$enable_filesystem = xyes; then
  20663. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20664. have_filesystem=yes
  20665. fi
  20666. # Set up additional files for the file library
  20667. if test x$enable_file = xyes; then
  20668. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20669. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20670. fi
  20671. # Set up files for the timer library
  20672. if test x$enable_timers = xyes; then
  20673. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20674. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20675. have_timers=yes
  20676. fi
  20677. # Set up other core UNIX files
  20678. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20679. # The iOS platform requires special setup.
  20680. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20681. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20682. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20683. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20684. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20685. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20686. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20688. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20692. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20695. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20696. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20697. ;;
  20698. *-*-darwin* )
  20699. # This could be either full "Mac OS X", or plain "Darwin" which is
  20700. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20701. # Next line is broken, and a few files below require Mac OS X (full)
  20702. ARCH=macosx
  20703. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20704. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20705. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20706. CheckVisibilityHidden
  20707. CheckDeclarationAfterStatement
  20708. CheckDummyVideo
  20709. CheckDiskAudio
  20710. CheckDummyAudio
  20711. CheckDLOPEN
  20712. CheckCOCOA
  20713. CheckX11
  20714. CheckMacGL
  20715. CheckOpenGLX11
  20716. CheckVulkan
  20717. CheckPTHREAD
  20718. # Set up files for the audio library
  20719. if test x$enable_audio = xyes; then
  20720. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20721. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20722. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20723. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20724. have_audio=yes
  20725. fi
  20726. # Set up files for the joystick library
  20727. if test x$enable_joystick = xyes; then
  20728. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20729. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20730. have_joystick=yes
  20731. fi
  20732. # Set up files for the haptic library
  20733. if test x$enable_haptic = xyes; then
  20734. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20735. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20737. have_haptic=yes
  20738. fi
  20739. # Set up files for the power library
  20740. if test x$enable_power = xyes; then
  20741. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20742. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20743. have_power=yes
  20744. fi
  20745. # Set up files for the filesystem library
  20746. if test x$enable_filesystem = xyes; then
  20747. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20748. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20749. have_filesystem=yes
  20750. fi
  20751. # Set up files for the timer library
  20752. if test x$enable_timers = xyes; then
  20753. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20754. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20755. have_timers=yes
  20756. fi
  20757. # Set up additional files for the file library
  20758. if test x$enable_file = xyes; then
  20759. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20760. fi
  20761. # Set up other core UNIX files
  20762. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20763. # The Mac OS X platform requires special setup.
  20764. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20765. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20767. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20769. ;;
  20770. *-nacl|*-pnacl)
  20771. ARCH=nacl
  20772. CheckNativeClient
  20773. CheckDummyAudio
  20774. CheckDummyVideo
  20775. CheckInputEvents
  20776. CheckPTHREAD
  20777. # Set up files for the timer library
  20778. if test x$enable_timers = xyes; then
  20779. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20780. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20781. have_timers=yes
  20782. fi
  20783. if test x$enable_filesystem = xyes; then
  20784. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20785. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20786. have_filesystem=yes
  20787. fi
  20788. ;;
  20789. *-*-emscripten* )
  20790. if test x$enable_video = xyes; then
  20791. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20792. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20793. have_video=yes
  20794. SUMMARY_video="${SUMMARY_video} emscripten"
  20795. fi
  20796. if test x$enable_audio = xyes; then
  20797. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20798. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20799. have_audio=yes
  20800. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20801. fi
  20802. CheckVisibilityHidden
  20803. CheckDeclarationAfterStatement
  20804. CheckDummyVideo
  20805. CheckDiskAudio
  20806. CheckDummyAudio
  20807. CheckDLOPEN
  20808. CheckClockGettime
  20809. CheckEmscriptenGLES
  20810. # Set up files for the power library
  20811. if test x$enable_power = xyes; then
  20812. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20813. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20814. have_power=yes
  20815. fi
  20816. # Set up files for the power library
  20817. if test x$enable_joystick = xyes; then
  20818. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20819. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20820. have_joystick=yes
  20821. fi
  20822. # Set up files for the filesystem library
  20823. if test x$enable_filesystem = xyes; then
  20824. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20825. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20826. have_filesystem=yes
  20827. fi
  20828. # Set up files for the timer library
  20829. if test x$enable_timers = xyes; then
  20830. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20831. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20832. have_timers=yes
  20833. fi
  20834. ;;
  20835. *)
  20836. as_fn_error $? "
  20837. *** Unsupported host: Please add to configure.in
  20838. " "$LINENO" 5
  20839. ;;
  20840. esac
  20841. # Verify that we have all the platform specific files we need
  20842. if test x$have_joystick != xyes; then
  20843. if test x$enable_joystick = xyes; then
  20844. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20845. fi
  20846. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20847. fi
  20848. if test x$have_haptic != xyes; then
  20849. if test x$enable_haptic = xyes; then
  20850. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20851. fi
  20852. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20853. fi
  20854. if test x$have_threads != xyes; then
  20855. if test x$enable_threads = xyes; then
  20856. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20857. fi
  20858. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20859. fi
  20860. if test x$have_timers != xyes; then
  20861. if test x$enable_timers = xyes; then
  20862. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20863. fi
  20864. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20865. fi
  20866. if test x$have_filesystem != xyes; then
  20867. if test x$enable_filesystem = xyes; then
  20868. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20869. fi
  20870. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20871. fi
  20872. if test x$have_loadso != xyes; then
  20873. if test x$enable_loadso = xyes; then
  20874. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20875. fi
  20876. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20877. fi
  20878. if test x$SDLMAIN_SOURCES = x; then
  20879. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20880. fi
  20881. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20882. if test x$video_wayland = xyes; then
  20883. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20884. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20885. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20886. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20887. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20888. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20889. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20890. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20891. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20892. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20893. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20894. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20895. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20896. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20897. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20898. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20899. WAYLAND_CORE_PROTOCOL_OBJECT="
  20900. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20901. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20902. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20903. do echo ; echo \$p | sed\
  20904. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20905. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20906. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20907. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20908. do echo ; echo \$p | sed\
  20909. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20910. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20911. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20912. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20913. do echo ; echo \$p | sed\
  20914. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20915. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20916. WAYLAND_PROTOCOLS_DEPENDS="
  20917. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20918. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20919. $WAYLAND_CORE_PROTOCOL_OBJECT
  20920. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20921. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20922. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20923. "
  20924. fi
  20925. OBJECTS=`echo $SOURCES`
  20926. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20927. for EXT in asm cc m c S; do
  20928. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20929. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20930. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20931. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20932. done
  20933. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20934. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20935. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20936. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20937. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20938. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20939. \\$(WINDRES) \\$< \\$@,g"`
  20940. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20941. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20942. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20943. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20944. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20945. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20946. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20947. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20948. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20949. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20950. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20951. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20952. # Set runtime shared library paths as needed
  20953. if test "x$enable_rpath" = "xyes"; then
  20954. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20955. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  20956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  20957. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  20958. have_enable_new_dtags=no
  20959. save_LDFLAGS="$LDFLAGS"
  20960. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  20961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20962. /* end confdefs.h. */
  20963. int
  20964. main ()
  20965. {
  20966. ;
  20967. return 0;
  20968. }
  20969. _ACEOF
  20970. if ac_fn_c_try_link "$LINENO"; then :
  20971. have_enable_new_dtags=yes
  20972. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  20973. fi
  20974. rm -f core conftest.err conftest.$ac_objext \
  20975. conftest$ac_exeext conftest.$ac_ext
  20976. LDFLAGS="$save_LDFLAGS"
  20977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  20978. $as_echo "$have_enable_new_dtags" >&6; }
  20979. fi
  20980. if test $ARCH = solaris; then
  20981. SDL_RLD_FLAGS="-R\${libdir}"
  20982. fi
  20983. else
  20984. SDL_RLD_FLAGS=""
  20985. fi
  20986. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  20987. if test x$enable_shared = xyes; then
  20988. ENABLE_SHARED_TRUE=
  20989. ENABLE_SHARED_FALSE="#"
  20990. else
  20991. ENABLE_SHARED_TRUE="#"
  20992. ENABLE_SHARED_FALSE=
  20993. fi
  20994. if test x$enable_static = xyes; then
  20995. ENABLE_STATIC_TRUE=
  20996. ENABLE_STATIC_FALSE="#"
  20997. else
  20998. ENABLE_STATIC_TRUE="#"
  20999. ENABLE_STATIC_FALSE=
  21000. fi
  21001. cat >Makefile.rules <<__EOF__
  21002. # Build rules for objects
  21003. -include \$(OBJECTS:.lo=.d)
  21004. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21005. $srcdir/src/SDL.c: update-revision
  21006. $DEPENDS
  21007. $VERSION_DEPENDS
  21008. $SDLMAIN_DEPENDS
  21009. $SDLTEST_DEPENDS
  21010. $WAYLAND_PROTOCOLS_DEPENDS
  21011. __EOF__
  21012. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21013. ac_config_commands="$ac_config_commands sdl2_config"
  21014. SUMMARY="SDL2 Configure Summary:\n"
  21015. if test x$enable_shared = xyes; then
  21016. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21017. fi
  21018. if test x$enable_static = xyes; then
  21019. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21020. fi
  21021. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21022. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21023. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21024. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21025. if test x$have_x = xyes; then
  21026. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21027. fi
  21028. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21029. if test x$have_samplerate_h_hdr = xyes; then
  21030. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21031. else
  21032. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21033. fi
  21034. if test x$have_libudev_h_hdr = xyes; then
  21035. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21036. else
  21037. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21038. fi
  21039. if test x$have_dbus_dbus_h_hdr = xyes; then
  21040. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21041. else
  21042. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21043. fi
  21044. if test x$enable_ime = xyes; then
  21045. SUMMARY="${SUMMARY}Using ime : YES\n"
  21046. else
  21047. SUMMARY="${SUMMARY}Using ime : NO\n"
  21048. fi
  21049. if test x$have_ibus_ibus_h_hdr = xyes; then
  21050. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21051. else
  21052. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21053. fi
  21054. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21055. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21056. else
  21057. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21058. fi
  21059. ac_config_commands="$ac_config_commands summary"
  21060. cat >confcache <<\_ACEOF
  21061. # This file is a shell script that caches the results of configure
  21062. # tests run on this system so they can be shared between configure
  21063. # scripts and configure runs, see configure's option --config-cache.
  21064. # It is not useful on other systems. If it contains results you don't
  21065. # want to keep, you may remove or edit it.
  21066. #
  21067. # config.status only pays attention to the cache file if you give it
  21068. # the --recheck option to rerun configure.
  21069. #
  21070. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21071. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21072. # following values.
  21073. _ACEOF
  21074. # The following way of writing the cache mishandles newlines in values,
  21075. # but we know of no workaround that is simple, portable, and efficient.
  21076. # So, we kill variables containing newlines.
  21077. # Ultrix sh set writes to stderr and can't be redirected directly,
  21078. # and sets the high bit in the cache file unless we assign to the vars.
  21079. (
  21080. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21081. eval ac_val=\$$ac_var
  21082. case $ac_val in #(
  21083. *${as_nl}*)
  21084. case $ac_var in #(
  21085. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21086. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21087. esac
  21088. case $ac_var in #(
  21089. _ | IFS | as_nl) ;; #(
  21090. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21091. *) { eval $ac_var=; unset $ac_var;} ;;
  21092. esac ;;
  21093. esac
  21094. done
  21095. (set) 2>&1 |
  21096. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21097. *${as_nl}ac_space=\ *)
  21098. # `set' does not quote correctly, so add quotes: double-quote
  21099. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21100. sed -n \
  21101. "s/'/'\\\\''/g;
  21102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21103. ;; #(
  21104. *)
  21105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21106. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21107. ;;
  21108. esac |
  21109. sort
  21110. ) |
  21111. sed '
  21112. /^ac_cv_env_/b end
  21113. t clear
  21114. :clear
  21115. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21116. t end
  21117. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21118. :end' >>confcache
  21119. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21120. if test -w "$cache_file"; then
  21121. if test "x$cache_file" != "x/dev/null"; then
  21122. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21123. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21124. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21125. cat confcache >"$cache_file"
  21126. else
  21127. case $cache_file in #(
  21128. */* | ?:*)
  21129. mv -f confcache "$cache_file"$$ &&
  21130. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21131. *)
  21132. mv -f confcache "$cache_file" ;;
  21133. esac
  21134. fi
  21135. fi
  21136. else
  21137. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21138. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21139. fi
  21140. fi
  21141. rm -f confcache
  21142. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21143. # Let make expand exec_prefix.
  21144. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21145. DEFS=-DHAVE_CONFIG_H
  21146. ac_libobjs=
  21147. ac_ltlibobjs=
  21148. U=
  21149. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21150. # 1. Remove the extension, and $U if already installed.
  21151. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21152. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21153. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21154. # will be set to the directory where LIBOBJS objects are built.
  21155. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21156. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21157. done
  21158. LIBOBJS=$ac_libobjs
  21159. LTLIBOBJS=$ac_ltlibobjs
  21160. : "${CONFIG_STATUS=./config.status}"
  21161. ac_write_fail=0
  21162. ac_clean_files_save=$ac_clean_files
  21163. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21164. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21165. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21166. as_write_fail=0
  21167. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21168. #! $SHELL
  21169. # Generated by $as_me.
  21170. # Run this file to recreate the current configuration.
  21171. # Compiler output produced by configure, useful for debugging
  21172. # configure, is in config.log if it exists.
  21173. debug=false
  21174. ac_cs_recheck=false
  21175. ac_cs_silent=false
  21176. SHELL=\${CONFIG_SHELL-$SHELL}
  21177. export SHELL
  21178. _ASEOF
  21179. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21180. ## -------------------- ##
  21181. ## M4sh Initialization. ##
  21182. ## -------------------- ##
  21183. # Be more Bourne compatible
  21184. DUALCASE=1; export DUALCASE # for MKS sh
  21185. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21186. emulate sh
  21187. NULLCMD=:
  21188. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21189. # is contrary to our usage. Disable this feature.
  21190. alias -g '${1+"$@"}'='"$@"'
  21191. setopt NO_GLOB_SUBST
  21192. else
  21193. case `(set -o) 2>/dev/null` in #(
  21194. *posix*) :
  21195. set -o posix ;; #(
  21196. *) :
  21197. ;;
  21198. esac
  21199. fi
  21200. as_nl='
  21201. '
  21202. export as_nl
  21203. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21204. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21205. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21206. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21207. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21208. # but without wasting forks for bash or zsh.
  21209. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21210. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21211. as_echo='print -r --'
  21212. as_echo_n='print -rn --'
  21213. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21214. as_echo='printf %s\n'
  21215. as_echo_n='printf %s'
  21216. else
  21217. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21218. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21219. as_echo_n='/usr/ucb/echo -n'
  21220. else
  21221. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21222. as_echo_n_body='eval
  21223. arg=$1;
  21224. case $arg in #(
  21225. *"$as_nl"*)
  21226. expr "X$arg" : "X\\(.*\\)$as_nl";
  21227. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21228. esac;
  21229. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21230. '
  21231. export as_echo_n_body
  21232. as_echo_n='sh -c $as_echo_n_body as_echo'
  21233. fi
  21234. export as_echo_body
  21235. as_echo='sh -c $as_echo_body as_echo'
  21236. fi
  21237. # The user is always right.
  21238. if test "${PATH_SEPARATOR+set}" != set; then
  21239. PATH_SEPARATOR=:
  21240. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21241. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21242. PATH_SEPARATOR=';'
  21243. }
  21244. fi
  21245. # IFS
  21246. # We need space, tab and new line, in precisely that order. Quoting is
  21247. # there to prevent editors from complaining about space-tab.
  21248. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21249. # splitting by setting IFS to empty value.)
  21250. IFS=" "" $as_nl"
  21251. # Find who we are. Look in the path if we contain no directory separator.
  21252. as_myself=
  21253. case $0 in #((
  21254. *[\\/]* ) as_myself=$0 ;;
  21255. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21256. for as_dir in $PATH
  21257. do
  21258. IFS=$as_save_IFS
  21259. test -z "$as_dir" && as_dir=.
  21260. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21261. done
  21262. IFS=$as_save_IFS
  21263. ;;
  21264. esac
  21265. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21266. # in which case we are not to be found in the path.
  21267. if test "x$as_myself" = x; then
  21268. as_myself=$0
  21269. fi
  21270. if test ! -f "$as_myself"; then
  21271. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21272. exit 1
  21273. fi
  21274. # Unset variables that we do not need and which cause bugs (e.g. in
  21275. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21276. # suppresses any "Segmentation fault" message there. '((' could
  21277. # trigger a bug in pdksh 5.2.14.
  21278. for as_var in BASH_ENV ENV MAIL MAILPATH
  21279. do eval test x\${$as_var+set} = xset \
  21280. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21281. done
  21282. PS1='$ '
  21283. PS2='> '
  21284. PS4='+ '
  21285. # NLS nuisances.
  21286. LC_ALL=C
  21287. export LC_ALL
  21288. LANGUAGE=C
  21289. export LANGUAGE
  21290. # CDPATH.
  21291. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21292. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21293. # ----------------------------------------
  21294. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21295. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21296. # script with STATUS, using 1 if that was 0.
  21297. as_fn_error ()
  21298. {
  21299. as_status=$1; test $as_status -eq 0 && as_status=1
  21300. if test "$4"; then
  21301. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21302. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21303. fi
  21304. $as_echo "$as_me: error: $2" >&2
  21305. as_fn_exit $as_status
  21306. } # as_fn_error
  21307. # as_fn_set_status STATUS
  21308. # -----------------------
  21309. # Set $? to STATUS, without forking.
  21310. as_fn_set_status ()
  21311. {
  21312. return $1
  21313. } # as_fn_set_status
  21314. # as_fn_exit STATUS
  21315. # -----------------
  21316. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21317. as_fn_exit ()
  21318. {
  21319. set +e
  21320. as_fn_set_status $1
  21321. exit $1
  21322. } # as_fn_exit
  21323. # as_fn_unset VAR
  21324. # ---------------
  21325. # Portably unset VAR.
  21326. as_fn_unset ()
  21327. {
  21328. { eval $1=; unset $1;}
  21329. }
  21330. as_unset=as_fn_unset
  21331. # as_fn_append VAR VALUE
  21332. # ----------------------
  21333. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21334. # advantage of any shell optimizations that allow amortized linear growth over
  21335. # repeated appends, instead of the typical quadratic growth present in naive
  21336. # implementations.
  21337. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21338. eval 'as_fn_append ()
  21339. {
  21340. eval $1+=\$2
  21341. }'
  21342. else
  21343. as_fn_append ()
  21344. {
  21345. eval $1=\$$1\$2
  21346. }
  21347. fi # as_fn_append
  21348. # as_fn_arith ARG...
  21349. # ------------------
  21350. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21351. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21352. # must be portable across $(()) and expr.
  21353. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21354. eval 'as_fn_arith ()
  21355. {
  21356. as_val=$(( $* ))
  21357. }'
  21358. else
  21359. as_fn_arith ()
  21360. {
  21361. as_val=`expr "$@" || test $? -eq 1`
  21362. }
  21363. fi # as_fn_arith
  21364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21366. as_expr=expr
  21367. else
  21368. as_expr=false
  21369. fi
  21370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21371. as_basename=basename
  21372. else
  21373. as_basename=false
  21374. fi
  21375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21376. as_dirname=dirname
  21377. else
  21378. as_dirname=false
  21379. fi
  21380. as_me=`$as_basename -- "$0" ||
  21381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21382. X"$0" : 'X\(//\)$' \| \
  21383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21384. $as_echo X/"$0" |
  21385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21386. s//\1/
  21387. q
  21388. }
  21389. /^X\/\(\/\/\)$/{
  21390. s//\1/
  21391. q
  21392. }
  21393. /^X\/\(\/\).*/{
  21394. s//\1/
  21395. q
  21396. }
  21397. s/.*/./; q'`
  21398. # Avoid depending upon Character Ranges.
  21399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21402. as_cr_digits='0123456789'
  21403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21404. ECHO_C= ECHO_N= ECHO_T=
  21405. case `echo -n x` in #(((((
  21406. -n*)
  21407. case `echo 'xy\c'` in
  21408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21409. xy) ECHO_C='\c';;
  21410. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21411. ECHO_T=' ';;
  21412. esac;;
  21413. *)
  21414. ECHO_N='-n';;
  21415. esac
  21416. rm -f conf$$ conf$$.exe conf$$.file
  21417. if test -d conf$$.dir; then
  21418. rm -f conf$$.dir/conf$$.file
  21419. else
  21420. rm -f conf$$.dir
  21421. mkdir conf$$.dir 2>/dev/null
  21422. fi
  21423. if (echo >conf$$.file) 2>/dev/null; then
  21424. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21425. as_ln_s='ln -s'
  21426. # ... but there are two gotchas:
  21427. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21428. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21429. # In both cases, we have to default to `cp -pR'.
  21430. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21431. as_ln_s='cp -pR'
  21432. elif ln conf$$.file conf$$ 2>/dev/null; then
  21433. as_ln_s=ln
  21434. else
  21435. as_ln_s='cp -pR'
  21436. fi
  21437. else
  21438. as_ln_s='cp -pR'
  21439. fi
  21440. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21441. rmdir conf$$.dir 2>/dev/null
  21442. # as_fn_mkdir_p
  21443. # -------------
  21444. # Create "$as_dir" as a directory, including parents if necessary.
  21445. as_fn_mkdir_p ()
  21446. {
  21447. case $as_dir in #(
  21448. -*) as_dir=./$as_dir;;
  21449. esac
  21450. test -d "$as_dir" || eval $as_mkdir_p || {
  21451. as_dirs=
  21452. while :; do
  21453. case $as_dir in #(
  21454. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21455. *) as_qdir=$as_dir;;
  21456. esac
  21457. as_dirs="'$as_qdir' $as_dirs"
  21458. as_dir=`$as_dirname -- "$as_dir" ||
  21459. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21460. X"$as_dir" : 'X\(//\)[^/]' \| \
  21461. X"$as_dir" : 'X\(//\)$' \| \
  21462. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21463. $as_echo X"$as_dir" |
  21464. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21465. s//\1/
  21466. q
  21467. }
  21468. /^X\(\/\/\)[^/].*/{
  21469. s//\1/
  21470. q
  21471. }
  21472. /^X\(\/\/\)$/{
  21473. s//\1/
  21474. q
  21475. }
  21476. /^X\(\/\).*/{
  21477. s//\1/
  21478. q
  21479. }
  21480. s/.*/./; q'`
  21481. test -d "$as_dir" && break
  21482. done
  21483. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21484. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21485. } # as_fn_mkdir_p
  21486. if mkdir -p . 2>/dev/null; then
  21487. as_mkdir_p='mkdir -p "$as_dir"'
  21488. else
  21489. test -d ./-p && rmdir ./-p
  21490. as_mkdir_p=false
  21491. fi
  21492. # as_fn_executable_p FILE
  21493. # -----------------------
  21494. # Test if FILE is an executable regular file.
  21495. as_fn_executable_p ()
  21496. {
  21497. test -f "$1" && test -x "$1"
  21498. } # as_fn_executable_p
  21499. as_test_x='test -x'
  21500. as_executable_p=as_fn_executable_p
  21501. # Sed expression to map a string onto a valid CPP name.
  21502. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21503. # Sed expression to map a string onto a valid variable name.
  21504. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21505. exec 6>&1
  21506. ## ----------------------------------- ##
  21507. ## Main body of $CONFIG_STATUS script. ##
  21508. ## ----------------------------------- ##
  21509. _ASEOF
  21510. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21512. # Save the log message, to keep $0 and so on meaningful, and to
  21513. # report actual input values of CONFIG_FILES etc. instead of their
  21514. # values after options handling.
  21515. ac_log="
  21516. This file was extended by $as_me, which was
  21517. generated by GNU Autoconf 2.69. Invocation command line was
  21518. CONFIG_FILES = $CONFIG_FILES
  21519. CONFIG_HEADERS = $CONFIG_HEADERS
  21520. CONFIG_LINKS = $CONFIG_LINKS
  21521. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21522. $ $0 $@
  21523. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21524. "
  21525. _ACEOF
  21526. case $ac_config_files in *"
  21527. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21528. esac
  21529. case $ac_config_headers in *"
  21530. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21531. esac
  21532. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21533. # Files that config.status was made for.
  21534. config_files="$ac_config_files"
  21535. config_headers="$ac_config_headers"
  21536. config_commands="$ac_config_commands"
  21537. _ACEOF
  21538. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21539. ac_cs_usage="\
  21540. \`$as_me' instantiates files and other configuration actions
  21541. from templates according to the current configuration. Unless the files
  21542. and actions are specified as TAGs, all are instantiated by default.
  21543. Usage: $0 [OPTION]... [TAG]...
  21544. -h, --help print this help, then exit
  21545. -V, --version print version number and configuration settings, then exit
  21546. --config print configuration, then exit
  21547. -q, --quiet, --silent
  21548. do not print progress messages
  21549. -d, --debug don't remove temporary files
  21550. --recheck update $as_me by reconfiguring in the same conditions
  21551. --file=FILE[:TEMPLATE]
  21552. instantiate the configuration file FILE
  21553. --header=FILE[:TEMPLATE]
  21554. instantiate the configuration header FILE
  21555. Configuration files:
  21556. $config_files
  21557. Configuration headers:
  21558. $config_headers
  21559. Configuration commands:
  21560. $config_commands
  21561. Report bugs to the package provider."
  21562. _ACEOF
  21563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21564. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21565. ac_cs_version="\\
  21566. config.status
  21567. configured by $0, generated by GNU Autoconf 2.69,
  21568. with options \\"\$ac_cs_config\\"
  21569. Copyright (C) 2012 Free Software Foundation, Inc.
  21570. This config.status script is free software; the Free Software Foundation
  21571. gives unlimited permission to copy, distribute and modify it."
  21572. ac_pwd='$ac_pwd'
  21573. srcdir='$srcdir'
  21574. INSTALL='$INSTALL'
  21575. AWK='$AWK'
  21576. test -n "\$AWK" || AWK=awk
  21577. _ACEOF
  21578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21579. # The default lists apply if the user does not specify any file.
  21580. ac_need_defaults=:
  21581. while test $# != 0
  21582. do
  21583. case $1 in
  21584. --*=?*)
  21585. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21586. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21587. ac_shift=:
  21588. ;;
  21589. --*=)
  21590. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21591. ac_optarg=
  21592. ac_shift=:
  21593. ;;
  21594. *)
  21595. ac_option=$1
  21596. ac_optarg=$2
  21597. ac_shift=shift
  21598. ;;
  21599. esac
  21600. case $ac_option in
  21601. # Handling of the options.
  21602. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21603. ac_cs_recheck=: ;;
  21604. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21605. $as_echo "$ac_cs_version"; exit ;;
  21606. --config | --confi | --conf | --con | --co | --c )
  21607. $as_echo "$ac_cs_config"; exit ;;
  21608. --debug | --debu | --deb | --de | --d | -d )
  21609. debug=: ;;
  21610. --file | --fil | --fi | --f )
  21611. $ac_shift
  21612. case $ac_optarg in
  21613. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21614. '') as_fn_error $? "missing file argument" ;;
  21615. esac
  21616. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21617. ac_need_defaults=false;;
  21618. --header | --heade | --head | --hea )
  21619. $ac_shift
  21620. case $ac_optarg in
  21621. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21622. esac
  21623. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21624. ac_need_defaults=false;;
  21625. --he | --h)
  21626. # Conflict between --help and --header
  21627. as_fn_error $? "ambiguous option: \`$1'
  21628. Try \`$0 --help' for more information.";;
  21629. --help | --hel | -h )
  21630. $as_echo "$ac_cs_usage"; exit ;;
  21631. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21632. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21633. ac_cs_silent=: ;;
  21634. # This is an error.
  21635. -*) as_fn_error $? "unrecognized option: \`$1'
  21636. Try \`$0 --help' for more information." ;;
  21637. *) as_fn_append ac_config_targets " $1"
  21638. ac_need_defaults=false ;;
  21639. esac
  21640. shift
  21641. done
  21642. ac_configure_extra_args=
  21643. if $ac_cs_silent; then
  21644. exec 6>/dev/null
  21645. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21646. fi
  21647. _ACEOF
  21648. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21649. if \$ac_cs_recheck; then
  21650. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21651. shift
  21652. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21653. CONFIG_SHELL='$SHELL'
  21654. export CONFIG_SHELL
  21655. exec "\$@"
  21656. fi
  21657. _ACEOF
  21658. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21659. exec 5>>config.log
  21660. {
  21661. echo
  21662. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21663. ## Running $as_me. ##
  21664. _ASBOX
  21665. $as_echo "$ac_log"
  21666. } >&5
  21667. _ACEOF
  21668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21669. #
  21670. # INIT-COMMANDS
  21671. #
  21672. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21673. # if CDPATH is set.
  21674. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21675. sed_quote_subst='$sed_quote_subst'
  21676. double_quote_subst='$double_quote_subst'
  21677. delay_variable_subst='$delay_variable_subst'
  21678. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21679. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21680. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21681. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21682. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21683. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21684. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21685. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21686. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21687. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21688. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21689. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21690. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21691. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21692. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21693. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21694. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21695. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21696. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21697. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21698. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21699. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21700. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21701. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21702. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21703. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21704. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21705. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21706. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21707. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21708. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21709. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21710. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21711. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21712. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21713. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21714. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21715. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21716. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21717. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21718. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21719. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21720. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21721. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21722. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21723. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21724. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21725. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21726. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21727. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21728. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21729. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21730. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21731. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21732. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21733. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21734. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21735. 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"`'
  21736. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21737. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21738. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21739. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21740. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21741. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21742. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21743. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21744. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21745. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21746. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21747. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21748. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21749. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21750. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21751. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21752. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21753. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21754. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21755. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21756. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21757. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21758. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21759. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21760. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21761. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21762. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21763. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21764. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21765. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21766. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21767. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21768. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21769. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21770. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21771. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21772. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21773. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21774. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21775. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21776. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21777. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21778. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21779. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21780. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21781. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21782. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21783. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21784. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21785. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21786. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21787. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21788. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21789. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21790. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21791. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21792. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21793. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21794. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21795. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21796. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21797. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21798. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21799. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21800. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21801. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21802. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21803. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21804. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21805. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21806. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21807. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21808. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21809. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21810. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21811. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21812. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21813. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21814. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21815. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21816. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21817. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21818. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21819. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21820. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21821. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21822. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21823. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21824. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21825. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21826. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21827. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21828. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21829. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21830. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21831. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21832. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21833. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21834. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21835. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21836. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21837. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21838. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21839. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21840. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21841. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21842. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21843. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21844. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21845. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21846. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21847. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21848. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21849. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21850. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21851. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21852. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21853. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21854. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21855. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21856. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21857. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21858. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21859. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21860. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21861. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21862. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21863. LTCC='$LTCC'
  21864. LTCFLAGS='$LTCFLAGS'
  21865. compiler='$compiler_DEFAULT'
  21866. # A function that is used when there is no print builtin or printf.
  21867. func_fallback_echo ()
  21868. {
  21869. eval 'cat <<_LTECHO_EOF
  21870. \$1
  21871. _LTECHO_EOF'
  21872. }
  21873. # Quote evaled strings.
  21874. for var in AS \
  21875. DLLTOOL \
  21876. OBJDUMP \
  21877. SHELL \
  21878. ECHO \
  21879. PATH_SEPARATOR \
  21880. SED \
  21881. GREP \
  21882. EGREP \
  21883. FGREP \
  21884. LD \
  21885. NM \
  21886. LN_S \
  21887. lt_SP2NL \
  21888. lt_NL2SP \
  21889. reload_flag \
  21890. deplibs_check_method \
  21891. file_magic_cmd \
  21892. file_magic_glob \
  21893. want_nocaseglob \
  21894. sharedlib_from_linklib_cmd \
  21895. AR \
  21896. AR_FLAGS \
  21897. archiver_list_spec \
  21898. STRIP \
  21899. RANLIB \
  21900. CC \
  21901. CFLAGS \
  21902. compiler \
  21903. lt_cv_sys_global_symbol_pipe \
  21904. lt_cv_sys_global_symbol_to_cdecl \
  21905. lt_cv_sys_global_symbol_to_c_name_address \
  21906. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21907. nm_file_list_spec \
  21908. lt_prog_compiler_no_builtin_flag \
  21909. lt_prog_compiler_pic \
  21910. lt_prog_compiler_wl \
  21911. lt_prog_compiler_static \
  21912. lt_cv_prog_compiler_c_o \
  21913. need_locks \
  21914. MANIFEST_TOOL \
  21915. DSYMUTIL \
  21916. NMEDIT \
  21917. LIPO \
  21918. OTOOL \
  21919. OTOOL64 \
  21920. shrext_cmds \
  21921. export_dynamic_flag_spec \
  21922. whole_archive_flag_spec \
  21923. compiler_needs_object \
  21924. with_gnu_ld \
  21925. allow_undefined_flag \
  21926. no_undefined_flag \
  21927. hardcode_libdir_flag_spec \
  21928. hardcode_libdir_separator \
  21929. exclude_expsyms \
  21930. include_expsyms \
  21931. file_list_spec \
  21932. variables_saved_for_relink \
  21933. libname_spec \
  21934. library_names_spec \
  21935. soname_spec \
  21936. install_override_mode \
  21937. finish_eval \
  21938. old_striplib \
  21939. striplib \
  21940. compiler_lib_search_dirs \
  21941. predep_objects \
  21942. postdep_objects \
  21943. predeps \
  21944. postdeps \
  21945. compiler_lib_search_path \
  21946. LD_CXX \
  21947. reload_flag_CXX \
  21948. compiler_CXX \
  21949. lt_prog_compiler_no_builtin_flag_CXX \
  21950. lt_prog_compiler_pic_CXX \
  21951. lt_prog_compiler_wl_CXX \
  21952. lt_prog_compiler_static_CXX \
  21953. lt_cv_prog_compiler_c_o_CXX \
  21954. export_dynamic_flag_spec_CXX \
  21955. whole_archive_flag_spec_CXX \
  21956. compiler_needs_object_CXX \
  21957. with_gnu_ld_CXX \
  21958. allow_undefined_flag_CXX \
  21959. no_undefined_flag_CXX \
  21960. hardcode_libdir_flag_spec_CXX \
  21961. hardcode_libdir_separator_CXX \
  21962. exclude_expsyms_CXX \
  21963. include_expsyms_CXX \
  21964. file_list_spec_CXX \
  21965. compiler_lib_search_dirs_CXX \
  21966. predep_objects_CXX \
  21967. postdep_objects_CXX \
  21968. predeps_CXX \
  21969. postdeps_CXX \
  21970. compiler_lib_search_path_CXX; do
  21971. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  21972. *[\\\\\\\`\\"\\\$]*)
  21973. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  21974. ;;
  21975. *)
  21976. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  21977. ;;
  21978. esac
  21979. done
  21980. # Double-quote double-evaled strings.
  21981. for var in reload_cmds \
  21982. old_postinstall_cmds \
  21983. old_postuninstall_cmds \
  21984. old_archive_cmds \
  21985. extract_expsyms_cmds \
  21986. old_archive_from_new_cmds \
  21987. old_archive_from_expsyms_cmds \
  21988. archive_cmds \
  21989. archive_expsym_cmds \
  21990. module_cmds \
  21991. module_expsym_cmds \
  21992. export_symbols_cmds \
  21993. prelink_cmds \
  21994. postlink_cmds \
  21995. postinstall_cmds \
  21996. postuninstall_cmds \
  21997. finish_cmds \
  21998. sys_lib_search_path_spec \
  21999. sys_lib_dlsearch_path_spec \
  22000. reload_cmds_CXX \
  22001. old_archive_cmds_CXX \
  22002. old_archive_from_new_cmds_CXX \
  22003. old_archive_from_expsyms_cmds_CXX \
  22004. archive_cmds_CXX \
  22005. archive_expsym_cmds_CXX \
  22006. module_cmds_CXX \
  22007. module_expsym_cmds_CXX \
  22008. export_symbols_cmds_CXX \
  22009. prelink_cmds_CXX \
  22010. postlink_cmds_CXX; do
  22011. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22012. *[\\\\\\\`\\"\\\$]*)
  22013. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22014. ;;
  22015. *)
  22016. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22017. ;;
  22018. esac
  22019. done
  22020. ac_aux_dir='$ac_aux_dir'
  22021. xsi_shell='$xsi_shell'
  22022. lt_shell_append='$lt_shell_append'
  22023. # See if we are running on zsh, and set the options which allow our
  22024. # commands through without removal of \ escapes INIT.
  22025. if test -n "\${ZSH_VERSION+set}" ; then
  22026. setopt NO_GLOB_SUBST
  22027. fi
  22028. PACKAGE='$PACKAGE'
  22029. VERSION='$VERSION'
  22030. TIMESTAMP='$TIMESTAMP'
  22031. RM='$RM'
  22032. ofile='$ofile'
  22033. SUMMARY="$SUMMARY"
  22034. _ACEOF
  22035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22036. # Handling of arguments.
  22037. for ac_config_target in $ac_config_targets
  22038. do
  22039. case $ac_config_target in
  22040. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22041. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22042. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22043. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22044. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22045. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22046. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22047. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22048. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22049. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22050. esac
  22051. done
  22052. # If the user did not use the arguments to specify the items to instantiate,
  22053. # then the envvar interface is used. Set only those that are not.
  22054. # We use the long form for the default assignment because of an extremely
  22055. # bizarre bug on SunOS 4.1.3.
  22056. if $ac_need_defaults; then
  22057. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22058. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22059. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22060. fi
  22061. # Have a temporary directory for convenience. Make it in the build tree
  22062. # simply because there is no reason against having it here, and in addition,
  22063. # creating and moving files from /tmp can sometimes cause problems.
  22064. # Hook for its removal unless debugging.
  22065. # Note that there is a small window in which the directory will not be cleaned:
  22066. # after its creation but before its name has been assigned to `$tmp'.
  22067. $debug ||
  22068. {
  22069. tmp= ac_tmp=
  22070. trap 'exit_status=$?
  22071. : "${ac_tmp:=$tmp}"
  22072. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22073. ' 0
  22074. trap 'as_fn_exit 1' 1 2 13 15
  22075. }
  22076. # Create a (secure) tmp directory for tmp files.
  22077. {
  22078. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22079. test -d "$tmp"
  22080. } ||
  22081. {
  22082. tmp=./conf$$-$RANDOM
  22083. (umask 077 && mkdir "$tmp")
  22084. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22085. ac_tmp=$tmp
  22086. # Set up the scripts for CONFIG_FILES section.
  22087. # No need to generate them if there are no CONFIG_FILES.
  22088. # This happens for instance with `./config.status config.h'.
  22089. if test -n "$CONFIG_FILES"; then
  22090. ac_cr=`echo X | tr X '\015'`
  22091. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22092. # But we know of no other shell where ac_cr would be empty at this
  22093. # point, so we can use a bashism as a fallback.
  22094. if test "x$ac_cr" = x; then
  22095. eval ac_cr=\$\'\\r\'
  22096. fi
  22097. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22098. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22099. ac_cs_awk_cr='\\r'
  22100. else
  22101. ac_cs_awk_cr=$ac_cr
  22102. fi
  22103. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22104. _ACEOF
  22105. {
  22106. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22107. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22108. echo "_ACEOF"
  22109. } >conf$$subs.sh ||
  22110. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22111. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22112. ac_delim='%!_!# '
  22113. for ac_last_try in false false false false false :; do
  22114. . ./conf$$subs.sh ||
  22115. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22116. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22117. if test $ac_delim_n = $ac_delim_num; then
  22118. break
  22119. elif $ac_last_try; then
  22120. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22121. else
  22122. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22123. fi
  22124. done
  22125. rm -f conf$$subs.sh
  22126. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22127. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22128. _ACEOF
  22129. sed -n '
  22130. h
  22131. s/^/S["/; s/!.*/"]=/
  22132. p
  22133. g
  22134. s/^[^!]*!//
  22135. :repl
  22136. t repl
  22137. s/'"$ac_delim"'$//
  22138. t delim
  22139. :nl
  22140. h
  22141. s/\(.\{148\}\)..*/\1/
  22142. t more1
  22143. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22144. p
  22145. n
  22146. b repl
  22147. :more1
  22148. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22149. p
  22150. g
  22151. s/.\{148\}//
  22152. t nl
  22153. :delim
  22154. h
  22155. s/\(.\{148\}\)..*/\1/
  22156. t more2
  22157. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22158. p
  22159. b
  22160. :more2
  22161. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22162. p
  22163. g
  22164. s/.\{148\}//
  22165. t delim
  22166. ' <conf$$subs.awk | sed '
  22167. /^[^""]/{
  22168. N
  22169. s/\n//
  22170. }
  22171. ' >>$CONFIG_STATUS || ac_write_fail=1
  22172. rm -f conf$$subs.awk
  22173. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22174. _ACAWK
  22175. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22176. for (key in S) S_is_set[key] = 1
  22177. FS = ""
  22178. }
  22179. {
  22180. line = $ 0
  22181. nfields = split(line, field, "@")
  22182. substed = 0
  22183. len = length(field[1])
  22184. for (i = 2; i < nfields; i++) {
  22185. key = field[i]
  22186. keylen = length(key)
  22187. if (S_is_set[key]) {
  22188. value = S[key]
  22189. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22190. len += length(value) + length(field[++i])
  22191. substed = 1
  22192. } else
  22193. len += 1 + keylen
  22194. }
  22195. print line
  22196. }
  22197. _ACAWK
  22198. _ACEOF
  22199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22200. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22201. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22202. else
  22203. cat
  22204. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22205. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22206. _ACEOF
  22207. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22208. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22209. # trailing colons and then remove the whole line if VPATH becomes empty
  22210. # (actually we leave an empty line to preserve line numbers).
  22211. if test "x$srcdir" = x.; then
  22212. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22213. h
  22214. s///
  22215. s/^/:/
  22216. s/[ ]*$/:/
  22217. s/:\$(srcdir):/:/g
  22218. s/:\${srcdir}:/:/g
  22219. s/:@srcdir@:/:/g
  22220. s/^:*//
  22221. s/:*$//
  22222. x
  22223. s/\(=[ ]*\).*/\1/
  22224. G
  22225. s/\n//
  22226. s/^[^=]*=[ ]*$//
  22227. }'
  22228. fi
  22229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22230. fi # test -n "$CONFIG_FILES"
  22231. # Set up the scripts for CONFIG_HEADERS section.
  22232. # No need to generate them if there are no CONFIG_HEADERS.
  22233. # This happens for instance with `./config.status Makefile'.
  22234. if test -n "$CONFIG_HEADERS"; then
  22235. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22236. BEGIN {
  22237. _ACEOF
  22238. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22239. # here-document in config.status, that substitutes the proper values into
  22240. # config.h.in to produce config.h.
  22241. # Create a delimiter string that does not exist in confdefs.h, to ease
  22242. # handling of long lines.
  22243. ac_delim='%!_!# '
  22244. for ac_last_try in false false :; do
  22245. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22246. if test -z "$ac_tt"; then
  22247. break
  22248. elif $ac_last_try; then
  22249. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22250. else
  22251. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22252. fi
  22253. done
  22254. # For the awk script, D is an array of macro values keyed by name,
  22255. # likewise P contains macro parameters if any. Preserve backslash
  22256. # newline sequences.
  22257. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22258. sed -n '
  22259. s/.\{148\}/&'"$ac_delim"'/g
  22260. t rset
  22261. :rset
  22262. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22263. t def
  22264. d
  22265. :def
  22266. s/\\$//
  22267. t bsnl
  22268. s/["\\]/\\&/g
  22269. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22270. D["\1"]=" \3"/p
  22271. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22272. d
  22273. :bsnl
  22274. s/["\\]/\\&/g
  22275. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22276. D["\1"]=" \3\\\\\\n"\\/p
  22277. t cont
  22278. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22279. t cont
  22280. d
  22281. :cont
  22282. n
  22283. s/.\{148\}/&'"$ac_delim"'/g
  22284. t clear
  22285. :clear
  22286. s/\\$//
  22287. t bsnlc
  22288. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22289. d
  22290. :bsnlc
  22291. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22292. b cont
  22293. ' <confdefs.h | sed '
  22294. s/'"$ac_delim"'/"\\\
  22295. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22296. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22297. for (key in D) D_is_set[key] = 1
  22298. FS = ""
  22299. }
  22300. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22301. line = \$ 0
  22302. split(line, arg, " ")
  22303. if (arg[1] == "#") {
  22304. defundef = arg[2]
  22305. mac1 = arg[3]
  22306. } else {
  22307. defundef = substr(arg[1], 2)
  22308. mac1 = arg[2]
  22309. }
  22310. split(mac1, mac2, "(") #)
  22311. macro = mac2[1]
  22312. prefix = substr(line, 1, index(line, defundef) - 1)
  22313. if (D_is_set[macro]) {
  22314. # Preserve the white space surrounding the "#".
  22315. print prefix "define", macro P[macro] D[macro]
  22316. next
  22317. } else {
  22318. # Replace #undef with comments. This is necessary, for example,
  22319. # in the case of _POSIX_SOURCE, which is predefined and required
  22320. # on some systems where configure will not decide to define it.
  22321. if (defundef == "undef") {
  22322. print "/*", prefix defundef, macro, "*/"
  22323. next
  22324. }
  22325. }
  22326. }
  22327. { print }
  22328. _ACAWK
  22329. _ACEOF
  22330. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22331. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22332. fi # test -n "$CONFIG_HEADERS"
  22333. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22334. shift
  22335. for ac_tag
  22336. do
  22337. case $ac_tag in
  22338. :[FHLC]) ac_mode=$ac_tag; continue;;
  22339. esac
  22340. case $ac_mode$ac_tag in
  22341. :[FHL]*:*);;
  22342. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22343. :[FH]-) ac_tag=-:-;;
  22344. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22345. esac
  22346. ac_save_IFS=$IFS
  22347. IFS=:
  22348. set x $ac_tag
  22349. IFS=$ac_save_IFS
  22350. shift
  22351. ac_file=$1
  22352. shift
  22353. case $ac_mode in
  22354. :L) ac_source=$1;;
  22355. :[FH])
  22356. ac_file_inputs=
  22357. for ac_f
  22358. do
  22359. case $ac_f in
  22360. -) ac_f="$ac_tmp/stdin";;
  22361. *) # Look for the file first in the build tree, then in the source tree
  22362. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22363. # because $ac_f cannot contain `:'.
  22364. test -f "$ac_f" ||
  22365. case $ac_f in
  22366. [\\/$]*) false;;
  22367. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22368. esac ||
  22369. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22370. esac
  22371. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22372. as_fn_append ac_file_inputs " '$ac_f'"
  22373. done
  22374. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22375. # use $as_me), people would be surprised to read:
  22376. # /* config.h. Generated by config.status. */
  22377. configure_input='Generated from '`
  22378. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22379. `' by configure.'
  22380. if test x"$ac_file" != x-; then
  22381. configure_input="$ac_file. $configure_input"
  22382. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22383. $as_echo "$as_me: creating $ac_file" >&6;}
  22384. fi
  22385. # Neutralize special characters interpreted by sed in replacement strings.
  22386. case $configure_input in #(
  22387. *\&* | *\|* | *\\* )
  22388. ac_sed_conf_input=`$as_echo "$configure_input" |
  22389. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22390. *) ac_sed_conf_input=$configure_input;;
  22391. esac
  22392. case $ac_tag in
  22393. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22394. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22395. esac
  22396. ;;
  22397. esac
  22398. ac_dir=`$as_dirname -- "$ac_file" ||
  22399. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22400. X"$ac_file" : 'X\(//\)[^/]' \| \
  22401. X"$ac_file" : 'X\(//\)$' \| \
  22402. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22403. $as_echo X"$ac_file" |
  22404. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22405. s//\1/
  22406. q
  22407. }
  22408. /^X\(\/\/\)[^/].*/{
  22409. s//\1/
  22410. q
  22411. }
  22412. /^X\(\/\/\)$/{
  22413. s//\1/
  22414. q
  22415. }
  22416. /^X\(\/\).*/{
  22417. s//\1/
  22418. q
  22419. }
  22420. s/.*/./; q'`
  22421. as_dir="$ac_dir"; as_fn_mkdir_p
  22422. ac_builddir=.
  22423. case "$ac_dir" in
  22424. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22425. *)
  22426. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22427. # A ".." for each directory in $ac_dir_suffix.
  22428. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22429. case $ac_top_builddir_sub in
  22430. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22431. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22432. esac ;;
  22433. esac
  22434. ac_abs_top_builddir=$ac_pwd
  22435. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22436. # for backward compatibility:
  22437. ac_top_builddir=$ac_top_build_prefix
  22438. case $srcdir in
  22439. .) # We are building in place.
  22440. ac_srcdir=.
  22441. ac_top_srcdir=$ac_top_builddir_sub
  22442. ac_abs_top_srcdir=$ac_pwd ;;
  22443. [\\/]* | ?:[\\/]* ) # Absolute name.
  22444. ac_srcdir=$srcdir$ac_dir_suffix;
  22445. ac_top_srcdir=$srcdir
  22446. ac_abs_top_srcdir=$srcdir ;;
  22447. *) # Relative name.
  22448. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22449. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22450. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22451. esac
  22452. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22453. case $ac_mode in
  22454. :F)
  22455. #
  22456. # CONFIG_FILE
  22457. #
  22458. case $INSTALL in
  22459. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22460. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22461. esac
  22462. _ACEOF
  22463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22464. # If the template does not know about datarootdir, expand it.
  22465. # FIXME: This hack should be removed a few years after 2.60.
  22466. ac_datarootdir_hack=; ac_datarootdir_seen=
  22467. ac_sed_dataroot='
  22468. /datarootdir/ {
  22469. p
  22470. q
  22471. }
  22472. /@datadir@/p
  22473. /@docdir@/p
  22474. /@infodir@/p
  22475. /@localedir@/p
  22476. /@mandir@/p'
  22477. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22478. *datarootdir*) ac_datarootdir_seen=yes;;
  22479. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22481. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22482. _ACEOF
  22483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22484. ac_datarootdir_hack='
  22485. s&@datadir@&$datadir&g
  22486. s&@docdir@&$docdir&g
  22487. s&@infodir@&$infodir&g
  22488. s&@localedir@&$localedir&g
  22489. s&@mandir@&$mandir&g
  22490. s&\\\${datarootdir}&$datarootdir&g' ;;
  22491. esac
  22492. _ACEOF
  22493. # Neutralize VPATH when `$srcdir' = `.'.
  22494. # Shell code in configure.ac might set extrasub.
  22495. # FIXME: do we really want to maintain this feature?
  22496. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22497. ac_sed_extra="$ac_vpsub
  22498. $extrasub
  22499. _ACEOF
  22500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22501. :t
  22502. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22503. s|@configure_input@|$ac_sed_conf_input|;t t
  22504. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22505. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22506. s&@srcdir@&$ac_srcdir&;t t
  22507. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22508. s&@top_srcdir@&$ac_top_srcdir&;t t
  22509. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22510. s&@builddir@&$ac_builddir&;t t
  22511. s&@abs_builddir@&$ac_abs_builddir&;t t
  22512. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22513. s&@INSTALL@&$ac_INSTALL&;t t
  22514. $ac_datarootdir_hack
  22515. "
  22516. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22517. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22518. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22519. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22520. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22521. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22523. which seems to be undefined. Please make sure it is defined" >&5
  22524. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22525. which seems to be undefined. Please make sure it is defined" >&2;}
  22526. rm -f "$ac_tmp/stdin"
  22527. case $ac_file in
  22528. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22529. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22530. esac \
  22531. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22532. ;;
  22533. :H)
  22534. #
  22535. # CONFIG_HEADER
  22536. #
  22537. if test x"$ac_file" != x-; then
  22538. {
  22539. $as_echo "/* $configure_input */" \
  22540. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22541. } >"$ac_tmp/config.h" \
  22542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22543. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22544. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22545. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22546. else
  22547. rm -f "$ac_file"
  22548. mv "$ac_tmp/config.h" "$ac_file" \
  22549. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22550. fi
  22551. else
  22552. $as_echo "/* $configure_input */" \
  22553. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22554. || as_fn_error $? "could not create -" "$LINENO" 5
  22555. fi
  22556. ;;
  22557. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22558. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22559. ;;
  22560. esac
  22561. case $ac_file$ac_mode in
  22562. "libtool":C)
  22563. # See if we are running on zsh, and set the options which allow our
  22564. # commands through without removal of \ escapes.
  22565. if test -n "${ZSH_VERSION+set}" ; then
  22566. setopt NO_GLOB_SUBST
  22567. fi
  22568. cfgfile="${ofile}T"
  22569. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22570. $RM "$cfgfile"
  22571. cat <<_LT_EOF >> "$cfgfile"
  22572. #! $SHELL
  22573. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22574. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22575. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22576. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22577. #
  22578. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22579. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22580. # Foundation, Inc.
  22581. # Written by Gordon Matzigkeit, 1996
  22582. #
  22583. # This file is part of GNU Libtool.
  22584. #
  22585. # GNU Libtool is free software; you can redistribute it and/or
  22586. # modify it under the terms of the GNU General Public License as
  22587. # published by the Free Software Foundation; either version 2 of
  22588. # the License, or (at your option) any later version.
  22589. #
  22590. # As a special exception to the GNU General Public License,
  22591. # if you distribute this file as part of a program or library that
  22592. # is built using GNU Libtool, you may include this file under the
  22593. # same distribution terms that you use for the rest of that program.
  22594. #
  22595. # GNU Libtool is distributed in the hope that it will be useful,
  22596. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22597. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22598. # GNU General Public License for more details.
  22599. #
  22600. # You should have received a copy of the GNU General Public License
  22601. # along with GNU Libtool; see the file COPYING. If not, a copy
  22602. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22603. # obtained by writing to the Free Software Foundation, Inc.,
  22604. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22605. # The names of the tagged configurations supported by this script.
  22606. available_tags="CXX "
  22607. # ### BEGIN LIBTOOL CONFIG
  22608. # Which release of libtool.m4 was used?
  22609. macro_version=$macro_version
  22610. macro_revision=$macro_revision
  22611. # Assembler program.
  22612. AS=$lt_AS
  22613. # DLL creation program.
  22614. DLLTOOL=$lt_DLLTOOL
  22615. # Object dumper program.
  22616. OBJDUMP=$lt_OBJDUMP
  22617. # Whether or not to build shared libraries.
  22618. build_libtool_libs=$enable_shared
  22619. # Whether or not to build static libraries.
  22620. build_old_libs=$enable_static
  22621. # What type of objects to build.
  22622. pic_mode=$pic_mode
  22623. # Whether or not to optimize for fast installation.
  22624. fast_install=$enable_fast_install
  22625. # Shell to use when invoking shell scripts.
  22626. SHELL=$lt_SHELL
  22627. # An echo program that protects backslashes.
  22628. ECHO=$lt_ECHO
  22629. # The PATH separator for the build system.
  22630. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22631. # The host system.
  22632. host_alias=$host_alias
  22633. host=$host
  22634. host_os=$host_os
  22635. # The build system.
  22636. build_alias=$build_alias
  22637. build=$build
  22638. build_os=$build_os
  22639. # A sed program that does not truncate output.
  22640. SED=$lt_SED
  22641. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22642. Xsed="\$SED -e 1s/^X//"
  22643. # A grep program that handles long lines.
  22644. GREP=$lt_GREP
  22645. # An ERE matcher.
  22646. EGREP=$lt_EGREP
  22647. # A literal string matcher.
  22648. FGREP=$lt_FGREP
  22649. # A BSD- or MS-compatible name lister.
  22650. NM=$lt_NM
  22651. # Whether we need soft or hard links.
  22652. LN_S=$lt_LN_S
  22653. # What is the maximum length of a command?
  22654. max_cmd_len=$max_cmd_len
  22655. # Object file suffix (normally "o").
  22656. objext=$ac_objext
  22657. # Executable file suffix (normally "").
  22658. exeext=$exeext
  22659. # whether the shell understands "unset".
  22660. lt_unset=$lt_unset
  22661. # turn spaces into newlines.
  22662. SP2NL=$lt_lt_SP2NL
  22663. # turn newlines into spaces.
  22664. NL2SP=$lt_lt_NL2SP
  22665. # convert \$build file names to \$host format.
  22666. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22667. # convert \$build files to toolchain format.
  22668. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22669. # Method to check whether dependent libraries are shared objects.
  22670. deplibs_check_method=$lt_deplibs_check_method
  22671. # Command to use when deplibs_check_method = "file_magic".
  22672. file_magic_cmd=$lt_file_magic_cmd
  22673. # How to find potential files when deplibs_check_method = "file_magic".
  22674. file_magic_glob=$lt_file_magic_glob
  22675. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22676. want_nocaseglob=$lt_want_nocaseglob
  22677. # Command to associate shared and link libraries.
  22678. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22679. # The archiver.
  22680. AR=$lt_AR
  22681. # Flags to create an archive.
  22682. AR_FLAGS=$lt_AR_FLAGS
  22683. # How to feed a file listing to the archiver.
  22684. archiver_list_spec=$lt_archiver_list_spec
  22685. # A symbol stripping program.
  22686. STRIP=$lt_STRIP
  22687. # Commands used to install an old-style archive.
  22688. RANLIB=$lt_RANLIB
  22689. old_postinstall_cmds=$lt_old_postinstall_cmds
  22690. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22691. # Whether to use a lock for old archive extraction.
  22692. lock_old_archive_extraction=$lock_old_archive_extraction
  22693. # A C compiler.
  22694. LTCC=$lt_CC
  22695. # LTCC compiler flags.
  22696. LTCFLAGS=$lt_CFLAGS
  22697. # Take the output of nm and produce a listing of raw symbols and C names.
  22698. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22699. # Transform the output of nm in a proper C declaration.
  22700. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22701. # Transform the output of nm in a C name address pair.
  22702. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22703. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22704. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22705. # Specify filename containing input files for \$NM.
  22706. nm_file_list_spec=$lt_nm_file_list_spec
  22707. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22708. lt_sysroot=$lt_sysroot
  22709. # The name of the directory that contains temporary libtool files.
  22710. objdir=$objdir
  22711. # Used to examine libraries when file_magic_cmd begins with "file".
  22712. MAGIC_CMD=$MAGIC_CMD
  22713. # Must we lock files when doing compilation?
  22714. need_locks=$lt_need_locks
  22715. # Manifest tool.
  22716. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22717. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22718. DSYMUTIL=$lt_DSYMUTIL
  22719. # Tool to change global to local symbols on Mac OS X.
  22720. NMEDIT=$lt_NMEDIT
  22721. # Tool to manipulate fat objects and archives on Mac OS X.
  22722. LIPO=$lt_LIPO
  22723. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22724. OTOOL=$lt_OTOOL
  22725. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22726. OTOOL64=$lt_OTOOL64
  22727. # Old archive suffix (normally "a").
  22728. libext=$libext
  22729. # Shared library suffix (normally ".so").
  22730. shrext_cmds=$lt_shrext_cmds
  22731. # The commands to extract the exported symbol list from a shared archive.
  22732. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22733. # Variables whose values should be saved in libtool wrapper scripts and
  22734. # restored at link time.
  22735. variables_saved_for_relink=$lt_variables_saved_for_relink
  22736. # Do we need the "lib" prefix for modules?
  22737. need_lib_prefix=$need_lib_prefix
  22738. # Do we need a version for libraries?
  22739. need_version=$need_version
  22740. # Library versioning type.
  22741. version_type=$version_type
  22742. # Shared library runtime path variable.
  22743. runpath_var=$runpath_var
  22744. # Shared library path variable.
  22745. shlibpath_var=$shlibpath_var
  22746. # Is shlibpath searched before the hard-coded library search path?
  22747. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22748. # Format of library name prefix.
  22749. libname_spec=$lt_libname_spec
  22750. # List of archive names. First name is the real one, the rest are links.
  22751. # The last name is the one that the linker finds with -lNAME
  22752. library_names_spec=$lt_library_names_spec
  22753. # The coded name of the library, if different from the real name.
  22754. soname_spec=$lt_soname_spec
  22755. # Permission mode override for installation of shared libraries.
  22756. install_override_mode=$lt_install_override_mode
  22757. # Command to use after installation of a shared archive.
  22758. postinstall_cmds=$lt_postinstall_cmds
  22759. # Command to use after uninstallation of a shared archive.
  22760. postuninstall_cmds=$lt_postuninstall_cmds
  22761. # Commands used to finish a libtool library installation in a directory.
  22762. finish_cmds=$lt_finish_cmds
  22763. # As "finish_cmds", except a single script fragment to be evaled but
  22764. # not shown.
  22765. finish_eval=$lt_finish_eval
  22766. # Whether we should hardcode library paths into libraries.
  22767. hardcode_into_libs=$hardcode_into_libs
  22768. # Compile-time system search path for libraries.
  22769. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22770. # Run-time system search path for libraries.
  22771. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22772. # Whether dlopen is supported.
  22773. dlopen_support=$enable_dlopen
  22774. # Whether dlopen of programs is supported.
  22775. dlopen_self=$enable_dlopen_self
  22776. # Whether dlopen of statically linked programs is supported.
  22777. dlopen_self_static=$enable_dlopen_self_static
  22778. # Commands to strip libraries.
  22779. old_striplib=$lt_old_striplib
  22780. striplib=$lt_striplib
  22781. # The linker used to build libraries.
  22782. LD=$lt_LD
  22783. # How to create reloadable object files.
  22784. reload_flag=$lt_reload_flag
  22785. reload_cmds=$lt_reload_cmds
  22786. # Commands used to build an old-style archive.
  22787. old_archive_cmds=$lt_old_archive_cmds
  22788. # A language specific compiler.
  22789. CC=$lt_compiler
  22790. # Is the compiler the GNU compiler?
  22791. with_gcc=$GCC
  22792. # Compiler flag to turn off builtin functions.
  22793. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22794. # Additional compiler flags for building library objects.
  22795. pic_flag=$lt_lt_prog_compiler_pic
  22796. # How to pass a linker flag through the compiler.
  22797. wl=$lt_lt_prog_compiler_wl
  22798. # Compiler flag to prevent dynamic linking.
  22799. link_static_flag=$lt_lt_prog_compiler_static
  22800. # Does compiler simultaneously support -c and -o options?
  22801. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22802. # Whether or not to add -lc for building shared libraries.
  22803. build_libtool_need_lc=$archive_cmds_need_lc
  22804. # Whether or not to disallow shared libs when runtime libs are static.
  22805. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22806. # Compiler flag to allow reflexive dlopens.
  22807. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22808. # Compiler flag to generate shared objects directly from archives.
  22809. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22810. # Whether the compiler copes with passing no objects directly.
  22811. compiler_needs_object=$lt_compiler_needs_object
  22812. # Create an old-style archive from a shared archive.
  22813. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22814. # Create a temporary old-style archive to link instead of a shared archive.
  22815. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22816. # Commands used to build a shared archive.
  22817. archive_cmds=$lt_archive_cmds
  22818. archive_expsym_cmds=$lt_archive_expsym_cmds
  22819. # Commands used to build a loadable module if different from building
  22820. # a shared archive.
  22821. module_cmds=$lt_module_cmds
  22822. module_expsym_cmds=$lt_module_expsym_cmds
  22823. # Whether we are building with GNU ld or not.
  22824. with_gnu_ld=$lt_with_gnu_ld
  22825. # Flag that allows shared libraries with undefined symbols to be built.
  22826. allow_undefined_flag=$lt_allow_undefined_flag
  22827. # Flag that enforces no undefined symbols.
  22828. no_undefined_flag=$lt_no_undefined_flag
  22829. # Flag to hardcode \$libdir into a binary during linking.
  22830. # This must work even if \$libdir does not exist
  22831. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22832. # Whether we need a single "-rpath" flag with a separated argument.
  22833. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22834. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22835. # DIR into the resulting binary.
  22836. hardcode_direct=$hardcode_direct
  22837. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22838. # DIR into the resulting binary and the resulting library dependency is
  22839. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22840. # library is relocated.
  22841. hardcode_direct_absolute=$hardcode_direct_absolute
  22842. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22843. # into the resulting binary.
  22844. hardcode_minus_L=$hardcode_minus_L
  22845. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22846. # into the resulting binary.
  22847. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22848. # Set to "yes" if building a shared library automatically hardcodes DIR
  22849. # into the library and all subsequent libraries and executables linked
  22850. # against it.
  22851. hardcode_automatic=$hardcode_automatic
  22852. # Set to yes if linker adds runtime paths of dependent libraries
  22853. # to runtime path list.
  22854. inherit_rpath=$inherit_rpath
  22855. # Whether libtool must link a program against all its dependency libraries.
  22856. link_all_deplibs=$link_all_deplibs
  22857. # Set to "yes" if exported symbols are required.
  22858. always_export_symbols=$always_export_symbols
  22859. # The commands to list exported symbols.
  22860. export_symbols_cmds=$lt_export_symbols_cmds
  22861. # Symbols that should not be listed in the preloaded symbols.
  22862. exclude_expsyms=$lt_exclude_expsyms
  22863. # Symbols that must always be exported.
  22864. include_expsyms=$lt_include_expsyms
  22865. # Commands necessary for linking programs (against libraries) with templates.
  22866. prelink_cmds=$lt_prelink_cmds
  22867. # Commands necessary for finishing linking programs.
  22868. postlink_cmds=$lt_postlink_cmds
  22869. # Specify filename containing input files.
  22870. file_list_spec=$lt_file_list_spec
  22871. # How to hardcode a shared library path into an executable.
  22872. hardcode_action=$hardcode_action
  22873. # The directories searched by this compiler when creating a shared library.
  22874. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22875. # Dependencies to place before and after the objects being linked to
  22876. # create a shared library.
  22877. predep_objects=$lt_predep_objects
  22878. postdep_objects=$lt_postdep_objects
  22879. predeps=$lt_predeps
  22880. postdeps=$lt_postdeps
  22881. # The library search path used internally by the compiler when linking
  22882. # a shared library.
  22883. compiler_lib_search_path=$lt_compiler_lib_search_path
  22884. # ### END LIBTOOL CONFIG
  22885. _LT_EOF
  22886. case $host_os in
  22887. aix3*)
  22888. cat <<\_LT_EOF >> "$cfgfile"
  22889. # AIX sometimes has problems with the GCC collect2 program. For some
  22890. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22891. # vanish in a puff of smoke.
  22892. if test "X${COLLECT_NAMES+set}" != Xset; then
  22893. COLLECT_NAMES=
  22894. export COLLECT_NAMES
  22895. fi
  22896. _LT_EOF
  22897. ;;
  22898. esac
  22899. ltmain="$ac_aux_dir/ltmain.sh"
  22900. # We use sed instead of cat because bash on DJGPP gets confused if
  22901. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22902. # text mode, it properly converts lines to CR/LF. This bash problem
  22903. # is reportedly fixed, but why not run on old versions too?
  22904. sed '$q' "$ltmain" >> "$cfgfile" \
  22905. || (rm -f "$cfgfile"; exit 1)
  22906. if test x"$xsi_shell" = xyes; then
  22907. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22908. func_dirname ()\
  22909. {\
  22910. \ case ${1} in\
  22911. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22912. \ * ) func_dirname_result="${3}" ;;\
  22913. \ esac\
  22914. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22917. test 0 -eq $? || _lt_function_replace_fail=:
  22918. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22919. func_basename ()\
  22920. {\
  22921. \ func_basename_result="${1##*/}"\
  22922. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22923. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22924. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22925. test 0 -eq $? || _lt_function_replace_fail=:
  22926. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22927. func_dirname_and_basename ()\
  22928. {\
  22929. \ case ${1} in\
  22930. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22931. \ * ) func_dirname_result="${3}" ;;\
  22932. \ esac\
  22933. \ func_basename_result="${1##*/}"\
  22934. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22935. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22936. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22937. test 0 -eq $? || _lt_function_replace_fail=:
  22938. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22939. func_stripname ()\
  22940. {\
  22941. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22942. \ # positional parameters, so assign one to ordinary parameter first.\
  22943. \ func_stripname_result=${3}\
  22944. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22945. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22946. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22947. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22948. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22949. test 0 -eq $? || _lt_function_replace_fail=:
  22950. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22951. func_split_long_opt ()\
  22952. {\
  22953. \ func_split_long_opt_name=${1%%=*}\
  22954. \ func_split_long_opt_arg=${1#*=}\
  22955. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22956. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22957. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22958. test 0 -eq $? || _lt_function_replace_fail=:
  22959. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  22960. func_split_short_opt ()\
  22961. {\
  22962. \ func_split_short_opt_arg=${1#??}\
  22963. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  22964. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  22965. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22966. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22967. test 0 -eq $? || _lt_function_replace_fail=:
  22968. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  22969. func_lo2o ()\
  22970. {\
  22971. \ case ${1} in\
  22972. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  22973. \ *) func_lo2o_result=${1} ;;\
  22974. \ esac\
  22975. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  22976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22978. test 0 -eq $? || _lt_function_replace_fail=:
  22979. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  22980. func_xform ()\
  22981. {\
  22982. func_xform_result=${1%.*}.lo\
  22983. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  22984. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22985. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22986. test 0 -eq $? || _lt_function_replace_fail=:
  22987. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  22988. func_arith ()\
  22989. {\
  22990. func_arith_result=$(( $* ))\
  22991. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  22992. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22993. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22994. test 0 -eq $? || _lt_function_replace_fail=:
  22995. sed -e '/^func_len ()$/,/^} # func_len /c\
  22996. func_len ()\
  22997. {\
  22998. func_len_result=${#1}\
  22999. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23000. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23001. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23002. test 0 -eq $? || _lt_function_replace_fail=:
  23003. fi
  23004. if test x"$lt_shell_append" = xyes; then
  23005. sed -e '/^func_append ()$/,/^} # func_append /c\
  23006. func_append ()\
  23007. {\
  23008. eval "${1}+=\\${2}"\
  23009. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23010. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23011. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23012. test 0 -eq $? || _lt_function_replace_fail=:
  23013. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23014. func_append_quoted ()\
  23015. {\
  23016. \ func_quote_for_eval "${2}"\
  23017. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23018. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23019. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23020. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23021. test 0 -eq $? || _lt_function_replace_fail=:
  23022. # Save a `func_append' function call where possible by direct use of '+='
  23023. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23024. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23025. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23026. test 0 -eq $? || _lt_function_replace_fail=:
  23027. else
  23028. # Save a `func_append' function call even when '+=' is not available
  23029. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23030. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23031. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23032. test 0 -eq $? || _lt_function_replace_fail=:
  23033. fi
  23034. if test x"$_lt_function_replace_fail" = x":"; then
  23035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23036. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23037. fi
  23038. mv -f "$cfgfile" "$ofile" ||
  23039. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23040. chmod +x "$ofile"
  23041. cat <<_LT_EOF >> "$ofile"
  23042. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23043. # The linker used to build libraries.
  23044. LD=$lt_LD_CXX
  23045. # How to create reloadable object files.
  23046. reload_flag=$lt_reload_flag_CXX
  23047. reload_cmds=$lt_reload_cmds_CXX
  23048. # Commands used to build an old-style archive.
  23049. old_archive_cmds=$lt_old_archive_cmds_CXX
  23050. # A language specific compiler.
  23051. CC=$lt_compiler_CXX
  23052. # Is the compiler the GNU compiler?
  23053. with_gcc=$GCC_CXX
  23054. # Compiler flag to turn off builtin functions.
  23055. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23056. # Additional compiler flags for building library objects.
  23057. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23058. # How to pass a linker flag through the compiler.
  23059. wl=$lt_lt_prog_compiler_wl_CXX
  23060. # Compiler flag to prevent dynamic linking.
  23061. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23062. # Does compiler simultaneously support -c and -o options?
  23063. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23064. # Whether or not to add -lc for building shared libraries.
  23065. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23066. # Whether or not to disallow shared libs when runtime libs are static.
  23067. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23068. # Compiler flag to allow reflexive dlopens.
  23069. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23070. # Compiler flag to generate shared objects directly from archives.
  23071. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23072. # Whether the compiler copes with passing no objects directly.
  23073. compiler_needs_object=$lt_compiler_needs_object_CXX
  23074. # Create an old-style archive from a shared archive.
  23075. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23076. # Create a temporary old-style archive to link instead of a shared archive.
  23077. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23078. # Commands used to build a shared archive.
  23079. archive_cmds=$lt_archive_cmds_CXX
  23080. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23081. # Commands used to build a loadable module if different from building
  23082. # a shared archive.
  23083. module_cmds=$lt_module_cmds_CXX
  23084. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23085. # Whether we are building with GNU ld or not.
  23086. with_gnu_ld=$lt_with_gnu_ld_CXX
  23087. # Flag that allows shared libraries with undefined symbols to be built.
  23088. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23089. # Flag that enforces no undefined symbols.
  23090. no_undefined_flag=$lt_no_undefined_flag_CXX
  23091. # Flag to hardcode \$libdir into a binary during linking.
  23092. # This must work even if \$libdir does not exist
  23093. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23094. # Whether we need a single "-rpath" flag with a separated argument.
  23095. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23096. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23097. # DIR into the resulting binary.
  23098. hardcode_direct=$hardcode_direct_CXX
  23099. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23100. # DIR into the resulting binary and the resulting library dependency is
  23101. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23102. # library is relocated.
  23103. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23104. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23105. # into the resulting binary.
  23106. hardcode_minus_L=$hardcode_minus_L_CXX
  23107. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23108. # into the resulting binary.
  23109. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23110. # Set to "yes" if building a shared library automatically hardcodes DIR
  23111. # into the library and all subsequent libraries and executables linked
  23112. # against it.
  23113. hardcode_automatic=$hardcode_automatic_CXX
  23114. # Set to yes if linker adds runtime paths of dependent libraries
  23115. # to runtime path list.
  23116. inherit_rpath=$inherit_rpath_CXX
  23117. # Whether libtool must link a program against all its dependency libraries.
  23118. link_all_deplibs=$link_all_deplibs_CXX
  23119. # Set to "yes" if exported symbols are required.
  23120. always_export_symbols=$always_export_symbols_CXX
  23121. # The commands to list exported symbols.
  23122. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23123. # Symbols that should not be listed in the preloaded symbols.
  23124. exclude_expsyms=$lt_exclude_expsyms_CXX
  23125. # Symbols that must always be exported.
  23126. include_expsyms=$lt_include_expsyms_CXX
  23127. # Commands necessary for linking programs (against libraries) with templates.
  23128. prelink_cmds=$lt_prelink_cmds_CXX
  23129. # Commands necessary for finishing linking programs.
  23130. postlink_cmds=$lt_postlink_cmds_CXX
  23131. # Specify filename containing input files.
  23132. file_list_spec=$lt_file_list_spec_CXX
  23133. # How to hardcode a shared library path into an executable.
  23134. hardcode_action=$hardcode_action_CXX
  23135. # The directories searched by this compiler when creating a shared library.
  23136. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23137. # Dependencies to place before and after the objects being linked to
  23138. # create a shared library.
  23139. predep_objects=$lt_predep_objects_CXX
  23140. postdep_objects=$lt_postdep_objects_CXX
  23141. predeps=$lt_predeps_CXX
  23142. postdeps=$lt_postdeps_CXX
  23143. # The library search path used internally by the compiler when linking
  23144. # a shared library.
  23145. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23146. # ### END LIBTOOL TAG CONFIG: CXX
  23147. _LT_EOF
  23148. ;;
  23149. "sdl2_config":C) chmod a+x sdl2-config ;;
  23150. "summary":C) echo -en "$SUMMARY" ;;
  23151. esac
  23152. done # for ac_tag
  23153. as_fn_exit 0
  23154. _ACEOF
  23155. ac_clean_files=$ac_clean_files_save
  23156. test $ac_write_fail = 0 ||
  23157. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23158. # configure is writing to config.log, and then calls config.status.
  23159. # config.status does its own redirection, appending to config.log.
  23160. # Unfortunately, on DOS this fails, as config.log is still kept open
  23161. # by configure, so config.status won't be able to write to it; its
  23162. # output is simply discarded. So we exec the FD to /dev/null,
  23163. # effectively closing config.log, so it can be properly (re)opened and
  23164. # appended to by config.status. When coming back to configure, we
  23165. # need to make the FD available again.
  23166. if test "$no_create" != yes; then
  23167. ac_cs_success=:
  23168. ac_config_status_args=
  23169. test "$silent" = yes &&
  23170. ac_config_status_args="$ac_config_status_args --quiet"
  23171. exec 5>/dev/null
  23172. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23173. exec 5>>config.log
  23174. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23175. # would make configure fail if this is the last instruction.
  23176. $ac_cs_success || as_fn_exit 1
  23177. fi
  23178. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23180. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23181. fi